Skip to content
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

build errors using gcc10 on rhel7 with cuda disabled #8

Closed
cwsmith opened this issue Mar 9, 2021 · 1 comment
Closed

build errors using gcc10 on rhel7 with cuda disabled #8

cwsmith opened this issue Mar 9, 2021 · 1 comment

Comments

@cwsmith
Copy link

cwsmith commented Mar 9, 2021

on cranium rhel7

env:

module purge
module unuse /opt/scorec/spack/lmod/linux-rhel7-x86_64/Core
module use /opt/scorec/spack/v0154_2/lmod/linux-rhel7-x86_64/Core
module load gcc mpich simmetrix-simmodsuite/16.0-210202dev cmake
export MPICH_CXX=g++

config:

cmake $1 \
-DCMAKE_INSTALL_PREFIX=$PWD/install \
-DBUILD_SHARED_LIBS=OFF \
-DOmega_h_USE_MPI=on \
-DCMAKE_CXX_COMPILER=`which mpicxx`

there are multiple errors - the following appears to be a problem with the lambda syntax

cd /lore/cwsmith/develop/simmetrixToOmegah/build-omegah/src && /opt/scorec/spack/v0154_2/install/linux-rhel7-x86_64/gcc-10.1.0/mpich-3.3.2-gi3wrjquyo564rk27x6r2c6ilr7ndmpl/bin/mpicxx   -I/lore/cwsmith/develop/simmetrixToOmegah/omega_h/src
 -I/lore/cwsmith/develop/simmetrixToOmegah/build-omegah/src -I/lore/cwsmith/develop/simmetrixToOmegah/omega_h/tpl  -O3 -g -Werror -Wall -Wextra -Wdouble-promotion -Wshadow -Wformat=2 -Wduplicated-cond -Wnull-dereference -Wlogical-op -Wres
trict -Wduplicated-branches --std=c++11  -Wno-subobject-linkage    -o CMakeFiles/omega_h.dir/Omega_h_array_ops.cpp.o -c /lore/cwsmith/develop/simmetrixToOmegah/omega_h/src/Omega_h_array_ops.cpp
/lore/cwsmith/develop/simmetrixToOmegah/omega_h/src/Omega_h_array_ops.cpp: In lambda function:
/lore/cwsmith/develop/simmetrixToOmegah/omega_h/src/Omega_h_array_ops.cpp:17:40: error: expected '{' before '->' token
   17 |   auto transform = OMEGA_H_LAMBDA(LO i)->bool { return a[i] == b[i]; };
      |                                        ^~

cmake output:

 ../omega_h/doConfigNoCudaNoSim.sh  ../omega_h/
-- The CXX compiler identification is GNU 10.1.0
-- Check for working CXX compiler: /opt/scorec/spack/v0154_2/install/linux-rhel7-x86_64/gcc-10.1.0/mpich-3.3.2-gi3wrjquyo564rk27x6r2c6ilr7ndmpl/bin/mpicxx
-- Check for working CXX compiler: /opt/scorec/spack/v0154_2/install/linux-rhel7-x86_64/gcc-10.1.0/mpich-3.3.2-gi3wrjquyo564rk27x6r2c6ilr7ndmpl/bin/mpicxx - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- CMAKE_VERSION: 3.17.3
-- Omega_h_VERSION: 9.27.0
-- USE_XSDK_DEFAULTS: OFF
-- BUILD_TESTING: OFF
-- BUILD_SHARED_LIBS: OFF
-- CMAKE_INSTALL_PREFIX: /lore/cwsmith/develop/simmetrixToOmegah/build-omegah/install
-- Omega_h_CHECK_BOUNDS: OFF
-- Omega_h_THROW: OFF
-- Omega_h_DATA: 
-- Omega_h_USE_EGADS: OFF
-- EGADS_PREFIX: 
-- Omega_h_USE_Kokkos: OFF
-- Kokkos_PREFIX: 
-- Omega_h_USE_CUDA_AWARE_MPI: OFF
-- Omega_h_USE_SimModSuite: OFF
-- Omega_h_VALGRIND: 
-- Omega_h_EXAMPLES: OFF
-- Omega_h_USE_ZLIB: ON
-- ZLIB_PREFIX: 
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.7") 
-- Omega_h_USE_Kokkos: OFF
-- Omega_h_USE_libMeshb: OFF
-- Omega_h_USE_Gmodel: OFF
-- Omega_h_USE_SEACASExodus: OFF
-- Omega_h_USE_pybind11: OFF
-- Omega_h_USE_MPI: on
-- Omega_h_USE_OpenMP: OFF
-- Omega_h_USE_CUDA: OFF
-- Omega_h_CXX_OPTIMIZE: ON
-- Omega_h_CXX_SYMBOLS: ON
-- Omega_h_ARCH: 
-- Omega_h_CXX_W**NINGS: ON
-- Omega_h_CXX_FLAGS: 
-- Omega_h_EXTRA_CXX_FLAGS: 
-- CMAKE_CXX_FLAGS:  -O3 -g -Werror -Wall -Wextra -Wdouble-promotion -Wshadow -Wformat=2 -Wduplicated-cond -Wnull-dereference -Wlogical-op -Wrestrict -Wduplicated-branches --std=c++11  -Wno-subobject-linkage 
-- Omega_h_USE_DOLFIN: OFF
-- Omega_h_SEMVER = 9.27.0-sha.25c1039+10001000000000
-- Configuring done
-- Generating done
-- Build files have been written to: /lore/cwsmith/develop/simmetrixToOmegah/build-omegah
@cwsmith
Copy link
Author

cwsmith commented Mar 6, 2024

Serial builds have been working without issue.

@cwsmith cwsmith closed this as completed Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant