Skip to contentSkip to conversation

New: mtd-utils build fails due to missing libmtd

Buildroot bugzilla at busybox.net 1 participant 4 messages Nov 8, 2010 – Nov 18, 2010

lore
Share & tools
lore
#0 lore raw

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

Summary: mtd-utils build fails due to missing libmtd
Product: buildroot
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: patrick.ziegler at fh-kl.de
CC: buildroot at uclibc.org
Estimated Hours: 0.0

When I try to compile ubiattach, ubidetach, ubiformat, ubimkvol, ubinize from mtd utils (1.4.1), the link process fails with the following error:

[...]"arm-unknown-linux-uclibcgnueabi/bin/ld: cannot find -lmtd collect2: ld returned 1 exit status"

Signature · 3 lines
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.
#1 lore raw

[Buildroot] [Bug 2785] mtd-utils build fails due to missing libmtd

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

--- Comment #1 from Patrick Ziegler <[email protected]> --- Created attachment 2659
--> https://bugs.busybox.net/attachment.cgi?id=2659
Fix Build of ubi tools if no other mtd tool was built

Signature · 3 lines
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.
#2 lore raw

[Buildroot] [Bug 2785] mtd-utils build fails due to missing libmtd

In reply to bugzilla at busybox.net

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

Patrick Ziegler <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |2010.11

--- Comment #2 from Patrick Ziegler <[email protected]> --- Buildroot version: 2010.11-rc1

If only ubi tools shall be build from mtd-utils, the libmtd.a will not be build but is in fact a dependency of some ubi tools (e.g. ubiattach).

The previous attached patch fixes this problem for me by building libmtd.a explicit as soon as an ubi tool shall be build.

Signature · 3 lines
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.
#3 lore raw

[Buildroot] [Bug 2785] mtd-utils build fails due to missing libmtd

In reply to bugzilla at busybox.net

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

Peter Korsgaard <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Peter Korsgaard <[email protected]> --- Thanks, committed a simplified (always just build libmtd.a) version to git.

Signature · 3 lines
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.