Closed hernanmd closed 2 years ago
Looks like the tests are failing due to timing out. I've just pushed e74d4bc which should extend the timeout - let me know if that fixes the issue.
Ok, I pulled and tried again. The make still show the warnings. The bootstrap script enters in an infinite loop:
mkstemps stdin: Too many open files
*** Return code: mkstemps stdin: -1
mkstemps stdin: Too many open files
*** Return code: mkstemps stdin: -1
...and so on
I had to terminate the iTerm process (Ctrl+C won't work). I checked twice, second time only iTerm open.
Can you pull the latest and try again?
Also, if it still fails, try running a single one of the failing tests in isolation:
build/unittest_lang golang_assoc_mini7_opaque
Ok, the first time I ran I've hit probably a clang bug:
> make -j8
mkdir -p build
clang++ -I./src -I./gen -g -ggdb -g3 -O3 -std=c++17 -fno-omit-frame-pointer -D__HAS_LLVM_SYMBOLIZER__ -D__LLVM_SYMBOLIZER_PATH__=/usr/local/opt/llvm/bin/llvm-symbolizer -D__MACOS__ -D__MACOS_SDKROOT__=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=12.0 -c -o build/datacc_main.o src/datacc_main.cpp
mkdir -p build
clang++ -I./src -I./gen -g -ggdb -g3 -O3 -std=c++17 -fno-omit-frame-pointer -D__HAS_LLVM_SYMBOLIZER__ -D__LLVM_SYMBOLIZER_PATH__=/usr/local/opt/llvm/bin/llvm-symbolizer -D__MACOS__ -D__MACOS_SDKROOT__=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=12.0 -c -o build/datacc.o src/datacc.cpp
mkdir -p build
clang++ -I./src -I./gen -g -ggdb -g3 -O3 -std=c++17 -fno-omit-frame-pointer -D__HAS_LLVM_SYMBOLIZER__ -D__LLVM_SYMBOLIZER_PATH__=/usr/local/opt/llvm/bin/llvm-symbolizer -D__MACOS__ -D__MACOS_SDKROOT__=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=12.0 -c -o build/cc__gen.o gen/cc__gen.cpp
mkdir -p build
clang++ -I./src -I./gen -g -ggdb -g3 -O3 -std=c++17 -fno-omit-frame-pointer -D__HAS_LLVM_SYMBOLIZER__ -D__LLVM_SYMBOLIZER_PATH__=/usr/local/opt/llvm/bin/llvm-symbolizer -D__MACOS__ -D__MACOS_SDKROOT__=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=12.0 -c -o build/data__gen.o gen/data__gen.cpp
clang++ -I./src -I./gen -g -ggdb -g3 -O3 -std=c++17 -fno-omit-frame-pointer -D__HAS_LLVM_SYMBOLIZER__ -D__LLVM_SYMBOLIZER_PATH__=/usr/local/opt/llvm/bin/llvm-symbolizer -D__MACOS__ -D__MACOS_SDKROOT__=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=12.0 -o build/datacc build/datacc_main.o build/datacc.o build/cc__gen.o build/data__gen.o -L/opt/local/lib -L/usr/local/opt/gperftools/lib -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib -ldl -ltcmalloc
ld: warning: directory not found for option '-L/opt/local/lib'
dsymutil build/datacc
build/datacc src/common.data gen
mkdir -p build
clang++ -I./src -I./gen -g -ggdb -g3 -O3 -std=c++17 -fno-omit-frame-pointer -D__HAS_LLVM_SYMBOLIZER__ -D__LLVM_SYMBOLIZER_PATH__=/usr/local/opt/llvm/bin/llvm-symbolizer -D__MACOS__ -D__MACOS_SDKROOT__=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=12.0 -c -o build/langcc_main.o src/langcc_main.cpp
mkdir -p build
clang++ -I./src -I./gen -g -ggdb -g3 -O3 -std=c++17 -fno-omit-frame-pointer -D__HAS_LLVM_SYMBOLIZER__ -D__LLVM_SYMBOLIZER_PATH__=/usr/local/opt/llvm/bin/llvm-symbolizer -D__MACOS__ -D__MACOS_SDKROOT__=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=12.0 -c -o build/langcc.o src/langcc.cpp
mkdir -p build
clang++ -I./src -I./gen -g -ggdb -g3 -O3 -std=c++17 -fno-omit-frame-pointer -D__HAS_LLVM_SYMBOLIZER__ -D__LLVM_SYMBOLIZER_PATH__=/usr/local/opt/llvm/bin/llvm-symbolizer -D__MACOS__ -D__MACOS_SDKROOT__=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=12.0 -c -o build/langcc_lexer.o src/langcc_lexer.cpp
mkdir -p build
clang++ -I./src -I./gen -g -ggdb -g3 -O3 -std=c++17 -fno-omit-frame-pointer -D__HAS_LLVM_SYMBOLIZER__ -D__LLVM_SYMBOLIZER_PATH__=/usr/local/opt/llvm/bin/llvm-symbolizer -D__MACOS__ -D__MACOS_SDKROOT__=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=12.0 -c -o build/langcc_parser_flatten.o src/langcc_parser_flatten.cpp
mkdir -p build
clang++ -I./src -I./gen -g -ggdb -g3 -O3 -std=c++17 -fno-omit-frame-pointer -D__HAS_LLVM_SYMBOLIZER__ -D__LLVM_SYMBOLIZER_PATH__=/usr/local/opt/llvm/bin/llvm-symbolizer -D__MACOS__ -D__MACOS_SDKROOT__=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=12.0 -c -o build/langcc_parser_attr.o src/langcc_parser_attr.cpp
mkdir -p build
clang++ -I./src -I./gen -g -ggdb -g3 -O3 -std=c++17 -fno-omit-frame-pointer -D__HAS_LLVM_SYMBOLIZER__ -D__LLVM_SYMBOLIZER_PATH__=/usr/local/opt/llvm/bin/llvm-symbolizer -D__MACOS__ -D__MACOS_SDKROOT__=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=12.0 -c -o build/langcc_parser_cps.o src/langcc_parser_cps.cpp
mkdir -p build
clang++ -I./src -I./gen -g -ggdb -g3 -O3 -std=c++17 -fno-omit-frame-pointer -D__HAS_LLVM_SYMBOLIZER__ -D__LLVM_SYMBOLIZER_PATH__=/usr/local/opt/llvm/bin/llvm-symbolizer -D__MACOS__ -D__MACOS_SDKROOT__=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=12.0 -c -o build/langcc_parser_lr.o src/langcc_parser_lr.cpp
mkdir -p build
clang++ -I./src -I./gen -g -ggdb -g3 -O3 -std=c++17 -fno-omit-frame-pointer -D__HAS_LLVM_SYMBOLIZER__ -D__LLVM_SYMBOLIZER_PATH__=/usr/local/opt/llvm/bin/llvm-symbolizer -D__MACOS__ -D__MACOS_SDKROOT__=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=12.0 -c -o build/langcc_encode.o src/langcc_encode.cpp
mkdir -p build
clang++ -I./src -I./gen -g -ggdb -g3 -O3 -std=c++17 -fno-omit-frame-pointer -D__HAS_LLVM_SYMBOLIZER__ -D__LLVM_SYMBOLIZER_PATH__=/usr/local/opt/llvm/bin/llvm-symbolizer -D__MACOS__ -D__MACOS_SDKROOT__=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=12.0 -c -o build/langcc_normalize.o src/langcc_normalize.cpp
mkdir -p build
clang++ -I./src -I./gen -g -ggdb -g3 -O3 -std=c++17 -fno-omit-frame-pointer -D__HAS_LLVM_SYMBOLIZER__ -D__LLVM_SYMBOLIZER_PATH__=/usr/local/opt/llvm/bin/llvm-symbolizer -D__MACOS__ -D__MACOS_SDKROOT__=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=12.0 -c -o build/langcc_emit.o src/langcc_emit.cpp
mkdir -p build
clang++ -I./src -I./gen -g -ggdb -g3 -O3 -std=c++17 -fno-omit-frame-pointer -D__HAS_LLVM_SYMBOLIZER__ -D__LLVM_SYMBOLIZER_PATH__=/usr/local/opt/llvm/bin/llvm-symbolizer -D__MACOS__ -D__MACOS_SDKROOT__=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=12.0 -c -o build/meta__gen.o gen/meta__gen.cpp
mkdir -p build
clang++ -I./src -I./gen -g -ggdb -g3 -O3 -std=c++17 -fno-omit-frame-pointer -D__HAS_LLVM_SYMBOLIZER__ -D__LLVM_SYMBOLIZER_PATH__=/usr/local/opt/llvm/bin/llvm-symbolizer -D__MACOS__ -D__MACOS_SDKROOT__=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=12.0 -c -o build/common__data_gen.o gen/common__data_gen.cpp
mkdir -p build
clang++ -I./src -I./gen -g -ggdb -g3 -O3 -std=c++17 -fno-omit-frame-pointer -D__HAS_LLVM_SYMBOLIZER__ -D__LLVM_SYMBOLIZER_PATH__=/usr/local/opt/llvm/bin/llvm-symbolizer -D__MACOS__ -D__MACOS_SDKROOT__=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=12.0 -c -o build/unittest_lib_main.o src/unittest_lib_main.cpp
mkdir -p build
clang++ -I./src -I./gen -g -ggdb -g3 -O3 -std=c++17 -fno-omit-frame-pointer -D__HAS_LLVM_SYMBOLIZER__ -D__LLVM_SYMBOLIZER_PATH__=/usr/local/opt/llvm/bin/llvm-symbolizer -D__MACOS__ -D__MACOS_SDKROOT__=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=12.0 -c -o build/unittest_lang_main.o src/unittest_lang_main.cpp
PLEASE submit a bug report to https://github.com/Homebrew/homebrew-core/issues and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: clang++ -I./src -I./gen -g -ggdb -g3 -O3 -std=c++17 -fno-omit-frame-pointer -D__HAS_LLVM_SYMBOLIZER__ -D__LLVM_SYMBOLIZER_PATH__=/usr/local/opt/llvm/bin/llvm-symbolizer -D__MACOS__ -D__MACOS_SDKROOT__=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=12.0 -c -o build/unittest_lang_main.o src/unittest_lang_main.cpp
1. <eof> parser at end of file
2. Code generation
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0 libLLVM.dylib 0x0000000113b55a3a llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 42
1 libLLVM.dylib 0x0000000113b54b08 llvm::sys::CleanupOnSignal(unsigned long) + 200
2 libLLVM.dylib 0x0000000117609feb (anonymous namespace)::CrashRecoveryContextImpl::HandleCrash(int, unsigned long) + 75
3 libLLVM.dylib 0x0000000117609f61 CrashRecoverySignalHandler(int) + 113
4 libsystem_platform.dylib 0x00007fff20430d7d _sigtramp + 29
5 libLLVM.dylib 0x0000000113b25590 llvm::raw_svector_ostream::write_impl(char const*, unsigned long) + 96
6 libLLVM.dylib 0x000000011464c588 llvm::DwarfUnit::constructSubprogramArguments(llvm::DIE&, llvm::DITypeRefArray) + 152
7 libLLVM.dylib 0x000000011464c826 llvm::DwarfUnit::applySubprogramAttributes(llvm::DISubprogram const*, llvm::DIE&, bool) + 550
8 libLLVM.dylib 0x00000001146466cb llvm::DwarfUnit::getOrCreateSubprogramDIE(llvm::DISubprogram const*, bool) + 555
9 libLLVM.dylib 0x0000000114647dbe llvm::DwarfUnit::constructTypeDIE(llvm::DIE&, llvm::DICompositeType const*) + 398
10 libLLVM.dylib 0x0000000114646f42 llvm::DwarfUnit::createTypeDIE(llvm::DIScope const*, llvm::DIE&, llvm::DIType const*) + 162
11 libLLVM.dylib 0x000000011464a3f8 llvm::DwarfUnit::constructMemberDIE(llvm::DIE&, llvm::DIDerivedType const*) + 200
12 libLLVM.dylib 0x0000000114647e01 llvm::DwarfUnit::constructTypeDIE(llvm::DIE&, llvm::DICompositeType const*) + 465
13 libLLVM.dylib 0x0000000114646f42 llvm::DwarfUnit::createTypeDIE(llvm::DIScope const*, llvm::DIE&, llvm::DIType const*) + 162
14 libLLVM.dylib 0x00000001146488f2 llvm::DwarfUnit::constructTypeDIE(llvm::DIE&, llvm::DIDerivedType const*) + 162
15 libLLVM.dylib 0x0000000114646f10 llvm::DwarfUnit::createTypeDIE(llvm::DIScope const*, llvm::DIE&, llvm::DIType const*) + 112
16 libLLVM.dylib 0x00000001146488f2 llvm::DwarfUnit::constructTypeDIE(llvm::DIE&, llvm::DIDerivedType const*) + 162
17 libLLVM.dylib 0x0000000114646f10 llvm::DwarfUnit::createTypeDIE(llvm::DIScope const*, llvm::DIE&, llvm::DIType const*) + 112
18 libLLVM.dylib 0x00000001146488f2 llvm::DwarfUnit::constructTypeDIE(llvm::DIE&, llvm::DIDerivedType const*) + 162
19 libLLVM.dylib 0x0000000114646f10 llvm::DwarfUnit::createTypeDIE(llvm::DIScope const*, llvm::DIE&, llvm::DIType const*) + 112
20 libLLVM.dylib 0x000000011464c588 llvm::DwarfUnit::constructSubprogramArguments(llvm::DIE&, llvm::DITypeRefArray) + 152
21 libLLVM.dylib 0x000000011464c826 llvm::DwarfUnit::applySubprogramAttributes(llvm::DISubprogram const*, llvm::DIE&, bool) + 550
22 libLLVM.dylib 0x00000001146466cb llvm::DwarfUnit::getOrCreateSubprogramDIE(llvm::DISubprogram const*, bool) + 555
23 libLLVM.dylib 0x0000000114647dbe llvm::DwarfUnit::constructTypeDIE(llvm::DIE&, llvm::DICompositeType const*) + 398
24 libLLVM.dylib 0x0000000114646f42 llvm::DwarfUnit::createTypeDIE(llvm::DIScope const*, llvm::DIE&, llvm::DIType const*) + 162
25 libLLVM.dylib 0x0000000114610cd6 llvm::DwarfCompileUnit::getOrCreateGlobalVariableDIE(llvm::DIGlobalVariable const*, llvm::ArrayRef<llvm::DwarfCompileUnit::GlobalExpr>) + 470
26 libLLVM.dylib 0x000000011461c00a llvm::DwarfDebug::beginModule(llvm::Module*) + 2858
27 libLLVM.dylib 0x00000001145e85f8 llvm::AsmPrinter::doInitialization(llvm::Module&) + 5368
28 libLLVM.dylib 0x0000000116c05034 llvm::X86AsmPrinter::doInitialization(llvm::Module&) + 100
29 libLLVM.dylib 0x0000000113d0f7cd llvm::FPPassManager::doInitialization(llvm::Module&) + 45
30 libLLVM.dylib 0x0000000113d1893e llvm::legacy::PassManagerImpl::run(llvm::Module&) + 462
31 libclang-cpp.dylib 0x00000001108aff4e clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, std::__1::unique_ptr<llvm::raw_pwrite_stream, std::__1::default_delete<llvm::raw_pwrite_stream>>) + 7198
32 libclang-cpp.dylib 0x0000000110c90d34 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 2052
33 libclang-cpp.dylib 0x000000010f4921c3 clang::ParseAST(clang::Sema&, bool, bool) + 851
34 libclang-cpp.dylib 0x00000001113ca97b clang::FrontendAction::Execute() + 75
35 libclang-cpp.dylib 0x000000011133e9d0 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 704
36 libclang-cpp.dylib 0x00000001114180fe clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 526
37 clang++ 0x000000010f2bf695 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) + 2533
38 clang++ 0x000000010f2bdb4a ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&) + 266
39 libclang-cpp.dylib 0x0000000110f77a47 void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef>>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>*, bool*) const::$_1>(long) + 23
40 libLLVM.dylib 0x0000000113a6098b llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) + 235
41 libclang-cpp.dylib 0x0000000110f7790a clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef>>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>*, bool*) const + 298
42 libclang-cpp.dylib 0x0000000110f2a536 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const + 1014
43 libclang-cpp.dylib 0x0000000110f2a810 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::__1::pair<int, clang::driver::Command const*>>&, bool) const + 112
44 libclang-cpp.dylib 0x0000000110f744f2 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::__1::pair<int, clang::driver::Command const*>>&) + 274
45 clang++ 0x000000010f2bcbff clang_main(int, char**) + 11903
46 libdyld.dylib 0x00007fff20406f3d start + 1
47 libdyld.dylib 0x0000000000000012 start + 18446603339975069910
clang-15: error: clang frontend command failed with exit code 139 (use -v to see invocation)
Homebrew clang version 15.0.0
Target: x86_64-apple-darwin20.6.0
Thread model: posix
InstalledDir: /usr/local/opt/llvm/bin
clang-15: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-15: note: diagnostic msg: /var/folders/hj/wvd354ps77s53v3r5tw3_6kr0000gn/T/unittest_lang_main-0c474d.cpp
clang-15: note: diagnostic msg: /var/folders/hj/wvd354ps77s53v3r5tw3_6kr0000gn/T/unittest_lang_main-0c474d.sh
clang-15: note: diagnostic msg: Crash backtrace is located in
clang-15: note: diagnostic msg: /Users/mvs/Library/Logs/DiagnosticReports/clang-15_<YYYY-MM-DD-HHMMSS>_<hostname>.crash
clang-15: note: diagnostic msg: (choose the .crash file that corresponds to your crash)
clang-15: note: diagnostic msg:
********************
make: *** [build/unittest_lang_main.o] Error 1
make: *** Waiting for unfinished jobs....
PLEASE submit a bug report to https://github.com/Homebrew/homebrew-core/issues and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: clang++ -I./src -I./gen -g -ggdb -g3 -O3 -std=c++17 -fno-omit-frame-pointer -D__HAS_LLVM_SYMBOLIZER__ -D__LLVM_SYMBOLIZER_PATH__=/usr/local/opt/llvm/bin/llvm-symbolizer -D__MACOS__ -D__MACOS_SDKROOT__=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=12.0 -c -o build/langcc_emit.o src/langcc_emit.cpp
1. <eof> parser at end of file
2. Optimizer
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0 libLLVM.dylib 0x0000000110864a3a llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 42
1 libLLVM.dylib 0x0000000110863b08 llvm::sys::CleanupOnSignal(unsigned long) + 200
2 libLLVM.dylib 0x0000000114318feb (anonymous namespace)::CrashRecoveryContextImpl::HandleCrash(int, unsigned long) + 75
3 libLLVM.dylib 0x0000000114318f61 CrashRecoverySignalHandler(int) + 113
4 libsystem_platform.dylib 0x00007fff20430d7d _sigtramp + 29
5 libsystem_platform.dylib 000000000000000000 _sigtramp + 18446603339974898336
6 libLLVM.dylib 0x000000011184aae7 llvm::InstCombinerImpl::visitAllocSite(llvm::Instruction&) + 135
7 libLLVM.dylib 0x000000011180ace2 llvm::InstVisitor<llvm::InstCombinerImpl, llvm::Instruction*>::visit(llvm::Instruction&) + 48706
8 libLLVM.dylib 0x00000001117ef9a8 combineInstructionsOverFunction(llvm::Function&, llvm::InstructionWorklist&, llvm::AAResults*, llvm::AssumptionCache&, llvm::TargetLibraryInfo&, llvm::TargetTransformInfo&, llvm::DominatorTree&, llvm::OptimizationRemarkEmitter&, llvm::BlockFrequencyInfo*, llvm::ProfileSummaryInfo*, unsigned int, llvm::LoopInfo*) + 10312
9 libLLVM.dylib 0x0000000113e807f8 llvm::detail::PassModel<llvm::Function, llvm::InstCombinePass, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) + 792
10 libLLVM.dylib 0x0000000112bab319 llvm::detail::PassModel<llvm::Function, llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function>>, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) + 1769
11 libLLVM.dylib 0x0000000111f9047e llvm::CGSCCToFunctionPassAdaptor::run(llvm::LazyCallGraph::SCC&, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&) + 1022
12 libLLVM.dylib 0x0000000112baa9d2 llvm::detail::PassModel<llvm::LazyCallGraph::SCC, llvm::CGSCCToFunctionPassAdaptor, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&>::run(llvm::LazyCallGraph::SCC&, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&) + 18
13 libLLVM.dylib 0x0000000111cc98c5 llvm::detail::PassModel<llvm::LazyCallGraph::SCC, llvm::PassManager<llvm::LazyCallGraph::SCC, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&>, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&>::run(llvm::LazyCallGraph::SCC&, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&) + 1685
14 libLLVM.dylib 0x0000000111f8e25f llvm::DevirtSCCRepeatedPass::run(llvm::LazyCallGraph::SCC&, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&) + 479
15 libLLVM.dylib 0x0000000111cc8ec2 llvm::detail::PassModel<llvm::LazyCallGraph::SCC, llvm::DevirtSCCRepeatedPass, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&>::run(llvm::LazyCallGraph::SCC&, llvm::AnalysisManager<llvm::LazyCallGraph::SCC, llvm::LazyCallGraph&>&, llvm::LazyCallGraph&, llvm::CGSCCUpdateResult&) + 18
16 libLLVM.dylib 0x0000000111f8cdc2 llvm::ModuleToPostOrderCGSCCPassAdaptor::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) + 2546
17 libLLVM.dylib 0x0000000111cc9102 llvm::detail::PassModel<llvm::Module, llvm::ModuleToPostOrderCGSCCPassAdaptor, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) + 18
18 libLLVM.dylib 0x0000000110a58982 llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) + 418
19 libLLVM.dylib 0x0000000111cc8ae1 llvm::ModuleInlinerWrapperPass::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) + 673
20 libLLVM.dylib 0x0000000113e8a652 llvm::detail::PassModel<llvm::Module, llvm::ModuleInlinerWrapperPass, llvm::PreservedAnalyses, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) + 18
21 libLLVM.dylib 0x0000000110a58982 llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) + 418
22 libclang-cpp.dylib 0x000000010d5c76b6 (anonymous namespace)::EmitAssemblyHelper::RunOptimizationPipeline(clang::BackendAction, std::__1::unique_ptr<llvm::raw_pwrite_stream, std::__1::default_delete<llvm::raw_pwrite_stream>>&, std::__1::unique_ptr<llvm::ToolOutputFile, std::__1::default_delete<llvm::ToolOutputFile>>&) + 10246
23 libclang-cpp.dylib 0x000000010d5c1c42 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, std::__1::unique_ptr<llvm::raw_pwrite_stream, std::__1::default_delete<llvm::raw_pwrite_stream>>) + 6418
24 libclang-cpp.dylib 0x000000010d9a2d34 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 2052
25 libclang-cpp.dylib 0x000000010c1a41c3 clang::ParseAST(clang::Sema&, bool, bool) + 851
26 libclang-cpp.dylib 0x000000010e0dc97b clang::FrontendAction::Execute() + 75
27 libclang-cpp.dylib 0x000000010e0509d0 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 704
28 libclang-cpp.dylib 0x000000010e12a0fe clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 526
29 clang++ 0x0000000108e99695 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) + 2533
30 clang++ 0x0000000108e97b4a ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&) + 266
31 libclang-cpp.dylib 0x000000010dc89a47 void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef>>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>*, bool*) const::$_1>(long) + 23
32 libLLVM.dylib 0x000000011076f98b llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) + 235
33 libclang-cpp.dylib 0x000000010dc8990a clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef>>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>*, bool*) const + 298
34 libclang-cpp.dylib 0x000000010dc3c536 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const + 1014
35 libclang-cpp.dylib 0x000000010dc3c810 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::__1::pair<int, clang::driver::Command const*>>&, bool) const + 112
36 libclang-cpp.dylib 0x000000010dc864f2 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::__1::pair<int, clang::driver::Command const*>>&) + 274
37 clang++ 0x0000000108e96bff clang_main(int, char**) + 11903
38 libdyld.dylib 0x00007fff20406f3d start + 1
clang-15: error: clang frontend command failed with exit code 139 (use -v to see invocation)
Homebrew clang version 15.0.0
Target: x86_64-apple-darwin20.6.0
Thread model: posix
InstalledDir: /usr/local/opt/llvm/bin
clang-15: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-15: note: diagnostic msg: /var/folders/hj/wvd354ps77s53v3r5tw3_6kr0000gn/T/langcc_emit-6f3816.cpp
clang-15: note: diagnostic msg: /var/folders/hj/wvd354ps77s53v3r5tw3_6kr0000gn/T/langcc_emit-6f3816.sh
clang-15: note: diagnostic msg: Crash backtrace is located in
clang-15: note: diagnostic msg: /Users/mvs/Library/Logs/DiagnosticReports/clang-15_<YYYY-MM-DD-HHMMSS>_<hostname>.crash
clang-15: note: diagnostic msg: (choose the .crash file that corresponds to your crash)
clang-15: note: diagnostic msg:
But after closing all programs and running again it worked nicely and all tests pass. Now going to experiment a bit.
Thank you!
I'm using macOS 11.7 first so that could be an issue? My environment details:
The build:
Seems the problem is the "ld: warning: directory not found for option '-L/opt/local/lib'" part but the binaries were built:
The make install ran without problems
Then most tests passed but 3 which failed:
Didn't tried to generate something yet. Any suggestions should I check?