Open successgo opened 2 days ago
I'm trying to build dotnet runtime against master using homebrew clang 19, but crashed, below is the part of the error:
[ 70%] Building CXX object jit/CMakeFiles/clrjit_win_x86_arm64.dir/fgstmt.cpp.o 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: /opt/homebrew/bin/clang++ -DBUILDENV_DEBUG=1 -DCOMPILER_SUPPORTS_W_RESERVED_IDENTIFIER -DDEBUG -DDEBUGGING_SUPPORTED -DDISABLE_CONTRACTS -DFEATURE_BASICFREEZE -DFEATURE_CODE_VERSIONING -DFEATURE_COLLECTIBLE_TYPES -DFEATURE_COMWRAPPERS -DFEATURE_CORECLR -DFEATURE_DBGIPC_TRANSPORT_DI -DFEATURE_DBGIPC_TRANSPORT_VM -DFEATURE_DEFAULT_INTERFACES -DFEATURE_EMULATE_SINGLESTEP -DFEATURE_EVENT_TRACE -DFEATURE_HIJACK -DFEATURE_HW_INTRINSICS -DFEATURE_INSTANTIATINGSTUB_AS_IL -DFEATURE_MANUALLY_MANAGED_CARD_BUNDLES -DFEATURE_MASKED_HW_INTRINSICS -DFEATURE_METADATA_UPDATER -DFEATURE_MULTICOREJIT -DFEATURE_NO_HOST -DFEATURE_OBJCMARSHAL -DFEATURE_ON_STACK_REPLACEMENT -DFEATURE_PAL_ANSI -DFEATURE_PERFMAP -DFEATURE_PERFTRACING -DFEATURE_PGO -DFEATURE_PORTABLE_SHUFFLE_THUNKS -DFEATURE_PROFAPI_ATTACH_DETACH -DFEATURE_READYTORUN -DFEATURE_REJIT -DFEATURE_REMAP_FUNCTION -DFEATURE_REMOTE_PROC_MEM -DFEATURE_SIMD -DFEATURE_STANDALONE_GC -DFEATURE_SVR_GC -DFEATURE_SYMDIFF -DFEATURE_TIERED_COMPILATION -DFEATURE_USE_ASM_GC_WRITE_BARRIERS -DFEATURE_USE_SOFTWARE_WRITE_WATCH_FOR_GC_HEAP -DHOST_64BIT -DHOST_APPLE -DHOST_ARM64 -DHOST_OSX -DHOST_UNIX -DJIT_BUILD -DLSE_INSTRUCTIONS_ENABLED_BY_DEFAULT -DPROFILING_SUPPORTED -DSELF_NO_HOST -DTARGET_64BIT -DTARGET_AMD64 -DTARGET_WINDOWS -DUNICODE -DURTBLDENV_FRIENDLY=Debug -D_DBG -D_DEBUG -D_FILE_OFFSET_BITS=64 -D_SECURE_SCL=0 -D_TIME_BITS=64 -D_UNICODE -D_XOPEN_SOURCE -Dclrjit_win_x64_arm64_EXPORTS -I/Users/gdc/Sandbox/dotnet-runtime/artifacts/obj/coreclr/osx.arm64.Debug/jit -I/Users/gdc/Sandbox/dotnet-runtime/src/coreclr/jit -I/Users/gdc/Sandbox/dotnet-runtime/src/native -I/Users/gdc/Sandbox/dotnet-runtime/src/native/inc -I/Users/gdc/Sandbox/dotnet-runtime/src/coreclr/pal/prebuilt/inc -I/Users/gdc/Sandbox/dotnet-runtime/artifacts/obj -I/Users/gdc/Sandbox/dotnet-runtime/src/coreclr/pal/inc -I/Users/gdc/Sandbox/dotnet-runtime/src/coreclr/pal/inc/rt -I/Users/gdc/Sandbox/dotnet-runtime/src/coreclr/pal/src/safecrt -I/Users/gdc/Sandbox/dotnet-runtime/src/coreclr/inc -I/Users/gdc/Sandbox/dotnet-runtime/src/coreclr/debug/inc -I/Users/gdc/Sandbox/dotnet-runtime/src/coreclr/debug/inc/arm64 -I/Users/gdc/Sandbox/dotnet-runtime/src/coreclr/debug/inc/dump -I/Users/gdc/Sandbox/dotnet-runtime/src/coreclr/md/inc -I/Users/gdc/Sandbox/dotnet-runtime/src/coreclr/classlibnative/bcltype -I/Users/gdc/Sandbox/dotnet-runtime/src/coreclr/classlibnative/inc -I/Users/gdc/Sandbox/dotnet-runtime/artifacts/obj/coreclr/osx.arm64.Debug/inc -I/Users/gdc/Sandbox/dotnet-runtime/src/coreclr/hosts/inc -I/Users/gdc/Sandbox/dotnet-runtime/src/coreclr/minipal -I/Users/gdc/Sandbox/dotnet-runtime/src/coreclr/nativeresources -I/Users/gdc/Sandbox/dotnet-runtime/src/coreclr/jit/./jitstd -I/Users/gdc/Sandbox/dotnet-runtime/src/coreclr/jit/../inc -g -std=gnu++11 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk -mmacosx-version-min=12.0 -fPIC -O0 -Wall -Wno-null-conversion -glldb -fno-omit-frame-pointer -fwrapv -fstack-protector -mcpu=apple-m1 -Werror -Wno-unused-variable -Wno-unused-value -Wno-unused-function -Wno-tautological-compare -Wno-unknown-pragmas -Wimplicit-fallthrough -Wvla -Wno-invalid-offsetof -Wno-unused-but-set-variable -ffp-contract=off -fno-rtti -Wno-unknown-warning-option -ferror-limit=4096 -Wno-unused-private-field -Wno-constant-logical-operand -Wno-pragma-pack -Wno-incompatible-ms-struct -Wno-reserved-identifier -Wno-unsafe-buffer-usage -Wno-single-bit-bitfield-constant-conversion -Wno-cast-function-type-strict -Wno-switch-default -fsigned-char -fvisibility=hidden -ffunction-sections -arch arm64 -Wno-null-arithmetic -Wno-sync-alignment -Winvalid-pch -Xclang -include-pch -Xclang /Users/gdc/Sandbox/dotnet-runtime/artifacts/obj/coreclr/osx.arm64.Debug/jit/CMakeFiles/clrjit_win_x64_arm64.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /Users/gdc/Sandbox/dotnet-runtime/artifacts/obj/coreclr/osx.arm64.Debug/jit/CMakeFiles/clrjit_win_x64_arm64.dir/cmake_pch.hxx -MD -MT jit/CMakeFiles/clrjit_win_x64_arm64.dir/importer.cpp.o -MF CMakeFiles/clrjit_win_x64_arm64.dir/importer.cpp.o.d -o CMakeFiles/clrjit_win_x64_arm64.dir/importer.cpp.o -c /Users/gdc/Sandbox/dotnet-runtime/src/coreclr/jit/importer.cpp 1. <eof> parser at end of file 2. Code generation 3. Running pass 'Function Pass Manager' on module '/Users/gdc/Sandbox/dotnet-runtime/src/coreclr/jit/importer.cpp'. 4. Running pass 'InstructionSelect' on function '@_ZN8Compiler18impImportBlockCodeEP10BasicBlock' 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: /opt/homebrew/bin/clang++ -DARM_SOFTFP -DBUILDENV_DEBUG=1 -DCOMPILER_SUPPORTS_W_RESERVED_IDENTIFIER -DCONFIGURABLE_ARM_ABI -DDEBUG -DDEBUGGING_SUPPORTED -DDISABLE_CONTRACTS -DFEATURE_BASICFREEZE -DFEATURE_CODE_VERSIONING -DFEATURE_COLLECTIBLE_TYPES -DFEATURE_COMWRAPPERS -DFEATURE_CORECLR -DFEATURE_DBGIPC_TRANSPORT_DI -DFEATURE_DBGIPC_TRANSPORT_VM -DFEATURE_DEFAULT_INTERFACES -DFEATURE_EMULATE_SINGLESTEP -DFEATURE_EVENT_TRACE -DFEATURE_HIJACK -DFEATURE_INSTANTIATINGSTUB_AS_IL -DFEATURE_MANUALLY_MANAGED_CARD_BUNDLES -DFEATURE_METADATA_UPDATER -DFEATURE_MULTICOREJIT -DFEATURE_NO_HOST -DFEATURE_OBJCMARSHAL -DFEATURE_ON_STACK_REPLACEMENT -DFEATURE_PAL_ANSI -DFEATURE_PERFMAP -DFEATURE_PERFTRACING -DFEATURE_PGO -DFEATURE_PORTABLE_SHUFFLE_THUNKS -DFEATURE_PROFAPI_ATTACH_DETACH -DFEATURE_READYTORUN -DFEATURE_REJIT -DFEATURE_REMAP_FUNCTION -DFEATURE_REMOTE_PROC_MEM -DFEATURE_STANDALONE_GC -DFEATURE_SVR_GC -DFEATURE_SYMDIFF -DFEATURE_TIERED_COMPILATION -DFEATURE_USE_ASM_GC_WRITE_BARRIERS -DFEATURE_USE_SOFTWARE_WRITE_WATCH_FOR_GC_HEAP -DHOST_64BIT -DHOST_APPLE -DHOST_ARM64 -DHOST_OSX -DHOST_UNIX -DJIT_BUILD -DLSE_INSTRUCTIONS_ENABLED_BY_DEFAULT -DPROFILING_SUPPORTED -DSELF_NO_HOST -DTARGET_ARM -DUNICODE -DURTBLDENV_FRIENDLY=Debug -D_DBG -D_DEBUG -D_FILE_OFFSET_BITS=64 -D_SECURE_SCL=0 -D_TIME_BITS=64 -D_UNICODE -D_XOPEN_SOURCE -Dclrjit_universal_arm_arm64_EXPORTS -I/Users/gdc/Sandbox/dotnet-runtime/artifacts/obj/coreclr/osx.arm64.Debug/jit -I/Users/gdc/Sandbox/dotnet-runtime/src/coreclr/jit -I/Users/gdc/Sandbox/dotnet-runtime/src/native -I/Users/gdc/Sandbox/dotnet-runtime/src/native/inc -I/Users/gdc/Sandbox/dotnet-runtime/src/coreclr/pal/prebuilt/inc -I/Users/gdc/Sandbox/dotnet-runtime/artifacts/obj -I/Users/gdc/Sandbox/dotnet-runtime/src/coreclr/pal/inc -I/Users/gdc/Sandbox/dotnet-runtime/src/coreclr/pal/inc/rt -I/Users/gdc/Sandbox/dotnet-runtime/src/coreclr/pal/src/safecrt -I/Users/gdc/Sandbox/dotnet-runtime/src/coreclr/inc -I/Users/gdc/Sandbox/dotnet-runtime/src/coreclr/debug/inc -I/Users/gdc/Sandbox/dotnet-runtime/src/coreclr/debug/inc/arm64 -I/Users/gdc/Sandbox/dotnet-runtime/src/coreclr/debug/inc/dump -I/Users/gdc/Sandbox/dotnet-runtime/src/coreclr/md/inc -I/Users/gdc/Sandbox/dotnet-runtime/src/coreclr/classlibnative/bcltype -I/Users/gdc/Sandbox/dotnet-runtime/src/coreclr/classlibnative/inc -I/Users/gdc/Sandbox/dotnet-runtime/artifacts/obj/coreclr/osx.arm64.Debug/inc -I/Users/gdc/Sandbox/dotnet-runtime/src/coreclr/hosts/inc -I/Users/gdc/Sandbox/dotnet-runtime/src/coreclr/minipal -I/Users/gdc/Sandbox/dotnet-runtime/src/coreclr/nativeresources -I/Users/gdc/Sandbox/dotnet-runtime/src/coreclr/jit/./jitstd -I/Users/gdc/Sandbox/dotnet-runtime/src/coreclr/jit/../inc -g -std=gnu++11 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk -mmacosx-version-min=12.0 -fPIC -O0 -Wall -Wno-null-conversion -glldb -fno-omit-frame-pointer -fwrapv -fstack-protector -mcpu=apple-m1 -Werror -Wno-unused-variable -Wno-unused-value -Wno-unused-function -Wno-tautological-compare -Wno-unknown-pragmas -Wimplicit-fallthrough -Wvla -Wno-invalid-offsetof -Wno-unused-but-set-variable -ffp-contract=off -fno-rtti -Wno-unknown-warning-option -ferror-limit=4096 -Wno-unused-private-field -Wno-constant-logical-operand -Wno-pragma-pack -Wno-incompatible-ms-struct -Wno-reserved-identifier -Wno-unsafe-buffer-usage -Wno-single-bit-bitfield-constant-conversion -Wno-cast-function-type-strict -Wno-switch-default -fsigned-char -fvisibility=hidden -ffunction-sections -arch arm64 -Wno-null-arithmetic -Wno-sync-alignment -Winvalid-pch -Xclang -include-pch -Xclang /Users/gdc/Sandbox/dotnet-runtime/artifacts/obj/coreclr/osx.arm64.Debug/jit/CMakeFiles/clrjit_universal_arm_arm64.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /Users/gdc/Sandbox/dotnet-runtime/artifacts/obj/coreclr/osx.arm64.Debug/jit/CMakeFiles/clrjit_universal_arm_arm64.dir/cmake_pch.hxx -MD -MT jit/CMakeFiles/clrjit_universal_arm_arm64.dir/importer.cpp.o -MF CMakeFiles/clrjit_universal_arm_arm64.dir/importer.cpp.o.d -o CMakeFiles/clrjit_universal_arm_arm64.dir/importer.cpp.o -c /Users/gdc/Sandbox/dotnet-runtime/src/coreclr/jit/importer.cpp 1. <eof> parser at end of file 2. Code generation 3. Running pass 'Function Pass Manager' on module '/Users/gdc/Sandbox/dotnet-runtime/src/coreclr/jit/importer.cpp'. 4. Running pass 'InstructionSelect' on function '@_ZN8Compiler18impImportBlockCodeEP10BasicBlock' #0 0x0000000117efb720 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libLLVM.dylib+0x4a0f720) #1 0x0000000113649550 llvm::sys::CleanupOnSignal(unsigned long) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libLLVM.dylib+0x15d550) #2 0x0000000117eeb88c (anonymous namespace)::CrashRecoveryContextImpl::HandleCrash(int, unsigned long) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libLLVM.dylib+0x49ff88c) #3 0x0000000117eeb968 CrashRecoverySignalHandler(int) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libLLVM.dylib+0x49ff968) #4 0x000000019d800184 (/usr/lib/system/libsystem_platform.dylib+0x180484184) #5 0x0000000114385f7c llvm::InstructionSelect::runOnMachineFunction(llvm::MachineFunction&) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libLLVM.dylib+0xe99f7c) #6 0x0000000114385f7c llvm::InstructionSelect::runOnMachineFunction(llvm::MachineFunction&) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libLLVM.dylib+0xe99f7c) #7 0x0000000113b66810 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libLLVM.dylib+0x67a810) #8 0x000000011382c7dc llvm::FPPassManager::runOnModule(llvm::Module&) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libLLVM.dylib+0x3407dc) #9 0x000000011382043c llvm::legacy::PassManagerImpl::run(llvm::Module&) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libLLVM.dylib+0x33443c) #10 0x0000000106a05d08 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*) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x17c5d08) #11 0x0000000106dcee88 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x1b8ee88) #12 0x0000000105477c4c clang::ParseAST(clang::Sema&, bool, bool) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x237c4c) #13 0x0000000107592cfc clang::FrontendAction::Execute() (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x2352cfc) #14 0x00000001075097b4 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x22c97b4) #15 0x00000001075ec470 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x23ac470) #16 0x0000000100236b3c cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/opt/homebrew/Cellar/llvm/19.1.1/bin/clang-19+0x100006b3c) #17 0x000000010023478c ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&) (/opt/homebrew/Cellar/llvm/19.1.1/bin/clang-19+0x10000478c) #18 0x0000000107144a30 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) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x1f04a30) #19 0x0000000113579f68 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libLLVM.dylib+0x8df68) #20 0x0000000107144260 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 (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x1f04260) #21 0x00000001070fb410 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x1ebb410) #22 0x0000000107122384 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::__1::pair<int, clang::driver::Command const*>>&) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x1ee2384) #23 0x0000000100233500 clang_main(int, char**, llvm::ToolContext const&) (/opt/homebrew/Cellar/llvm/19.1.1/bin/clang-19+0x100003500) #24 0x000000010024104c main (/opt/homebrew/Cellar/llvm/19.1.1/bin/clang-19+0x10001104c) #25 0x000000019d448274 clang++: error: clang frontend command failed with exit code 139 (use -v to see invocation) Homebrew clang version 19.1.1 Target: arm64-apple-darwin24.0.0 Thread model: posix InstalledDir: /opt/homebrew/Cellar/llvm/19.1.1/bin #0 0x000000011cb7f720 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libLLVM.dylib+0x4a0f720) #1 0x00000001182cd550 llvm::sys::CleanupOnSignal(unsigned long) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libLLVM.dylib+0x15d550) #2 0x000000011cb6f88c (anonymous namespace)::CrashRecoveryContextImpl::HandleCrash(int, unsigned long) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libLLVM.dylib+0x49ff88c) #3 0x000000011cb6f968 CrashRecoverySignalHandler(int) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libLLVM.dylib+0x49ff968) #4 0x000000019d800184 (/usr/lib/system/libsystem_platform.dylib+0x180484184) #5 0x0000000119009f7c llvm::InstructionSelect::runOnMachineFunction(llvm::MachineFunction&) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libLLVM.dylib+0xe99f7c) #6 0x0000000119009f7c llvm::InstructionSelect::runOnMachineFunction(llvm::MachineFunction&) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libLLVM.dylib+0xe99f7c) #7 0x00000001187ea810 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libLLVM.dylib+0x67a810) #8 0x00000001184b07dc llvm::FPPassManager::runOnModule(llvm::Module&) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libLLVM.dylib+0x3407dc) #9 0x00000001184a443c llvm::legacy::PassManagerImpl::run(llvm::Module&) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libLLVM.dylib+0x33443c) #10 0x000000010b689d08 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*) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x17c5d08) #11 0x000000010ba52e88 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x1b8ee88) #12 0x000000010a0fbc4c clang::ParseAST(clang::Sema&, bool, bool) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x237c4c) #13 0x000000010c216cfc clang::FrontendAction::Execute() (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x2352cfc) #14 0x000000010c18d7b4 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x22c97b4) #15 0x000000010c270470 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x23ac470) #16 0x0000000104ebab3c cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/opt/homebrew/Cellar/llvm/19.1.1/bin/clang-19+0x100006b3c) #17 0x0000000104eb878c ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&) (/opt/homebrew/Cellar/llvm/19.1.1/bin/clang-19+0x10000478c) #18 0x000000010bdc8a30 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) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x1f04a30) #19 0x00000001181fdf68 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libLLVM.dylib+0x8df68) #20 0x000000010bdc8260 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 (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x1f04260) #21 0x000000010bd7f410 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&, bool) const (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x1ebb410) #22 0x000000010bda6384 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::__1::pair<int, clang::driver::Command const*>>&) (/opt/homebrew/Cellar/llvm/19.1.1/lib/libclang-cpp.dylib+0x1ee2384) #23 0x0000000104eb7500 clang_main(int, char**, llvm::ToolContext const&) (/opt/homebrew/Cellar/llvm/19.1.1/bin/clang-19+0x100003500) #24 0x0000000104ec504c main (/opt/homebrew/Cellar/llvm/19.1.1/bin/clang-19+0x10001104c) #25 0x000000019d448274 clang++: error: clang frontend command failed with exit code 139 (use -v to see invocation) Homebrew clang version 19.1.1 Target: arm64-apple-darwin24.0.0 Thread model: posix InstalledDir: /opt/homebrew/Cellar/llvm/19.1.1/bin [ 70%] Building CXX object jit/CMakeFiles/clrjit_win_x86_arm64.dir/flowgraph.cpp.o [ 70%] Building CXX object jit/CMakeFiles/clrjit_win_x64_arm64.dir/indirectcalltransformer.cpp.o [ 70%] Building CXX object vm/wks/CMakeFiles/cee_wks_core.dir/__/eventstore.cpp.o clang++clang++: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang++: note: diagnostic msg: /var/folders/dn/70466psd4d50v5lrkfh_yf680000gn/T/importer-f6f550.cpp : note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang++: note: diagnostic msg: /var/folders/dn/70466psd4d50v5lrkfh_yf680000gn/T/importer-aaf408.cpp clang++: note: diagnostic msg: /var/folders/dn/70466psd4d50v5lrkfh_yf680000gn/T/importer-aaf408.sh clang++: note: diagnostic msg: /var/folders/dn/70466psd4d50v5lrkfh_yf680000gn/T/importer-f6f550.sh clang++: clang++note: : diagnostic msg: Crash backtrace is located innote: diagnostic msg: Crash backtrace is located inclang++ : clang++note: : diagnostic msg: /Users/gdc/Library/Logs/DiagnosticReports/clang-19_<YYYY-MM-DD-HHMMSS>_<hostname>.crashnote: diagnostic msg: /Users/gdc/Library/Logs/DiagnosticReports/clang-19_<YYYY-MM-DD-HHMMSS>_<hostname>.crash clang++: note: diagnostic msg: (choose the .crash file that corresponds to your crash) clang++: note: diagnostic msg: ******************** clang++: note: diagnostic msg: (choose the .crash file that corresponds to your crash) clang++: note: diagnostic msg: ******************** make[2]: *** [jit/CMakeFiles/clrjit_win_x64_arm64.dir/importer.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [jit/CMakeFiles/clrjit_universal_arm_arm64.dir/importer.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... [ 70%] Building CXX object jit/CMakeFiles/clrjit_win_x86_arm64.dir/forwardsub.cpp.o [ 70%] Building CXX object vm/wks/CMakeFiles/cee_wks_core.dir/__/fcall.cpp.o make[1]: *** [jit/CMakeFiles/clrjit_universal_arm_arm64.dir/all] Error 2 [ 70%] Building CXX object jit/CMakeFiles/clrjit_win_x86_arm64.dir/gcdecode.cpp.o [ 70%] Building CXX object vm/wks/CMakeFiles/cee_wks_core.dir/__/fieldmarshaler.cpp.o [ 70%] Building CXX object jit/CMakeFiles/clrjit_win_x86_arm64.dir/gcencode.cpp.o [ 70%] Building CXX object vm/wks/CMakeFiles/cee_wks_core.dir/__/finalizerthread.cpp.o [ 70%] Building CXX object jit/CMakeFiles/clrjit_win_x86_arm64.dir/gcinfo.cpp.o make[1]: *** [jit/CMakeFiles/clrjit_win_x64_arm64.dir/all] Error 2 [ 70%] Building CXX object vm/wks/CMakeFiles/cee_wks_core.dir/__/frozenobjectheap.cpp.o [ 70%] Building CXX object jit/CMakeFiles/clrjit_win_x86_arm64.dir/gentree.cpp.o
git clone the latest master, and issue ./build.sh.
./build.sh
Build success.
Build crashed.
No response
Using apple default clang 16, or homebrew clang@16.
OS: macOS 15 Arch: arm64 (m3)
Tagging subscribers to this area: @hoyosjs See info in area-owners.md if you want to be subscribed.
Description
I'm trying to build dotnet runtime against master using homebrew clang 19, but crashed, below is the part of the error:
Reproduction Steps
git clone the latest master, and issue
./build.sh
.Expected behavior
Build success.
Actual behavior
Build crashed.
Regression?
No response
Known Workarounds
Using apple default clang 16, or homebrew clang@16.
Configuration
OS: macOS 15 Arch: arm64 (m3)
Other information
No response