#2400: Compiling OpenBLAS from source produces strange error message
Reporter:
Status:new
Milestone:
Version:
Type:bug
Priority:major
Component:Other

Comment (by Roland Haas):

This fragment fixes the issue:

Index: build.sh
===================================================================
--- build.sh    (revision 235)
+++ build.sh    (working copy)
@@ -14,8 +14,8 @@

 # Set locations
 THORN=OpenBLAS
-NAME=OpenBLAS-0.2.19
-TARNAME=v0.2.19
+NAME=OpenBLAS-0.3.9
+TARNAME=v0.3.9
 SRCDIR="$(dirname $0)"
 BUILD_DIR=${SCRATCH_BUILD}/build/${THORN}
 if [ -z "${OPENBLAS_INSTALL_DIR}" ]; then
@@ -33,6 +33,9 @@
 if echo '' ${ARFLAGS} | grep 64 > /dev/null 2>&1; then
     export OBJECT_MODE=64
 fi
+# Keep only -j option in Makeflags but not Cactus' make variables (some confuse
+# OpenBLAS's c_check script)
+MAKEFLAGS=${MAKEFLAGS%% -- *}

 echo "OpenBLAS: Preparing directory structure..."
 cd ${SCRATCH_BUILD}

by removing all Cactus build system make variables from MAKEFLAGS (but keeping eg -j for parallelism).

Using gcc -v to learn about libraries that need to be linked against seems very wrong to me and modifying MAKEFLAGS is a poor way of working around this issue.

To be applied after the release and code deep freeze (on May 28th) and backported, along with an update of the tarball to 0.3.9.

--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2400/compiling-openblas-from-source-produces