Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

CMake failing without errors?

Abierto
#3 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
cmake, cpp
Área
build-system

Línea de trabajo

Comienza con el error de carga informado para host-configs/ansklnvram01/gcc_rndv.cmake y el script de build que lo invoca; después, inspecciona conjuntamente build_rndv/CMakeFiles/CMakeOutput.log y la salida de configuración. Se considera completado cuando la configuración informada finaliza sin un error de configuración incompleta y se entiende el diagnóstico relevante.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
C++
Estrellas
25
Forks
9
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de llnl/Comb

Todos los issues de llnl/Comb

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.