All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package/musl: bump to version 1.1.23
@ 2019-07-30 10:23 Jörg Krause
  2019-07-30 10:23 ` [Buildroot] [PATCH 2/2] toolchain: enable musl for riscv Jörg Krause
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Jörg Krause @ 2019-07-30 10:23 UTC (permalink / raw)
  To: buildroot

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.

Signed-off-by: J?rg Krause <joerg.krause@embedded.rocks>
---
 package/musl/musl.hash | 4 ++--
 package/musl/musl.mk   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/package/musl/musl.hash b/package/musl/musl.hash
index 5644401770..034393edd9 100644
--- a/package/musl/musl.hash
+++ b/package/musl/musl.hash
@@ -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
diff --git a/package/musl/musl.mk b/package/musl/musl.mk
index 5db5bbd265..b401fb3d11 100644
--- a/package/musl/musl.mk
+++ b/package/musl/musl.mk
@@ -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
-- 
2.22.0

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [Buildroot] [PATCH 2/2] toolchain: enable musl for riscv
  2019-07-30 10:23 [Buildroot] [PATCH 1/2] package/musl: bump to version 1.1.23 Jörg Krause
@ 2019-07-30 10:23 ` Jörg Krause
  2019-07-30 14:28   ` Mark Corbin
                     ` (2 more replies)
  2019-07-30 14:27 ` [Buildroot] [PATCH 1/2] package/musl: bump to version 1.1.23 Mark Corbin
  2019-07-30 15:53 ` Peter Korsgaard
  2 siblings, 3 replies; 8+ messages in thread
From: Jörg Krause @ 2019-07-30 10:23 UTC (permalink / raw)
  To: buildroot

Since version 1.1.23 musl supports the RISC-V architecture.

Signed-off-by: J?rg Krause <joerg.krause@embedded.rocks>
---
 toolchain/toolchain-buildroot/Config.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/toolchain/toolchain-buildroot/Config.in b/toolchain/toolchain-buildroot/Config.in
index d9f16e2a3a..b4168bd40c 100644
--- a/toolchain/toolchain-buildroot/Config.in
+++ b/toolchain/toolchain-buildroot/Config.in
@@ -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.
-- 
2.22.0

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [Buildroot] [PATCH 1/2] package/musl: bump to version 1.1.23
  2019-07-30 10:23 [Buildroot] [PATCH 1/2] package/musl: bump to version 1.1.23 Jörg Krause
  2019-07-30 10:23 ` [Buildroot] [PATCH 2/2] toolchain: enable musl for riscv Jörg Krause
@ 2019-07-30 14:27 ` Mark Corbin
  2019-07-30 15:53 ` Peter Korsgaard
  2 siblings, 0 replies; 8+ messages in thread
From: Mark Corbin @ 2019-07-30 14:27 UTC (permalink / raw)
  To: buildroot

On 30/07/2019 11:23, J?rg Krause wrote:
> 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.
>
> Signed-off-by: J?rg Krause <joerg.krause@embedded.rocks>
> ---
>  package/musl/musl.hash | 4 ++--
>  package/musl/musl.mk   | 2 +-
>  2 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/package/musl/musl.hash b/package/musl/musl.hash
> index 5644401770..034393edd9 100644
> --- a/package/musl/musl.hash
> +++ b/package/musl/musl.hash
> @@ -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
> diff --git a/package/musl/musl.mk b/package/musl/musl.mk
> index 5db5bbd265..b401fb3d11 100644
> --- a/package/musl/musl.mk
> +++ b/package/musl/musl.mk
> @@ -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.

Tested-by: Mark Corbin <mark.corbin@embecosm.com>

-- 
Mark Corbin
Embecosm Ltd.
https://www.embecosm.com

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [PATCH 2/2] toolchain: enable musl for riscv
  2019-07-30 10:23 ` [Buildroot] [PATCH 2/2] toolchain: enable musl for riscv Jörg Krause
@ 2019-07-30 14:28   ` Mark Corbin
  2019-07-30 15:46   ` Thomas Petazzoni
  2019-07-30 15:54   ` Peter Korsgaard
  2 siblings, 0 replies; 8+ messages in thread
From: Mark Corbin @ 2019-07-30 14:28 UTC (permalink / raw)
  To: buildroot

On 30/07/2019 11:23, J?rg Krause wrote:
> Since version 1.1.23 musl supports the RISC-V architecture.
>
> Signed-off-by: J?rg Krause <joerg.krause@embedded.rocks>
> ---
>  toolchain/toolchain-buildroot/Config.in | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/toolchain/toolchain-buildroot/Config.in b/toolchain/toolchain-buildroot/Config.in
> index d9f16e2a3a..b4168bd40c 100644
> --- a/toolchain/toolchain-buildroot/Config.in
> +++ b/toolchain/toolchain-buildroot/Config.in
> @@ -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.

Tested-by: Mark Corbin <mark.corbin@embecosm.com>

-- 
Mark Corbin
Embecosm Ltd.
https://www.embecosm.com

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [PATCH 2/2] toolchain: enable musl for riscv
  2019-07-30 10:23 ` [Buildroot] [PATCH 2/2] toolchain: enable musl for riscv Jörg Krause
  2019-07-30 14:28   ` Mark Corbin
@ 2019-07-30 15:46   ` Thomas Petazzoni
  2019-07-30 16:25     ` Peter Korsgaard
  2019-07-30 15:54   ` Peter Korsgaard
  2 siblings, 1 reply; 8+ messages in thread
