llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
27.92k stars 11.52k forks source link

Cannot build WebGL, even empty project #75906

Open KulitorumWork opened 8 months ago

KulitorumWork commented 8 months ago

Has been like this for months....

Building Library\Bee\artifacts\WebGL\GameAssembly\release_WebGL_wasm\xl8yq1p3gv5y.o failed with output:
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/Unity/Hub/Editor/2022.3.15f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/llvm\\clang++.exe" -target wasm32-unknown-emscripten -DEMSCRIPTEN -D__EMSCRIPTEN_major__=3 -D__EMSCRIPTEN_minor__=1 -D__EMSCRIPTEN_tiny__=8 -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-cxx-exceptions -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Werror=implicit-function-declaration -Xclang -iwithsysroot/include/SDL "--sysroot=C:\\Program Files\\Unity\\Hub\\Editor\\2022.3.15f1\\Editor\\Data\\PlaybackEngines\\WebGLSupport\\BuildTools\\Emscripten\\emscripten\\cache\\sysroot" -Xclang -iwithsysroot/include\\compat -D__webgl__ -Wno-c++11-extensions -Wno-nonportable-include-path -ffunction-sections -fno-unwind-tables -fomit-frame-pointer -fno-threadsafe-statics -std=c++11 -Wno-#warnings -Wswitch -Wno-trigraphs -Wno-tautological-compare -Wno-invalid-offsetof -Wno-implicitly-unsigned-literal -Wno-integer-overflow -Wno-shift-negative-value -Wno-unknown-attributes -Wno-implicit-function-declaration -Wno-null-conversion -Wno-missing-declarations -Wno-unused-value -Wno-pragma-once-outside-header -fvisibility=hidden -fexceptions -fno-rtti -O3 -fno-strict-overflow -ffunction-sections -fdata-sections -fmessage-length=0 -pipe -D_GLIBCXX_USE_CXX11_ABI=0 -DBASELIB_INLINE_NAMESPACE=il2cpp_baselib -DIL2CPP_MONO_DEBUGGER_DISABLED -DRUNTIME_IL2CPP -DHAVE_BDWGC_GC -DNDEBUG -I. "-IG:/Unity projects/WebGL Test/Library/Bee/artifacts/WebGL/il2cppOutput/cpp" "-IC:/Program Files/Unity/Hub/Editor/2022.3.15f1/Editor/Data/il2cpp/libil2cpp/pch" "-IC:/Program Files/Unity/Hub/Editor/2022.3.15f1/Editor/Data/il2cpp/libil2cpp" "-IC:/Program Files/Unity/Hub/Editor/2022.3.15f1/Editor/Data/il2cpp/external/baselib/Include" "-IC:/Program Files/Unity/Hub/Editor/2022.3.15f1/Editor/Data/il2cpp/libil2cpp/os/ClassLibraryPAL/brotli/include" "-IC:/Program Files/Unity/Hub/Editor/2022.3.15f1/Editor/Data/il2cpp/external/baselib/Platforms/WebGL/Include" -fcolor-diagnostics -fdiagnostics-absolute-paths -c -xc++ "G:/Unity projects/WebGL Test/Library/Bee/artifacts/WebGL/il2cppOutput/cpp/mscorlib.cpp" -o Library/Bee/artifacts/WebGL/GameAssembly/release_WebGL_wasm/xl8yq1p3gv5y.o
1.  <eof> parser at end of file
2.  Optimizer
 #0 0x00007ff6c1400133 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0xdf0133 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x486b4f
 #1 0x00007ff6c1400133 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x48696c C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x495c68
 #2 0x00007ff6c1400133 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x496266 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x49570c
 #3 0x00007ff6c1400133 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x496266 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x496310
 #4 0x00007ff6c1400133 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x3e458d C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x3e3e33
 #5 0x00007ff6c1400133 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x3e0c5f C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x3dd195
 #6 0x00007ff6c1400133 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0xd67cd4 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0xd6776a
 #7 0x00007ff6c1400133 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x1a851f2 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x87cd93
 #8 0x00007ff6c1400133 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x1092ee2 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x2d79071
 #9 0x00007ff6c1400133 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x1a86076 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x2d78a25
