From: bugzilla at busybox.net <bugzilla@busybox.net>
To: buildroot@busybox.net
Subject: [Buildroot] [Bug 3145] New: jffs2 image generation fails
Date: Wed, 26 Jan 2011 16:15:20 +0000 (UTC) [thread overview]
Message-ID: <bug-3145-163@https.bugs.busybox.net/> (raw)
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.
next reply other threads:[~2011-01-26 16:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-26 16:15 bugzilla at busybox.net [this message]
2011-01-26 16:16 ` [Buildroot] [Bug 3145] jffs2 image generation fails 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-3145-163@https.bugs.busybox.net/ \
--to=bugzilla@busybox.net \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox