This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: bootstrap gcc for powerpc


Dimi Shahbaz wrote:
> /home2/dimator/3rdParty/crosstools/glibc-ppc/config.h:3:3: #error "glibc
> cannot be compiled without optimization"
> ...
> And here is my configure line:
> CFLAGS=-mcpu=403 CC=~/opt/ppc405/bin/powerpc-linux-gcc
> AR=~/opt/ppc405/bin/powerpc-linux-ar
> RANLIB=~/opt/ppc405/bin/powerpc-linux-ranlib ../glibc-2.2.5/configure
> --host=ppc-linux --enable-add-ons=linuxthreads
> --prefix=/home2/dimator/opt/ppc405/
> --with-headers=/home2/dimator/opt/ppc405/powerpc-linux/include/

Hrm.  I didn't see that #error the first time you showed me your
problem.  Perhaps if you added -O to CFLAGS?  Have a look at 
the default value of CFLAGS; you probably nuked a couple
important options when you overrode it.  (Nice packages let you 
override CFLAGS_EXTRA, that way you can't nuke vital options.  
Perhaps glibc is nice in that way.)
- Dan

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]