Skip to content

clang crashes when using pre-compiled headers and modules at the same time. #121259

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
YiRanMushroom opened this issue Dec 28, 2024 · 6 comments
Closed
Labels
clang:modules C++20 modules and Clang Header Modules clang:PCH Precompiled headers crash Prefer [crash-on-valid] or [crash-on-invalid]

Comments

@YiRanMushroom
Copy link

I was trying to compile my project using modules and PCMs simultaneously. At first, it was okay, but later, when I used too many modules in a source file, clang crashed, here is the log:

FAILED: CMakeFiles/sdl2_games.dir/src/application/application.cppm.obj CMakeFiles/sdl2_games.dir/application.pcm 
C:\PROGRA~1\LLVM\bin\CLANG_~1.EXE  -IE:/code/C++/sdl2_games/src/headers -isystem E:/code/C++/sdl2_games/cmake-build-debug/vcpkg_installed/x64-windows-static/include -isystem E:/code/C++/sdl2_games/cmake-build-debug/vcpkg_installed/x64-windows-static/include/SDL2 -O0 -std=gnu++23 -D_DEBUG -D_DLL -D_MT -Xclang --dependent-lib=msvcrtd -g -Xclang -gcodeview -Xclang -include-pch -Xclang E:/code/C++/sdl2_games/cmake-build-debug/CMakeFiles/sdl2_games.dir/cmake_pch.hxx.pch -Xclang -include -Xclang E:/code/C++/sdl2_games/cmake-build-debug/CMakeFiles/sdl2_games.dir/cmake_pch.hxx -MD -MT CMakeFiles/sdl2_games.dir/src/application/application.cppm.obj -MF CMakeFiles\sdl2_games.dir\src\application\application.cppm.obj.d @CMakeFiles\sdl2_games.dir\src\application\application.cppm.obj.modmap -o CMakeFiles/sdl2_games.dir/src/application/application.cppm.obj -c E:/code/C++/sdl2_games/src/application/application.cppm
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: "C:\\Program Files\\LLVM\\bin\\clang++.exe" -cc1 -triple x86_64-pc-windows-msvc19.41.34123 -emit-obj -mincremental-linker-compatible -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name application.cppm -mrelocation-model pic -pic-level 2 -mframe-pointer=none -relaxed-aliasing -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu x86-64 -tune-cpu generic -gno-column-info -gcodeview -debug-info-kind=constructor -fdebug-compilation-dir=E:\\code\\C++\\sdl2_games\\cmake-build-debug -object-file-name=E:\\code\\C++\\sdl2_games\\cmake-build-debug\\CMakeFiles\\sdl2_games.dir\\src\\application\\application.cppm.obj -fcoverage-compilation-dir=E:\\code\\C++\\sdl2_games\\cmake-build-debug -resource-dir "C:\\Program Files\\LLVM\\lib\\clang\\19" -O0 -std=gnu++23 -fdeprecated-macro -ferror-limit 19 -fno-use-cxa-atexit -fms-extensions -fms-compatibility -fms-compatibility-version=19.41.34123 -fno-implicit-modules -fmodule-file=template_string=CMakeFiles/sdl2_games.dir/template_string.pcm -fmodule-file=SDL2_EventListener=CMakeFiles/sdl2_games.dir/SDL2_EventListener.pcm -fmodule-file=newModule=CMakeFiles/sdl2_games.dir/newModule.pcm -fmodule-file=SDL2_ImGui_VM=CMakeFiles/sdl2_games.dir/SDL2_ImGui_VM.pcm -fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions --dependent-lib=msvcrtd -gcodeview -include-pch E:/code/C++/sdl2_games/cmake-build-debug/CMakeFiles/sdl2_games.dir/cmake_pch.hxx.pch -include E:/code/C++/sdl2_games/cmake-build-debug/CMakeFiles/sdl2_games.dir/cmake_pch.hxx -faddrsig -o CMakeFiles/sdl2_games.dir/src/application/application.cppm.obj -x pcm CMakeFiles/sdl2_games.dir/application.pcm
Exception Code: 0xC0000005
 #0 0x00007ff65a7ad706 (C:\Program Files\LLVM\bin\clang++.exe+0x23cd706)
 #1 0x00007ff65b3d59e5 (C:\Program Files\LLVM\bin\clang++.exe+0x2ff59e5)
 #2 0x00007ff65b3d47eb (C:\Program Files\LLVM\bin\clang++.exe+0x2ff47eb)
 #3 0x00007ff65a7d8e33 (C:\Program Files\LLVM\bin\clang++.exe+0x23f8e33)
 #4 0x00007ff65a7dc0b7 (C:\Program Files\LLVM\bin\clang++.exe+0x23fc0b7)
 #5 0x00007ff65a7c4bf1 (C:\Program Files\LLVM\bin\clang++.exe+0x23e4bf1)
 #6 0x00007ff65b4506e7 (C:\Program Files\LLVM\bin\clang++.exe+0x30706e7)
 #7 0x00007ff6589b87fb (C:\Program Files\LLVM\bin\clang++.exe+0x5d87fb)
 #8 0x00007ff6589a3703 (C:\Program Files\LLVM\bin\clang++.exe+0x5c3703)
 #9 0x00007ff6589a0486 (C:\Program Files\LLVM\bin\clang++.exe+0x5c0486)
