From: Craig H. <cr...@gu...> - 2005-06-07 16:55:18
|
Karl, I notice that it says "gcc" a lot below, rather than arm-linux-gcc -- looks a lot like the zlib being built is host-native, not a cross- compiled version targetting the gumstix. That's probably why the link step is failing, because it's trying to link an ARM binary with a non-ARM one. C On Jun 6, 2005, at 12:53 PM, Karl Pielorz wrote: > > Hi Craig, > > Sorry to bother you again - I noticed the other day the svn version > of buildroot got bumped to 483. I had a bit of time to hand, so I > checked out the new version from scratch, and tried building it. I > hit the same 'zlib.h' problem as before - which I managed to fix by > adding: > > " > -I/home/kpielorz/gumstix/gumstix-buildroot/toolchain_build_arm/ > gcc-3.4.2/zlib/ > " > > To the Makefile's CFLAGS. > > This then netted: > > " > gcc -o mkfs.jffs2 crc32.o compr_rtime.o mkfs.jffs2.o compr_zlib.o > compr.o compr_lzari.o compr_lzo.o -lz > /usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/ > bin/ld: cannot find -lz > collect2: ld returned 1 exit status > make: *** [mkfs.jffs2] Error 1 > " > > Hmmm, can't find the zlib library - so, I tried adding LDFLAGS, i.e. > > " > LDFLAGS := -L/home/kpielorz/gumstix/gumstix-buildroot/build_arm/ > root/lib/ > " > > Even though I tried every directory in the gumstix buildroot that > had a libz* of some description in it - the best I could achieve was: > > " > gcc -L/home/kpielorz/gumstix/gumstix-buildroot/build_arm/root/lib/ - > o mkfs.jffs2 crc32.o compr_rtime.o mkfs.jffs2.o compr_zlib.o > compr.o compr_lzari.o compr_lzo.o -lz > /usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/ > bin/ld: skipping incompatible /home/kpielorz/gumstix/gumstix- > buildroot/build_arm/root/lib//libz.so when searching for -lz > /usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/ > bin/ld: cannot find -lz > collect2: ld returned 1 exit status > " > > (i.e. found it, but didn't like it). > > or, > > " > gcc -o mkfs.jffs2 crc32.o compr_rtime.o mkfs.jffs2.o compr_zlib.o > compr.o compr_lzari.o compr_lzo.o -lz > /usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/ > bin/ld: cannot find -lz > collect2: ld returned 1 exit status > make: *** [mkfs.jffs2] Error 1 > " > > (i.e. not found at all) > > I also tried the actual distro's "libz*" as well - but it didn't > like that either. > > I'd really appreciate any subtle hints, clues, pushes (or shoves!) > in the right direction at this point if you can think of anything?? > > Thanks for your time, and > > Best Regards, > > -Karl > > > |