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]

Re: Building gcc for an os less system


I tried build building gcc for c++ support after building newlib after creating the links for the libraries you mentioned. 

cd ${PREFIX}/${TARGET}/sys-include; \
	ln -sf ../include/stdlib.h stdlib.h; \
	ln -sf ../include/unistd.h unistd.h; \
	ln -sf ../include/string.h string.h; \
	ln -sf ../include/limits.h limits.h;

But now I get the following errors:

/tmp/ccAevql2.s:13352: Error: branch out of range
/tmp/ccAevql2.s:14250: Warning: Failed to find real start of function: __ZNSt12strstreambufD1Ev

/tmp/ccAevql2.s:14250: Warning: Failed to find real start of function: __ZNSt9strstreamD0Ev

/tmp/ccAevql2.s:13514: Error: branch out of range
/tmp/ccAevql2.s:14250: Warning: Failed to find real start of function: __ZNSt12strstreambuf6freezeEb

/tmp/ccAevql2.s:14250: Warning: Failed to find real start of function: __ZNKSt12strstreambuf6pcountEv

/tmp/ccAevql2.s:14250: Warning: Failed to find real start of function: __ZNSt12strstreambuf3strEv

/tmp/ccAevql2.s:14250: Warning: Failed to find real start of function: __ZNSdD1Ev

/tmp/ccAevql2.s:14250: Warning: Failed to find real start of function: __ZNSdD0Ev

/tmp/ccAevql2.s:13352: Error: relocation overflow
/tmp/ccAevql2.s:13514: Error: relocation overflow
make[7]: *** [strstream.lo] Error 1
make[7]: Leaving directory `/nfs/iadusr02/vsankara/xscale-gnu/build-gcc/xscale-coff/thumb/libstdc++-v3/src'
make[6]: *** [all-recursive] Error 1
make[6]: Leaving directory `/nfs/iadusr02/vsankara/xscale-gnu/build-gcc/xscale-coff/thumb/libstdc++-v3'
make[5]: *** [all-recursive-am] Error 2
make[5]: Leaving directory `/nfs/iadusr02/vsankara/xscale-gnu/build-gcc/xscale-coff/thumb/libstdc++-v3'
make[4]: *** [multi-do] Error 1
make[4]: Leaving directory `/nfs/iadusr02/vsankara/xscale-gnu/build-gcc/xscale-coff/libstdc++-v3'
make[3]: *** [all-multi] Error 2
make[3]: Leaving directory `/nfs/iadusr02/vsankara/xscale-gnu/build-gcc/xscale-coff/libstdc++-v3'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/nfs/iadusr02/vsankara/xscale-gnu/build-gcc/xscale-coff/libstdc++-v3'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/nfs/iadusr02/vsankara/xscale-gnu/build-gcc/xscale-coff/libstdc++-v3'
make: *** [all-target-libstdc++-v3] Error 2

This is the command line I used to build gcc for c++ support

../gcc-3.1/configure --target=xscale-elf --prefix=<bin-directory/xscale-elf --enable-languages=c,c++ --with-local-prefix=<bin-directory>/xscale-elf/xscale-elf

Please let me know how to get this fixed. I would really appreciate any help.

Thanks
Vish


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