#10 0x00007ff65899d445 (C:\Program Files\LLVM\bin\clang++.exe+0x5bd445)
#11 0x00007ff65899bdde (C:\Program Files\LLVM\bin\clang++.exe+0x5bbdde)
#12 0x00007ff65882348a (C:\Program Files\LLVM\bin\clang++.exe+0x44348a)
#13 0x00007ff65881fee3 (C:\Program Files\LLVM\bin\clang++.exe+0x43fee3)
#14 0x00007ff659fe2d58 (C:\Program Files\LLVM\bin\clang++.exe+0x1c02d58)
#15 0x00007ff9f8bc259d (C:\windows\System32\KERNEL32.DLL+0x1259d)
#16 0x00007ff9f91caf38 (C:\windows\SYSTEM32\ntdll.dll+0x5af38)
clang++: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 19.1.6
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Program Files\LLVM\bin
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: C:\Users\Yiran\AppData\Local\Temp\application-28b6b0.cppm
clang++: note: diagnostic msg: C:\Users\Yiran\AppData\Local\Temp\application-28b6b0.sh
clang++: note: diagnostic msg: 

********************
ninja: build stopped: subcommand failed.

Compiling this file is not easy since other files are needed. However, reproducing the issue is not hard.
application-28b6b0.sh.txt
application-28b6b0.cppm.txt

@github-actions github-actions bot added the clang Clang issues not falling into any other category label Dec 28, 2024
@EugeneZelenko EugeneZelenko added clang:modules C++20 modules and Clang Header Modules crash Prefer [crash-on-valid] or [crash-on-invalid] clang:PCH Precompiled headers and removed clang Clang issues not falling into any other category labels Dec 28, 2024
@llvmbot
Copy link
Member

llvmbot commented Dec 28, 2024

@llvm/issue-subscribers-clang-modules

Author: None (YiRanMushroom)

