wow man.  Your as interested in this as I am!  Cool.

I'm running mandrake 8.0 and it reports that I have
this gcc installed.  2.96-0.48mdk

Everything goes fine with the builds until I get that
error message then it barfs.  I can see the build
querying the compiler to see if it supports athlon
optimizations.  It gets a Yes answer and proceeds to
start building the package and then it dies.

I've got an /athlon directory in /usr/src/RPM/RPMS
weird that you don't.  Is your kernel compiled with
athlon optimizations?  Mine had the /athlon directory
before I rebuilt the kernel though.

Hopefully Todd or civilme from mandrake will see this
thread and offer us some of their immense wisdom ;-)


Abe
--- "David E. Fox" <[EMAIL PROTECTED]>
wrote:
> > rpm --rebuild --target=athlon
> ftp-0.17-4mdk.src.rpm
> > rpm --rebuild --target=k7 ftp-0.17-4mdk.src.rpm
> 
> OK drop the '--target=athlon" part and see what
> happens. Do you
> get the same output as before? 
> 
> AFAIK Mandrake 8 uses a higher version of RPM than
> does 7.2. That
> may be a factor, too. I don't know if the
> '--target=athlon" is 
> supported in the RPM in Mandrake 7.2. And I'm still
> curious as
> to what commands that transmits to gcc and the
> Makefile(s).
> 
> I seem to remember there's a way (maybe rpm -bt or
> rpm -bi) to 
> build with a specific spec file. But you have to put
> the .src.rpm
> in a special place (/usr/src/RPM) and there are
> several directories
> underneath there for various things like source
> rpms, binary rpms, 
> spec files, sources, etc. Underneath RPMS are
> several directories that
> correspond, I would think, to --target
> (i386,i486,i586) but on my system
> K7 or Athlon are not listed.
> 
> after looking at an 8.0 mirror and downloading a
> sample small source
> rpm to experiment with (I chose gnu bc) just doing
> an 'rpm --rebuild
> --target=athlon" appears to simply pass the 'athlon'
> part to the
> gcc so it compiles with the -mcpu=athlon flag.
> That's the part I wasn't
> clear about. I guess experimentation is the key :).
> 
> Consequenty, that build fails in the .configure
> script run as part as
> the rebuild, saying my C compiler can't generate
> executables. That's to
> be expected, since the compiler flag doesn't work.
> Of course, when I
> substitute --target=i686, it works, and adds flags
> in the Makefile that
> (probably) make sense for Pentium Pro systems. 
> 
> > /var/tmp/rpm-tmp.87677: fg: no job control
> > Bad exit status from /var/tmp/rpm-tmp.87677
> (%build)
> 
> Strange. What shell are you running? fg is bash / sh
> job control, it
> should be built in. Why a script would want to play
> with that, I'm not
> sure.
> 
> By the way, I just checked ftp.gnu.org today - the
> latest gcc is still
> 2.95.3, which is what I'm running. 
> 
> > Abe
>
------------------------------------------------------------------------
> David E. Fox                              Thanks for
> letting me
> [EMAIL PROTECTED]                            change
> magnetic patterns
> [EMAIL PROTECTED]               on your
> hard disk.
>
-----------------------------------------------------------------------


=====
Jesus saves.
Allah forgives,
Cthulu thinks you'd make a nice sandwich.
------------------------------------------
See my digital art at:

http://www.foramenmagnum.net/images.html

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

Reply via email to