-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Apologies if this is a CMake n00b problem.
I've been trying to configure on my system with this script (based on the ones in your source tree):
#!/bin/bash
BUILD_SUFFIX=rndv
rm -rf build_${BUILD_SUFFIX} 2>/dev/null
mkdir build_${BUILD_SUFFIX}
cd build_${BUILD_SUFFIX}
PATH=/path/to/mpi/bin:$PATH \
LD_LIBRARY_PATH=/path/to/mpi/lib:$LD_LIBRARY_PATH \
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_OPENMP=OFF \
-DENABLE_CUDA=OFF \
-DCMAKE_C_FLAGS=-pthread \
-DCMAKE_CXX_FLAGS=-pthread \
-DCMAKE_EXE_LINKER_FLAGS=-pthread \
-C ../host-configs/ansklnvram01/gcc_${BUILD_SUFFIX}.cmake \
-DCMAKE_INSTALL_PREFIX=../install_${BUILD_SUFFIX} \
"$@" \
-Wno-dev \
..When I didn't include the -pthread flags, I kept getting errors about not being able to find the pthread symbols.
Now my output looks like this:
$ ./scripts/my-builds/gcc_rndv.sh
loading initial cache file ../host-configs/ansklnvram01/gcc_rndv.cmake
CMake Error: Error processing file: ../host-configs/ansklnvram01/gcc_rndv.cmake
-- The CXX compiler identification is GNU 7.3.1
-- Check for working CXX compiler: /opt/rh/devtoolset-7/root/usr/bin/c++
-- Check for working CXX compiler: /opt/rh/devtoolset-7/root/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /nfs/site/home/wbland/home/tools/x86/bin/git (found version "2.19.2")
-- Git Support is ON
-- Git Executable: /nfs/site/home/wbland/home/tools/x86/bin/git
-- Git Version: 2.19.2
-- MPI Support is ON
-- Found MPI_CXX: /path/to/mpi/lib/libmpicxx.so (found version "3.1")
-- Found MPI: TRUE (found version "3.1")
-- MPI C Compile Flags:
-- MPI C Include Path:
-- MPI C Link Flags:
-- MPI C Libraries:
-- MPI CXX Compile Flags:
-- MPI CXX Include Path: /path/to/mpi/include;/path/to/mpi/include
-- MPI CXX Link Flags: -Wl,-rpath -Wl,/path/to/mpi/lib -Wl,--enable-new-dtags -L/usr/lib64 -L/path/to/mpi/lib
-- MPI CXX Libraries: /path/to/mpi/lib/libmpi.so
-- MPI Executable: /path/to/mpi/bin/mpiexec
-- MPI Num Proc Flag: -n
-- MPI Command Append:
-- CUDA Support is OFF
-- ROCM Support is OFF
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.5") found components: doxygen dot
-- Sphinx support is ON
-- Failed to locate Sphinx executable (missing: SPHINX_EXECUTABLE)
-- Valgrind support is ON
-- Found Valgrind: /opt/rh/devtoolset-7/root/usr/bin/valgrind
-- Uncrustify support is ON
-- Failed to locate Uncrustify executable (missing: UNCRUSTIFY_EXECUTABLE)
-- AStyle support is ON
-- Failed to locate AStyle executable (missing: ASTYLE_EXECUTABLE)
-- Cppcheck support is ON
-- Failed to locate Cppcheck executable (missing: CPPCHECK_EXECUTABLE)
-- C Compiler family is GNU
-- OpenMP Support is OFF
-- Adding optional BLT definitions and compiler flags
-- Standard C++11 selected
-- Enabling all compiler warnings on all targets.
-- Fortran support disabled.
-- CMAKE_C_FLAGS flags are: -pthread -Wall -Wextra
-- CMAKE_CXX_FLAGS flags are: -pthread -Wall -Wextra
-- CMAKE_EXE_LINKER_FLAGS flags are: -pthread
-- Google Test Support is ON
-- Google Mock Support is OFF
-- The C compiler identification is GNU 7.3.1
-- Check for working C compiler: /opt/rh/devtoolset-7/root/usr/bin/cc
-- Check for working C compiler: /opt/rh/devtoolset-7/root/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found PythonInterp: /usr/bin/python (found version "2.7.5")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- MPI Enabled
-- Configuring incomplete, errors occurred!
See also "/path/to/Comb/build_rndv/CMakeFiles/CMakeOutput.log".
So it's telling me there's errors, but I don't actually see any errors and nothing is showing up in that log.
I'm assuming this is probably caused by me manually requiring the pthreads flag, but I'd love it if you could give me a pointer where to look.
Metadata
Metadata
Assignees
Labels
No labels