#12651: Error when building with musl
--------------------------+----------------------------------
  Reporter:  Halo2        |      Owner:  florian
      Type:  defect       |     Status:  reopened
  Priority:  normal       |  Milestone:  Chaos Calmer (trunk)
 Component:  base system  |    Version:  Trunk
Resolution:               |   Keywords:
--------------------------+----------------------------------
Changes (by scottvalen@…):

 * status:  closed => reopened
 * resolution:  wontfix =>


Comment:

 here are two issues with the current musl package.

 For the first issue (build), gcc-final is clobbering the symlink for ld-
 musl-*-.so.1 via ldconfig. Essentially, the link is broken on most build
 hosts because it uses an absolute path to "/lib/libc.so", so ldconfig just
 decides to delete it.

 The second issue (kernel panic) is platform specific, probably when
 building big endian or hard float variants, as the current gcc patch for
 musl support doesn't account for the name variations of the dynamic
 linker. Essentially, when the system boots and starts init, it ends up
 looking for a dynamic linker like ld-musl-arm.so.1, when the installed
 linker is ld-musl-armhf.so.1, causing init to crash and the kernel to
 panic.

 I've attached an updated patch that fixes the second issue and adds
 support for other platforms from the set maintained here:
 https://github.com/GregorR/musl-gcc-patches

 I'm not really sure what to do about the first issue, maybe just reinstall
 musl after gcc-final? Anyhow, I am going to run another build using a
 relative symlink (i.e. ./libc.so) and see if that causes any trouble and
 report back.

 I'm just reopening this to ping the ticket owner.

--
Ticket URL: <https://dev.openwrt.org/ticket/12651#comment:30>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to