Hi

I have a problem that when I upgraded to openSuSE 10.2 I later found out 
the uClinux build 2.4.32-uC0 failed at the ever popular place of MTD-Utils 
for jffs2.

The subject is one of the google search terms.  I read all the previous 
emails from Mike, Gregg et al.  So I have.

All of Patrice's MTD patches in.  Forced zlib config (not needed)

This is Snapgear uClinux 20070130

zlib forced on (MTD Utils turned it on in the /config/.config file anyway)
Host i586 zlib and zlib-develop (Latest on Kernel 2.6.18-5 SuSE) put in 
the correct places.
I have tried both toolchain 2.95.3 and December 2006 4.1.1 installed from 
root per David's sh ./....... script.  Same Result.

Target is m5235 (same core as m5272)

As close as I can figure out the mkfs.jffs2 wants to create a binary image 
and then deflate it.  The correct libz.a is not at (and I think it's 
supposed to be a coldfire tools one):

/usr/local/lib/gcc/m68k-uclinux/4.1.1/../../../../m68k-uclinux/bin/ld.real 
or the other popular places to search.

Coldfire Target compr_zlib.o and zlib.o were compiled and available.

I suspect other people have the correct libz.a file left over in the 
correct place.  I once did.

So the "ld" tool simply cannot find the correct zlib.a with symbols.  This 
is the second time this has happened with both 2006 August snapgear 
release and January 2007 release and I would like to fix it without doing 
the -L and telling LD where the library is.

I would appreciate some advise on this. 

(uClinux-cdl<->uClinux-dist 20070130 Error in /user/mtd-utils, busybox 
compiled fine!)
ucfront-gcc m68k-elf-gcc -m5307 -DCONFIG_COLDFIRE -Os -g 
-fomit-frame-pointer -pipe -fno-common -fno-builtin -Wall   -DEMBED 
-msep-data -Dlinux -D__linux__ -Dunix -D__uClinux__ -D__USE_BSD -I. -c -o 
compr_zlib.o compr_zlib.c
ucfront-gcc m68k-elf-gcc -m5307 -DCONFIG_COLDFIRE -Os -g 
-fomit-frame-pointer -pipe -fno-common -fno-builtin -Wall   -DEMBED 
-msep-data -Dlinux -D__linux__ -Dunix -D__uClinux__ -D__USE_BSD -I.   -c 
-o compr_rtime.o compr_rtime.c
ucfront-gcc m68k-elf-gcc -m5307 -DCONFIG_COLDFIRE -Wl,--fatal-warnings 
-Wl,-elf2flt -Wl,-move-rodata -msep-data -Wl,--fatal-warnings -Wl,-elf2flt 
-Wl,-move-rodata -msep-data -Os -g -fomit-frame-pointer -pipe -fno-common 
-fno-builtin -Wall   -DEMBED -msep-data -Dlinux -D__linux__ -Dunix 
-D__uClinux__ -D__USE_BSD -I. -o mkfs.jffs2 crc32.o mkfs.jffs2.o 
compr_zlib.o compr_rtime.o  -lz
/usr/local/lib/gcc/m68k-uclinux/4.1.1/../../../../m68k-uclinux/bin/ld.real: 
cannot find -lz
collect2: ld returned 1 exit status
make[3]: *** [mkfs.jffs2] Error 1
make[3]: Leaving directory 
`/home/jjeffers/projects/uClinux-cdl/user/mtd-utils'
make[2]: *** [mtd-utils] Error 2
make[2]: Leaving directory `/home/jjeffers/projects/uClinux-cdl/user'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/jjeffers/projects/uClinux-cdl/user'
make: *** [subdirs] Error 1
[EMAIL PROTECTED]:~/projects/uClinux-cdl>

I find uClinux has progressed well and look forward to contributing 
several configurations once I get my head around this last change.

Thanks ahead of time!

Cheers John

John Jeffers P.Eng. , RM1074
BJ Services Company
Instrumentation Embedded Software

_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to