#10 0x00007ff6c1400133 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x9d9996 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x2d79605
#11 0x00007ff6c1400133 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x9d99c6 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x2d7a619
#12 0x00007ff6c1400133 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x9d9962 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x87d0d3
#13 0x00007ff6c1400133 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x9db941 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x1a85de2
#14 0x00007ff6c1400133 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x87d0d3 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x108c1a2
#15 0x00007ff6c1400133 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x108824a C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x1089e01
#16 0x00007ff6c1400133 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x2f9382e C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x2108a64
#17 0x00007ff6c1400133 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x1623857 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x2f92628
#18 0x00007ff6c1400133 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x1623332 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x15edf45
#19 0x00007ff6c1400133 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x168a288 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x73533
#20 0x00007ff6c1400133 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x6e467 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x15064f7
#21 0x00007ff6c1400133 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0xdc4e1d C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x1506ad0
#22 0x00007ff6c1400133 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x1481fbf C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x148230d
#23 0x00007ff6c1400133 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x14691be C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x708bb
#24 0x00007ff6c1400133 C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe 0x2d53484 (C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0xdf0133)
#25 0x00007ff6c1400133 
#26 0x00007ff6c1400133 (C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0xdf0133)
0x00007FF6C1400133 (0x000002098C1FA700 0x0000000000000002 0x000000648DB88350 0x0000000000000000)
0x00007FF6C0A96B4F (0x000000648DB88288 0x000002098C1FB360 0x000000648DB88530 0x000002098C1FB480)
0x00007FF6C0A9696C (0x000002098C1FB480 0x000000648DB882C9 0x000002098C1FB480 0x0000000000000028)
0x00007FF6C0AA5C68 (0x0000020900000020 0x000002098C1FB480 0x0000000000000001 0x000000648DB88530)
0x00007FF6C0AA6266 (0x000000648DB88449 0x00000209892124F8 0x000002098CAAE300 0x0000000000000000)
0x00007FF6C0AA570C (0x000002098A7DB718 0x000002098CAAE300 0x0000000000000000 0x000000648DB88530)
0x00007FF6C0AA6266 (0x000000648DB885B9 0x000000648DB88648 0x000002098BF3ABB0 0x0000000000000000)
0x00007FF6C0AA6310 (0x000002098C1FB360 0x000002098A7D33A0 0x000002098A7049D0 0x000002098A7D0006)
0x00007FF6C09F458D (0x000002098A7D33F0 0x000002098A7D33A0 0x000000648DB886F0 0x0000000000000001)
0x00007FF6C09F3E33 (0x000002098A7D33A0 0x000000648DB88850 0x000002098BF3ABB0 0x000002098BF3ABB0)
0x00007FF6C09F0C5F (0x000002098BF3ABB0 0x000000648DB88990 0x000002098CAAEA00 0x000002098CAAE300)
0x00007FF6C09ED195 (0x000002098CAAE388 0x000002098CAAEA00 0x000002098BF3ABE8 0x000002098BF3ABE8)
0x00007FF6C1377CD4 (0x000002098CE44300 0x000002098B210BE8 0x000002098CE44318 0x000000648DB88CB0)
0x00007FF6C137776A (0x000000648DB88E50 0x000002098CEECF38 0x000000648DB8A440 0x0000000000000018)
0x00007FF6C20951F2 (0x000000648DB88DF0 0x000000648DB8A728 0x000002098BEDEF78 0x0000000000000000)
0x00007FF6C0E8CD93 (0x000002098CEECF38 0x000000648DB890C0 0x000000648DB890C0 0x000000648DB8A440)
0x00007FF6C16A2EE2 (0x000000648DB88FB0 0x000000648DB8A728 0x0000020989C33C00 0x00007FF6C4130040)
0x00007FF6C3389071 (0x00007FF6C361223D 0x00007FF6C208FFA1 0x00007FF6C361223D 0x000000648DB892F0)
0x00007FF6C2096076 (0x000000648DB893F0 0x000000648DB8A728 0x0000020989A71A80 0x0000000000000000)
0x00007FF6C3388A25 (0x000000648DB898D0 0x000000648DB89480 0x000000648DB8A728 0x000000648DB8A4E0)
0x00007FF6C0FE9996 (0x000000648DB894E0 0x000000648DB8A728 0x000002098BEDEFD0 0x000000648DB89968)
0x00007FF6C3389605 (0x000002098A14D078 0x00007FF6C0FE8BC1 0x000002098A14D078 0x000000648DB89840)
0x00007FF6C0FE99C6 (0x000000648DB897E0 0x000002098AFD4080 0x0000020989C33C00 0x0000000000000000)
0x00007FF6C338A619 (0x000002098BAB6480 0x000000648DB89EF0 0x000000648DB89F20 0x0000000000000003)
0x00007FF6C0FE9962 (0x000000648DB89EB0 0x000000648DB8A728 0x0000020989276230 0x000002098BAB6480)
0x00007FF6C0E8D0D3 (0x000002098BAB6480 0x000000648DB8A070 0x000002098BAB6418 0x000000648DB8A490)
0x00007FF6C0FEB941 (0x0000000000000000 0x000000648DB8A230 0x0000020989276230 0x000000648DB8A490)
0x00007FF6C2095DE2 (0x000000648DB8A1D0 0x000000648DB8A728 0x0000020989276230 0x0000000000000000)
0x00007FF6C0E8D0D3 (0x000000648DB8A340 0x000000648DB8A670 0x000002098ADD2190 0x000000648DB8A490)
0x00007FF6C169C1A2 (0x0000000000000000 0x000000648DB8BE30 0x0000000000000005 0x0000000000000000)
0x00007FF6C169824A (0x00000000000003FF 0x00007FFA1FC4AB11 0x0000000000000000 0x0000020989180000)
0x00007FF6C1699E01 (0x0000020989263650 0x0000020989276268 0x0000020989276268 0x0000000000000000)
0x00007FF6C35A382E (0x0000000000000000 0x0000020989263650 0x00000209891CFBB0 0x0000000000000000)
0x00007FF6C2718A64 (0x000002098920D400 0x0000000000000000 0x000002098920D440 0x0000000000000000)
0x00007FF6C1C33857 (0x0000020989214FD0 0x0000000000000000 0xFFFFFFFFFFFFFFFF 0x0000020989180150)
0x00007FF6C35A2628 (0x000000648DB8D580 0x00007FF6C1C084B4 0x00008579E68B16F8 0x00007FF6C336314F)
0x00007FF6C1C33332 (0x0000000000000000 0x000000648DB8D4F8 0x0000000400000000 0x0000020989214FD0)
0x00007FF6C1BFDF45 (0x00000209891CFCB0 0x0000000000000038 0x0000000000000000 0x000002098920D440)
0x00007FF6C1C9A288 (0x0000000000000000 0x000000648DB8D730 0x00000209891D3420 0x0000000000000000)
0x00007FF6C0683533 (0x0000000000000000 0x000000648DB8DEA9 0x000000648DB8DFB0 0x0000000000000000)
0x00007FF6C067E467 (0x0000000000000120 0x000000648DB8DFC8 0x000000648DB8DFB0 0x0000000000000002)
0x00007FF6C1B164F7 (0x000002098920CE30 0x000000648DB8DFB0 0x0000020900000003 0x000002098920DD60)
0x00007FF6C13D4E1D (0x000000648DB8FB50 0x0000000000000000 0x0000000000000001 0x00007FFA1D2FF70C)
0x00007FF6C1B16AD0 (0x00000209891D2560 0x000000648DB8E509 0x000002098920DB70 0x0000000000000000)
0x00007FF6C1A91FBF (0x0000020989209FF0 0x0000020989209FF0 0x000002090000003E 0x000002098920ACB8)
0x00007FF6C1A9230D (0x000000648DB8E689 0x0000000000000000 0x000002098920ACC0 0x000002098920ACC0)
0x00007FF6C1A791BE (0x0000000000000000 0x0000000000000001 0x0000000000000001 0x0000000000000000)
0x00007FF6C06808BB (0x0000000000000000 0x00007FF6C33634FD 0x0000000000000000 0x0000000000000000)
0x00007FF6C3363484 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
0x00007FFA1F36257D (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), BaseThreadInitThunk() + 0x1D bytes(s)
0x00007FFA1FC6AA58 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), RtlUserThreadStart() + 0x28 bytes(s)
clang++: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 14.0.1 (https://github-com-cache.bf.unity3d.com/Unity-Technologies/llvm-project c62053979489ccb002efe411c3af059addcb5d7d)
Target: wasm32-unknown-emscripten
Thread model: posix
InstalledDir: C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm
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\MICHAE~1\AppData\Local\Temp\mscorlib-777f15.cpp
clang++: note: diagnostic msg: C:\Users\MICHAE~1\AppData\Local\Temp\mscorlib-777f15.sh
clang++: note: diagnostic msg: 

********************
emcc: error: '"C:/Program Files/Unity/Hub/Editor/2022.3.15f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/llvm\clang++.exe" -target wasm32-unknown-emscripten -DEMSCRIPTEN -D__EMSCRIPTEN_major__=3 -D__EMSCRIPTEN_minor__=1 -D__EMSCRIPTEN_tiny__=8 -mllvm -combiner-global-alias-analysis<message truncated>
[Crash.zip](https://github.com/llvm/llvm-project/files/13713009/Crash.zip)
tbaederr commented 8 months ago

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:

Where are the files?

You're using clang 14 as well, we only support the current major version, i.e. clang 17. Can you try a more recent version?

KulitorumWork commented 8 months ago

Files are here: (Also in first post)

Crash.zip

I'm using the version that Unity 2022.3.15f1 installed, I believe.

Michael

KulitorumWork commented 8 months ago

C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm>clang --version clang version 14.0.1 (https://github-com-cache.bf.unity3d.com/Unity-Technologies/llvm-project c62053979489ccb002efe411c3af059addcb5d7d) Target: x86_64-pc-windows-msvc Thread model: posix InstalledDir: C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm

C:\Program Files\Unity\Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm>

STak4 commented 4 months ago

@tbaederr @KulitorumWork Same. I tried updating clang to 18, but not working. I also posted an issue on Unity forum.

stacktrace

Building Library\Bee\artifacts\WebGL\GameAssembly\release_WebGL_wasm\7rhidqvid4kj.o failed with output:
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: E:/ProgramFiles/Unity/Editor/2022.3.28f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/llvm\\clang++.exe -target wasm32-unknown-emscripten -DEMSCRIPTEN -D__EMSCRIPTEN_major__=3 -D__EMSCRIPTEN_minor__=1 -D__EMSCRIPTEN_tiny__=8 -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-cxx-exceptions -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Werror=implicit-function-declaration -Xclang -iwithsysroot/include/SDL --sysroot=E:\\ProgramFiles\\Unity\\Editor\\2022.3.28f1\\Editor\\Data\\PlaybackEngines\\WebGLSupport\\BuildTools\\Emscripten\\emscripten\\cache\\sysroot -Xclang -iwithsysroot/include\\compat -D__webgl__ -Wno-c++11-extensions -Wno-nonportable-include-path -ffunction-sections -fno-unwind-tables -fomit-frame-pointer -fno-threadsafe-statics -std=c++11 -Wno-#warnings -Wswitch -Wno-trigraphs -Wno-tautological-compare -Wno-invalid-offsetof -Wno-implicitly-unsigned-literal -Wno-integer-overflow -Wno-shift-negative-value -Wno-unknown-attributes -Wno-implicit-function-declaration -Wno-null-conversion -Wno-missing-declarations -Wno-unused-value -Wno-pragma-once-outside-header -fvisibility=hidden -fexceptions -fno-rtti -O3 -fno-strict-overflow -ffunction-sections -fdata-sections -fmessage-length=0 -pipe -D_GLIBCXX_USE_CXX11_ABI=0 -DBASELIB_INLINE_NAMESPACE=il2cpp_baselib -DIL2CPP_MONO_DEBUGGER_DISABLED -DRUNTIME_IL2CPP -DHAVE_BDWGC_GC -DNDEBUG -I. -IE:/Dev/Discord/discordbrickout/UProject/Library/Bee/artifacts/WebGL/il2cppOutput/cpp -IE:/ProgramFiles/Unity/Editor/2022.3.28f1/Editor/Data/il2cpp/libil2cpp/pch -IE:/ProgramFiles/Unity/Editor/2022.3.28f1/Editor/Data/il2cpp/libil2cpp -IE:/ProgramFiles/Unity/Editor/2022.3.28f1/Editor/Data/il2cpp/external/baselib/Include -IE:/ProgramFiles/Unity/Editor/2022.3.28f1/Editor/Data/il2cpp/libil2cpp/os/ClassLibraryPAL/brotli/include -IE:/ProgramFiles/Unity/Editor/2022.3.28f1/Editor/Data/il2cpp/external/baselib/Platforms/WebGL/Include -fcolor-diagnostics -fdiagnostics-absolute-paths -c -xc++ E:/Dev/Discord/discordbrickout/UProject/Library/Bee/artifacts/WebGL/il2cppOutput/cpp/Generics__34.cpp -o Library/Bee/artifacts/WebGL/GameAssembly/release_WebGL_wasm/7rhidqvid4kj.o
1.   parser at end of file
2.  Optimizer
Exception Code: 0xC0000005
 #0 0x00007ff7009b620a (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x236620a)
 #1 0x00007ff7009b4371 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x2364371)
 #2 0x00007ff7009b26d1 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x23626d1)
 #3 0x00007ff7009b03fc (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x23603fc)
 #4 0x00007ff6feae5372 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x495372)
 #5 0x00007ff6feae5111 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x495111)
 #6 0x00007ff7006b5d06 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x2065d06)
 #7 0x00007ff7006b5961 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x2065961)
 #8 0x00007ff700ac5ade (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x2475ade)
 #9 0x00007ff6fecec3b1 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x69c3b1)
#10 0x00007ff6fe99c48c (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x34c48c)
#11 0x00007ff6fe998209 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x348209)
#12 0x00007ff6fe98f783 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x33f783)
#13 0x00007ff700712855 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x20c2855)
#14 0x00007ff700ad1268 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x2481268)
#15 0x00007ff6fec011d1 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x5b11d1)
#16 0x00007ff6fec00c72 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x5b0c72)
#17 0x00007ff6febfd9a4 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x5ad9a4)
#18 0x00007ff6febfb520 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x5ab520)
#19 0x00007ff6febf9eee (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x5a9eee)
#20 0x00007ff6ffa0dc8d (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x13bdc8d)
#21 0x00007ff6fed8b5e5 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x73b5e5)
#22 0x00007ff6fed8b3e8 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x73b3e8)
#23 0x00007ff6fea3f3f8 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x3ef3f8)
#24 0x00007ff6fea3edae (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x3eedae)
#25 0x00007ff6fea3e8c7 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x3ee8c7)
#26 0x00007ff6fea38757 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x3e8757)
#27 0x00007ff6fea35dd3 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x3e5dd3)
#28 0x00007ff700b56b70 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x2506b70)
#29 0x00007ffa54437344 (C:\WINDOWS\System32\KERNEL32.DLL+0x17344)
#30 0x00007ffa553e26b1 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x526b1)
clang++: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 18.1.5
Target: wasm32-unknown-emscripten
Thread model: posix
InstalledDir: E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm
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\STak4\AppData\Local\Temp\Generics__34-c58e2b.cpp
clang++: note: diagnostic msg: C:\Users\STak4\AppData\Local\Temp\Generics__34-c58e2b.sh
clang++: note: diagnostic msg: 

********************
emcc: error: 'E:/ProgramFiles/Unity/Editor/2022.3.28f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/llvm\clang++.exe -target wasm32-unknown-emscripten -DEMSCRIPTEN -D__EMSCRIPTEN_major__=3 -D__EMSCRIPTEN_minor__=1 -D__EMSCRIPTEN_tiny__=8 -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-cxx-exceptions -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Werror=implicit-function-declaration -Xclang -iwithsysroot/include/SDL --sysroot=E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten\cache\sysroot -Xclang -iwithsysroot/include\compat -D__webgl__ -Wno-c++11-extensions -Wno-nonportable-include-path -ffunction-sections -fno-unwind-tables -fomit-frame-pointer -fno-threadsafe-statics -std=c++11 -Wno-#warnings -Wswitch -Wno-trigraphs -Wno-tautological-compare -Wno-invalid-offsetof -Wno-implicitly-unsigned-literal -Wno-integer-overflow -Wno-shift-negative-value -Wno-unknown-attributes -Wno-implicit-function-declaration -Wno-null-conversion -Wno-missing-declarations -Wno-unused-value -Wno-pragma-once-outside-header -fvisibility=hidden -fexceptions -fno-rtti -O3 -fno-strict-overflow -ffunction-sections -fdata-sections -fmessage-length=0 -pipe -D_GLIBCXX_USE_CXX11_ABI=0 -DBASELIB_INLINE_NAMESPACE=il2cpp_baselib -DIL2CPP_MONO_DEBUGGER_DISABLED -DRUNTIME_IL2CPP -DHAVE_BDWGC_GC -DNDEBUG -I. -IE:/Dev/Discord/discordbrickout/UProject/Library/Bee/artifacts/WebGL/il2cppOutput/cpp -IE:/ProgramFiles/Unity/Editor/2022.3.28f1/Editor/Data/il2cpp/libil2cpp/pch -IE:/ProgramFiles/Unity/Editor/2022.3.28f1/Editor/Data/il2cpp/libil2cpp -IE:/ProgramFiles/Unity/Editor/2022.3.28f1/Editor/Data/il2cpp/external/baselib/Include -IE:/ProgramFiles/Unity/Editor/2022.3.28f1/Editor/Data/il2cpp/libil2cpp/os/ClassLibraryPAL/brotli/include -IE:/ProgramFiles/Unity/Editor/2022.3.28f1/Editor/Data/il2cpp/external/baselib/Platforms/WebGL/Include -fcolor-diagnostics -fdiagnostics-absolute-paths -c -xc++ E:/Dev/Discord/discordbrickout/UProject/Library/Bee/artifacts/WebGL/il2cppOutput/cpp/Generics__34.cpp -o Library/Bee/artifacts/WebGL/GameAssembly/release_WebGL_wasm/7rhidqvid4kj.o' failed (returned 1)

UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)


Crash files.zip

KulitorumWork commented 4 months ago

Turned out for me, it was an error on my CPU that failed when running many threads at the same time, which it did when compiling. Replacing my CPU fixed it for me.

Sendt fra Outlook til iOShttps://aka.ms/o0ukef


Fra: STak @.> Sendt: Sunday, May 12, 2024 1:49:20 PM Til: llvm/llvm-project @.> Cc: Michael Holm @.>; Mention @.> Emne: Re: [llvm/llvm-project] Cannot build WebGL, even empty project (Issue #75906)

@tbaederrhttps://github.com/tbaederr @KulitorumWorkhttps://github.com/KulitorumWork Same. I tried updating clang to 18, but not working. I also posted an issue on Unity forum.

stacktrace

Building Library\Bee\artifacts\WebGL\GameAssembly\release_WebGL_wasm\7rhidqvid4kj.o failed with output: 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:

  1. Program arguments: E:/ProgramFiles/Unity/Editor/2022.3.28f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/llvm\clang++.exe -target wasm32-unknown-emscripten -DEMSCRIPTEN -DEMSCRIPTEN_major=3 -DEMSCRIPTEN_minor=1 -DEMSCRIPTEN_tiny=8 -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-cxx-exceptions -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Werror=implicit-function-declaration -Xclang -iwithsysroot/include/SDL --sysroot=E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten\cache\sysroot -Xclang -iwithsysroot/include\compat -Dwebgl__ -Wno-c++11-extensions -Wno-nonportable-include-path -ffunction-sections -fno-unwind-tables -fomit-frame-pointer -fno-threadsafe-statics -std=c++11 -Wno-#warnings -Wswitch -Wno-trigraphs -Wno-tautological-compare -Wno-invalid-offsetof -Wno-implicitly-unsigned-literal -Wno-integer-overflow -Wno-shift-negative-value -Wno-unknown-attributes -Wno-implicit-function-declaration -Wno-null-conversion -Wno-missing-declarations -Wno-unused-value -Wno-pragma-once-outside-header -fvisibility=hidden -fexceptions -fno-rtti -O3 -fno-strict-overflow -ffunction-sections -fdata-sections -fmessage-length=0 -pipe -D_GLIBCXX_USE_CXX11_ABI=0 -DBASELIB_INLINE_NAMESPACE=il2cpp_baselib -DIL2CPP_MONO_DEBUGGER_DISABLED -DRUNTIME_IL2CPP -DHAVE_BDWGC_GC -DNDEBUG -I. -IE:/Dev/Discord/discordbrickout/UProject/Library/Bee/artifacts/WebGL/il2cppOutput/cpp -IE:/ProgramFiles/Unity/Editor/2022.3.28f1/Editor/Data/il2cpp/libil2cpp/pch -IE:/ProgramFiles/Unity/Editor/2022.3.28f1/Editor/Data/il2cpp/libil2cpp -IE:/ProgramFiles/Unity/Editor/2022.3.28f1/Editor/Data/il2cpp/external/baselib/Include -IE:/ProgramFiles/Unity/Editor/2022.3.28f1/Editor/Data/il2cpp/libil2cpp/os/ClassLibraryPAL/brotli/include -IE:/ProgramFiles/Unity/Editor/2022.3.28f1/Editor/Data/il2cpp/external/baselib/Platforms/WebGL/Include -fcolor-diagnostics -fdiagnostics-absolute-paths -c -xc++ E:/Dev/Discord/discordbrickout/UProject/Library/Bee/artifacts/WebGL/il2cppOutput/cpp/Generics34.cpp -o Library/Bee/artifacts/WebGL/GameAssembly/release_WebGL_wasm/7rhidqvid4kj.o
  2. parser at end of file
  3. Optimizer Exception Code: 0xC0000005

    0 0x00007ff7009b620a (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x236620a)

    1 0x00007ff7009b4371 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x2364371)

    2 0x00007ff7009b26d1 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x23626d1)

    3 0x00007ff7009b03fc (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x23603fc)

    4 0x00007ff6feae5372 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x495372)

    5 0x00007ff6feae5111 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x495111)

    6 0x00007ff7006b5d06 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x2065d06)

    7 0x00007ff7006b5961 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x2065961)

    8 0x00007ff700ac5ade (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x2475ade)

    9 0x00007ff6fecec3b1 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x69c3b1)

    10 0x00007ff6fe99c48c (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x34c48c)

    11 0x00007ff6fe998209 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x348209)

    12 0x00007ff6fe98f783 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x33f783)

    13 0x00007ff700712855 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x20c2855)

    14 0x00007ff700ad1268 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x2481268)

    15 0x00007ff6fec011d1 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x5b11d1)

    16 0x00007ff6fec00c72 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x5b0c72)

    17 0x00007ff6febfd9a4 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x5ad9a4)

    18 0x00007ff6febfb520 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x5ab520)

    19 0x00007ff6febf9eee (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x5a9eee)

    20 0x00007ff6ffa0dc8d (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x13bdc8d)

    21 0x00007ff6fed8b5e5 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x73b5e5)

    22 0x00007ff6fed8b3e8 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x73b3e8)

    23 0x00007ff6fea3f3f8 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x3ef3f8)

    24 0x00007ff6fea3edae (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x3eedae)

    25 0x00007ff6fea3e8c7 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x3ee8c7)

    26 0x00007ff6fea38757 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x3e8757)

    27 0x00007ff6fea35dd3 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x3e5dd3)

    28 0x00007ff700b56b70 (E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm\clang++.exe+0x2506b70)

    29 0x00007ffa54437344 (C:\WINDOWS\System32\KERNEL32.DLL+0x17344)

    30 0x00007ffa553e26b1 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x526b1)

    clang++: error: clang frontend command failed due to signal (use -v to see invocation) clang version 18.1.5 Target: wasm32-unknown-emscripten Thread model: posix InstalledDir: E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\llvm 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\STak4\AppData\Local\Temp\Generics__34-c58e2b.cpp

clang++: note: diagnostic msg: C:\Users\STak4\AppData\Local\Temp\Generics__34-c58e2b.sh

clang++: note: diagnostic msg:


emcc: error: 'E:/ProgramFiles/Unity/Editor/2022.3.28f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/llvm\clang++.exe -target wasm32-unknown-emscripten -DEMSCRIPTEN -DEMSCRIPTEN_major=3 -DEMSCRIPTEN_minor=1 -DEMSCRIPTEN_tiny=8 -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-cxx-exceptions -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Werror=implicit-function-declaration -Xclang -iwithsysroot/include/SDL --sysroot=E:\ProgramFiles\Unity\Editor\2022.3.28f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten\cache\sysroot -Xclang -iwithsysroot/include\compat -Dwebgl__ -Wno-c++11-extensions -Wno-nonportable-include-path -ffunction-sections -fno-unwind-tables -fomit-frame-pointer -fno-threadsafe-statics -std=c++11 -Wno-#warnings -Wswitch -Wno-trigraphs -Wno-tautological-compare -Wno-invalid-offsetof -Wno-implicitly-unsigned-literal -Wno-integer-overflow -Wno-shift-negative-value -Wno-unknown-attributes -Wno-implicit-function-declaration -Wno-null-conversion -Wno-missing-declarations -Wno-unused-value -Wno-pragma-once-outside-header -fvisibility=hidden -fexceptions -fno-rtti -O3 -fno-strict-overflow -ffunction-sections -fdata-sections -fmessage-length=0 -pipe -D_GLIBCXX_USE_CXX11_ABI=0 -DBASELIB_INLINE_NAMESPACE=il2cpp_baselib -DIL2CPP_MONO_DEBUGGER_DISABLED -DRUNTIME_IL2CPP -DHAVE_BDWGC_GC -DNDEBUG -I. -IE:/Dev/Discord/discordbrickout/UProject/Library/Bee/artifacts/WebGL/il2cppOutput/cpp -IE:/ProgramFiles/Unity/Editor/2022.3.28f1/Editor/Data/il2cpp/libil2cpp/pch -IE:/ProgramFiles/Unity/Editor/2022.3.28f1/Editor/Data/il2cpp/libil2cpp -IE:/ProgramFiles/Unity/Editor/2022.3.28f1/Editor/Data/il2cpp/external/baselib/Include -IE:/ProgramFiles/Unity/Editor/2022.3.28f1/Editor/Data/il2cpp/libil2cpp/os/ClassLibraryPAL/brotli/include -IE:/ProgramFiles/Unity/Editor/2022.3.28f1/Editor/Data/il2cpp/external/baselib/Platforms/WebGL/Include -fcolor-diagnostics -fdiagnostics-absolute-paths -c -xc++ E:/Dev/Discord/discordbrickout/UProject/Library/Bee/artifacts/WebGL/il2cppOutput/cpp/Generics34.cpp -o Library/Bee/artifacts/WebGL/GameAssembly/release_WebGL_wasm/7rhidqvid4kj.o' failed (returned 1)

UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

— Reply to this email directly, view it on GitHubhttps://github.com/llvm/llvm-project/issues/75906#issuecomment-2106219523, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZCTOOGODHS4QFJ64O7HVVTZB5JMBAVCNFSM6AAAAABA2YR7OKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBWGIYTSNJSGM. You are receiving this because you were mentioned.Message ID: @.***>

STak4 commented 4 months ago

@KulitorumWork Thanks for the info. I'll check my PC!

I bought it last year, so It's sad if an CPU error :(

STak4 commented 4 months ago

@tbaederr @KulitorumWork Maybe resolved. Firstly, I checked my CPU(i9-13900K) by Intel Processor Diagnostic Tool and all tests passed. After that, I noticed my CPU temperature was too high when build. (90℃~100℃) So I restricted cpu's power to 85% with Intel XTU and it worked. CPU temperature was below 80℃ when build succeeded.

Idk why only Emscripten build happen a CPU temperature problem, but I solved it for me anyway.

KulitorumWork commented 4 months ago

Interesting. FYI, I got my CPU replaced under warranty.

Glad that you was able to make it work.

Kulitorum


From: STak @.> Sent: Sunday, May 12, 2024 18:31 To: llvm/llvm-project @.> Cc: Michael Holm @.>; Mention @.> Subject: Re: [llvm/llvm-project] Cannot build WebGL, even empty project (Issue #75906)

@tbaederrhttps://github.com/tbaederr @KulitorumWorkhttps://github.com/KulitorumWork Maybe resolved. Firstly, I checked my CPU(i9-13900K) by Intel Processor Diagnostic Tool and all tests passed. After that, I noticed my CPU temperature was too high when build. (90℃~100℃) So I restricted cpu's power to 85% with Intel XTU and it worked. CPU temperature was below 80℃ when build succeeded.

Idk why only Emscripten build happen a CPU temperature problem, but I solved it for me anyway.

— Reply to this email directly, view it on GitHubhttps://github.com/llvm/llvm-project/issues/75906#issuecomment-2106307824, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZCTOOGYKGLPU5HMSN3I5LTZB6KOVAVCNFSM6AAAAABA2YR7OKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBWGMYDOOBSGQ. You are receiving this because you were mentioned.Message ID: @.***>