I was trying to compile my project using modules and PCMs simultaneously. At first, it was okay, but later, when I used too many modules in a source file, clang crashed, here is the log: ``` FAILED: CMakeFiles/sdl2_games.dir/src/application/application.cppm.obj CMakeFiles/sdl2_games.dir/application.pcm C:\PROGRA~1\LLVM\bin\CLANG_~1.EXE -IE:/code/C++/sdl2_games/src/headers -isystem E:/code/C++/sdl2_games/cmake-build-debug/vcpkg_installed/x64-windows-static/include -isystem E:/code/C++/sdl2_games/cmake-build-debug/vcpkg_installed/x64-windows-static/include/SDL2 -O0 -std=gnu++23 -D_DEBUG -D_DLL -D_MT -Xclang --dependent-lib=msvcrtd -g -Xclang -gcodeview -Xclang -include-pch -Xclang E:/code/C++/sdl2_games/cmake-build-debug/CMakeFiles/sdl2_games.dir/cmake_pch.hxx.pch -Xclang -include -Xclang E:/code/C++/sdl2_games/cmake-build-debug/CMakeFiles/sdl2_games.dir/cmake_pch.hxx -MD -MT CMakeFiles/sdl2_games.dir/src/application/application.cppm.obj -MF CMakeFiles\sdl2_games.dir\src\application\application.cppm.obj.d @CMakeFiles\sdl2_games.dir\src\application\application.cppm.obj.modmap -o CMakeFiles/sdl2_games.dir/src/application/application.cppm.obj -c E:/code/C++/sdl2_games/src/application/application.cppm 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: "C:\\Program Files\\LLVM\\bin\\clang++.exe" -cc1 -triple x86_64-pc-windows-msvc19.41.34123 -emit-obj -mincremental-linker-compatible -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name application.cppm -mrelocation-model pic -pic-level 2 -mframe-pointer=none -relaxed-aliasing -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu x86-64 -tune-cpu generic -gno-column-info -gcodeview -debug-info-kind=constructor -fdebug-compilation-dir=E:\\code\\C++\\sdl2_games\\cmake-build-debug -object-file-name=E:\\code\\C++\\sdl2_games\\cmake-build-debug\\CMakeFiles\\sdl2_games.dir\\src\\application\\application.cppm.obj -fcoverage-compilation-dir=E:\\code\\C++\\sdl2_games\\cmake-build-debug -resource-dir "C:\\Program Files\\LLVM\\lib\\clang\\19" -O0 -std=gnu++23 -fdeprecated-macro -ferror-limit 19 -fno-use-cxa-atexit -fms-extensions -fms-compatibility -fms-compatibility-version=19.41.34123 -fno-implicit-modules -fmodule-file=template_string=CMakeFiles/sdl2_games.dir/template_string.pcm -fmodule-file=SDL2_EventListener=CMakeFiles/sdl2_games.dir/SDL2_EventListener.pcm -fmodule-file=newModule=CMakeFiles/sdl2_games.dir/newModule.pcm -fmodule-file=SDL2_ImGui_VM=CMakeFiles/sdl2_games.dir/SDL2_ImGui_VM.pcm -fskip-odr-check-in-gmf -fcxx-exceptions -fexceptions --dependent-lib=msvcrtd -gcodeview -include-pch E:/code/C++/sdl2_games/cmake-build-debug/CMakeFiles/sdl2_games.dir/cmake_pch.hxx.pch -include E:/code/C++/sdl2_games/cmake-build-debug/CMakeFiles/sdl2_games.dir/cmake_pch.hxx -faddrsig -o CMakeFiles/sdl2_games.dir/src/application/application.cppm.obj -x pcm CMakeFiles/sdl2_games.dir/application.pcm Exception Code: 0xC0000005 #0 0x00007ff65a7ad706 (C:\Program Files\LLVM\bin\clang++.exe+0x23cd706) #1 0x00007ff65b3d59e5 (C:\Program Files\LLVM\bin\clang++.exe+0x2ff59e5) #2 0x00007ff65b3d47eb (C:\Program Files\LLVM\bin\clang++.exe+0x2ff47eb) #3 0x00007ff65a7d8e33 (C:\Program Files\LLVM\bin\clang++.exe+0x23f8e33) #4 0x00007ff65a7dc0b7 (C:\Program Files\LLVM\bin\clang++.exe+0x23fc0b7) #5 0x00007ff65a7c4bf1 (C:\Program Files\LLVM\bin\clang++.exe+0x23e4bf1) #6 0x00007ff65b4506e7 (C:\Program Files\LLVM\bin\clang++.exe+0x30706e7) #7 0x00007ff6589b87fb (C:\Program Files\LLVM\bin\clang++.exe+0x5d87fb) #8 0x00007ff6589a3703 (C:\Program Files\LLVM\bin\clang++.exe+0x5c3703) #9 0x00007ff6589a0486 (C:\Program Files\LLVM\bin\clang++.exe+0x5c0486) #10 0x00007ff65899d445 (C:\Program Files\LLVM\bin\clang++.exe+0x5bd445) #11 0x00007ff65899bdde (C:\Program Files\LLVM\bin\clang++.exe+0x5bbdde) #12 0x00007ff65882348a (C:\Program Files\LLVM\bin\clang++.exe+0x44348a) #13 0x00007ff65881fee3 (C:\Program Files\LLVM\bin\clang++.exe+0x43fee3) #14 0x00007ff659fe2d58 (C:\Program Files\LLVM\bin\clang++.exe+0x1c02d58) #15 0x00007ff9f8bc259d (C:\windows\System32\KERNEL32.DLL+0x1259d) #16 0x00007ff9f91caf38 (C:\windows\SYSTEM32\ntdll.dll+0x5af38) clang++: error: clang frontend command failed due to signal (use -v to see invocation) clang version 19.1.6 Target: x86_64-pc-windows-msvc Thread model: posix InstalledDir: C:\Program Files\LLVM\bin 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: C:\Users\Yiran\AppData\Local\Temp\application-28b6b0.cppm
clang++: note: diagnostic msg: C:\Users\Yiran\AppData\Local\Temp\application-28b6b0.sh
clang++: note: diagnostic msg:


ninja: build stopped: subcommand failed.


Compiling this file is not easy since other files are needed. However, reproducing the issue is not hard.
[application-28b6b0.sh.txt](https://github.com/user-attachments/files/18265761/application-28b6b0.sh.txt)
[application-28b6b0.cppm.txt](https://github.com/user-attachments/files/18265760/application-28b6b0.cppm.txt)

</details>

@sampavlovic
Copy link

Can reproduce it, using pch by itself doesn't crash eg with a #warning inside of it, but adding any #include files to it triggers the crash

Happens on OS X, clang 19 from brew

#0 0x000000011c4816fc llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/homebrew/Cellar/llvm/19.1.6/lib/libLLVM.dylib+0x4a116fc)
 #1 0x000000011c481ae8 SignalHandler(int) (/opt/homebrew/Cellar/llvm/19.1.6/lib/libLLVM.dylib+0x4a11ae8)
 #2 0x000000019b252e04 (/usr/lib/system/libsystem_platform.dylib+0x180482e04)
 #3 0x000000010b948438 clang::ASTReader::loadDeclUpdateRecords(clang::ASTReader::PendingUpdateRecord&) (/opt/homebrew/Cellar/llvm/19.1.6/lib/libclang-cpp.dylib+0x21ac438)
 #4 0x000000010b8ee474 clang::ASTReader::finishPendingActions() (/opt/homebrew/Cellar/llvm/19.1.6/lib/libclang-cpp.dylib+0x2152474)
 #5 0x000000010b8f37e8 clang::ASTReader::FinishedDeserializing() (/opt/homebrew/Cellar/llvm/19.1.6/lib/libclang-cpp.dylib+0x21577e8)
 #6 0x000000010b8cf704 clang::ASTReader::ReadAST(llvm::StringRef, clang::serialization::ModuleKind, clang::SourceLocation, unsigned int, clang::serialization::ModuleFile**) (/opt/homebrew/Cellar/llvm/19.1.6/lib/libclang-cpp.dylib+0x2133704)
 #7 0x000000010ba70444 clang::ASTUnit::LoadFromASTFile(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, clang::PCHContainerReader const&, clang::ASTUnit::WhatToLoad, llvm::IntrusiveRefCntPtr<clang::DiagnosticsEngine>, clang::FileSystemOptions const&, std::__1::shared_ptr<clang::HeaderSearchOptions>, std::__1::shared_ptr<clang::LangOptions>, bool, clang::CaptureDiagsKind, bool, bool, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>) (/opt/homebrew/Cellar/llvm/19.1.6/lib/libclang-cpp.dylib+0x22d4444)
 #8 0x000000010bb0cffc clang::FrontendAction::BeginSourceFile(clang::CompilerInstance&, clang::FrontendInputFile const&) (/opt/homebrew/Cellar/llvm/19.1.6/lib/libclang-cpp.dylib+0x2370ffc)
 #9 0x000000010ba87dfc clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/opt/homebrew/Cellar/llvm/19.1.6/lib/libclang-cpp.dylib+0x22ebdfc)
#10 0x000000010bb6aea8 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/opt/homebrew/Cellar/llvm/19.1.6/lib/libclang-cpp.dylib+0x23ceea8)
#11 0x00000001044aeb3c cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/opt/homebrew/Cellar/llvm/19.1.6/bin/clang-19+0x100006b3c)
#12 0x00000001044ac78c ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&) (/opt/homebrew/Cellar/llvm/19.1.6/bin/clang-19+0x10000478c)
#13 0x00000001044aac18 clang_main(int, char**, llvm::ToolContext const&) (/opt/homebrew/Cellar/llvm/19.1.6/bin/clang-19+0x100002c18)
#14 0x00000001044b904c main (/opt/homebrew/Cellar/llvm/19.1.6/bin/clang-19+0x10001104c)
#15 0x000000019ae9c274
clang++: error: unable to execute command: Segmentation fault: 11
clang++: error: clang frontend command failed due to signal (use -v to see invocation)
Homebrew clang version 19.1.6
Target: arm64-apple-darwin24.2.0
Thread model: posix
InstalledDir: /opt/homebrew/Cellar/llvm/19.1.6/bin
Configuration file: /opt/homebrew/etc/clang/arm64-apple-darwin24.cfg
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/9j/1hcg_rkx1cd157_8rppsbrbr0000gn/T/PlatformSDL-3a51bd.cppm
clang++: note: diagnostic msg: /var/folders/9j/1hcg_rkx1cd157_8rppsbrbr0000gn/T/PlatformSDL-3a51bd.sh
clang++: note: diagnostic msg: Crash backtrace is located in
clang++: note: diagnostic msg: /Users/sam/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:

********************

here's the two files it asked to include

PlatformSDL-3a51bd.cppm.zip

# Driver args: "-isysroot" "/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk" "--driver-mode=g++" "-D" "FMT_LOCALE" "-D" "JPH_DEBUG_RENDERER" "-D" "JPH_OBJECT_STREAM" "-D" "JPH_PROFILE_ENABLED" "-D" "NDEBUG" "-D" "OSX" "-D" "RMLUI_STATIC_LIB" "-D" "WEBGPU_BACKEND_WGPU" "-I" "/Users/sam/Documents/Dev/Solitude/Build/_deps/jolt-src/Build/.." "-isystem" "/Users/sam/Documents/Dev/Solitude/Build/_deps/fmt-src/include" "-isystem" "/Users/sam/Documents/Dev/Solitude/Build/_deps/taskflow-src" "-isystem" "/Users/sam/Documents/Dev/Solitude/Build/_deps/entt-src/src" "-isystem" "/Users/sam/Documents/Dev/Solitude/Build/_deps/sdl-build/include" "-isystem" "/Users/sam/Documents/Dev/Solitude/Build/_deps/sdl-build/include/SDL2" "-isystem" "/Users/sam/Documents/Dev/Solitude/Build/_deps/sdl-build/include-config-release/SDL2" "-isystem" "/Users/sam/Documents/Dev/Solitude/Build/_deps/cglm-src/include" "-isystem" "/Users/sam/Documents/Dev/Solitude/Build/_deps/gamenetworkingsockets-src/src/../include" "-isystem" "/opt/homebrew/include" "-isystem" "/Users/sam/Documents/Dev/Solitude/Build/_deps/ozz-animation-src/include" "-isystem" "/Users/sam/Documents/Dev/Solitude/Build/_deps/rmlui-src/Include" "-isystem" "/Users/sam/Documents/Dev/Solitude/Build/_deps/webgpu-backend-wgpu-src/include" "-isystem" "/Users/sam/Documents/Dev/Solitude/Build/_deps/sdl2webgpu-src/." "-O3" "-D" "NDEBUG" "-std=c++23" "-arch" "arm64" "-isysroot" "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk" "-pthread" "-Winvalid-pch" "-Xclang" "-include-pch" "-Xclang" "/Users/sam/Documents/Dev/Solitude/Build/Source/Vitamin/CMakeFiles/Vitamin.dir/cmake_pch.hxx.pch" "-Xclang" "-include" "-Xclang" "/Users/sam/Documents/Dev/Solitude/Build/Source/Vitamin/CMakeFiles/Vitamin.dir/cmake_pch.hxx" "-MD" "-MT" "Source/Vitamin/CMakeFiles/Vitamin.dir/Platform/SDL/PlatformSDL.cpp.o" "-MF" "Source/Vitamin/CMakeFiles/Vitamin.dir/Platform/SDL/PlatformSDL.cpp.o.d" "-x" "c++-module" "-fmodule-output=Source/Vitamin/CMakeFiles/Vitamin.dir/Vitamin.Platform.SDL.pcm" "-fmodule-file=Vitamin.Platform.Interface=Source/Vitamin/CMakeFiles/Vitamin.dir/Vitamin.Platform.Interface.pcm" "-fmodule-file=Vitamin.Core=Source/Vitamin/CMakeFiles/Vitamin.dir/Vitamin.Core.pcm" "-fmodule-file=Vitamin.Core.Math=Source/Vitamin/CMakeFiles/Vitamin.dir/Vitamin.Core.Math.pcm" "-fmodule-file=Vitamin.Core.STL=Source/Vitamin/CMakeFiles/Vitamin.dir/Vitamin.Core.STL.pcm" "-o" "Source/Vitamin/CMakeFiles/Vitamin.dir/Platform/SDL/PlatformSDL.cpp.o" "-c" "/Users/sam/Documents/Dev/Solitude/Source/Vitamin/Platform/SDL/PlatformSDL.cpp"
# Original command:  "/opt/homebrew/Cellar/llvm/19.1.6/bin/clang-19" "-cc1" "-triple" "arm64-apple-macosx15.0.0" "-Wundef-prefix=TARGET_OS_" "-Werror=undef-prefix" "-Wdeprecated-objc-isa-usage" "-Werror=deprecated-objc-isa-usage" "-emit-obj" "-disable-free" "-clear-ast-before-backend" "-disable-llvm-verifier" "-discard-value-names" "-main-file-name" "PlatformSDL.cpp" "-mrelocation-model" "pic" "-pic-level" "2" "-mframe-pointer=non-leaf" "-ffp-contract=on" "-fno-rounding-math" "-funwind-tables=1" "-target-sdk-version=15.2" "-fcompatibility-qualified-id-block-type-checking" "-fvisibility-inlines-hidden-static-local-var" "-fdefine-target-os-macros" "-target-cpu" "apple-m1" "-target-feature" "+zcm" "-target-feature" "+zcz" "-target-feature" "+v8.4a" "-target-feature" "+aes" "-target-feature" "+altnzcv" "-target-feature" "+ccdp" "-target-feature" "+complxnum" "-target-feature" "+crc" "-target-feature" "+dotprod" "-target-feature" "+fp-armv8" "-target-feature" "+fp16fml" "-target-feature" "+fptoint" "-target-feature" "+fullfp16" "-target-feature" "+jsconv" "-target-feature" "+lse" "-target-feature" "+neon" "-target-feature" "+pauth" "-target-feature" "+perfmon" "-target-feature" "+predres" "-target-feature" "+ras" "-target-feature" "+rcpc" "-target-feature" "+rdm" "-target-feature" "+sb" "-target-feature" "+sha2" "-target-feature" "+sha3" "-target-feature" "+specrestrict" "-target-feature" "+ssbs" "-target-abi" "darwinpcs" "-debugger-tuning=lldb" "-fdebug-compilation-dir=/Users/sam/Documents/Dev/Solitude/Build" "-target-linker-version" "1115.7.3" "-fcoverage-compilation-dir=/Users/sam/Documents/Dev/Solitude/Build" "-resource-dir" "/opt/homebrew/Cellar/llvm/19.1.6/lib/clang/19" "-O3" "-Winvalid-pch" "-std=c++23" "-fdeprecated-macro" "-ferror-limit" "19" "-pthread" "-stack-protector" "1" "-fblocks" "-fencode-extended-block-signature" "-fregister-global-dtors-with-atexit" "-fgnuc-version=4.2.1" "-fno-implicit-modules" "-fmodule-file=Vitamin.Platform.Interface=Source/Vitamin/CMakeFiles/Vitamin.dir/Vitamin.Platform.Interface.pcm" "-fmodule-file=Vitamin.Core=Source/Vitamin/CMakeFiles/Vitamin.dir/Vitamin.Core.pcm" "-fmodule-file=Vitamin.Core.Math=Source/Vitamin/CMakeFiles/Vitamin.dir/Vitamin.Core.Math.pcm" "-fmodule-file=Vitamin.Core.STL=Source/Vitamin/CMakeFiles/Vitamin.dir/Vitamin.Core.STL.pcm" "-fskip-odr-check-in-gmf" "-fcxx-exceptions" "-fexceptions" "-fmax-type-align=16" "-vectorize-loops" "-vectorize-slp" "-include-pch" "/Users/sam/Documents/Dev/Solitude/Build/Source/Vitamin/CMakeFiles/Vitamin.dir/cmake_pch.hxx.pch" "-include" "/Users/sam/Documents/Dev/Solitude/Build/Source/Vitamin/CMakeFiles/Vitamin.dir/cmake_pch.hxx" "-D__GCC_HAVE_DWARF2_CFI_ASM=1" "-o" "Source/Vitamin/CMakeFiles/Vitamin.dir/Platform/SDL/PlatformSDL.cpp.o" "-x" "pcm" "Source/Vitamin/CMakeFiles/Vitamin.dir/Vitamin.Platform.SDL.pcm"
 "/opt/homebrew/Cellar/llvm/19.1.6/bin/clang-19" "-cc1" "-triple" "arm64-apple-macosx15.0.0" "-Wundef-prefix=TARGET_OS_" "-Werror=undef-prefix" "-Wdeprecated-objc-isa-usage" "-Werror=deprecated-objc-isa-usage" "-emit-obj" "-disable-free" "-clear-ast-before-backend" "-disable-llvm-verifier" "-discard-value-names" "-main-file-name" "PlatformSDL.cpp" "-mrelocation-model" "pic" "-pic-level" "2" "-mframe-pointer=non-leaf" "-ffp-contract=on" "-fno-rounding-math" "-funwind-tables=1" "-target-sdk-version=15.2" "-fcompatibility-qualified-id-block-type-checking" "-fvisibility-inlines-hidden-static-local-var" "-fdefine-target-os-macros" "-target-cpu" "apple-m1" "-target-feature" "+zcm" "-target-feature" "+zcz" "-target-feature" "+v8.4a" "-target-feature" "+aes" "-target-feature" "+altnzcv" "-target-feature" "+ccdp" "-target-feature" "+complxnum" "-target-feature" "+crc" "-target-feature" "+dotprod" "-target-feature" "+fp-armv8" "-target-feature" "+fp16fml" "-target-feature" "+fptoint" "-target-feature" "+fullfp16" "-target-feature" "+jsconv" "-target-feature" "+lse" "-target-feature" "+neon" "-target-feature" "+pauth" "-target-feature" "+perfmon" "-target-feature" "+predres" "-target-feature" "+ras" "-target-feature" "+rcpc" "-target-feature" "+rdm" "-target-feature" "+sb" "-target-feature" "+sha2" "-target-feature" "+sha3" "-target-feature" "+specrestrict" "-target-feature" "+ssbs" "-target-abi" "darwinpcs" "-debugger-tuning=lldb" "-fdebug-compilation-dir=/Users/sam/Documents/Dev/Solitude/Build" "-target-linker-version" "1115.7.3" "-fcoverage-compilation-dir=/Users/sam/Documents/Dev/Solitude/Build" "-O3" "-Winvalid-pch" "-std=c++23" "-fdeprecated-macro" "-ferror-limit" "19" "-pthread" "-stack-protector" "1" "-fblocks" "-fencode-extended-block-signature" "-fregister-global-dtors-with-atexit" "-fgnuc-version=4.2.1" "-fno-implicit-modules" "-fmodule-file=Vitamin.Platform.Interface=Source/Vitamin/CMakeFiles/Vitamin.dir/Vitamin.Platform.Interface.pcm" "-fmodule-file=Vitamin.Core=Source/Vitamin/CMakeFiles/Vitamin.dir/Vitamin.Core.pcm" "-fmodule-file=Vitamin.Core.Math=Source/Vitamin/CMakeFiles/Vitamin.dir/Vitamin.Core.Math.pcm" "-fmodule-file=Vitamin.Core.STL=Source/Vitamin/CMakeFiles/Vitamin.dir/Vitamin.Core.STL.pcm" "-fskip-odr-check-in-gmf" "-fcxx-exceptions" "-fexceptions" "-fmax-type-align=16" "-vectorize-loops" "-vectorize-slp" "-D__GCC_HAVE_DWARF2_CFI_ASM=1" "-x" "pcm" "PlatformSDL-3a51bd.cppm"```

@sampavlovic
Copy link

sampavlovic commented Jan 2, 2025

might be a duplicate of #95317 #105994

@sushinskiy
Copy link

It seems, it also duplicates #122285

@YiRanMushroom
Copy link
Author

It seems, the issue is fixed in the release LLVM 20.1.2. This issue is closed as completed. In case, there are still problems, we can reopen it.

@sampavlovic
Copy link

sampavlovic commented Apr 8, 2025

Awesome, thank you very much for the heads up @YiRanMushroom , I'll let you know if any issues come up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang:modules C++20 modules and Clang Header Modules clang:PCH Precompiled headers crash Prefer [crash-on-valid] or [crash-on-invalid]
Projects
None yet
Development

No branches or pull requests

5 participants