[Bug bootstrap/21544] New: xgcc fails (1rst stage) if binutils is not installed into --prefix directory
jlm_devel at laposte dot net
gcc-bugzilla@gcc.gnu.org
Fri May 13 10:05:00 GMT 2005
binutils are installed into /opt/x86_64/binutils
gcc is configured as follow :
--target=x86_64-pc-linux-gnu
--host=i686-pc-linux-gnu
--enable-__cxa_atexit
--prefix=/opt/x86_64/gcc/3.4.3
--with-local-prefix=/var/x86_64
--with-newlib
--without-headers
--enable-languages=c
--enable-symvers=gnu
--disable-nls
--disable-multilib
--disable-shared
--enable-threads=no
PATH is set to have /opt/x86_64/binutils/bin
configure find target x86_64 as ld....
but when compiling it fail when building libcrt.o
I straced xgcc and found that he was seeking for as and not x86_64-pc-linux-gnu-as
./xgcc -dumpmachine
x86_64-pc-linux-gnu
so xgcc is well configured to be a crosscompiler.... it simply don't use the
--target triplet prefix into itself.....
strace shows that xgcc only seek for as into -B directories that depends on
--prefix.... the issue is that I want to have several gcc installed concurently
(to have the choice, some source don't support recent gcc.... so I still have to
have older version installed)
xgcc should execlp/execvp as a last resort ie should contain
#idef TARGET
#define TARGET_AS TARGET##-as
#else
#define TARGET_AS as
#endif
xeclp(TARGET_AS,...,...);
Best Regards,
JLM
--
Summary: xgcc fails (1rst stage) if binutils is not installed
into --prefix directory
Product: gcc
Version: 3.3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jlm_devel at laposte dot net
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21544
More information about the Gcc-bugs
mailing list