From 7c915e64cad5bc12e85a2d8db01a3a4cb3996040 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Tue, 30 Apr 2024 17:48:14 +0200 Subject: [PATCH 1/2] Silence a GCC14 warning/error in the f2c-converted LAPACK --- Makefile.system | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile.system b/Makefile.system index 840389db7..620a462e3 100644 --- a/Makefile.system +++ b/Makefile.system @@ -356,6 +356,9 @@ OBJCONV = $(CROSS_SUFFIX)objconv ifeq ($(NOFORTRAN), 1) C_LAPACK = 1 override FEXTRALIB = +ifeq ($(C_COMPILER), GCC) +CCOMMON_OPT += -Wno-error=incompatible-pointer-types +endif endif ifeq ($(C_COMPILER), GCC) From 3d26837a35129c2de021bab79dc1dbe1c1df00fb Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Tue, 30 Apr 2024 19:05:18 +0200 Subject: [PATCH 2/2] Suppress GCC14 error exit in the f2c-converted LAPACK --- cmake/system.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmake/system.cmake b/cmake/system.cmake index 7166cc07f..6fec04bfc 100644 --- a/cmake/system.cmake +++ b/cmake/system.cmake @@ -160,6 +160,12 @@ else() endif () endif () +if (C_LAPACK) + if (${CMAKE_C_COMPILER_ID} STREQUAL "GNU") + set(CCOMMON_OPT "${CCOMMON_OPT} -Wno-error=incompatible-pointer-types") + endif () +endif () + include("${PROJECT_SOURCE_DIR}/cmake/prebuild.cmake") if (DEFINED TARGET) if (${TARGET} STREQUAL COOPERLAKE AND NOT NO_AVX512)