Bug 2785 - mtd-utils build fails due to missing libmtd
Summary: mtd-utils build fails due to missing libmtd
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: PC Linux
: P5 normal
Target Milestone: 2010.11
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-08 15:54 UTC by Patrick Ziegler
Modified: 2010-11-18 20:58 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
Fix Build of ubi tools if no other mtd tool was built (555 bytes, patch)
2010-11-11 15:11 UTC, Patrick Ziegler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Ziegler 2010-11-08 15:54:15 UTC
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"
Comment 1 Patrick Ziegler 2010-11-11 15:11:01 UTC
Created attachment 2659 [details]
Fix Build of ubi tools if no other mtd tool was built
Comment 2 Patrick Ziegler 2010-11-11 15:19:07 UTC
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.
Comment 3 Peter Korsgaard 2010-11-18 20:58:07 UTC
Thanks, committed a simplified (always just build libmtd.a) version to git.