Hello, all!
I'm trying to build cross-compiler to build the programs for PowerPC
processor. Host is Fedora Core 3, i686, kernel of 2.6.10 version.
GPC is of 20050217 version, is being built together with GCC 3.3.3.
I've configured it with
../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
--enable-shared --enable-threads=posix --disable-checking --with-system-zlib
--enable-__cxa_atexit --with-newlib --enable-languages=c,pascal
--disable-libgcj --target=ppc-linux.
Compiler itself (xgpc) has been built successfully but it doesn't want to
build rts and tells me that c compiler cannot create executables. In the
<build>/gcc/p/rts there is the only one file, config.log (attached) where cc1
(of just built xgcc) tells that arch=i686 is an invalid option for him
(sounds reasonable since it's the compiler for ppc platform). So, could you
please make some clarifications for me:
1. why GPC didn't see that it's being built as a cross compiler (there is
nothing about it in config.log, it even doesn't try to determine it).
2. what should be done to avoid passing of the CFLAGS of the native host
compiler to cross compiler xgcc which has been just built.
3. as I can see from configure script from rts directory of 20050217 version,
it's used another way to determine if it's being built the cross-compiler
(there was used other method to determine it in 20030830 version). It's
written "FIXME: to remove some days" in current "rts/configure" script near
this lines. Is it really wrong and needs to be fixed? Current method uses the
value of host_alias variable. As I can see from the config.log file,
host_alias variable of "rts/configure" script is empty - how should it get
its value? In the same script we try to assign it the value using the options
entered by user but "rts/configure"script is called automatically during
p/rts/Makefile target building and there is no --host parameter. How should
it get its value?
It will be really nice if somebody can give me any hint or point to any source
to read about.
Regards,
Igor Marnat
marny(a)rambler.ru