Open
Description
Hi,
I am trying to build https://github.com/su2code/SU2 and it fails with the following error:
2025-01-02T09:05:19.2872100Z [189/1377] Compiling C++ object SU2_CFD/src/libSU2core.a.p/solvers_CEulerSolver.cpp.o
2025-01-02T09:05:21.1753230Z [190/1377] Compiling C++ object SU2_CFD/src/libSU2core.a.p/solvers_CFEM_DG_EulerSolver.cpp.o
2025-01-02T09:05:21.8344410Z [191/1377] Compiling C++ object SU2_CFD/src/libSU2core.a.p/solvers_CMeshSolver.cpp.o
2025-01-02T09:05:26.2952140Z [192/1377] Compiling C++ object SU2_CFD/src/libSU2core.a.p/solvers_CNEMOEulerSolver.cpp.o
2025-01-02T09:05:26.3679460Z FAILED: SU2_CFD/src/libSU2core.a.p/solvers_CNEMOEulerSolver.cpp.o
2025-01-02T09:05:26.4062790Z x86_64-apple-darwin13.4.0-clang++ -ISU2_CFD/src/libSU2core.a.p -ISU2_CFD/src -I../SU2_CFD/src -I../externals/CLI11 -I../externals/cgns/adf -I../externals/cgns/adfh -Iexternals/cgns -I../externals/cgns -Iexternals/cgns/hdf5 -I../externals/cgns/hdf5 -I../externals/metis/include -I../externals/metis/GKlib -I../externals/metis/libmetis -I../externals/parmetis/include -I../externals/parmetis/libparmetis -Iexternals/tecio -I../externals/tecio -Iexternals/tecio/teciompisrc -I../externals/tecio/teciompisrc -I../externals/mel -ICommon/src -I../Common/src -I$PREFIX/include -fcolor-diagnostics -std=c++11 -O3 -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -fmessage-length=0 -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/su2-8.1.0 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix -D_FORTIFY_SOURCE=2 -isystem $PREFIX/include -mmacosx-version-min=10.13 -mmacosx-version-min=10.13 -Wno-empty-body -Wno-ignored-qualifiers -Wno-unused-parameter -Wno-deprecated-declarations -Wno-error=cast-function-type -Wno-cast-function-type -Wno-error=missing-field-initializers -Wno-missing-field-initializers -Wno-non-virtual-dtor -DHAVE_CGNS -DNDEBUG -DHAVE_MPI -DHAVE_METIS -DHAVE_PARMETIS -DHAVE_TECIO -DTECIOMPI -DHAVE_BLAS -DHAVE_LAPACK -MD -MQ SU2_CFD/src/libSU2core.a.p/solvers_CNEMOEulerSolver.cpp.o -MF SU2_CFD/src/libSU2core.a.p/solvers_CNEMOEulerSolver.cpp.o.d -o SU2_CFD/src/libSU2core.a.p/solvers_CNEMOEulerSolver.cpp.o -c ../SU2_CFD/src/solvers/CNEMOEulerSolver.cpp
2025-01-02T09:05:26.5062820Z PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
2025-01-02T09:05:26.5163700Z Stack dump:
2025-01-02T09:05:26.5861250Z 0. Program arguments: x86_64-apple-darwin13.4.0-clang++ -ISU2_CFD/src/libSU2core.a.p -ISU2_CFD/src -I../SU2_CFD/src -I../externals/CLI11 -I../externals/cgns/adf -I../externals/cgns/adfh -Iexternals/cgns -I../externals/cgns -Iexternals/cgns/hdf5 -I../externals/cgns/hdf5 -I../externals/metis/include -I../externals/metis/GKlib -I../externals/metis/libmetis -I../externals/parmetis/include -I../externals/parmetis/libparmetis -Iexternals/tecio -I../externals/tecio -Iexternals/tecio/teciompisrc -I../externals/tecio/teciompisrc -I../externals/mel -ICommon/src -I../Common/src -I$PREFIX/include -fcolor-diagnostics -std=c++11 -O3 -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -fmessage-length=0 -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/su2-8.1.0 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix -D_FORTIFY_SOURCE=2 -isystem $PREFIX/include -mmacosx-version-min=10.13 -mmacosx-version-min=10.13 -Wno-empty-body -Wno-ignored-qualifiers -Wno-unused-parameter -Wno-deprecated-declarations -Wno-error=cast-function-type -Wno-cast-function-type -Wno-error=missing-field-initializers -Wno-missing-field-initializers -Wno-non-virtual-dtor -DHAVE_CGNS -DNDEBUG -DHAVE_MPI -DHAVE_METIS -DHAVE_PARMETIS -DHAVE_TECIO -DTECIOMPI -DHAVE_BLAS -DHAVE_LAPACK -MD -MQ SU2_CFD/src/libSU2core.a.p/solvers_CNEMOEulerSolver.cpp.o -MF SU2_CFD/src/libSU2core.a.p/solvers_CNEMOEulerSolver.cpp.o.d -o SU2_CFD/src/libSU2core.a.p/solvers_CNEMOEulerSolver.cpp.o -c ../SU2_CFD/src/solvers/CNEMOEulerSolver.cpp
2025-01-02T09:05:26.6177050Z 1. <eof> parser at end of file
2025-01-02T09:05:26.6783690Z 2. Code generation
2025-01-02T09:05:26.7178730Z 3. Running pass 'Function Pass Manager' on module '../SU2_CFD/src/solvers/CNEMOEulerSolver.cpp'.
2025-01-02T09:05:26.7893320Z 4. Running pass 'Two-Address instruction pass' on function '@_ZN16CNEMOEulerSolver12BC_Sym_PlaneEP9CGeometryPP7CSolverP9CNumericsS6_P7CConfigt'
2025-01-02T09:05:26.8214060Z #0 0x000000011d433b09 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) ($BUILD_PREFIX/lib/libLLVM.18.1.dylib+0x16bb09)
2025-01-02T09:05:26.8922980Z #1 0x000000011d4319a9 llvm::sys::RunSignalHandlers() ($BUILD_PREFIX/lib/libLLVM.18.1.dylib+0x1699a9)
2025-01-02T09:05:26.9285540Z #2 0x000000011d4330a2 llvm::sys::CleanupOnSignal(unsigned long) ($BUILD_PREFIX/lib/libLLVM.18.1.dylib+0x16b0a2)
2025-01-02T09:05:27.0288430Z #3 0x000000011d36e203 CrashRecoverySignalHandler(int) ($BUILD_PREFIX/lib/libLLVM.18.1.dylib+0xa6203)
2025-01-02T09:05:27.0460730Z #4 0x00007ff807db45ed (/usr/lib/system/libsystem_platform.dylib+0x7ff8004265ed)
2025-01-02T09:05:27.1464820Z #5 0x0000000000000400
2025-01-02T09:05:27.1931920Z #6 0x000000011db40030 (anonymous namespace)::TwoAddressInstructionPass::tryInstructionTransform(llvm::MachineInstrBundleIterator<llvm::MachineInstr, false>&, llvm::MachineInstrBundleIterator<llvm::MachineInstr, false>&, unsigned int, unsigned int, unsigned int&, bool) ($BUILD_PREFIX/lib/libLLVM.18.1.dylib+0x878030)
2025-01-02T09:05:27.2821550Z #7 0x000000011db3a07d (anonymous namespace)::TwoAddressInstructionPass::runOnMachineFunction(llvm::MachineFunction&) ($BUILD_PREFIX/lib/libLLVM.18.1.dylib+0x87207d)
2025-01-02T09:05:27.3676120Z #8 0x000000011d8a6310 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) ($BUILD_PREFIX/lib/libLLVM.18.1.dylib+0x5de310)
2025-01-02T09:05:27.4023900Z #9 0x000000011d5ba042 llvm::FPPassManager::runOnFunction(llvm::Function&) ($BUILD_PREFIX/lib/libLLVM.18.1.dylib+0x2f2042)
2025-01-02T09:05:27.4919710Z #10 0x000000011d5c1bb4 llvm::FPPassManager::runOnModule(llvm::Module&) ($BUILD_PREFIX/lib/libLLVM.18.1.dylib+0x2f9bb4)
2025-01-02T09:05:27.5140580Z #11 0x000000011d5badd9 llvm::legacy::PassManagerImpl::run(llvm::Module&) ($BUILD_PREFIX/lib/libLLVM.18.1.dylib+0x2f2dd9)
2025-01-02T09:05:27.6080560Z #12 0x000000011266a3f4 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>, std::__1::unique_ptr<llvm::raw_pwrite_stream, std::__1::default_delete<llvm::raw_pwrite_stream>>, clang::BackendConsumer*) ($BUILD_PREFIX/lib/libclang-cpp.18.1.dylib+0x14083f4)
2025-01-02T09:05:27.6233840Z #13 0x0000000112a49f9e clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) ($BUILD_PREFIX/lib/libclang-cpp.18.1.dylib+0x17e7f9e)
2025-01-02T09:05:27.6732560Z #14 0x00000001114318f6 clang::ParseAST(clang::Sema&, bool, bool) ($BUILD_PREFIX/lib/libclang-cpp.18.1.dylib+0x1cf8f6)
2025-01-02T09:05:27.7205750Z #15 0x00000001135e1808 clang::FrontendAction::Execute() ($BUILD_PREFIX/lib/libclang-cpp.18.1.dylib+0x237f808)
2025-01-02T09:05:27.7280600Z #16 0x000000011355ddd4 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) ($BUILD_PREFIX/lib/libclang-cpp.18.1.dylib+0x22fbdd4)
2025-01-02T09:05:27.7536870Z #17 0x0000000113666f83 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) ($BUILD_PREFIX/lib/libclang-cpp.18.1.dylib+0x2404f83)
2025-01-02T09:05:27.7802480Z #18 0x000000010cbcd1c1 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) ($BUILD_PREFIX/bin/clang-18+0x1000081c1)
2025-01-02T09:05:27.8224020Z #19 0x000000010cbca9db ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&) ($BUILD_PREFIX/bin/clang-18+0x1000059db)
2025-01-02T09:05:27.8305630Z #20 0x000000011317fc6e void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<std::__1::optional<llvm::StringRef>>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>*, bool*) const::$_0>(long) ($BUILD_PREFIX/lib/libclang-cpp.18.1.dylib+0x1f1dc6e)
2025-01-02T09:05:27.8547690Z #21 0x000000011d36df7c llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) ($BUILD_PREFIX/lib/libLLVM.18.1.dylib+0xa5f7c)
2025-01-02T09:05:27.8828150Z #22 0x000000011317f6a0 clang::driver::CC1Command::Execute(llvm::ArrayRef<std::__1::optional<llvm::StringRef>>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>*, bool*) const ($BUILD_PREFIX/lib/libclang-cpp.18.1.dylib+0x1f1d6a0)
2025-01-02T09:05:27.9237530Z #23 0x000000011313efb2 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const ($BUILD_PREFIX/lib/libclang-cpp.18.1.dylib+0x1edcfb2)
2025-01-02T09:05:27.9319600Z #24 0x000000011313f23f clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::__1::pair<int, clang::driver::Command const*>>&, bool) const ($BUILD_PREFIX/lib/libclang-cpp.18.1.dylib+0x1edd23f)
2025-01-02T09:05:27.9562100Z #25 0x00000001131604d0 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::__1::pair<int, clang::driver::Command const*>>&) ($BUILD_PREFIX/lib/libclang-cpp.18.1.dylib+0x1efe4d0)
2025-01-02T09:05:27.9838960Z #26 0x000000010cbc9cde clang_main(int, char**, llvm::ToolContext const&) ($BUILD_PREFIX/bin/clang-18+0x100004cde)
2025-01-02T09:05:28.0248530Z #27 0x000000010cbd8ca0 main ($BUILD_PREFIX/bin/clang-18+0x100013ca0)
2025-01-02T09:05:28.0331800Z #28 0x00007ff807a2c418
2025-01-02T09:05:28.0576680Z x86_64-apple-darwin13.4: error: clang frontend command failed with exit code 139 (use -v to see invocation)
2025-01-02T09:05:28.0864080Z clang version 18.1.8
2025-01-02T09:05:28.1279390Z Target: x86_64-apple-darwin13.4.0
2025-01-02T09:05:28.1344570Z Thread model: posix
2025-01-02T09:05:28.1584950Z InstalledDir: $BUILD_PREFIX/bin
2025-01-02T09:05:28.1878310Z x86_64-apple-darwin13.4: note: diagnostic msg:
2025-01-02T09:05:28.2291070Z ********************
2025-01-02T09:05:28.2358290Z
2025-01-02T09:05:28.2596410Z PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
2025-01-02T09:05:28.2887650Z Preprocessed source(s) and associated run script(s) are located at:
2025-01-02T09:05:28.3304550Z x86_64-apple-darwin13.4: note: diagnostic msg: /var/folders/9f/9p4dh6hs5yddrk7drxq8rc_80000gn/T/CNEMOEulerSolver-ed96b0.cpp
2025-01-02T09:05:28.3376460Z x86_64-apple-darwin13.4: note: diagnostic msg: /var/folders/9f/9p4dh6hs5yddrk7drxq8rc_80000gn/T/CNEMOEulerSolver-ed96b0.sh
2025-01-02T09:05:28.3607060Z x86_64-apple-darwin13.4: note: diagnostic msg: Crash backtrace is located in
2025-01-02T09:05:28.3901230Z x86_64-apple-darwin13.4: note: diagnostic msg: /Users/runner/Library/Logs/DiagnosticReports/clang-18_<YYYY-MM-DD-HHMMSS>_<hostname>.crash
2025-01-02T09:05:28.4314580Z x86_64-apple-darwin13.4: note: diagnostic msg: (choose the .crash file that corresponds to your crash)
2025-01-02T09:05:28.4386340Z x86_64-apple-darwin13.4: note: diagnostic msg:
2025-01-02T09:05:28.4614120Z
2025-01-02T09:05:28.4911690Z ********************
The sources of the problematic .cpp file are at https://github.com/su2code/SU2/blob/v8.1.0/SU2_CFD/src/solvers/CNEMOEulerSolver.cpp
I don't have access to the requested files at /var/folders/...
and the .crash
file.
It builds fine on Linux with GCC.
Any ideas ?
P.S. Also reported at su2code/SU2#2410