All of 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

* [Buildroot] [Bug 3145] jffs2 image generation fails
  2011-01-26 16:15 [Buildroot] [Bug 3145] New: jffs2 image generation fails bugzilla at busybox.net
@ 2011-01-26 16:16 ` bugzilla at busybox.net
  2011-01-26 16:17 ` bugzilla at busybox.net
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla at busybox.net @ 2011-01-26 16:16 UTC (permalink / raw)
  To: buildroot

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

--- Comment #1 from Michael J. Hammel <mjhammel@graphics-muse.org>  ---
Created attachment 2887
  --> https://bugs.busybox.net/attachment.cgi?id=2887
Update host build/install commands for mtd

-- 
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

* [Buildroot] [Bug 3145] jffs2 image generation fails
  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
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla at busybox.net @ 2011-01-26 16:17 UTC (permalink / raw)
  To: buildroot

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

--- Comment #2 from Michael J. Hammel <mjhammel@graphics-muse.org>  ---
Created attachment 2893
  --> https://bugs.busybox.net/attachment.cgi?id=2893
Patch for mkfs.ubifs to reference libubi as object module instead of shared lib

-- 
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

* [Buildroot] [Bug 3145] jffs2 image generation fails
  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
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla at busybox.net @ 2011-01-26 16:44 UTC (permalink / raw)
  To: buildroot

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

Peter Korsgaard <jacmet@uclibc.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

--- Comment #3 from Peter Korsgaard <jacmet@uclibc.org>  ---
Getting liblzo to also build shared libs could be a nice extension, but a
static lib should work fine as well. From what you quoted the problem seems
more to be that gcc wasn't passed the correct -I and -L options for it to
search output/host.

We've changed a few things since 2010.05 (and updated to a newer mtd-utils
version), and I've just done a test build where I do see the correct -I / -L
flags, so the issue seems to be fixed.

I'll add the --enable-shared for host/target builds of liblzo.

-- 
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

* [Buildroot] [Bug 3145] jffs2 image generation fails
  2011-01-26 16:15 [Buildroot] [Bug 3145] New: jffs2 image generation fails bugzilla at busybox.net
                   ` (2 preceding siblings ...)
  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
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla at busybox.net @ 2011-01-26 17:13 UTC (permalink / raw)
  To: buildroot

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

--- Comment #4 from Michael J. Hammel <mjhammel@graphics-muse.org>  ---
I didn't know you could link a static lib with -L<path> -l<lib>.  I always that
was for shared libraries only.  If not, I learned something new today. :-)

But if you can reference a static lib that way then the -L path was properly
set because the static library was already in the same place the shared library
ended up.  Which makes me think it wasn't related to the -L options.  

Anyway, it's an older release issue.  If I can get my 05 config to work with a
newer release I'll reverify this is working with the updated mtd.  

Thanks for the quick reply!

-- 
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

* [Buildroot] [Bug 3145] jffs2 image generation fails
  2011-01-26 16:15 [Buildroot] [Bug 3145] New: jffs2 image generation fails bugzilla at busybox.net
                   ` (3 preceding siblings ...)
  2011-01-26 17:13 ` bugzilla at busybox.net
@ 2011-09-18 16:01 ` bugzilla at busybox.net
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla at busybox.net @ 2011-09-18 16:01 UTC (permalink / raw)
  To: buildroot

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

Thomas Petazzoni <thomas.petazzoni@free-electrons.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #5 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com>  ---
Generating JFFS2 filesystems work just fine with Buildroot 2011.08. This bug
has been fixed in multiple ways: the mtd package has been upgraded, host-lzo is
now compiled as a shared library.

-- 
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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.