-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMake error when building v0.87.7 in CentOS 7 #233
Comments
looks like this issue has something to do with the location of
whereas in CentOS 7, the location is at: for CentOS 7 installation, the error can be avoided by adding symbolic links in I suggest adding proper mapping (e.g., |
(following-up)
another one:
@poulson any idea what might be causing this? |
I can reply in more detail later, but this sounds like a mismatch between 32bit and 64bit BLAS interfaces. There is a flag for building El with a 64bit BLAS API that needs to be set. It is unfortunately nontrivial to determine this automatically. |
thanks. would you please elaborate on the flag? |
The flag is |
Thanks. I tried to re-config with cmake: and see the following warnings:
which is somewhat expected given the 64-bit integer setting usually not switched on with regular OpenBLAS installations. and so Elemental's cmake will grab openBLAS source from github and build by itself with 64-bit integer support. but then when I do
|
The issue using the old version is likely due to an undefined reference due to a missing library; you can see what caused it by looking in The latter appears to be an issue with the OpenBLAS Makefile, but I'm a bit surprised since Elemental should pull down a particular fixed tag, so I would have expected to have run into this before. |
Thanks. I ended up with building and installing OpenBLAS separately with however when using Elemental from CVXPY, i still end up with the following error: I assume this has something to do with CVXPY's usage of OpenBLAS? maybe it needs to be compiled with INTERFACE64=1 as well? |
I'm glad to hear you fixed the issue (albeit in a roundabout way). That issue again sounds like a 64-bit issue; I'm not sure what CVXPY's API choice is though. |
CMake seems to complain about missing fortran library for OpenBLAS but I have both gfortran and libgfortran installed at /usr/bin and usr/lib64 respectively. setting GFORTRAN_LIB=/usr/lib64 does not help either.
-- Appending /tmp/Elemental/include for Elemental's source includes
-- Appending /tmp/Elemental/build/include for Elemental's binary includes
CMake Warning at CMakeLists.txt:286 (message):
Build mode not specified, defaulting to Release build.
-- CXX11_COMPILER_FLAGS=-std=gnu++11
-- Using restrict keyword.
-- Will parse MPI header /usr/local/include/mpi.h
-- Appending /usr/local/include for MPI headers
-- Using prespecified OpenMP_C_FLAGS=-fopenmp
-- Using prespecified OpenMP_CXX_FLAGS=-fopenmp
-- Valgrind Prefix:
-- Could NOT find VALGRIND (missing: VALGRIND_INCLUDE_DIR VALGRIND_PROGRAM)
-- A library with BLAS API found.
-- A library with LAPACK API found.
CMake Error at cmake/external_projects/ElMath/OpenBLAS.cmake:43 (message):
Could not find gfortran library; please consider setting the GFORTRAN_LIB
variable.
Call Stack (most recent call first):
cmake/external_projects/ElMath.cmake:251 (include)
CMakeLists.txt:434 (include)
-- Configuring incomplete, errors occurred!
See also "/tmp/Elemental/build/CMakeFiles/CMakeOutput.log".
See also "/tmp/Elemental/build/CMakeFiles/CMakeError.log".
The text was updated successfully, but these errors were encountered: