[Buildroot] [git commit] package/openblas: fix build on mips64 n32
Julien Olivain via buildroot <[email protected]> Sat, 1 Aug 2026 12:35:48 +0200
| Newsgroups | net.busybox.buildroot |
|---|---|
| Message-ID | <[email protected]> |
commit: https://gitlab.com/buildroot.org/buildroot/-/commit/fd685fc8c2c061641e94bff8f5db76d49be6a18b branch: https://gitlab.com/buildroot.org/buildroot/-/tree/master 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. Signed-off-by: Dario Binacchi <[email protected]> Signed-off-by: Julien Olivain <[email protected]> --- package/openblas/openblas.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package/openblas/openblas.mk b/package/openblas/openblas.mk index 64e3b00691..ce0a21c5e6 100644 --- a/package/openblas/openblas.mk +++ b/package/openblas/openblas.mk @@ -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 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot