Skip to contentSkip to conversation

package/qemu: disable Qemu user-land emulation for musl toolchains

PATCH Superseded Romain Naour 2 participants 3 messages Nov 6, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/qemu: disable Qemu user-land emulation for musl toolchains

Like for cyclictest (rt-test)[1], linux-user/syscall.c use the definition of the "struct sigevent" from Glibc/uClibc which doesn't build with musl libc.

So, disable Qemu user-land emulation for musl toolchains.

Fixes:
http://autobuild.buildroot.net/results/b27/b277e668d9e22b624416bf46f6ccba802acd257e

[1] 43bffa59e7359610c8f00038ddd97795c0ca35e1

Cc Francois Perrad <[email protected]>
---
 package/qemu/Config.in | 2 ++
 1 file changed, 2 insertions(+)
package/qemu/Config.in +2 -0
index ea6b946..138d96a 100644
@@ -69,6 +69,8 @@ comment "systems emulation needs a toolchain w/ dynamic library"
 
 config BR2_PACKAGE_QEMU_LINUX_USER
 	bool "Enable all Linux user-land emulation"
+	# Incompatible "struct sigevent" definition on musl
+	depends on !BR2_TOOLCHAIN_USES_MUSL
 	help
 	  Say 'y' to build all Linux user-land emulators that QEMU supports.
 
Signature · 1 line
2.5.5
#1 lore raw

PATCH 1/1 package/qemu: disable Qemu user-land emulation for musl toolchains

Quoted 22 lines · Romain Naour

Like for cyclictest (rt-test)[1], linux-user/syscall.c use the definition of the "struct sigevent" from Glibc/uClibc which doesn't build with musl libc.

So, disable Qemu user-land emulation for musl toolchains.

Fixes:
http://autobuild.buildroot.net/results/b27/b277e668d9e22b624416bf46f6ccba802acd257e

[1] 43bffa59e7359610c8f00038ddd97795c0ca35e1

Cc Francois Perrad <[email protected]>
---
 package/qemu/Config.in | 2 ++
 1 file changed, 2 insertions(+)
package/qemu/Config.in +0 -0
index ea6b946..138d96a 100644

package/qemu/Config.in comment "systems emulation needs a toolchain w/ dynamic library" · line 76

Quoted 8 lines
package/qemu/Config.in +2 -0
@@ -69,6 +69,8 @@ comment "systems emulation needs a toolchain w/ dynamic library"
 
 config BR2_PACKAGE_QEMU_LINUX_USER
 	bool "Enable all Linux user-land emulation"
+	# Incompatible "struct sigevent" definition on musl
+	depends on !BR2_TOOLCHAIN_USES_MUSL
 	help
 	  Say 'y' to build all Linux user-land emulators that QEMU supports.
 

Shouldn't a comment be added?

Regards,
Arnout

Quoted 1 line
Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
#2 lore raw

PATCH 1/1 package/qemu: disable Qemu user-land emulation for musl toolchains

Hi Arnout,

Le 06/11/2016 ? 16:43, Arnout Vandecappelle a ?crit :

Quoted 26 lines · Romain Naour
Quoted 23 lines

Like for cyclictest (rt-test)[1], linux-user/syscall.c use the definition of the "struct sigevent" from Glibc/uClibc which doesn't build with musl libc.

So, disable Qemu user-land emulation for musl toolchains.

Fixes:
http://autobuild.buildroot.net/results/b27/b277e668d9e22b624416bf46f6ccba802acd257e

[1] 43bffa59e7359610c8f00038ddd97795c0ca35e1

Cc Francois Perrad <[email protected]>
---
 package/qemu/Config.in | 2 ++
 1 file changed, 2 insertions(+)
package/qemu/Config.in +0 -0
index ea6b946..138d96a 100644
@@ -69,6 +69,8 @@ comment "systems emulation needs a toolchain w/ dynamic library"
 
Quoted 9 lines

package/qemu/Config.in comment "systems emulation needs a toolchain w/ dynamic library" · line 76

Quoted 7 lines
package/qemu/Config.in +2 -0
 config BR2_PACKAGE_QEMU_LINUX_USER
 	bool "Enable all Linux user-land emulation"
+	# Incompatible "struct sigevent" definition on musl
+	depends on !BR2_TOOLCHAIN_USES_MUSL
 	help
 	  Say 'y' to build all Linux user-land emulators that QEMU supports.
 

Shouldn't a comment be added?

Yes you're right.
Fixed in v2.

Best regards,
Romain

Quoted 6 lines

Regards,
Arnout

Quoted 1 line