Problem with pathing crt1.o in crosstool
Fri Jan 20 18:00:00 GMT 2006

I built a tool chain from Dan Kegel's 0.38 crosstool for an xscale processor using gcc 3.4.4, glibc 2.3.5, and headers from via the .dat file on a Mandriva 2006 system.  Before I started I installed gcc 3.3.6 from bootstrap onto the system (downgraded.)  I used 2.6.7 for the Linux version in the .dat file because my goal is to rebuild a 2.6.7 kernel.  I used 3.4.4 because it already had a patch generated for the fix-fixincl problem.  I used all defaults when creating the tool chain and everything seems to have built and installed.  The testhello script looks like it worked fine.  When I tried to build the kernel via make ARCH=arm CROSS_COMPILE=arm-xscale-linux-gnu- zImage the compilation went OK but I got a link error from ld because crt1.o wasn't found.  When I try to compile a simple helloworld test program I also get the crt1.o not found error from ld, which suggests something is wrong with the pathing.  A check of the crosstool ld's configuration via "-Wl,-v" shows it is using built-in specs with no path to the crt<x>.o files.  Even if I were to copy these to the local directory I'm sure I would have problems finding the crtBegin.o and gcc libs since these come from a different directory.  Before trying to build the kernel I setup the environment variables as:

export GCC_EXEC_PREFIX=$ccpath/lib/
export C_INCLUDE_PATH=$ccpath/include/:$ccpath/lib/gcc/arm-xscale-linux-gnu/3.4.4/include/:$ccpath/arm-xscale-linux-gnu/include/
export INFOPATH=$ccpath/info
export LIBRARY_PATH=$ccpath/lib/gcc/arm-xscale-linux-gnu/3.4.4
export COMPILER_PATH=$ccpath/bin/:$ccpath/arm-xscale-linux-gnu/bin/
export PATH=$ccpath/bin:$ccpath/arm-xscale-linux-gnu/bin:$PATH
export MACHTYPE=arm-xscale-linux-gnu

Any ideas on what I might be doing wrong?  Do I need to tweak the specs before I build the tool chain so that it points to my final destination under /opt/crosstool?


Want more information?  See the CrossGCC FAQ,
Want to unsubscribe? Send a note to

More information about the crossgcc mailing list