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]

Re: gcc 4.5 and powerpc: cannot link


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

-Khem

--
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]