Skip to contentSkip to conversation

New: eglibc from Linaro 2013.07 not copied to target correctly

Buildroot bugzilla at busybox.net 1 participant 4 messages Aug 14, 2013 – Oct 30, 2013

lore
Share & tools
lore
#0 lore raw

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

Summary: eglibc from Linaro 2013.07 not copied to target
correctly
Product: buildroot
Version: 2013.05
Platform: Other
OS/Version: Linux
Status: NEW
Severity: major
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: henry at echelon.com
CC: buildroot at uclibc.org
Estimated Hours: 0.0

Created attachment 5042
--> https://bugs.busybox.net/attachment.cgi?id=5042
Preserve toolchain sysroot lib's directory structure on target

When building buildroot with Linaro 2013.07 (configured as external or custom tool), the target would fail to come up, with error:

/sbin/init: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory

The reason is that starting with Linaro 2013.07, they switched to eglibc-2.17 with multi-arch support. Arch-specific libraries, including libc.so.6, are expected to be in /lib/arm-linux-gnueabihf/ instead of just /lib. However, copy_toolchain_lib_root() in helper.mk would end up copying them to /lib rather than arch-specific directories.

Attached is my own patch to preserve the toolchain sysroot's lib directory structure, except for SUPPORT_LIB_DIR which are still copied directly under DESTDIR.

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 6452] eglibc from Linaro 2013.07 not copied to target correctly

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

--- Comment #1 from Jaap Crezee <[email protected]> 2013-10-02 13:20:54 UTC --- I am having the same issue with the current master of buildroot-git. When building binaries with the linaro toolchain, generated binaries expect libc.so.6 to be in /lib/arm-linux-gnueabihf/ but they are only copied to /lib . A simple symlink also resolves the issue, but I argue with myself if this is correct...

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 6452] eglibc from Linaro 2013.07 not copied to target correctly

In reply to bugzilla at busybox.net

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

--- Comment #2 from Thomas Petazzoni <[email protected]> 2013-10-06 14:32:41 UTC --- I've sent a fix for this problem as part of the patch set at
http://lists.busybox.net/pipermail/buildroot/2013-October/079647.html.

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 6452] eglibc from Linaro 2013.07 not copied to target correctly

In reply to bugzilla at busybox.net

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

Thomas Petazzoni <[email protected]> changed:

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

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Thomas Petazzoni <[email protected]> 2013-10-30 21:54:18 UTC --- This has now been fixed in the latest master by adding a symlink in /lib.
Another fix was needed to create a symlink in /usr/lib, and this patch is
pending in the for-peter-2013.11 branch. Marking this bug as fixed.

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.