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 188.8.131.52 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:
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, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to email@example.com
More information about the crossgcc