* [Buildroot] [Bug 7562] New: musl buildroot-toolchain and BR2_MIPS_SOFT_FLOAT break
@ 2014-10-26 18:19 bugzilla at busybox.net
2014-11-07 7:37 ` [Buildroot] [Bug 7562] " bugzilla at busybox.net
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: bugzilla at busybox.net @ 2014-10-26 18:19 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=7562
Summary: musl buildroot-toolchain and BR2_MIPS_SOFT_FLOAT break
Product: buildroot
Version: 2014.08
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: alex+buildroot at digriz.org.uk
CC: buildroot at uclibc.org
Estimated Hours: 0.0
I use the following settings:
BR2_mipsel=y
BR2_TOOLCHAIN_BUILDROOT_MUSL=y
BR2_MIPS_SOFT_FLOAT=y
Even trying to run busybox fails as ld-musl-mipsel.so.1 does not exist. Some
digging around I found that ld-musl-mipsel-sf.so.1 does, I am guessing 'sf'
stands for "soft float".
To workaround the problem, I slipped into my post-build.sh script the
following:
----
ln -f -s /lib/libc.so "$1/lib/ld-musl-mipsel.so.1"
----
That gets things working again. Not should how this should actually be fixed,
otherwise I would submit a patch.
Let me know if you need anything from me to help get this fixed.
--
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] 5+ messages in thread
* [Buildroot] [Bug 7562] musl buildroot-toolchain and BR2_MIPS_SOFT_FLOAT break
2014-10-26 18:19 [Buildroot] [Bug 7562] New: musl buildroot-toolchain and BR2_MIPS_SOFT_FLOAT break bugzilla at busybox.net
@ 2014-11-07 7:37 ` bugzilla at busybox.net
2014-11-09 10:33 ` bugzilla at busybox.net
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: bugzilla at busybox.net @ 2014-11-07 7:37 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=7562
--- Comment #1 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 2014-11-07 07:37:03 UTC ---
Thanks for the report. That's due to a lack of coherency between the musl
installation code (which indeed installs the ld-musl-mipsel-sf symbolic link)
and the gcc patch we have for musl support, which assumes the mips dynamic
linker is always ld-musl-mipsel, regarding of whether it's hard-float or
soft-float.
I'll have a look into this and if applicable report this up to the folks doing
the gcc patches for musl.
--
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] 5+ messages in thread
* [Buildroot] [Bug 7562] musl buildroot-toolchain and BR2_MIPS_SOFT_FLOAT break
2014-10-26 18:19 [Buildroot] [Bug 7562] New: musl buildroot-toolchain and BR2_MIPS_SOFT_FLOAT break bugzilla at busybox.net
2014-11-07 7:37 ` [Buildroot] [Bug 7562] " bugzilla at busybox.net
@ 2014-11-09 10:33 ` bugzilla at busybox.net
2014-11-09 13:23 ` bugzilla at busybox.net
2016-03-10 22:20 ` bugzilla at busybox.net
3 siblings, 0 replies; 5+ messages in thread
From: bugzilla at busybox.net @ 2014-11-09 10:33 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=7562
--- Comment #2 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 2014-11-09 10:33:56 UTC ---
Issue reported upstream at
https://bitbucket.org/GregorR/musl-cross/issue/4/invalid-mips-soft-float-linker-path.
I am not entirely sure what is the proper condition to add in gcc to determine
if the -sf suffix should be added or not. I'll wait for upstream to give a hint
about this before cooking a patch.
--
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] 5+ messages in thread
* [Buildroot] [Bug 7562] musl buildroot-toolchain and BR2_MIPS_SOFT_FLOAT break
2014-10-26 18:19 [Buildroot] [Bug 7562] New: musl buildroot-toolchain and BR2_MIPS_SOFT_FLOAT break bugzilla at busybox.net
2014-11-07 7:37 ` [Buildroot] [Bug 7562] " bugzilla at busybox.net
2014-11-09 10:33 ` bugzilla at busybox.net
@ 2014-11-09 13:23 ` bugzilla at busybox.net
2016-03-10 22:20 ` bugzilla at busybox.net
3 siblings, 0 replies; 5+ messages in thread
From: bugzilla at busybox.net @ 2014-11-09 13:23 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=7562
Thomas Petazzoni <thomas.petazzoni@free-electrons.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at buildroot.uclibc |thomas.petazzoni at free-elect
|.org |rons.com
--
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] 5+ messages in thread
* [Buildroot] [Bug 7562] musl buildroot-toolchain and BR2_MIPS_SOFT_FLOAT break
2014-10-26 18:19 [Buildroot] [Bug 7562] New: musl buildroot-toolchain and BR2_MIPS_SOFT_FLOAT break bugzilla at busybox.net
` (2 preceding siblings ...)
2014-11-09 13:23 ` bugzilla at busybox.net
@ 2016-03-10 22:20 ` bugzilla at busybox.net
3 siblings, 0 replies; 5+ messages in thread
From: bugzilla at busybox.net @ 2016-03-10 22:20 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=7562
Peter Korsgaard <jacmet@uclibc.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #3 from Peter Korsgaard <jacmet@uclibc.org> ---
Fixed in git by:
commit 348d5edd91abec1fc4cc27965220d54e58217dc3
Author: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Date: Tue Mar 8 22:20:55 2016 +0100
gcc: fix dynamic linker path for mips soft-float
This commit updates the gcc musl patches for gcc 4.7, 4.8 and 4.9 so
that the path to the dynamic linker encoded as "program interpreter"
in the generated binaries actually matches the symbolic link installed
by musl when building for mips soft-float.
Indeed, musl installs a symlink called ld-musl-mipsel-sf.so.1, but gcc
currently generates binaries that use /lib/ld-musl-mips.so as program
interpreter.
The fix is simply the one from
https://bitbucket.org/GregorR/musl-cross/commits/825219202365, i.e
adjust MUSL_DYNAMIC_LINKER in our musl gcc patches.
Thanks to these patches:
$ ./host/usr/bin/mipsel-linux-readelf -a ./target/bin/busybox
[...]
[Requesting program interpreter: /lib/ld-musl-mipsel-sf.so.1]
[...]
gcc 5.x doesn't need any fix because the musl patches already use the
right value.
Fixes bug #7562.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-03-10 22:20 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-26 18:19 [Buildroot] [Bug 7562] New: musl buildroot-toolchain and BR2_MIPS_SOFT_FLOAT break bugzilla at busybox.net
2014-11-07 7:37 ` [Buildroot] [Bug 7562] " bugzilla at busybox.net
2014-11-09 10:33 ` bugzilla at busybox.net
2014-11-09 13:23 ` bugzilla at busybox.net
2016-03-10 22:20 ` bugzilla at busybox.net
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox