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]

problems compiling gcc-3.3.5 with newlib-1.12.0


Hi
I'm tring to compile a cross-toolchain for arm-elf on
a IA32 linux box using gcc-3.3.5, binutils-2.15,
newlib-1.12.0 against linux-2.6.9 headers. I had
originally tried using the scripts in contrib/patches 
but ran into trouble there. So tried using Bill
Gatliff's original build-crossgcc.sh. I also added
whatever patches seemed necessary for binutils from 
the patches subdir in crosstool-0.28-rc37 -
binutils-arm-undef-imm.patch, binutils-skip-comments.
patch and cross-gprof.patch. I couldnt locate any
patches for gcc ( or newlib,linux). 

However towards the end i encountered a 'div_t not
declared ' error which seems to have occurred to many
others. However I cant find a definive solution other
that to disable support for C++ , which i need. 

Is there any solution to this? 

thanks
Carlos

Last few lines where the error occurred - 
/home/carlos/tool_tar/build-gcc/gcc/xgcc
-shared-libgcc -B/home/carlos/tool_tar/build-gcc/gcc/
-nostdinc++
-L/home/carlos/tool_tar/build-gcc/arm-elf/thumb/libstdc++-v3/src
-L/home/carlos/tool_tar/build-gcc/arm-elf/thumb/libstdc++-v3/src/.libs
-B/home/carlos/crosstool_nl_build/arm-elf/bin/
-B/home/carlos/crosstool_nl_build/arm-elf/lib/
-isystem
/home/carlos/crosstool_nl_build/arm-elf/include
-mthumb -I../../../../../gcc-3.3.5/libstdc++-v3/../gcc
-I../../../../../gcc-3.3.5/libstdc++-v3/../include
-I/home/carlos/tool_tar/build-gcc/arm-elf/thumb/libstdc++-v3/include/arm-elf
-I/home/carlos/tool_tar/build-gcc/arm-elf/thumb/libstdc++-v3/include
-I../../../../../gcc-3.3.5/libstdc++-v3/libsupc++ -g
-O2 -mthumb -fno-implicit-templates -Wall -Wno-format
-W -Wwrite-strings -fdiagnostics-show-location=once -c
../../../../../gcc-3.3.5/libstdc++-v3/libsupc++/eh_alloc.cc
-o eh_alloc.o
In file included from
../../../../../gcc-3.3.5/libstdc++-v3/libsupc++/eh_alloc.cc:33:
/home/carlos/tool_tar/build-gcc/arm-elf/thumb/libstdc++-v3/include/cstdlib:86:
error: `
   div_t' not declared
/home/carlos/tool_tar/build-gcc/arm-elf/thumb/libstdc++-v3/include/cstdlib:87:
error: `
   ldiv_t' not declared
/home/carlos/tool_tar/build-gcc/arm-elf/thumb/libstdc++-v3/include/cstdlib:97:
error: `
   div' not declared



	
	
		
___________________________________________________________ 
ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com

------
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]