Skip to contentSkip to conversation

package/musl: bump to version 1.1.23

PATCH New Jörg Krause 4 participants 8 messages Jul 30, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/musl: bump to version 1.1.23

This version merges the RISC-V (64-bit) port and new math library implementations of log, exp, and pow. Internals of how (non-cancellable) syscalls are performed have been overhauled so that all code necessary to make the syscall resides in the arch-provided header and is inlinable. In the process, bugs in the implementation of mips and microblaze syscall mechanisms were found and fixed. Several other bugs were fixed as well, including a potentially serious one in the layout of static TLS for shared libraries on archs that use "TLS variant I" layout.

A couple behaviors that were clearly undesirable but arguably mandated by POSIX have been fixed as a result of POSIX intepretations rendering them unnecessary.

---
 package/musl/musl.hash | 4 ++--
 package/musl/musl.mk   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
package/musl/musl.hash +2 -2
index 5644401770..034393edd9 100644
@@ -1,4 +1,4 @@
 # Locally calculated after checking pgp signature from
-# http://www.musl-libc.org/releases/musl-1.1.22.tar.gz.asc
-sha256  8b0941a48d2f980fd7036cfbd24aa1d414f03d9a0652ecbd5ec5c7ff1bee29e3  musl-1.1.22.tar.gz
+# http://www.musl-libc.org/releases/musl-1.1.23.tar.gz.asc
+sha256  8a0feb41cef26c97dde382c014e68b9bb335c094bbc1356f6edaaf6b79bd14aa  musl-1.1.23.tar.gz
 sha256  a3ae1b9fc5d4938f5734734383b9813d27a5652df23010c6f9d4c5419b239a41  COPYRIGHT
package/musl/musl.mk +1 -1
index 5db5bbd265..b401fb3d11 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-MUSL_VERSION = 1.1.22
+MUSL_VERSION = 1.1.23
 MUSL_SITE = http://www.musl-libc.org/releases
 MUSL_LICENSE = MIT
 MUSL_LICENSE_FILES = COPYRIGHT
Signature · 1 line
2.22.0
#1 lore raw

PATCH 2/2 toolchain: enable musl for riscv

Since version 1.1.23 musl supports the RISC-V architecture.

---
 toolchain/toolchain-buildroot/Config.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
toolchain/toolchain-buildroot/Config.in +1 -1
index d9f16e2a3a..b4168bd40c 100644
@@ -84,7 +84,7 @@ config BR2_TOOLCHAIN_BUILDROOT_MUSL
 	depends on BR2_aarch64	   || BR2_arm   || BR2_armeb   || BR2_i386 || \
 		   BR2_microblaze  || BR2_mips  || BR2_mipsel  || BR2_mips64 || \
 		   BR2_mips64el    || BR2_or1k  || BR2_powerpc || BR2_powerpc64 || \
-		   BR2_powerpc64le || BR2_sh    || BR2_x86_64
+		   BR2_powerpc64le || BR2_riscv || BR2_sh      || BR2_x86_64
 	depends on !BR2_powerpc_SPE # not supported, build breaks
 	# sh2 nommu is supported by musl, but we don't have support
 	# for it in Buildroot.
Signature · 1 line
2.22.0
#2 lore raw

PATCH 2/2 toolchain: enable musl for riscv

Quoted 12 lines · J?rg Krause

Since version 1.1.23 musl supports the RISC-V architecture.

---
 toolchain/toolchain-buildroot/Config.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
toolchain/toolchain-buildroot/Config.in +0 -0
index d9f16e2a3a..b4168bd40c 100644

toolchain/toolchain-buildroot/Config.in config BR2_TOOLCHAIN_BUILDROOT_MUSL · line 90

Quoted 8 lines
toolchain/toolchain-buildroot/Config.in +1 -1
@@ -84,7 +84,7 @@ config BR2_TOOLCHAIN_BUILDROOT_MUSL
 	depends on BR2_aarch64	   || BR2_arm   || BR2_armeb   || BR2_i386 || \
 		   BR2_microblaze  || BR2_mips  || BR2_mipsel  || BR2_mips64 || \
 		   BR2_mips64el    || BR2_or1k  || BR2_powerpc || BR2_powerpc64 || \
-		   BR2_powerpc64le || BR2_sh    || BR2_x86_64
+		   BR2_powerpc64le || BR2_riscv || BR2_sh      || BR2_x86_64
 	depends on !BR2_powerpc_SPE # not supported, build breaks
 	# sh2 nommu is supported by musl, but we don't have support
 	# for it in Buildroot.

Successfully builds 'qemu_riscv64_virt_defconfig' and boots under qemu 3.1.0 to a working system.

Signature · 3 lines
Mark Corbin
Embecosm Ltd.
https://www.embecosm.com
#3 lore raw

PATCH 2/2 toolchain: enable musl for riscv

In reply to Jörg Krause

Hello,

Quoted 12 lines · On Tue, 30 Jul 2019 12:23:31 +0200 J?rg Krause <[email protected]>…

Since version 1.1.23 musl supports the RISC-V architecture.

---
 toolchain/toolchain-buildroot/Config.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
toolchain/toolchain-buildroot/Config.in +0 -0
index d9f16e2a3a..b4168bd40c 100644

toolchain/toolchain-buildroot/Config.in config BR2_TOOLCHAIN_BUILDROOT_MUSL · line 87

