This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
errors on building the cross-gcc for FRV architecture (frv-elf-gcc)
- From: Rongkai <zhanrk at 163 dot com>
- To: gcc at gcc dot gnu dot org
- Cc: gcc-help at gnu dot org
- Date: 18 Apr 2004 23:42:51 +0800
- Subject: errors on building the cross-gcc for FRV architecture (frv-elf-gcc)
- Organization:
hi, everyone:
At recently, i am doing a embedded project based on Fujitsu MB93403 CPU
which has a FRV core. Therefore, i must build a cross gcc compiler. As
we know, RedHat inc is also doing a project to let GNU toolchain, uClibc
and linux support FRV architecture. After they submit their patch,
binutils-2.14, gcc-3.3.x and gdb-6.x have supported frv-elf target. So i
choose the following source packages for building my cross toolchain:
* binutils-2.14.tar.gz
* gcc-core-3.3.3.tar.gz
* gdb-6.1.tar.gz
When I build and install GNU binutils for frv-elf target, everything is
ok.
However, something is wrong when i build frv-elf-gcc. Here is my
building process details:
/********************************************************************/
# cd /root/build-frv-toolch
# tar zxvf gcc-core-3.3.3.tar.gz
# mkdir build-gcc-core-3.3.3
# cd build-gcc-core-3.3.3
# ../gcc-3.3.3/configure --prefix=/usr/local/frv-elf-toolch
--target=frv-elf \
--without-headers --with-newlib --disable-shared
--disable-threads --enable-languages=c
...
# make
... ...
... ...
gcc -c -DIN_GCC -DHAVE_CONFIG_H -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional
-pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional
-pedantic -Wno-long-long -I. -I.. -I../../../gcc-3.3.3/gcc/fixinc
-I../../../gcc-3.3.3/gcc/fixinc/..
-I../../../gcc-3.3.3/gcc/fixinc/../config
-I../../../gcc-3.3.3/gcc/fixinc/../../include
../../../gcc-3.3.3/gcc/fixinc/fixfixes.c
In file included from ../../../gcc-3.3.3/gcc/fixinc/fixlib.h:31,
from ../../../gcc-3.3.3/gcc/fixinc/fixfixes.c:52:
../../../gcc-3.3.3/gcc/system.h:605:44: warning: poisoning existing
macro "ASM_OUTPUT_CONSTRUCTOR"
../../../gcc-3.3.3/gcc/system.h:606:9: warning: poisoning existing macro
"ASM_OUTPUT_DESTRUCTOR"
... ...
... ...
gcc -c -DIN_GCC -DHAVE_CONFIG_H -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional
-pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional
-pedantic -Wno-long-long -I. -I.. -I../../../gcc-3.3.3/gcc/fixinc
-I../../../gcc-3.3.3/gcc/fixinc/..
-I../../../gcc-3.3.3/gcc/fixinc/../config
-I../../../gcc-3.3.3/gcc/fixinc/../../include
../../../gcc-3.3.3/gcc/fixinc/server.c
In file included from ../config.h:20,
from ../../../gcc-3.3.3/gcc/fixinc/fixlib.h:30,
from ../../../gcc-3.3.3/gcc/fixinc/server.h:57,
from ../../../gcc-3.3.3/gcc/fixinc/server.c:54:
../../../gcc-3.3.3/gcc/config/frv/frv.h:2948:9: attempt to use poisoned
"ASM_OUTPUT_CONSTRUCTOR"
../../../gcc-3.3.3/gcc/config/frv/frv.h:2949:9: attempt to use poisoned
"ASM_OUTPUT_CONSTRUCTOR"
../../../gcc-3.3.3/gcc/config/frv/frv.h:2958:9: attempt to use poisoned
"ASM_OUTPUT_DESTRUCTOR"
../../../gcc-3.3.3/gcc/config/frv/frv.h:2959:9: attempt to use poisoned
"ASM_OUTPUT_DESTRUCTOR"
make[2]: *** [server.o] Error 1
make[2]: Leaving directory
`/root/build-frv-toolch/build-gcc-core-3.3.3/gcc/fixinc'
make[1]: *** [fixinc.sh] Error 2
make[1]: Leaving directory
`/root/build-frv-toolch/build-gcc-core-3.3.3/gcc'
make: *** [all-gcc] Error 2
#
/*************************************************************************************/
And i also try to use gcc-core-3.3.1.tar.gz and gcc-core-3.3.2.tar.gz,
but i get the the same errors as the above. It seems that i need to do
some hack to gcc source codes. Who can help me to correct the error ?
thanks.
Rongkai zhan.