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 wget --no-verbose https://www.dealii.org/downloads/dealii- $DEALII_VERSION.tar.gz 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 On Thursday, July 27, 2023 at 10:58:58 AM UTC-6 d.arnd...@gmail.com wrote: > Justin, > > a docker file that we are using in a different project can be found at > https://github.com/arborx/ArborX/blob/master/docker/Dockerfile in case > that helps. > In general, I would advise against using nvhpc/nvc++ which proves to be > pretty buggy as compared to nvcc/nvcc_wrapper or even (clang++ which is > another option for a compiler supporting CUDA). > Anyway, it seems the current configuration is using nvcc_wrapper. What > does the failing compile-line look like? What is the host compiler (I guess > g++ but which version)? > > Best, > Daniel > > On Thu, Jul 27, 2023 at 10:39 AM Justin O'Connor < > jul...@rams.colostate.edu> wrote: > >> Howdy! >> >> I'm working on making a Dockerfile that will let me use deal.ii with >> CUDA. However, when I run make install, I get the following error: >> >> Error: Internal Compiler Error (codegen): "casting aggregate to non-void >> type is not supported!" >> >> make[2]: *** [source/fe/CMakeFiles/object_fe_debug.dir/build.make:713: >> source/fe/CMakeFiles/object_fe_debug.dir/fe_values.cc.o] Error 2 >> make[2]: *** Waiting for unfinished jobs.... >> >> I'm hoping this is a known issue and I'm just doing something silly. Any >> pointers would be greatly appreciated. >> >> My Dockerfile is attached if that is of any use to anyone. >> >> Thank you, >> Justin >> >> -- >> The deal.II project is located at http://www.dealii.org/ >> For mailing list/forum options, see >> https://groups.google.com/d/forum/dealii?hl=en >> --- >> You received this message because you are subscribed to the Google Groups >> "deal.II User Group" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to dealii+un...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/dealii/34846fa5-7a9e-4417-80c9-af54792844a9n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/dealii/34846fa5-7a9e-4417-80c9-af54792844a9n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to dealii+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/9f992a9f-cd61-4768-a958-a26c0449588fn%40googlegroups.com.
[ 50%] Building CXX object CMakeFiles/CheckCompilerSetupExec.dir/dummy.cpp.o /opt/llvm/bin/clang++ -openmp-simd -pthread -ffp-exception-behavior=strict -Og -ggdb -Wa,--compress-debug-sections -extended-lambda -Wext-lambda-captures-this -arch=sm_70 -DKOKKOS_DEPENDENCE -MD -MT CMakeFiles/CheckCompilerSetupExec.dir/dummy.cpp.o -MF CMakeFiles/CheckCompilerSetupExec.dir/dummy.cpp.o.d -o CMakeFiles/CheckCompilerSetupExec.dir/dummy.cpp.o -c /opt/dealii-9.5.1/cmake/macros/check_compiler_setup/dummy.cpp clang-14: warning: -e xtended-lambda: 'linker' input unused [-Wunused-command-line-argument] clang-14: warning: argument unused during compilation: '-arch=sm_70' [-Wunused-command-line-argument] warning: unknown warning option '-Wext-lambda-captures-this'; did you mean '-Wunused-lambda-capture'? [-Wunknown-warning-option] PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script. Stack dump: 0. Program arguments: /opt/llvm/bin/clang++ -openmp-simd -pthread -ffp-exception-behavior=strict -Og -ggdb -Wa,--compress-debug-sections -extended-lambda -Wext-lambda-captures-this -arch=sm_70 -DKOKKOS_DEPENDENCE -MD -MT CMakeFiles/CheckCompilerSetupExec.dir/dummy.cpp.o -MF CMakeFiles/CheckCompilerSetupExec.dir/dummy.cpp.o.d -o CMakeFiles/CheckCompilerSetupExec.dir/dummy.cpp.o -c /opt/dealii-9.5.1/cmake/macros/check_compiler_setup/dummy.cpp 1. <eof> parser at end of file 2. Code generation #0 0x00000000027152c3 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/llvm/bin/clang+++0x27152c3) #1 0x000000000271321e llvm::sys::RunSignalHandlers() (/opt/llvm/bin/clang+++0x271321e) #2 0x000000000271476d llvm::sys::CleanupOnSignal(unsigned long) (/opt/llvm/bin/clang+++0x271476d) #3 0x000000000268a020 CrashRecoverySignalHandler(int) CrashRecoveryContext.cpp:0:0 #4 0x00007fb541cdc420 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x14420) #5 0x0000000000bbbde4 llvm::Error llvm::handleErrors<llvm::consumeError(llvm::Error)::'lambda'(llvm::ErrorInfoBase const&)>(llvm::Error, llvm::consumeError(llvm::Error)::'lambda'(llvm::ErrorInfoBase const&)&&) (/opt/llvm/bin/clang+++0xbbbde4) #6 0x0000000002412538 (anonymous namespace)::ELFWriter::writeObject(llvm::MCAssembler&, llvm::MCAsmLayout const&) ELFObjectWriter.cpp:0:0 #7 0x0000000002410e95 (anonymous namespace)::ELFSingleObjectWriter::writeObject(llvm::MCAssembler&, llvm::MCAsmLayout const&) ELFObjectWriter.cpp:0:0 #8 0x00000000023a69d8 llvm::MCAssembler::Finish() (/opt/llvm/bin/clang+++0x23a69d8) #9 0x00000000023c2f0d llvm::MCELFStreamer::finishImpl() (/opt/llvm/bin/clang+++0x23c2f0d) #10 0x000000000321eb34 llvm::AsmPrinter::doFinalization(llvm::Module&) (/opt/llvm/bin/clang+++0x321eb34) #11 0x000000000200a901 llvm::FPPassManager::doFinalization(llvm::Module&) (/opt/llvm/bin/clang+++0x200a901) #12 0x0000000002004ba1 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/opt/llvm/bin/clang+++0x2004ba1) #13 0x000000000295f15d clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream> >) (/opt/llvm/bin/clang+++0x295f15d) #14 0x00000000034bd94c clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/opt/llvm/bin/clang+++0x34bd94c) #15 0x0000000004102814 clang::ParseAST(clang::Sema&, bool, bool) (/opt/llvm/bin/clang+++0x4102814) #16 0x0000000002f4d989 clang::FrontendAction::Execute() (/opt/llvm/bin/clang+++0x2f4d989) #17 0x0000000002ecac96 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/opt/llvm/bin/clang+++0x2ecac96) #18 0x0000000002ffe83b clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/opt/llvm/bin/clang+++0x2ffe83b) #19 0x0000000000a1a452 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/opt/llvm/bin/clang+++0xa1a452) #20 0x0000000000a187fb ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&) driver.cpp:0:0 #21 0x0000000002d6c032 void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, bool*) const::$_1>(long) Job.cpp:0:0 #22 0x0000000002689dcd llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/opt/llvm/bin/clang+++0x2689dcd) #23 0x0000000002d6bca5 clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, bool*) const (/opt/llvm/bin/clang+++0x2d6bca5) #24 0x0000000002d39f6d clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/opt/llvm/bin/clang+++0x2d39f6d) #25 0x0000000002d3a1b7 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const (/opt/llvm/bin/clang+++0x2d3a1b7) #26 0x0000000002d518d8 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) (/opt/llvm/bin/clang+++0x2d518d8) #27 0x0000000000a17f6c main (/opt/llvm/bin/clang+++0xa17f6c) #28 0x00007fb54179c083 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x24083) #29 0x0000000000a1562a _start (/opt/llvm/bin/clang+++0xa1562a) clang-14: error: clang frontend command failed with exit code 139 (use -v to see invocation) clang version 14.0.0 Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /opt/llvm/bin clang-14: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang-14: note: diagnostic msg: /tmp/dummy-a8c5c9.cpp clang-14: note: diagnostic msg: /tmp/dummy-a8c5c9.sh clang-14: note: diagnostic msg: ******************** make[2]: *** [CMakeFiles/CheckCompilerSetupExec.dir/build.make:79: CMakeFiles/CheckCompilerSetupExec.dir/dummy.cpp.o] Error 139 make[2]: Leaving directory '/opt/dealii-9.5.1/build/check_compiler_setup/DEAL_II_HAVE_USABLE_FLAGS_DEBUG' make[1]: *** [CMakeFiles/Makefile2:86: CMakeFiles/CheckCompilerSetupExec.dir/all] Error 2 make[1]: Leaving directory '/opt/dealii-9.5.1/build/check_compiler_setup/DEAL_II_HAVE_USABLE_FLAGS_DEBUG' make: *** [Makefile:94: all] Error 2 -- Unable to compile a simple test program. Trying to drop "-fuse-ld=lld" from the linker flags. -- Performing Test DEAL_II_HAVE_USABLE_FLAGS_DEBUG -- Performing Test DEAL_II_HAVE_USABLE_FLAGS_DEBUG - Failed -- Compiler output: Change Dir: /opt/dealii-9.5.1/build/check_compiler_setup/DEAL_II_HAVE_USABLE_FLAGS_DEBUG Run Build Command(s):/opt/cmake/bin/cmake -E env VERBOSE=1 /usr/bin/make -f Makefile && /opt/cmake/bin/cmake -S/opt/dealii-9.5.1/cmake/macros/check_compiler_setup -B/opt/dealii-9.5.1/build/check_compiler_setup/DEAL_II_HAVE_USABLE_FLAGS_DEBUG --check-build-system CMakeFiles/Makefile.cmake 0 /opt/cmake/bin/cmake -E cmake_progress_start /opt/dealii-9.5.1/build/check_compiler_setup/DEAL_II_HAVE_USABLE_FLAGS_DEBUG/CMakeFiles /opt/dealii-9.5.1/build/check_compiler_setup/DEAL_II_HAVE_USABLE_FLAGS_DEBUG//CMakeFiles/progress.marks /usr/bin/make -f CMakeFiles/Makefile2 all make[1]: Entering directory '/opt/dealii-9.5.1/build/check_compiler_setup/DEAL_II_HAVE_USABLE_FLAGS_DEBUG' /usr/bin/make -f CMakeFiles/CheckCompilerSetupExec.dir/build.make CMakeFiles/CheckCompilerSetupExec.dir/depend make[2]: Entering directory '/opt/dealii-9.5.1/build/check_compiler_setup/DEAL_II_HAVE_USABLE_FLAGS_DEBUG' cd /opt/dealii-9.5.1/build/check_compiler_setup/DEAL_II_HAVE_USABLE_FLAGS_DEBUG && /opt/cmake/bin/cmake -E cmake_depends "Unix Makefiles" /opt/dealii-9.5.1/cmake/macros/check_compiler_setup /opt/dealii-9.5.1/cmake/macros/check_compiler_setup /opt/dealii-9.5.1/build/check_compiler_setup/DEAL_II_HAVE_USABLE_FLAGS_DEBUG /opt/dealii-9.5.1/build/check_compiler_setup/DEAL_II_HAVE_USABLE_FLAGS_DEBUG /opt/dealii-9.5.1/build/check_compiler_setup/DEAL_II_HAVE_USABLE_FLAGS_DEBUG/CMakeFiles/CheckCompilerSetupExec.dir/DependInfo.cmake make[2]: Leaving directory '/opt/dealii-9.5.1/build/check_compiler_setup/DEAL_II_HAVE_USABLE_FLAGS_DEBUG' /usr/bin/make -f CMakeFiles/CheckCompilerSetupExec.dir/build.make CMakeFiles/CheckCompilerSetupExec.dir/build make[2]: Entering directory '/opt/dealii-9.5.1/build/check_compiler_setup/DEAL_II_HAVE_USABLE_FLAGS_DEBUG' [ 50%] Building CXX object CMakeFiles/CheckCompilerSetupExec.dir/dummy.cpp.o /opt/llvm/bin/clang++ -openmp-simd -pthread -ffp-exception-behavior=strict -Og -ggdb -Wa,--compress-debug-sections -extended-lambda -Wext-lambda-captures-this -arch=sm_70 -DKOKKOS_DEPENDENCE -MD -MT CMakeFiles/CheckCompilerSetupExec.dir/dummy.cpp.o -MF CMakeFiles/CheckCompilerSetupExec.dir/dummy.cpp.o.d -o CMakeFiles/CheckCompilerSetupExec.dir/dummy.cpp.o -c /opt/dealii-9.5.1/cmake/macros/check_compiler_setup/dummy.cpp clang-14: warning: -e xtended-lambda: 'linker' input unused [-Wunused-command-line-argument] clang-14: warning: argument unused during compilation: '-arch=sm_70' [-Wunused-command-line-argument] warning: unknown warning option '-Wext-lambda-captures-this'; did you mean '-Wunused-lambda-capture'? [-Wunknown-warning-option] PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script. Stack dump: 0. Program arguments: /opt/llvm/bin/clang++ -openmp-simd -pthread -ffp-exception-behavior=strict -Og -ggdb -Wa,--compress-debug-sections -extended-lambda -Wext-lambda-captures-this -arch=sm_70 -DKOKKOS_DEPENDENCE -MD -MT CMakeFiles/CheckCompilerSetupExec.dir/dummy.cpp.o -MF CMakeFiles/CheckCompilerSetupExec.dir/dummy.cpp.o.d -o CMakeFiles/CheckCompilerSetupExec.dir/dummy.cpp.o -c /opt/dealii-9.5.1/cmake/macros/check_compiler_setup/dummy.cpp 1. <eof> parser at end of file 2. Code generation #0 0x00000000027152c3 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/llvm/bin/clang+++0x27152c3) #1 0x000000000271321e llvm::sys::RunSignalHandlers() (/opt/llvm/bin/clang+++0x271321e) #2 0x000000000271476d llvm::sys::CleanupOnSignal(unsigned long) (/opt/llvm/bin/clang+++0x271476d) #3 0x000000000268a020 CrashRecoverySignalHandler(int) CrashRecoveryContext.cpp:0:0 #4 0x00007f235d59b420 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x14420) #5 0x0000000000bbbde4 llvm::Error llvm::handleErrors<llvm::consumeError(llvm::Error)::'lambda'(llvm::ErrorInfoBase const&)>(llvm::Error, llvm::consumeError(llvm::Error)::'lambda'(llvm::ErrorInfoBase const&)&&) (/opt/llvm/bin/clang+++0xbbbde4) #6 0x0000000002412538 (anonymous namespace)::ELFWriter::writeObject(llvm::MCAssembler&, llvm::MCAsmLayout const&) ELFObjectWriter.cpp:0:0 #7 0x0000000002410e95 (anonymous namespace)::ELFSingleObjectWriter::writeObject(llvm::MCAssembler&, llvm::MCAsmLayout const&) ELFObjectWriter.cpp:0:0 #8 0x00000000023a69d8 llvm::MCAssembler::Finish() (/opt/llvm/bin/clang+++0x23a69d8) #9 0x00000000023c2f0d llvm::MCELFStreamer::finishImpl() (/opt/llvm/bin/clang+++0x23c2f0d) #10 0x000000000321eb34 llvm::AsmPrinter::doFinalization(llvm::Module&) (/opt/llvm/bin/clang+++0x321eb34) #11 0x000000000200a901 llvm::FPPassManager::doFinalization(llvm::Module&) (/opt/llvm/bin/clang+++0x200a901) #12 0x0000000002004ba1 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/opt/llvm/bin/clang+++0x2004ba1) #13 0x000000000295f15d clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream> >) (/opt/llvm/bin/clang+++0x295f15d) #14 0x00000000034bd94c clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/opt/llvm/bin/clang+++0x34bd94c) #15 0x0000000004102814 clang::ParseAST(clang::Sema&, bool, bool) (/opt/llvm/bin/clang+++0x4102814) #16 0x0000000002f4d989 clang::FrontendAction::Execute() (/opt/llvm/bin/clang+++0x2f4d989) #17 0x0000000002ecac96 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/opt/llvm/bin/clang+++0x2ecac96) #18 0x0000000002ffe83b clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/opt/llvm/bin/clang+++0x2ffe83b) #19 0x0000000000a1a452 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/opt/llvm/bin/clang+++0xa1a452) #20 0x0000000000a187fb ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&) driver.cpp:0:0 #21 0x0000000002d6c032 void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, bool*) const::$_1>(long) Job.cpp:0:0 #22 0x0000000002689dcd llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/opt/llvm/bin/clang+++0x2689dcd) #23 0x0000000002d6bca5 clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, bool*) const (/opt/llvm/bin/clang+++0x2d6bca5) #24 0x0000000002d39f6d clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/opt/llvm/bin/clang+++0x2d39f6d) #25 0x0000000002d3a1b7 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const (/opt/llvm/bin/clang+++0x2d3a1b7) #26 0x0000000002d518d8 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) (/opt/llvm/bin/clang+++0x2d518d8) #27 0x0000000000a17f6c main (/opt/llvm/bin/clang+++0xa17f6c) #28 0x00007f235d05b083 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x24083) #29 0x0000000000a1562a _start (/opt/llvm/bin/clang+++0xa1562a) clang-14: error: clang frontend command failed with exit code 139 (use -v to see invocation) clang version 14.0.0 Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /opt/llvm/bin clang-14: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang-14: note: diagnostic msg: /tmp/dummy-72083a.cpp clang-14: note: diagnostic msg: /tmp/dummy-72083a.sh clang-14: note: diagnostic msg: ******************** make[2]: *** [CMakeFiles/CheckCompilerSetupExec.dir/build.make:79: CMakeFiles/CheckCompilerSetupExec.dir/dummy.cpp.o] Error 139 make[2]: Leaving directory '/opt/dealii-9.5.1/build/check_compiler_setup/DEAL_II_HAVE_USABLE_FLAGS_DEBUG' make[1]: *** [CMakeFiles/Makefile2:86: CMakeFiles/CheckCompilerSetupExec.dir/all] Error 2 make[1]: Leaving directory '/opt/dealii-9.5.1/build/check_compiler_setup/DEAL_II_HAVE_USABLE_FLAGS_DEBUG' make: *** [Makefile:94: all] Error 2 -- Unable to compile a simple test program. Trying to drop "-fuse-ld=gold" from the linker flags. -- Performing Test DEAL_II_HAVE_USABLE_FLAGS_DEBUG -- Performing Test DEAL_II_HAVE_USABLE_FLAGS_DEBUG - Failed -- Compiler output: Change Dir: /opt/dealii-9.5.1/build/check_compiler_setup/DEAL_II_HAVE_USABLE_FLAGS_DEBUG Run Build Command(s):/opt/cmake/bin/cmake -E env VERBOSE=1 /usr/bin/make -f Makefile && /opt/cmake/bin/cmake -S/opt/dealii-9.5.1/cmake/macros/check_compiler_setup -B/opt/dealii-9.5.1/build/check_compiler_setup/DEAL_II_HAVE_USABLE_FLAGS_DEBUG --check-build-system CMakeFiles/Makefile.cmake 0 /opt/cmake/bin/cmake -E cmake_progress_start /opt/dealii-9.5.1/build/check_compiler_setup/DEAL_II_HAVE_USABLE_FLAGS_DEBUG/CMakeFiles /opt/dealii-9.5.1/build/check_compiler_setup/DEAL_II_HAVE_USABLE_FLAGS_DEBUG//CMakeFiles/progress.marks /usr/bin/make -f CMakeFiles/Makefile2 all make[1]: Entering directory '/opt/dealii-9.5.1/build/check_compiler_setup/DEAL_II_HAVE_USABLE_FLAGS_DEBUG' /usr/bin/make -f CMakeFiles/CheckCompilerSetupExec.dir/build.make CMakeFiles/CheckCompilerSetupExec.dir/depend make[2]: Entering directory '/opt/dealii-9.5.1/build/check_compiler_setup/DEAL_II_HAVE_USABLE_FLAGS_DEBUG' cd /opt/dealii-9.5.1/build/check_compiler_setup/DEAL_II_HAVE_USABLE_FLAGS_DEBUG && /opt/cmake/bin/cmake -E cmake_depends "Unix Makefiles" /opt/dealii-9.5.1/cmake/macros/check_compiler_setup /opt/dealii-9.5.1/cmake/macros/check_compiler_setup /opt/dealii-9.5.1/build/check_compiler_setup/DEAL_II_HAVE_USABLE_FLAGS_DEBUG /opt/dealii-9.5.1/build/check_compiler_setup/DEAL_II_HAVE_USABLE_FLAGS_DEBUG /opt/dealii-9.5.1/build/check_compiler_setup/DEAL_II_HAVE_USABLE_FLAGS_DEBUG/CMakeFiles/CheckCompilerSetupExec.dir/DependInfo.cmake make[2]: Leaving directory '/opt/dealii-9.5.1/build/check_compiler_setup/DEAL_II_HAVE_USABLE_FLAGS_DEBUG' /usr/bin/make -f CMakeFiles/CheckCompilerSetupExec.dir/build.make CMakeFiles/CheckCompilerSetupExec.dir/build make[2]: Entering directory '/opt/dealii-9.5.1/build/check_compiler_setup/DEAL_II_HAVE_USABLE_FLAGS_DEBUG' [ 50%] Building CXX object CMakeFiles/CheckCompilerSetupExec.dir/dummy.cpp.o /opt/llvm/bin/clang++ -openmp-simd -pthread -ffp-exception-behavior=strict -Og -ggdb -Wa,--compress-debug-sections -extended-lambda -Wext-lambda-captures-this -arch=sm_70 -DKOKKOS_DEPENDENCE -MD -MT CMakeFiles/CheckCompilerSetupExec.dir/dummy.cpp.o -MF CMakeFiles/CheckCompilerSetupExec.dir/dummy.cpp.o.d -o CMakeFiles/CheckCompilerSetupExec.dir/dummy.cpp.o -c /opt/dealii-9.5.1/cmake/macros/check_compiler_setup/dummy.cpp clang-14: warning: -e xtended-lambda: 'linker' input unused [-Wunused-command-line-argument] clang-14: warning: argument unused during compilation: '-arch=sm_70' [-Wunused-command-line-argument] warning: unknown warning option '-Wext-lambda-captures-this'; did you mean '-Wunused-lambda-capture'? [-Wunknown-warning-option] PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script. Stack dump: 0. Program arguments: /opt/llvm/bin/clang++ -openmp-simd -pthread -ffp-exception-behavior=strict -Og -ggdb -Wa,--compress-debug-sections -extended-lambda -Wext-lambda-captures-this -arch=sm_70 -DKOKKOS_DEPENDENCE -MD -MT CMakeFiles/CheckCompilerSetupExec.dir/dummy.cpp.o -MF CMakeFiles/CheckCompilerSetupExec.dir/dummy.cpp.o.d -o CMakeFiles/CheckCompilerSetupExec.dir/dummy.cpp.o -c /opt/dealii-9.5.1/cmake/macros/check_compiler_setup/dummy.cpp 1. <eof> parser at end of file 2. Code generation #0 0x00000000027152c3 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/llvm/bin/clang+++0x27152c3) #1 0x000000000271321e llvm::sys::RunSignalHandlers() (/opt/llvm/bin/clang+++0x271321e) #2 0x000000000271476d llvm::sys::CleanupOnSignal(unsigned long) (/opt/llvm/bin/clang+++0x271476d) #3 0x000000000268a020 CrashRecoverySignalHandler(int) CrashRecoveryContext.cpp:0:0 #4 0x00007f5f9b679420 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x14420) #5 0x0000000000bbbde4 llvm::Error llvm::handleErrors<llvm::consumeError(llvm::Error)::'lambda'(llvm::ErrorInfoBase const&)>(llvm::Error, llvm::consumeError(llvm::Error)::'lambda'(llvm::ErrorInfoBase const&)&&) (/opt/llvm/bin/clang+++0xbbbde4) #6 0x0000000002412538 (anonymous namespace)::ELFWriter::writeObject(llvm::MCAssembler&, llvm::MCAsmLayout const&) ELFObjectWriter.cpp:0:0 #7 0x0000000002410e95 (anonymous namespace)::ELFSingleObjectWriter::writeObject(llvm::MCAssembler&, llvm::MCAsmLayout const&) ELFObjectWriter.cpp:0:0 #8 0x00000000023a69d8 llvm::MCAssembler::Finish() (/opt/llvm/bin/clang+++0x23a69d8) #9 0x00000000023c2f0d llvm::MCELFStreamer::finishImpl() (/opt/llvm/bin/clang+++0x23c2f0d) #10 0x000000000321eb34 llvm::AsmPrinter::doFinalization(llvm::Module&) (/opt/llvm/bin/clang+++0x321eb34) #11 0x000000000200a901 llvm::FPPassManager::doFinalization(llvm::Module&) (/opt/llvm/bin/clang+++0x200a901) #12 0x0000000002004ba1 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/opt/llvm/bin/clang+++0x2004ba1) #13 0x000000000295f15d clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream> >) (/opt/llvm/bin/clang+++0x295f15d) #14 0x00000000034bd94c clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/opt/llvm/bin/clang+++0x34bd94c) #15 0x0000000004102814 clang::ParseAST(clang::Sema&, bool, bool) (/opt/llvm/bin/clang+++0x4102814) #16 0x0000000002f4d989 clang::FrontendAction::Execute() (/opt/llvm/bin/clang+++0x2f4d989) #17 0x0000000002ecac96 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/opt/llvm/bin/clang+++0x2ecac96) #18 0x0000000002ffe83b clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/opt/llvm/bin/clang+++0x2ffe83b) #19 0x0000000000a1a452 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/opt/llvm/bin/clang+++0xa1a452) #20 0x0000000000a187fb ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&) driver.cpp:0:0 #21 0x0000000002d6c032 void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, bool*) const::$_1>(long) Job.cpp:0:0 #22 0x0000000002689dcd llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/opt/llvm/bin/clang+++0x2689dcd) #23 0x0000000002d6bca5 clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, bool*) const (/opt/llvm/bin/clang+++0x2d6bca5) #24 0x0000000002d39f6d clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/opt/llvm/bin/clang+++0x2d39f6d) #25 0x0000000002d3a1b7 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const (/opt/llvm/bin/clang+++0x2d3a1b7) #26 0x0000000002d518d8 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) (/opt/llvm/bin/clang+++0x2d518d8) #27 0x0000000000a17f6c main (/opt/llvm/bin/clang+++0xa17f6c) #28 0x00007f5f9b139083 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x24083) #29 0x0000000000a1562a _start (/opt/llvm/bin/clang+++0xa1562a) clang-14: error: clang frontend command failed with exit code 139 (use -v to see invocation) clang version 14.0.0 Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /opt/llvm/bin clang-14: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang-14: note: diagnostic msg: /tmp/dummy-62424b.cpp clang-14: note: diagnostic msg: /tmp/dummy-62424b.sh clang-14: note: diagnostic msg: ******************** make[2]: *** [CMakeFiles/CheckCompilerSetupExec.dir/build.make:79: CMakeFiles/CheckCompilerSetupExec.dir/dummy.cpp.o] Error 139 make[2]: Leaving directory '/opt/dealii-9.5.1/build/check_compiler_setup/DEAL_II_HAVE_USABLE_FLAGS_DEBUG' make[1]: *** [CMakeFiles/Makefile2:86: CMakeFiles/CheckCompilerSetupExec.dir/all] Error 2 make[1]: Leaving directory '/opt/dealii-9.5.1/build/check_compiler_setup/DEAL_II_HAVE_USABLE_FLAGS_DEBUG' make: *** [Makefile:94: all] Error 2 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)