Quoted 5 lines
toolchain/toolchain-buildroot/Config.in +1 -1
@@ -84,7 +84,7 @@ config BR2_TOOLCHAIN_BUILDROOT_MUSL
 	depends on BR2_aarch64	   || BR2_arm   || BR2_armeb   || BR2_i386 || \
 		   BR2_microblaze  || BR2_mips  || BR2_mipsel  || BR2_mips64 || \
 		   BR2_mips64el    || BR2_or1k  || BR2_powerpc || BR2_powerpc64 || \
-		   BR2_powerpc64le || BR2_sh    || BR2_x86_64
+		   BR2_powerpc64le || BR2_riscv || BR2_sh      || BR2_x86_64

My understanding is that musl 1.1.23 only supports RISC-V 64 bits, not RISC-V 32 bits, so that should probably be "BR2_RISCV_64" instead of just "BR2_riscv".

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#4 lore raw

PATCH 2/2 toolchain: enable musl for riscv

Quoted 13 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

Hello,

Quoted 7 lines · On Tue, 30 Jul 2019 12:23:31 +0200 J?rg Krause <[email protected]>…

Since version 1.1.23 musl supports the RISC-V architecture.

---
toolchain/toolchain-buildroot/Config.in | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 14 lines

toolchain/toolchain-buildroot/Config.in config BR2_TOOLCHAIN_BUILDROOT_MUSL · line 87

Quoted 10 lines
toolchain/toolchain-buildroot/Config.in +1 -1
index d9f16e2a3a..b4168bd40c 100644
@@ -84,7 +84,7 @@ config BR2_TOOLCHAIN_BUILDROOT_MUSL
 depends on BR2_aarch64	   || BR2_arm   || BR2_armeb   || BR2_i386 || \
 BR2_microblaze  || BR2_mips  || BR2_mipsel  || BR2_mips64 || \
 BR2_mips64el    || BR2_or1k  || BR2_powerpc || BR2_powerpc64 || \
-		   BR2_powerpc64le || BR2_sh    || BR2_x86_64
+		   BR2_powerpc64le || BR2_riscv || BR2_sh      || BR2_x86_64

My understanding is that musl 1.1.23 only supports RISC-V 64 bits, not RISC-V 32 bits, so that should probably be "BR2_RISCV_64" instead of just "BR2_riscv".

Ups, indeed - I'll fix that up.

Signature · 1 line
Bye, Peter Korsgaard
#6 lore raw

PATCH 1/2 package/musl: bump to version 1.1.23

In reply to Jörg Krause
Quoted 34 lines · J?rg Krause

This version merges the RISC-V (64-bit) port and new math library implementations of log, exp, and pow. Internals of how (non-cancellable) syscalls are performed have been overhauled so that all code necessary to make the syscall resides in the arch-provided header and is inlinable. In the process, bugs in the implementation of mips and microblaze syscall mechanisms were found and fixed. Several other bugs were fixed as well, including a potentially serious one in the layout of static TLS for shared libraries on archs that use "TLS variant I" layout.

A couple behaviors that were clearly undesirable but arguably mandated by POSIX have been fixed as a result of POSIX intepretations rendering them unnecessary.

---
 package/musl/musl.hash | 4 ++--
 package/musl/musl.mk   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
package/musl/musl.hash +2 -2
index 5644401770..034393edd9 100644
@@ -1,4 +1,4 @@
 # Locally calculated after checking pgp signature from
-# http://www.musl-libc.org/releases/musl-1.1.22.tar.gz.asc
-sha256  8b0941a48d2f980fd7036cfbd24aa1d414f03d9a0652ecbd5ec5c7ff1bee29e3  musl-1.1.22.tar.gz
+# http://www.musl-libc.org/releases/musl-1.1.23.tar.gz.asc
+sha256  8a0feb41cef26c97dde382c014e68b9bb335c094bbc1356f6edaaf6b79bd14aa  musl-1.1.23.tar.gz
 sha256  a3ae1b9fc5d4938f5734734383b9813d27a5652df23010c6f9d4c5419b239a41  COPYRIGHT
package/musl/musl.mk +0 -0
index 5db5bbd265..b401fb3d11 100644

package/musl/musl.mk line 10

Quoted 8 lines
package/musl/musl.mk +1 -1
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-MUSL_VERSION = 1.1.22
+MUSL_VERSION = 1.1.23
 MUSL_SITE = http://www.musl-libc.org/releases
 MUSL_LICENSE = MIT
 MUSL_LICENSE_FILES = COPYRIGHT

Successfully builds 'qemu_riscv64_virt_defconfig' and boots under qemu 3.1.0 to a working system.

Signature · 3 lines
Mark Corbin
Embecosm Ltd.
https://www.embecosm.com
#7 lore raw

PATCH 1/2 package/musl: bump to version 1.1.23

In reply to Jörg Krause
Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"J?rg" == J?rg Krause <[email protected]> writes:

This version merges the RISC-V (64-bit) port and new math library implementations of log, exp, and pow. Internals of how (non-cancellable) syscalls are performed have been overhauled so that all code necessary to make the syscall resides in the arch-provided header and is inlinable. In the process, bugs in the implementation of mips and microblaze syscall mechanisms were found and fixed. Several other bugs were fixed as well, including a potentially serious one in the layout of static TLS for shared libraries on archs that use "TLS variant I" layout.

Quoted 4 lines

A couple behaviors that were clearly undesirable but arguably mandated by POSIX have been fixed as a result of POSIX intepretations rendering them unnecessary.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard