Hi John,
[EMAIL PROTECTED] wrote:
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.
JFFS2 stores files compressed by default, and it uses the zlib code
to do 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.
It should be generated as part of your snapgear/uClinux-dist build.
If everything worked as it should (:-) then there would be a
libz.a in your build tree at ~/lib/libz.a. Can you check that?
Can you check when you build that it is actually even trying
to build the code in lib/zlib?
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.
Regards
Greg
------------------------------------------------------------------------
Greg Ungerer -- Chief Software Dude EMAIL: [EMAIL PROTECTED]
Secure Computing Corporation PHONE: +61 7 3435 2888
825 Stanley St, FAX: +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia WEB: http://www.SnapGear.com
_______________________________________________
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