Open thomas-saigre opened 1 month ago
@thomas-saigre I identified the root of the issue. The problem isn’t within Feel++ itself but in the Spack libzip package. By default, libzip enables support for several libraries, but it doesn’t explicitly set openssl as a dependency. As a result, libzip finds and links to the openssl version on the host system. Since Feel++ also links to openssl via Spack, this mismatch in openssl versions leads to the linking conflicts we’re seeing.
@thomas-saigre see feelpp/spack#7 for more details
this is related to #6
checkout spack/spack#47230
@prudhomm Compiling
mor
directory inside the spack environment fails :Log
``` [ 80%] Linking CXX executable feelpp_mor_onlinerun cd /nvme0/saigre/feelpp/build/feelpp-clang-cpp20-spack-cpu-release/mor/apps && /data/cemosis/spack/opt/spack/linux-ubuntu22.04-zen2/gcc-14.1.0/cmake-3.30.2-iz7352daipnhyg3fyz5m5dyozrw2mvek/bin/cmake -E cmake_link_script CMakeFiles/feelpp_mor_onlinerun.dir/link.txt --verbose=1 /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/bin/clang++ -O3 -DNDEBUG -Wl,-rpath,/data/cemosis/spack/opt/spack/linux-ubuntu22.04-zen2/gcc-12.3.0/gcc-14.1.0-mosvjcfacfem6zb4lvnodoxqajraggii/lib/gcc/x86_64-pc-linux-gnu/14.1.0 -Wl,-rpath,/data/cemosis/spack/opt/spack/linux-ubuntu22.04-zen2/gcc-12.3.0/gcc-14.1.0-mosvjcfacfem6zb4lvnodoxqajraggii/lib64 -Wl,-rpath -Wl,/data/cemosis/spack/opt/spack/linux-ubuntu22.04-zen2/gcc-14.1.0/openmpi-4.1.6-xhez3j4e5z5tkmdpqlvvuuvxzgoyuivg/lib -Wl,-rpath -Wl,/data/cemosis/spack/opt/spack/linux-ubuntu22.04-zen2/gcc-14.1.0/hwloc-2.9.3-hs5dhsqs4fokes57snxfqp6kxq4yz2eb/lib -Wl,-rpath -Wl,/data/cemosis/spack/opt/spack/linux-ubuntu22.04-zen2/gcc-14.1.0/libevent-2.1.12-vgttyda2b33pyarmhs2guv7eaqqbcj3c/lib -L/data/cemosis/spack/opt/spack/linux-ubuntu22.04-zen2/gcc-14.1.0/openmpi-4.1.6-xhez3j4e5z5tkmdpqlvvuuvxzgoyuivg/lib -L/data/cemosis/spack/opt/spack/linux-ubuntu22.04-zen2/gcc-14.1.0/hwloc-2.9.3-hs5dhsqs4fokes57snxfqp6kxq4yz2eb/lib -L/data/cemosis/spack/opt/spack/linux-ubuntu22.04-zen2/gcc-14.1.0/libevent-2.1.12-vgttyda2b33pyarmhs2guv7eaqqbcj3c/lib -DKOKKOS_DEPENDENCE -march=znver2 -mtune=znver2 CMakeFiles/feelpp_mor_onlinerun.dir/crbonlinerun.cpp.o -o feelpp_mor_onlinerun -Wl,-rpath,/nvme0/saigre/feelpp/build/feelpp-clang-cpp20-spack-cpu-release/mor/mor/feel/feelmor:/nvme0/saigre/feelpp/build/feelpp-clang-cpp20-spack-cpu-release/feelpp/feel:/nvme0/saigre/feelpp/build/feelpp-clang-cpp20-spack-cpu-release/_deps/fmt-build:/data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/lib:/nvme0/saigre/feelpp/build/feelpp-clang-cpp20-spack-cpu-release/feelpp/contrib/ginac/ginac:/nvme0/saigre/feelpp/build/feelpp-clang-cpp20-spack-cpu-release/feelpp/contrib/nlopt:/nvme0/saigre/feelpp/build/feelpp-clang-cpp20-spack-cpu-release/feelpp/contrib/kwsys:/nvme0/saigre/feelpp/build/feelpp-clang-cpp20-spack-cpu-release/_deps/fmi4cpp-build/src:/nvme0/saigre/feelpp/build/feelpp-clang-cpp20-spack-cpu-release/lib:/nvme0/saigre/feelpp/build/feelpp-clang-cpp20-spack-cpu-release/feelpp/contrib/mmg/lib:/nvme0/saigre/feelpp/build/feelpp-clang-cpp20-spack-cpu-release/_deps/specx-build/Src:/data/cemosis/spack/opt/spack/linux-ubuntu22.04-zen2/gcc-14.1.0/hwloc-2.9.3-hs5dhsqs4fokes57snxfqp6kxq4yz2eb/lib:/data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/._view/7ludanwtcu326k67qz67ups733gvhfsm/lib:/data/cemosis/spack/opt/spack/linux-ubuntu22.04-zen3/gcc-14.1.0/petsc-3.20.6-wxtylcux4crrh2afihh4smmqjqag5u4z/lib:/data/cemosis/spack/opt/spack/linux-ubuntu22.04-zen2/gcc-14.1.0/libzip-1.10.1-t7kg6cg6zdyjquxr7rqlr64u74vw3eb3/lib: ../mor/feel/feelmor/libfeelpp_mor.so.1 ../../feelpp/feel/libfeelpp.so.1.0.0 ../../_deps/fmt-build/libfeelpp_fmt.so.7.1.3 -Wl,--as-needed /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/lib/libglog.so.0.7.1 /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/lib/libgflags.so.2.2.2 ../../feelpp/contrib/ginac/ginac/libfeelpp_ginac.so.6.0.1 -lcln ../../feelpp/contrib/nlopt/libfeelpp_nlopt.so.0.11.1 -lm ../../feelpp/contrib/kwsys/libfeelpp_kwsys.so.1.0.0 ../../_deps/fmi4cpp-build/src/libfeelpp_fmi4cpp.so ../../lib/libfeelpp_parmmg.so.1 /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/lib/libmetis.so ../../feelpp/contrib/mmg/lib/libfeelpp_mmg.so.5.6.0 /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/lib/libscotch.so /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/lib/libscotcherrexit.so -lz -lm -lrt -lm ../../feelpp/contrib/mmg/lib/libfeelpp_mmgs.so.5.6.0 ../../feelpp/contrib/mmg/lib/libfeelpp_mmg3d.so.5.6.0 ../../lib/libfeelpp_cpr.so.1.5.1 /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/lib/libcurl.so ../../_deps/specx-build/Src/libfeelpp_specx.so -lpthread /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/lib/libcurl.so /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/lib/libkokkoscontainers.so.4.4.1 /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/lib/libkokkoscore.so.4.4.1 /data/cemosis/spack/opt/spack/linux-ubuntu22.04-zen2/gcc-14.1.0/hwloc-2.9.3-hs5dhsqs4fokes57snxfqp6kxq4yz2eb/lib/libhwloc.so -ldl /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/lib/libkokkossimd.so.4.4.1 /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/lib/libhdf5.so.200.3.0 /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/._view/7ludanwtcu326k67qz67ups733gvhfsm/lib/libboost_date_time.so.1.86.0 /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/._view/7ludanwtcu326k67qz67ups733gvhfsm/lib/libboost_filesystem.so.1.86.0 /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/._view/7ludanwtcu326k67qz67ups733gvhfsm/lib/libboost_atomic.so.1.86.0 /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/._view/7ludanwtcu326k67qz67ups733gvhfsm/lib/libboost_system.so.1.86.0 /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/._view/7ludanwtcu326k67qz67ups733gvhfsm/lib/libboost_program_options.so.1.86.0 /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/._view/7ludanwtcu326k67qz67ups733gvhfsm/lib/libboost_unit_test_framework.so.1.86.0 /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/._view/7ludanwtcu326k67qz67ups733gvhfsm/lib/libboost_mpi.so.1.86.0 /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/lib/libmpi.so /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/._view/7ludanwtcu326k67qz67ups733gvhfsm/lib/libboost_regex.so.1.86.0 /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/._view/7ludanwtcu326k67qz67ups733gvhfsm/lib/libboost_serialization.so.1.86.0 /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/._view/7ludanwtcu326k67qz67ups733gvhfsm/lib/libboost_iostreams.so.1.86.0 /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/lib/libfftw3.so /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/lib/libfftw3_mpi.so /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/lib/libfftw3f.so /usr/lib/x86_64-linux-gnu/libfftw3l.so /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/lib/libglpk.so /data/cemosis/spack/opt/spack/linux-ubuntu22.04-zen3/gcc-14.1.0/petsc-3.20.6-wxtylcux4crrh2afihh4smmqjqag5u4z/lib/libpetsc.so /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/lib/libslepc.so /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/lib/libgsl.so /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/lib/libgslcblas.so /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/lib/libgl2ps.so /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/lib/libGL.so /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/lib/libgmsh.so /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/lib/libxml2.so /data/cemosis/spack/opt/spack/linux-ubuntu22.04-zen2/gcc-14.1.0/libzip-1.10.1-t7kg6cg6zdyjquxr7rqlr64u74vw3eb3/lib/libzip.so -Wl,-rpath-link,/data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/lib /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/bin/ld: /data/cemosis/spack/opt/spack/linux-ubuntu22.04-zen2/gcc-14.1.0/openssl-3.3.1-3jyzyzqhajx3gu5u4f4vcvmh2dmo6pzr/lib64/libssl.so.3: undefined reference to `BIO_recvmmsg@OPENSSL_3.2.0' /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/bin/ld: /data/cemosis/spack/opt/spack/linux-ubuntu22.04-zen2/gcc-14.1.0/openssl-3.3.1-3jyzyzqhajx3gu5u4f4vcvmh2dmo6pzr/lib64/libssl.so.3: undefined reference to `OPENSSL_LH_set_thunks@OPENSSL_3.3.0' /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/bin/ld: /data/cemosis/spack/opt/spack/linux-ubuntu22.04-zen2/gcc-14.1.0/openssl-3.3.1-3jyzyzqhajx3gu5u4f4vcvmh2dmo6pzr/lib64/libssl.so.3: undefined reference to `BIO_err_is_non_fatal@OPENSSL_3.2.0' /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/bin/ld: /data/cemosis/spack/opt/spack/linux-ubuntu22.04-zen2/gcc-14.1.0/openssl-3.3.1-3jyzyzqhajx3gu5u4f4vcvmh2dmo6pzr/lib64/libssl.so.3: undefined reference to `BIO_get_rpoll_descriptor@OPENSSL_3.2.0' /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/bin/ld: /data/cemosis/spack/opt/spack/linux-ubuntu22.04-zen2/gcc-14.1.0/openssl-3.3.1-3jyzyzqhajx3gu5u4f4vcvmh2dmo6pzr/lib64/libssl.so.3: undefined reference to `BIO_s_dgram_mem@OPENSSL_3.2.0' /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/bin/ld: /data/cemosis/spack/opt/spack/linux-ubuntu22.04-zen2/gcc-14.1.0/openssl-3.3.1-3jyzyzqhajx3gu5u4f4vcvmh2dmo6pzr/lib64/libssl.so.3: undefined reference to `BIO_f_zstd@OPENSSL_3.2.0' /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/bin/ld: /data/cemosis/spack/opt/spack/linux-ubuntu22.04-zen2/gcc-14.1.0/openssl-3.3.1-3jyzyzqhajx3gu5u4f4vcvmh2dmo6pzr/lib64/libssl.so.3: undefined reference to `BIO_f_zlib@OPENSSL_3.0.0' /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/bin/ld: /data/cemosis/spack/opt/spack/linux-ubuntu22.04-zen2/gcc-14.1.0/openssl-3.3.1-3jyzyzqhajx3gu5u4f4vcvmh2dmo6pzr/lib64/libssl.so.3: undefined reference to `X509_STORE_CTX_init_rpk@OPENSSL_3.2.0' /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/bin/ld: /data/cemosis/spack/opt/spack/linux-ubuntu22.04-zen2/gcc-14.1.0/openssl-3.3.1-3jyzyzqhajx3gu5u4f4vcvmh2dmo6pzr/lib64/libssl.so.3: undefined reference to `COMP_brotli_oneshot@OPENSSL_3.2.0' /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/bin/ld: /data/cemosis/spack/opt/spack/linux-ubuntu22.04-zen2/gcc-14.1.0/openssl-3.3.1-3jyzyzqhajx3gu5u4f4vcvmh2dmo6pzr/lib64/libssl.so.3: undefined reference to `OSSL_ERR_STATE_free@OPENSSL_3.2.0' /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/bin/ld: /data/cemosis/spack/opt/spack/linux-ubuntu22.04-zen2/gcc-14.1.0/openssl-3.3.1-3jyzyzqhajx3gu5u4f4vcvmh2dmo6pzr/lib64/libssl.so.3: undefined reference to `OSSL_ERR_STATE_save_to_mark@OPENSSL_3.2.0' /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/bin/ld: /data/cemosis/spack/opt/spack/linux-ubuntu22.04-zen2/gcc-14.1.0/openssl-3.3.1-3jyzyzqhajx3gu5u4f4vcvmh2dmo6pzr/lib64/libssl.so.3: undefined reference to `OSSL_ERR_STATE_save@OPENSSL_3.2.0' /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/bin/ld: /data/cemosis/spack/opt/spack/linux-ubuntu22.04-zen2/gcc-14.1.0/openssl-3.3.1-3jyzyzqhajx3gu5u4f4vcvmh2dmo6pzr/lib64/libssl.so.3: undefined reference to `BIO_f_brotli@OPENSSL_3.2.0' /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/bin/ld: /data/cemosis/spack/opt/spack/linux-ubuntu22.04-zen2/gcc-14.1.0/openssl-3.3.1-3jyzyzqhajx3gu5u4f4vcvmh2dmo6pzr/lib64/libssl.so.3: undefined reference to `COMP_zlib_oneshot@OPENSSL_3.2.0' /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/bin/ld: /data/cemosis/spack/opt/spack/linux-ubuntu22.04-zen2/gcc-14.1.0/openssl-3.3.1-3jyzyzqhajx3gu5u4f4vcvmh2dmo6pzr/lib64/libssl.so.3: undefined reference to `COMP_zstd_oneshot@OPENSSL_3.2.0' /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/bin/ld: /data/cemosis/spack/opt/spack/linux-ubuntu22.04-zen2/gcc-14.1.0/openssl-3.3.1-3jyzyzqhajx3gu5u4f4vcvmh2dmo6pzr/lib64/libssl.so.3: undefined reference to `BIO_get_wpoll_descriptor@OPENSSL_3.2.0' /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/bin/ld: /data/cemosis/spack/opt/spack/linux-ubuntu22.04-zen2/gcc-14.1.0/openssl-3.3.1-3jyzyzqhajx3gu5u4f4vcvmh2dmo6pzr/lib64/libssl.so.3: undefined reference to `OSSL_ERR_STATE_new@OPENSSL_3.2.0' /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/bin/ld: /data/cemosis/spack/opt/spack/linux-ubuntu22.04-zen2/gcc-14.1.0/openssl-3.3.1-3jyzyzqhajx3gu5u4f4vcvmh2dmo6pzr/lib64/libssl.so.3: undefined reference to `OSSL_ERR_STATE_restore@OPENSSL_3.2.0' /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/bin/ld: /data/cemosis/spack/opt/spack/linux-ubuntu22.04-zen2/gcc-14.1.0/openssl-3.3.1-3jyzyzqhajx3gu5u4f4vcvmh2dmo6pzr/lib64/libssl.so.3: undefined reference to `BIO_sendmmsg@OPENSSL_3.2.0' /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/bin/ld: /data/cemosis/spack/opt/spack/linux-ubuntu22.04-zen2/gcc-14.1.0/openssl-3.3.1-3jyzyzqhajx3gu5u4f4vcvmh2dmo6pzr/lib64/libssl.so.3: undefined reference to `OSSL_STACK_OF_X509_free@OPENSSL_3.2.0' /data/cemosis/spack/var/spack/environments/feelpp-openmpi4/.spack-env/view/bin/ld: /data/cemosis/spack/opt/spack/linux-ubuntu22.04-zen2/gcc-14.1.0/openssl-3.3.1-3jyzyzqhajx3gu5u4f4vcvmh2dmo6pzr/lib64/libssl.so.3: undefined reference to `ERR_count_to_mark@OPENSSL_3.2.0' clang++: error: linker command failed with exit code 1 (use -v to see invocation) ```