LLNL / axom

CS infrastructure components for HPC applications
BSD 3-Clause "New" or "Revised" License
158 stars 27 forks source link

Build Axom@develop with Spack@develop #610

Open adrienbernede opened 3 years ago

adrienbernede commented 3 years ago

FYI:

Unlike with Axom@0.5.0, Axom@develop fails to build with Spack because of gtest not being found:

     1090    cd /tmp/bernede1/spack-stage/spack-stage-axom-develop-rdvr5fyvofh7vc2bdpnog2b7xb4azxvn/spack-build-rdvr5fy/axom/sidre/examples && /usr/tce/packages/cmake
             /cmake-3.18.0/bin/cmake -E cmake_link_script CMakeFiles/sidre_stressgroups_ex.dir/link.txt --verbose=1
     1091    /g/g91/bernede1/Projects/spack/lib/spack/env/clang/clang++ --gcc-toolchain=/usr/tce/packages/gcc/gcc-8.3.1     -Wall -Wextra     -O2 -g -DNDEBUG   -Wl,-r
             path,/usr/tce/packages/clang/clang-10.0.0/lib -Wl,--export-dynamic -rdynamic -fopenmp=libomp -Wl,-rpath -Wl,/usr/tce/packages/openmpi/openmpi-3.0.1-clang
             -10.0.0/lib -Wl,--enable-new-dtags -pthread CMakeFiles/sidre_stressgroups_ex.dir/sidre_stressgroups.cpp.o -o ../../../examples/sidre_stressgroups_ex  -Wl
             ,-rpath,/tmp/bernede1/spack-stage/spack-stage-axom-develop-rdvr5fyvofh7vc2bdpnog2b7xb4azxvn/spack-build-rdvr5fy/lib:/usr/tce/packages/openmpi/openmpi-3.0
             .1-clang-10.0.0/lib:/usr/WS1/radiuss/install/radiuss-stack/__spack_path_placeholder__/__spack_path_placeholder__/__spack_path_placeholder__/__/linux-rhel
             7-broadwell/clang-10.0.0/conduit-0.7.2-f7z4ge6jtyoaubo45pzstqy2kn6bsdbq/lib:/usr/WS1/radiuss/install/radiuss-stack/__spack_path_placeholder__/__spack_pat
             h_placeholder__/__spack_path_placeholder__/__/linux-rhel7-broadwell/clang-10.0.0/hdf5-1.8.22-hqfe2rxg4wmozga5lubfbnqvt7zijzxp/lib:/usr/workspace/radiuss/
             install/radiuss-stack/__spack_path_placeholder__/__spack_path_placeholder__/__spack_path_placeholder__/__/linux-rhel7-broadwell/clang-10.0.0/raja-0.13.0-
             cmofls3lcigf4sd7yycagk6o5tu3fsna/lib:/usr/workspace/radiuss/install/radiuss-stack/__spack_path_placeholder__/__spack_path_placeholder__/__spack_path_plac
             eholder__/__/linux-rhel7-broadwell/clang-10.0.0/umpire-4.1.2-alnhifu3kozrhfmnrfu4cogk5oieoqig/lib:/usr/WS1/radiuss/install/radiuss-stack/__spack_path_pla
             ceholder__/__spack_path_placeholder__/__spack_path_placeholder__/__/linux-rhel7-broadwell/clang-10.0.0/lua-5.3.5-djzfhluw2p2od3kxo3m6b4gkx36vd2yp/lib ../
             ../../lib/libaxom.so -lrt /usr/tce/packages/openmpi/openmpi-3.0.1-clang-10.0.0/lib/libmpi_usempi.so /usr/tce/packages/openmpi/openmpi-3.0.1-clang-10.0.0/
             lib/libmpi_mpifh.so /usr/WS1/radiuss/install/radiuss-stack/__spack_path_placeholder__/__spack_path_placeholder__/__spack_path_placeholder__/__/linux-rhel
             7-broadwell/clang-10.0.0/conduit-0.7.2-f7z4ge6jtyoaubo45pzstqy2kn6bsdbq/lib/libconduit_relay_mpi_io.so /usr/WS1/radiuss/install/radiuss-stack/__spack_pat
             h_placeholder__/__spack_path_placeholder__/__spack_path_placeholder__/__/linux-rhel7-broadwell/clang-10.0.0/conduit-0.7.2-f7z4ge6jtyoaubo45pzstqy2kn6bsdb
             q/lib/libconduit_relay.so -lrt -lpthread /usr/WS1/radiuss/install/radiuss-stack/__spack_path_placeholder__/__spack_path_placeholder__/__spack_path_placeh
             older__/__/linux-rhel7-broadwell/clang-10.0.0/hdf5-1.8.22-hqfe2rxg4wmozga5lubfbnqvt7zijzxp/lib/libhdf5.so.10.4.0 /usr/WS1/radiuss/install/radiuss-stack/_
             _spack_path_placeholder__/__spack_path_placeholder__/__spack_path_placeholder__/__/linux-rhel7-broadwell/clang-10.0.0/conduit-0.7.2-f7z4ge6jtyoaubo45pzst
             qy2kn6bsdbq/lib/libconduit_blueprint_mpi.so /usr/WS1/radiuss/install/radiuss-stack/__spack_path_placeholder__/__spack_path_placeholder__/__spack_path_pla
             ceholder__/__/linux-rhel7-broadwell/clang-10.0.0/conduit-0.7.2-f7z4ge6jtyoaubo45pzstqy2kn6bsdbq/lib/libconduit_blueprint.so /usr/WS1/radiuss/install/radi
             uss-stack/__spack_path_placeholder__/__spack_path_placeholder__/__spack_path_placeholder__/__/linux-rhel7-broadwell/clang-10.0.0/conduit-0.7.2-f7z4ge6jty
             oaubo45pzstqy2kn6bsdbq/lib/libconduit_relay_mpi.so /usr/WS1/radiuss/install/radiuss-stack/__spack_path_placeholder__/__spack_path_placeholder__/__spack_p
             ath_placeholder__/__/linux-rhel7-broadwell/clang-10.0.0/conduit-0.7.2-f7z4ge6jtyoaubo45pzstqy2kn6bsdbq/lib/libconduit.so /usr/tce/packages/openmpi/openmp
             i-3.0.1-clang-10.0.0/lib/libmpi.so /usr/tce/packages/openmpi/openmpi-3.0.1-clang-10.0.0/lib/libmpi_cxx.so /usr/workspace/radiuss/install/radiuss-stack/__
             spack_path_placeholder__/__spack_path_placeholder__/__spack_path_placeholder__/__/linux-rhel7-broadwell/clang-10.0.0/raja-0.13.0-cmofls3lcigf4sd7yycagk6o
             5tu3fsna/lib/libRAJA.so /usr/workspace/radiuss/install/radiuss-stack/__spack_path_placeholder__/__spack_path_placeholder__/__spack_path_placeholder__/__/
             linux-rhel7-broadwell/clang-10.0.0/umpire-4.1.2-alnhifu3kozrhfmnrfu4cogk5oieoqig/lib/libumpire.so -ldl /usr/WS1/radiuss/install/radiuss-stack/__spack_pat
             h_placeholder__/__spack_path_placeholder__/__spack_path_placeholder__/__/linux-rhel7-broadwell/clang-10.0.0/lua-5.3.5-djzfhluw2p2od3kxo3m6b4gkx36vd2yp/li
             b/liblua.so
     1092    /usr/bin/ld: warning: libgfortran.so.3, needed by /usr/tce/packages/openmpi/openmpi-3.0.1-clang-10.0.0/lib/libmpi_usempi.so, may conflict with libgfortra
             n.so.5
     1093    /usr/tce/packages/cmake/cmake-3.18.0/bin/cmake -E touch axom/quest/examples/CMakeFiles/quest_signed_distance_interface_F_ex.dir/quest_signed_distance_int
             erface.F.o.provides.build
  >> 1094    /usr/bin/ld: cannot find -lgtest
  >> 1095    clang-10: error: linker command failed with exit code 1 (use -v to see invocation)
  >> 1096    make[2]: *** [examples/spio_IORead_ex] Error 1
     1097    make[2]: Leaving directory `/tmp/bernede1/spack-stage/spack-stage-axom-develop-rdvr5fyvofh7vc2bdpnog2b7xb4azxvn/spack-build-rdvr5fy'
  >> 1098    make[1]: *** [axom/sidre/examples/spio/CMakeFiles/spio_IORead_ex.dir/all] Error 2
     1099    make[1]: *** Waiting for unfinished jobs....
     1100    make[2]: Leaving directory `/tmp/bernede1/spack-stage/spack-stage-axom-develop-rdvr5fyvofh7vc2bdpnog2b7xb4azxvn/spack-build-rdvr5fy'
white238 commented 3 years ago

This generally happens when we don't properly guard a test with AXOM_ENABLE_TESTS but this is an example that doesn't depend on gtest so I am a bit confused. Still looking into it.

Can you send me the entire log? Due to parallelism I don't think this is the executable that is causing the error.