From: Thomas Petazzoni @ 2019-07-30 15:46 UTC (permalink / raw)
  To: buildroot

Hello,

On Tue, 30 Jul 2019 12:23:31 +0200
J?rg Krause <joerg.krause@embedded.rocks> wrote:

> Since version 1.1.23 musl supports the RISC-V architecture.
> 
> Signed-off-by: J?rg Krause <joerg.krause@embedded.rocks>
> ---
>  toolchain/toolchain-buildroot/Config.in | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/toolchain/toolchain-buildroot/Config.in b/toolchain/toolchain-buildroot/Config.in
> index d9f16e2a3a..b4168bd40c 100644
> --- a/toolchain/toolchain-buildroot/Config.in
> +++ b/toolchain/toolchain-buildroot/Config.in
> @@ -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
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [PATCH 1/2] package/musl: bump to version 1.1.23
  2019-07-30 10:23 [Buildroot] [PATCH 1/2] package/musl: bump to version 1.1.23 Jörg Krause
  2019-07-30 10:23 ` [Buildroot] [PATCH 2/2] toolchain: enable musl for riscv Jörg Krause
  2019-07-30 14:27 ` [Buildroot] [PATCH 1/2] package/musl: bump to version 1.1.23 Mark Corbin
@ 2019-07-30 15:53 ` Peter Korsgaard
  2 siblings, 0 replies; 8+ messages in thread
From: Peter Korsgaard @ 2019-07-30 15:53 UTC (permalink / raw)
  To: buildroot

>>>>> "J?rg" == J?rg Krause <joerg.krause@embedded.rocks> 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.

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

 > Signed-off-by: J?rg Krause <joerg.krause@embedded.rocks>

Committed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [PATCH 2/2] toolchain: enable musl for riscv
  2019-07-30 10:23 ` [Buildroot] [PATCH 2/2] toolchain: enable musl for riscv Jörg Krause
  2019-07-30 14:28   ` Mark Corbin
  2019-07-30 15:46   ` Thomas Petazzoni
@ 2019-07-30 15:54   ` Peter Korsgaard
  2 siblings, 0 replies; 8+ messages in thread
From: Peter Korsgaard @ 2019-07-30 15:54 UTC (permalink / raw)
  To: buildroot

>>>>> "J?rg" == J?rg Krause <joerg.krause@embedded.rocks> writes:

 > Since version 1.1.23 musl supports the RISC-V architecture.
 > Signed-off-by: J?rg Krause <joerg.krause@embedded.rocks>

Committed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [PATCH 2/2] toolchain: enable musl for riscv
  2019-07-30 15:46   ` Thomas Petazzoni
@ 2019-07-30 16:25     ` Peter Korsgaard
  0 siblings, 0 replies; 8+ messages in thread
From: Peter Korsgaard @ 2019-07-30 16:25 UTC (permalink / raw)
  To: buildroot

>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@bootlin.com> writes:

 > Hello,
 > On Tue, 30 Jul 2019 12:23:31 +0200
 > J?rg Krause <joerg.krause@embedded.rocks> wrote:

 >> Since version 1.1.23 musl supports the RISC-V architecture.
 >> 
 >> Signed-off-by: J?rg Krause <joerg.krause@embedded.rocks>
 >> ---
 >> toolchain/toolchain-buildroot/Config.in | 2 +-
 >> 1 file changed, 1 insertion(+), 1 deletion(-)
 >> 
 >> diff --git a/toolchain/toolchain-buildroot/Config.in b/toolchain/toolchain-buildroot/Config.in
 >> index d9f16e2a3a..b4168bd40c 100644
 >> --- a/toolchain/toolchain-buildroot/Config.in
 >> +++ b/toolchain/toolchain-buildroot/Config.in
 >> @@ -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.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-07-30 16:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-30 10:23 [Buildroot] [PATCH 1/2] package/musl: bump to version 1.1.23 Jörg Krause
2019-07-30 10:23 ` [Buildroot] [PATCH 2/2] toolchain: enable musl for riscv Jörg Krause
2019-07-30 14:28   ` Mark Corbin
2019-07-30 15:46   ` Thomas Petazzoni
2019-07-30 16:25     ` Peter Korsgaard
2019-07-30 15:54   ` Peter Korsgaard
2019-07-30 14:27 ` [Buildroot] [PATCH 1/2] package/musl: bump to version 1.1.23 Mark Corbin
2019-07-30 15:53 ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.