Building frv cross compiler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I've trouble building a working toolchain for the frv-elf target.
I tried several combinations of binutils 2.14 and 2.15
with gcc 3.3.3/3.3.5 and gcc-3.4.2/gcc-3.4.3 .
I always get the same errors in the build process.
For 3.4.x the build process quits with:

/mnt/backup/speedblue/gcc/gcc-3.4.3/gcc/xgcc -B/mnt/backup/speedblue/gcc/gcc-3.4.3/gcc/ -B/usr/local/frv/bin/frv-elf/bin/
-B/usr/local/frv/bin/frv-elf/lib/ -isystem /usr/local/frv/bin/frv-elf/include -isystem /usr/local/frv/bin/frv-elf/sys-include -O2  -DIN_GCC
-DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -g  -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I. -I./. -I./../include  -DL_cmpll -xassembler-with-cpp -c ./config/frv/lib1funcs.asm -o
libgcc/./_cmpll.o
_cmpll.s: Assembler messages:
_cmpll.s:41: Error: too many memory references for `cmp'
_cmpll.s:42: Error: no such instruction: `ckeq icc0,cc4'
_cmpll.s:43: Error: invalid character '.' in mnemonic
make[2]: *** [libgcc/./_cmpll.o] Error 1
make[2]: Leaving directory `/mnt/backup/speedblue/gcc/gcc-3.4.3/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/mnt/backup/speedblue/gcc/gcc-3.4.3/gcc'
make: *** [all-gcc] Error 2

For 3.3.x it's something about macro poisoning. But I learnt
that 3.3.x is deprecated for frv [1].

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. -I./.. -I./../config -I./../../include server.c
In file included from ../config.h:20,
                 from fixlib.h:30,
                 from server.h:57,
                 from server.c:54:
../config/frv/frv.h:2948:9: attempt to use poisoned "ASM_OUTPUT_CONSTRUCTOR"
../config/frv/frv.h:2949:9: attempt to use poisoned "ASM_OUTPUT_CONSTRUCTOR"
../config/frv/frv.h:2958:9: attempt to use poisoned "ASM_OUTPUT_DESTRUCTOR"
../config/frv/frv.h:2959:9: attempt to use poisoned "ASM_OUTPUT_DESTRUCTOR"
make[2]: *** [server.o] Error 1
make[2]: Leaving directory `/mnt/backup/speedblue/gcc/gcc-3.3.5/gcc/fixinc'
make[1]: *** [fixinc.sh] Error 2
make[1]: Leaving directory `/mnt/backup/speedblue/gcc/gcc-3.3.5/gcc'
make: *** [all-gcc] Error 2


I use the following commands to build gcc:
./configure --target=frv-elf --enable-languages=c --disable-nls \
     --disable-threads --disable-shared --disable-checking \
     --prefix=/usr/local/frv/ --exec-prefix=/usr/local/frv/bin
 make TARGET_LIBGCC2_CFLAGS='-Dinhibit_libc -D__gthr_posix_h'

Are there any known good versions of binutils/gcc for frv?
Or is there any patch repository for it?
Host gcc version is 3.3.4 (Debian). I've build toolchains for other
targets just fine previously.

Thanks,

Jan

[1] http://gcc.gnu.org/ml/gcc-help/2004-04/msg00238.html

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux