This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hello I have tried to build arm-elf cross-compiler and use Bills Gatliff's script and the following components to build a version of ARM-ELF (using newlib) : BINUTILSDISTO=binutils-2.15 GCCDISTO=gcc-2.95.3 NEWLIBDISTO=newlib-1.11.0 Host : Redhat 9, i686, latest patches. Host gcc version 3.3.2, It compiles all the way, but when building the final GCC, it fails with the following error : ... fp-bit dp-bit make[2]: Entering directory `/home/TOOLS/build-gcc/gcc' /home/TOOLS/build-gcc/gcc/xgcc -B/home/TOOLS/build-gcc/gcc/ -B/home/TOOLS/ARM-gcc-2.95.3/arm-elf/arm-elf/bin/ -I/home/TOOLS/ARM-gcc-2.95.3/arm-elf/arm-elf/include -O2 -DCROSS_COMPILE -DIN_GCC -O2 -I./include -Dinhibit_libc -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -g -O2 -I. -I../../gcc-2.95.3/gcc -I../../gcc-2.95.3/gcc/config -I../../gcc-2.95.3/gcc/../include \ -c ../../gcc-2.95.3/gcc/cp/tinfo.cc /tmp/ccEugNg3.s: Assembler messages: /tmp/ccEugNg3.s:889: Error: junk at end of line, first unrecognized character is `,' /tmp/ccEugNg3.s:920: Error: junk at end of line, first unrecognized character is `,' (...) /tmp/ccEugNg3.s:1586: Error: junk at end of line, first unrecognized character is `,' /tmp/ccEugNg3.s:1645: Error: junk at end of line, first unrecognized character is `,' make[2]: *** [tinfo.o] Error 1 make[2]: Leaving directory `/home/TOOLS/build-gcc/gcc' make[1]: *** [libgcc2.a] Error 1 make[1]: Leaving directory `/home/TOOLS/build-gcc/gcc' make: *** [all-gcc] Error 2 I'm not sure why this is happening. But it is reproducible. I assumed 2.95.3 to be stable and also arm-elf is not an exotic target. Some search and I found that when I change --enable-languages=c,c++ to --enable-languages=c the compilation ends successfully. Any explanation on what goes wrong when adding C++ support. The same happens when I want to build a arm-elf version of GCC 3.2.2 and GCC3.3.2. In those cases the error message is the same (see below) BINUTILSDISTO=binutils-2.15 GCCDISTO=gcc-3.3.2 NEWLIBDISTO=newlib-1.11.0 /home/TOOLS/build-gcc/gcc/xgcc -shared-libgcc -B/home/TOOLS/build-gcc/gcc/ -nostdinc++ -L/home/TOOLS/build-gcc/arm-elf/thumb/libstdc++-v3/src -L/home/TOOLS/build-gcc/arm-elf/thumb/libstdc++-v3/src/.libs -B/home/TOOLS/ARM-gcc-3.2.3/arm-elf/arm-elf/bin/ -B/home/TOOLS/ARM-gcc-3.2.3/arm-elf/arm-elf/lib/ -isystem /home/TOOLS/ARM-gcc-3.2.3/arm-elf/arm-elf/include -mthumb -I../../../../../gcc-3.2.3/libstdc++-v3/../gcc -I../../../../../gcc-3.2.3/libstdc++-v3/../include -I/home/TOOLS/build-gcc/arm-elf/thumb/libstdc++-v3/include/arm-elf -I/home/TOOLS/build-gcc/arm-elf/thumb/libstdc++-v3/include -I../../../../../gcc-3.2.3/libstdc++-v3/libsupc++ -g -O2 -mthumb -fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings -Winline -fdiagnostics-show-location=once -g -c ../../../../../gcc-3.2.3/libstdc++-v3/libsupc++/eh_alloc.cc -o eh_alloc.o In file included from ../../../../../gcc-3.2.3/libstdc++-v3/libsupc++/eh_alloc.cc:33: /home/TOOLS/build-gcc/arm-elf/thumb/libstdc++-v3/include/cstdlib:86: ` div_t' not declared /home/TOOLS/build-gcc/arm-elf/thumb/libstdc++-v3/include/cstdlib:87: ` ldiv_t' not declared (...) /home/TOOLS/build-gcc/arm-elf/thumb/libstdc++-v3/include/cstdlib:116: ` wctomb' not declared /home/TOOLS/build-gcc/arm-elf/thumb/libstdc++-v3/include/cstdlib:122: syntax error before `(' token make[6]: *** [eh_alloc.lo] Error 1 make[6]: Leaving directory `/home/TOOLS/build-gcc/arm-elf/thumb/libstdc++-v3/libsupc++' make[5]: *** [all-recursive] Error 1 (...) make[1]: Leaving directory `/home/TOOLS/build-gcc/arm-elf/libstdc++-v3' make: *** [all-target-libstdc++-v3] Error 2 Disabling "c++" in languages and this problem disappears Any hint on what I'm doing wrong appreciated Andreas ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |