package/armadillo: bump to 15.4.2 and fix build failures
cover package/armadillo: bump to 15.4.2 and fix build failures
Upstream armadillo bumped its minimum required gcc version from 6.1 to 8.1, which makes the build fail on older toolchains with:
Compiler too old; need at least gcc 8.1
Patch 2 adjusts the Config.in dependency accordingly, and patch 3 bumps the package to the latest upstream release.
While testing this, I also hit a pre-existing openblas build failure on mips64 n32 (openblas is an armadillo dependency), which is unrelated to the armadillo changes but prevents testing the series on that architecture. Patch 1 fixes it.
Tested with:
utils/test-pkg -p openblas -a
32 builds, 15 skipped, 0 build failed
utils/test-pkg -p armadillo -a
32 builds, 15 skipped, 0 build failed
The bootlin-aarch64-glibc-old (gcc 6.3) is now correctly skipped for armadillo instead of failing to build.
Dario Binacchi (3):
package/openblas: fix build on mips64 n32
package/armadillo: needs gcc >= 8
package/armadillo: bump to version 15.4.2
package/armadillo/Config.in | 10 +++++----- package/armadillo/armadillo.hash | 2 +- package/armadillo/armadillo.mk | 2 +- package/openblas/openblas.mk | 4 +++- 4 files changed, 10 insertions(+), 8 deletions(-)
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 1/3 package/openblas: fix build on mips64 n32
BR2_ARCH_IS_64 is set for mips64/mips64el even when the n32 ABI is used, so openblas was built with BINARY=64. Its build system then passes -mabi=64, which conflicts with the n32 sysroot:
gnu/stubs.h:35:11: fatal error: gnu/stubs-n64_hard.h: No such file or directory
For openblas, BINARY refers to the pointer size rather than to the architecture, and n32 uses 32-bit pointers, so BINARY=32 is correct there.
--- package/openblas/openblas.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
package/openblas/openblas.mk +3 -1
@@ -49,7 +49,9 @@ ifeq ($(BR2_STATIC_LIBS),y) OPENBLAS_MAKE_OPTS += NO_SHARED=1 endif -ifeq ($(BR2_ARCH_IS_64),y) +# mips64 n32 is a 64-bit architecture, but with 32-bit pointers, so +# openblas must be built with BINARY=32 +ifeq ($(BR2_ARCH_IS_64)$(BR2_MIPS_NABI32),y) OPENBLAS_MAKE_OPTS += BINARY=64 else OPENBLAS_MAKE_OPTS += BINARY=32
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 1/3] package/openblas: fix build on mips64 n32
Quoted 4 lines · Dario Binacchi
BR2_ARCH_IS_64is set for mips64/mips64el even when the n32 ABI is used, so openblas was built with BINARY=64. Its build system then passes -mabi=64, which conflicts with the n32 sysroot:
Quoted 8 lines
gnu/stubs.h:35:11: fatal error:gnu/stubs-n64_hard.h: No such file or directoryFor openblas, BINARY refers to the pointer size rather than to the architecture, and n32 uses 32-bit pointers, so BINARY=32 is correct there.
Signed-off-by Dario Binacchi <[email protected]>
Series applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Titouan Christophe via buildroot
AppliedRe: [Buildroot] [PATCH 1/3] package/openblas: fix build on mips64 n32
In reply to Dario BinacchiQuoted 4 lines · Dario Binacchi
BR2_ARCH_IS_64is set for mips64/mips64el even when the n32 ABI is used, so openblas was built with BINARY=64. Its build system then passes -mabi=64, which conflicts with the n32 sysroot:
Quoted 8 lines
gnu/stubs.h:35:11: fatal error:gnu/stubs-n64_hard.h: No such file or directoryFor openblas, BINARY refers to the pointer size rather than to the architecture, and n32 uses 32-bit pointers, so BINARY=32 is correct there.
Signed-off-by Dario Binacchi <[email protected]>
Applied to 2025.02.x and 2026.05.x, thanks
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/3 package/armadillo: needs gcc >= 8
In reply to Dario BinacchiUpstream bumped the minimum required gcc version from 6.1 to 8.1 in commit 84ec3ddf9fd3 ("bump minimum gcc version to 8.1"), so the build now fails with "Compiler too old; need at least gcc 8.1" on older toolchains.
There is no gcc 8.0.x release (the 8.x series starts at 8.1.0), so BR2_TOOLCHAIN_GCC_AT_LEAST_8 is enough to express this dependency.
While at it, add the gcc version to the openblas-arch comment, which only checked for C++ support and would therefore stay hidden on toolchains that are too old.
--- package/armadillo/Config.in | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
package/armadillo/Config.in +5 -5
@@ -1,19 +1,19 @@ -comment "armadillo needs a toolchain w/ C++" +comment "armadillo needs a toolchain w/ C++, gcc >= 8" depends on BR2_PACKAGE_OPENBLAS_ARCH_SUPPORTS - depends on !BR2_INSTALL_LIBSTDCPP + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_GCC_AT_LEAST_8 -comment "armadillo needs a toolchain w/ fortran, C++, gcc >= 4.9" +comment "armadillo needs a toolchain w/ fortran, C++, gcc >= 8" depends on !BR2_PACKAGE_OPENBLAS_ARCH_SUPPORTS # otherwise, see comment above depends on BR2_PACKAGE_LAPACK_ARCH_SUPPORTS depends on !BR2_TOOLCHAIN_HAS_FORTRAN || !BR2_INSTALL_LIBSTDCPP - depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 + depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_8 config BR2_PACKAGE_ARMADILLO bool "armadillo" depends on BR2_PACKAGE_OPENBLAS_ARCH_SUPPORTS || \ (BR2_PACKAGE_LAPACK_ARCH_SUPPORTS && BR2_TOOLCHAIN_HAS_FORTRAN) depends on BR2_INSTALL_LIBSTDCPP - depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C++14 + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_8 # armadillo requires gcc >= 8.1 help Armadillo: An Open Source C++ Linear Algebra Library for Fast Prototyping and Computationally Intensive Experiments.
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Titouan Christophe via buildroot
AppliedRe: [Buildroot] [PATCH 2/3] package/armadillo: needs gcc >= 8
Quoted 8 lines · Dario Binacchi
Upstream bumped the minimum required gcc version from 6.1 to 8.1 in commit
84ec3ddf9fd3("bump minimum gcc version to 8.1"), so the build now fails with "Compiler too old; need at least gcc 8.1" on older toolchains.There is no gcc 8.0.x release (the 8.x series starts at 8.1.0), so
BR2_TOOLCHAIN_GCC_AT_LEAST_8is enough to express this dependency.
Quoted 6 lines
While at it, add the gcc version to the openblas-arch comment, which only checked for C++ support and would therefore stay hidden on toolchains that are too old.
Fixes 597d5d10ec77 ("package/armadillo: bump to version 15.0.1")Signed-off-by Dario Binacchi <[email protected]>
Applied to 2026.05.x, thanks
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 3/3 package/armadillo: bump to version 15.4.2
In reply to Dario BinacchiRelease notes:
https://arma.sourceforge.net/docs.html#changelog
--- package/armadillo/armadillo.hash | 2 +- package/armadillo/armadillo.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
package/armadillo/armadillo.hash +1 -1
@@ -1,4 +1,4 @@ # Locally computed: -sha256 12781baf33c71b622c2f040fd27143479d120ec89d40f889621f0b1bb6232e27 armadillo-15.4.1.tar.xz +sha256 58fa258d0e1f93074c9afa792027fc259b85cb974ccc0b932b061d4ada5bd83a armadillo-15.4.2.tar.xz # License files, locally calculated sha256 3ddf9be5c28fe27dad143a5dc76eea25222ad1dd68934a047064e56ed2fa40c5 LICENSE.txt
package/armadillo/armadillo.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -ARMADILLO_VERSION = 15.4.1 +ARMADILLO_VERSION = 15.4.2 ARMADILLO_SOURCE = armadillo-$(ARMADILLO_VERSION).tar.xz ARMADILLO_SITE = https://downloads.sourceforge.net/project/arma ARMADILLO_INSTALL_STAGING = YES
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot