All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/lapack: fix build without BUILD_COMPLEX
@ 2022-08-07  9:31 Fabrice Fontaine
  2022-08-07 12:42 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2022-08-07  9:31 UTC (permalink / raw)
  To: buildroot; +Cc: Benjamin Kamath, Fabrice Fontaine

Fix the following build failure without BUILD_COMPLEX raised since bump
to version 3.10.1 in commit b3e96b1fb0d0a7245cea6921fcdd7986762e5ec1 and
https://github.com/Reference-LAPACK/lapack/commit/bd1fba15d0d6f54891cb822f4ab2e8afd0a3ea4b:

CMake Error at LAPACKE/CMakeLists.txt:38 (message):
  LAPACKE_BUILD_COMPLEX requires BUILD_COMPLEX to be ON

CMake Error at LAPACKE/CMakeLists.txt:38 (message):
  LAPACKE_BUILD_COMPLEX16 requires BUILD_COMPLEX16 to be ON

Fixes:
 - http://autobuild.buildroot.org/results/418d15f734c87a70edf0d670c0548d550e6e70ba

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/lapack/lapack.mk | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/package/lapack/lapack.mk b/package/lapack/lapack.mk
index 2d069c1c93..3db2797202 100644
--- a/package/lapack/lapack.mk
+++ b/package/lapack/lapack.mk
@@ -14,9 +14,17 @@ LAPACK_SUPPORTS_IN_SOURCE_BUILD = NO
 LAPACK_CONF_OPTS = -DLAPACKE=ON -DCBLAS=ON
 
 ifeq ($(BR2_PACKAGE_LAPACK_COMPLEX),y)
-LAPACK_CONF_OPTS += -DBUILD_COMPLEX=ON -DBUILD_COMPLEX16=ON
+LAPACK_CONF_OPTS += \
+	-DBUILD_COMPLEX=ON \
+	-DBUILD_COMPLEX16=ON \
+	-DLAPACKE_BUILD_COMPLEX=ON \
+	-DLAPACKE_BUILD_COMPLEX16=ON
 else
-LAPACK_CONF_OPTS += -DBUILD_COMPLEX=OFF -DBUILD_COMPLEX16=OFF
+LAPACK_CONF_OPTS += \
+	-DBUILD_COMPLEX=OFF \
+	-DBUILD_COMPLEX16=OFF \
+	-DLAPACKE_BUILD_COMPLEX=OFF \
+	-DLAPACKE_BUILD_COMPLEX16=OFF
 endif
 
 $(eval $(cmake-package))
-- 
2.35.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2022-08-07 12:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-07  9:31 [Buildroot] [PATCH 1/1] package/lapack: fix build without BUILD_COMPLEX Fabrice Fontaine
2022-08-07 12:42 ` Thomas Petazzoni via buildroot

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.