CrossGCC FAQ

Bhattacharya, Soubhik soubhik_bhattacharya@mentorg.com
Fri Oct 31 08:50:00 GMT 2003


Thanks Bill for the nice FAQ. i was following it 
(http://crossgcc.billgatliff.com) to build toolchain for arm-elf on 
i686-pc-linux-gnu host. however, the build failed in the final complete 
gcc build step.

Versions
==========
i'm using binutils-2.14, gcc-3.3.2, and newlib-1.11.0.


More Info
==========
the build failed in the directory 
/opt/soubhik/temp/crossgcc/build-gcc/arm-elf/thumb/libstdc++-v3/libsupc++

the build terminated with following messages :

/home/soubhik/localtemp/crossgcc/build-gcc/gcc/xgcc -shared-libgcc 
-B/home/soubhik/localtemp/crossgcc/build-gcc/gcc/ -nostdinc++ 
-L/home/soubhik/localtemp/crossgcc/build-gcc/arm-elf/thumb/libstdc++-v3/src 
-L/home/soubhik/localtemp/crossgcc/build-gcc/arm-elf/thumb/libstdc++-v3/src/.libs 
-B/opt/soubhik/temp/crossgcc/final-install/arm-elf/bin/ 
-B/opt/soubhik/temp/crossgcc/final-install/arm-elf/lib/ -isystem 
/opt/soubhik/temp/crossgcc/final-install/arm-elf/include -mthumb 
-I../../../../../gcc-3.3.2/libstdc++-v3/../gcc 
-I../../../../../gcc-3.3.2/libstdc++-v3/../include 
-I/home/soubhik/localtemp/crossgcc/build-gcc/arm-elf/thumb/libstdc++-v3/include/arm-elf 
-I/home/soubhik/localtemp/crossgcc/build-gcc/arm-elf/thumb/libstdc++-v3/include 
-I../../../../../gcc-3.3.2/libstdc++-v3/libsupc++ -g -O2 -mthumb 
-fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings 
-fdiagnostics-show-location=once -c 
../../../../../gcc-3.3.2/libstdc++-v3/libsupc++/eh_alloc.cc -o eh_alloc.o

In file included from 
../../../../../gcc-3.3.2/libstdc++-v3/libsupc++/eh_alloc.cc:33:
/home/soubhik/localtemp/crossgcc/build-gcc/arm-elf/thumb/libstdc++-v3/include/cstdlib:86: 
error: `div_t' not declared
/home/soubhik/localtemp/crossgcc/build-gcc/arm-elf/thumb/libstdc++-v3/include/cstdlib:87: 
error: `ldiv_t' not declared
/home/soubhik/localtemp/crossgcc/build-gcc/arm-elf/thumb/libstdc++-v3/include/cstdlib:97: 
error: `div' not declared
/home/soubhik/localtemp/crossgcc/build-gcc/arm-elf/thumb/libstdc++-v3/include/cstdlib:102: 
error: `ldiv' not declared
/home/soubhik/localtemp/crossgcc/build-gcc/arm-elf/thumb/libstdc++-v3/include/cstdlib:104: 
error: `mblen' not declared
/home/soubhik/localtemp/crossgcc/build-gcc/arm-elf/thumb/libstdc++-v3/include/cstdlib:105: 
error: `mbstowcs' not declared
/home/soubhik/localtemp/crossgcc/build-gcc/arm-elf/thumb/libstdc++-v3/include/cstdlib:106: 
error: `mbtowc' not declared
/home/soubhik/localtemp/crossgcc/build-gcc/arm-elf/thumb/libstdc++-v3/include/cstdlib:115: 
error: `wcstombs' not declared
/home/soubhik/localtemp/crossgcc/build-gcc/arm-elf/thumb/libstdc++-v3/include/cstdlib:116: 
error: `wctomb' not declared
/home/soubhik/localtemp/crossgcc/build-gcc/arm-elf/thumb/libstdc++-v3/include/cstdlib:122: 
error: syntax error before `(' token
make[6]: *** [eh_alloc.lo] Error 1


i've attached both make.log and configure.log, in case if more 
information is required.

Finally, i've succeeded in building the final gcc by configuring with 
--enable-languages=c


soubhik.


Bill Gatliff wrote:
> Soubhik:
> 
> 
> I maintain an updated FAQ at http://crossgcc.billgatliff.com, and the 
> community maintains a Wiki at 
> http://billgatliff.com/twiki/bin/view/Crossgcc/WebHome.  Both are linked 
> to from my home page at http://billgatliff.com.
> 
> b.g.
> 
> 
> Bhattacharya, Soubhik wrote:
> 
>> the CrossGCC FAQ (http://www.objsw.com/CrossGCC/) looks like a great
>> effort to simplify the use of GNU toolchain, providing information of
>> each and every step needed, from download to installation.
>> unfortunately, it is hopelessly backdated, last modification date being
>> Dec, 1999. i cann't build gcc-3.3.2 for arm-linux target on a i686-linux
>> host following the instructions provided there. is there anybody out
>> there who has time and inclination to update this FAQ? this wud
>> immensely help people like me who need to build and install a crossgcc
>> only occasionaly.
>>
>> i know it's unfair to suggest others shud spare time so that i get
>> benefited. i wud have loved to rewrite the FAQ, only if i knew what to
>> write (you see, i'm still not successful in building gcc-3.3.2 for even
>> one combination of target and host).
>>
>> just suggesting,
>> soubhik.
>>
>> ------
>> Want more information?  See the CrossGCC FAQ, 
>> http://www.objsw.com/CrossGCC/
>> Want to unsubscribe? Send a note to 
>> crossgcc-unsubscribe@sources.redhat.com
>>
> 

-- 
-0-1-2-3-4-5-6-7-8-9-0-1-2-3-4-5-6-7
Soubhik Bhattacharya
Member Technical Staff
Mentor Graphics
Hyderabad, India.
-0-1-2-3-4-5-6-7-8-9-0-1-2-3-4-5-6-7



-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: configure.log
URL: <http://sourceware.org/pipermail/crossgcc/attachments/20031031/588f069d/attachment.log>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: make.log
URL: <http://sourceware.org/pipermail/crossgcc/attachments/20031031/588f069d/attachment-0001.log>
-------------- next part --------------
------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


More information about the crossgcc mailing list