This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Linking very large application with GCC trunk on powerpc-linux leads to relocation error of crtbegin/end.o
Selon Andreas Jaeger <aj@suse.de>:
> This gets me a bit further but I do get later a build failure in
> configure:
>
> checking for powerpc64-suse-linux-gnu-strip... strip
> checking whether ln -s works... yes
> checking for powerpc64-suse-linux-gnu-gcc... /abuild/aj/gcc-tst/./gcc/xgcc
> -B/abuild/aj/gcc-tst/./gcc/
> -B/opt/gcc/4.4-devel/powerpc64-suse-linux-gnu/bin/
> -B/opt/gcc/4.4-devel/powerpc64-suse-linux-gnu/lib/ -isystem
> /opt/gcc/4.4-devel/powerpc64-suse-linux-gnu/include -isystem
> /opt/gcc/4.4-devel/powerpc64-suse-linux-gnu/sys-include
> checking for suffix of object files... configure: error: in
> `/abuild/aj/gcc-tst/powerpc64-suse-linux-gnu/libgcc':
> configure: error: cannot compute suffix of object files: cannot compile
> See `config.log' for more details.
> make[2]: *** [configure-stage1-target-libgcc] Error 1
If you've run configure even once by mistake in the source directory this is
usually what you get as error when you configure and build in a build dir later
on. The solution is to restart from a clean source dir.
Other possibility is that you linked a base compiler with mpfr as dynamic
library and you don't have them anymore in your LD_LIBRARY_PATH so it doesn't
work. There's a configure flag --disable-shared or some such for MPFR,
otherwise you can move the lib/*mpfr.so* somewhere else.
Hope this helps,
Laurent