msys2 / msys2.github.io

The MSYS2 homepage
https://www.msys2.org
Other
2.35k stars 304 forks source link

CLANG64: _setjmp undefined :( #351

Open 0wwafa opened 1 week ago

0wwafa commented 1 week ago
~/denise$ cmake --build .
[1/1] Linking CXX executable out\denise.exe
FAILED: out/denise.exe
C:\WINDOWS\system32\cmd.exe /C "cd . && C:\msys64\clang64\bin\c++.exe -O3 -s @CMakeFiles\denise.rsp
-o out\denise.exe -Wl,--out-implib,libdenise.dll.a -Wl,--major-image-version,0,--minor-image-version
,0 && cd ."
ld.lld: error: undefined symbol: _setjmp
>>> referenced by C:/msys64/home/Ronny/freetype-2.13.0/src/sfnt/ttcmap.c:3838
>>>               libfreetype.a(sfnt.o):(tt_face_build_cmaps.isra.0)
>>> referenced by C:/msys64/home/Ronny/freetype-2.13.0/src/smooth/ftgrays.c:1918
>>>               libfreetype.a(smooth.o):(gray_convert_glyph_inner)
c++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
0wwafa commented 1 week ago

I think the problem is in LIBC.