Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 3145] New: jffs2 image generation fails
@ 2011-01-26 16:15 bugzilla at busybox.net
  2011-01-26 16:16 ` [Buildroot] [Bug 3145] " bugzilla at busybox.net
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: bugzilla at busybox.net @ 2011-01-26 16:15 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=3145

           Summary: jffs2 image generation fails
           Product: buildroot
           Version: 2010.05
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Outdated package
        AssignedTo: unassigned at buildroot.uclibc.org
        ReportedBy: mjhammel at graphics-muse.org
                CC: buildroot at uclibc.org
   Estimated Hours: 0.0


Created attachment 2881
  --> https://bugs.busybox.net/attachment.cgi?id=2881
adds --enabled-shared to config options for host build

Enabling "Target File Systems->jffs2 root file system" causes the build to fail
when it tries to build host prerequisites.  The initial failure is from a lack
of a shared library being built for host-lzo:

make[3]: Entering directory
`/home/mjhammel/src/cei/system_build/bld/buildroot-2010.05/output/build/host-mtd-1.3.1/mkfs.ubifs'
gcc -I../include -I../ubi-utils/include -D_FILE_OFFSET_BITS=64 -O2 -g -Wall
-Wextra -Wwrite-strings -Wno-sign-compare -c -o
/home/mjhammel/src/cei/system_build/bld/buildroot-2010.05/output/build/host-mtd-1.3.1/mkfs.ubifs/mkfs.ubifs.o
mkfs.ubifs.c -g
-Wp,-MD,/home/mjhammel/src/cei/system_build/bld/buildroot-2010.05/output/build/host-mtd-1.3.1/mkfs.ubifs/.mkfs.ubifs.c.dep
gcc -O2 -g -Wall -Wextra -Wwrite-strings -Wno-sign-compare -g -o
/home/mjhammel/src/cei/system_build/bld/buildroot-2010.05/output/build/host-mtd-1.3.1/mkfs.ubifs/mkfs.ubifs
/home/mjhammel/src/cei/system_build/bld/buildroot-2010.05/output/build/host-mtd-1.3.1/mkfs.ubifs/mkfs.ubifs.o
/home/mjhammel/src/cei/system_build/bld/buildroot-2010.05/output/build/host-mtd-1.3.1/mkfs.ubifs/crc16.o
/home/mjhammel/src/cei/system_build/bld/buildroot-2010.05/output/build/host-mtd-1.3.1/mkfs.ubifs/crc32.o
/home/mjhammel/src/cei/system_build/bld/buildroot-2010.05/output/build/host-mtd-1.3.1/mkfs.ubifs/lpt.o
/home/mjhammel/src/cei/system_build/bld/buildroot-2010.05/output/build/host-mtd-1.3.1/mkfs.ubifs/compr.o
/home/mjhammel/src/cei/system_build/bld/buildroot-2010.05/output/build/host-mtd-1.3.1/mkfs.ubifs/devtable.o
/home/mjhammel/src/cei/system_build/bld/buildroot-2010.05/output/build/host-mtd-1.3.1/mkfs.ubifs/hashtable/hashtable.o
/home/mjhammel/src/cei/system_build/bld/buildroot-2010.05/output/build/host-mtd-1.3.1/mkfs.ubifs/hashtable/hashtable_itr.o
-lz -llzo2 -lm -luuid
-L/home/mjhammel/src/cei/system_build/bld/buildroot-2010.05/output/build/host-mtd-1.3.1/mkfs.ubifs/../ubi-utils/
-lubi
/usr/bin/ld: cannot find -llzo2
collect2: ld returned 1 exit status
make[3]: ***
[/home/mjhammel/src/cei/system_build/bld/buildroot-2010.05/output/build/host-mtd-1.3.1/mkfs.ubifs/mkfs.ubifs]
Error 1
make[3]: Leaving directory
`/home/mjhammel/src/cei/system_build/bld/buildroot-2010.05/output/build/host-mtd-1.3.1/mkfs.ubifs'
make[2]: *** [subdirs_mkfs.ubifs_install] Error 2

A fix for this is attached.  Once fixed, this exposes a bug in the mtd host
build and install commands in the mtd.mk.  This is fixed by updating these
commands.  I'll add the attachment for this fix after submitting this bug.

Once this is fixed it exposes a bug in the host mtd build where mtd/mkfs.ubifs
fails trying to reference a shared object for libubi.  A workaround (which may
or may not be a proper fix) is to change the reference in the
mkfs.ubifs/Makefile to be a reference to the libubi.o object module instead. 
This, at least, allows the build to complete, though it is unclear if
mkfs.ubifs actually works since in this scenario I don't think it's used.  I'll
add the attachment for this fix after submitting this bug.

I have not been able to test these with 2010.08 or 2010.11 because my 2010.05
configuration, which uses an external glibc Crosstool-NG based toolchain,
fails.   I'll ask on the mailing list for help on that one - may just be
something foolish I've done.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-09-18 16:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-26 16:15 [Buildroot] [Bug 3145] New: jffs2 image generation fails bugzilla at busybox.net
2011-01-26 16:16 ` [Buildroot] [Bug 3145] " bugzilla at busybox.net
2011-01-26 16:17 ` bugzilla at busybox.net
2011-01-26 16:44 ` bugzilla at busybox.net
2011-01-26 17:13 ` bugzilla at busybox.net
2011-09-18 16:01 ` bugzilla at busybox.net

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox