This is the mail archive of the crossgcc@sourceware.org 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] |
Am 16.05.2010 um 21:18 schrieb Khem Raj: > On (16/05/10 20:24), Titus von Boxberg wrote: >> All, >> >> I'm trying to use CT-NG for creating a cross gcc4.5 for powerpc. >> It fails when compiling the final compiler during configuration of libgomp, >> complaining that the compiler cannot create executables. >> >> ------ >> configure:3680: /Users/titus/tmp/ctng-ppc/targets/powerpc-unknown-linux-gnu/build/build-cc/./gcc/xgcc -B/Users/titus/tmp/ctng-ppc/targets/powerpc-unknown-linux-gnu/build/build-cc/./gcc/ -B/Volumes/HD2/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/bin/ -B/Volumes/HD2/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/lib/ -isystem /Volumes/HD2/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/include -isystem /Volumes/HD2/x-tools/powerpc-unknown-linux-gnu/powerpc-unknown-linux-gnu/sys-include -g -Os conftest.c >&5 >> /Users/titus/tmp/ctng-ppc/targets/powerpc-unknown-linux-gnu/build/build-cc/./gcc/crtend.o: In function `__do_global_ctors_aux': >> crtstuff.c:(.text+0xc): undefined reference to `_savegpr_31' >> collect2: ld returned 1 exit status >> configure:3684: $? = 1 >> ------ >> >> conftest.c contains only main() { return 0; } >> >> It seems to me that I encounter this bug (with libgcc.a?) >> >> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43810 >> >> Is anyone already experienced with this and has a workaround or an explanation? > > This happens with -Os. If gcc does not have the below patch then try > it out > > http://gcc.gnu.org/ml/gcc-cvs/2009-09/msg00315.html Thanks for the hint. The change you mentioned is apparently incorporated in gcc4.5. To successfully build the cross compiler, it suffices to remove --enable-target-optspace from the configuration parameters of gcc. This removes Os from the compiler flags during build of the cross compiler. In ct-ng this parameter is hardwired in scripts/build/cc/gcc.sh Would that be a candidate for the .config-file of ct-ng? Regards Titus -- For unsubscribe information see http://sourceware.org/lists.html#faq
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |