I'm now just using your dockerfile (thanks for the tips on it), and I am trying to install deal.ii at the end.
Adding this to the end of it:
RUN apt update && apt install -y libblas-dev liblapack-dev
WORKDIR /opt
ENV DEALII_VERSION 9.5.1
RUN gunzip -c dealii-$DEALII_VERSION.tar.gz | tar -xof -
ENV DEALII_DIR /opt/dealii-$DEALII_VERSION
WORKDIR $DEALII_DIR
RUN pwd
RUN mkdir build
RUN mkdir dealii_installed
WORKDIR $DEALII_DIR/build
RUN cmake $DEALII_DIR -DCMAKE_INSTALL_PREFIX=opt/dealii_installed \
-DCMAKE_CXX_COMPILER=clang++ \
-DDEAL_II_WITH_TBB=ON \
-DDEAL_II_WITH_MPI=ON \
-DDEAL_II_MPI_WITH_DEVICE_SUPPORT=ON \
-DDEAL_II_WITH_LAPACK=ON \
-DDEAL_II_WITH_BLAS=ON \
-DDEAL_II_WITH_64BIT_INDICES=ON \
-DKOKKOS_DIR=$KOKKOS_DIR \
-DDEAL_II_WITH_CUDA=ON
gives the attached error, still saying the compiler and linker flags are the issue?
short version:
CMake Error at cmake/setup_finalize.cmake:126 (message):
Configuration error: Cannot compile a test program with the final set of
compiler and linker flags:
CXX flags (DEBUG): -openmp-simd -pthread -ffp-exception-behavior=strict -Og -ggdb -Wa,--compress-debug-sections
LD flags (DEBUG): -rdynamic -pthread -fopenmp=libomp -ggdb -Wl,--compress-debug-sections=zlib
LIBRARIES (DEBUG): dl;
Call Stack (most recent call first):
cmake/macros/macro_verbose_include.cmake:19 (include)
CMakeLists.txt:123 (verbose_include)
Thank you so much for all your help already,
Justin