Skip to content
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

Internal compiler errors with em++ under clang64 environment #22911

Open
2 of 6 tasks
vittorioromeo opened this issue Dec 26, 2024 · 0 comments
Open
2 of 6 tasks

Internal compiler errors with em++ under clang64 environment #22911

vittorioromeo opened this issue Dec 26, 2024 · 0 comments

Comments

@vittorioromeo
Copy link

Description / Steps to reproduce the issue

In clang64 environment with git, ninja, emscripten:

git clone --depth=1 https://github.com/vittorioromeo/VRSFML
cd VRSFML
cmake --preset vrdev_emcc # might need to run multiple times to correctly fetch dependencies
cd build_vrdev_emcc
ninja

Expected behavior

clang++ doesn't crash

Actual behavior

clang++ crashes with internal errors such as:

FAILED: src/SFML/Window/CMakeFiles/sfml-window.dir/Glad.cpp.o
C:\msys64\clang64\lib\emscripten\em++.bat -DDOCTEST_CONFIG_SUPER_FAST_ASSERTS -DSFML_BUILD_AUDIO -DSFML_BUILD_EXAMPLES -DSFML_BUILD_GRAPHICS -DSFML_BUILD_IMGUI -DSFML_BUILD_NETWORK -DSFML_BUILD_TEST_SUITE -DSFML_BUILD_WINDOW -DSFML_ENABLE_LIFETIME_TRACKING -DSFML_ENABLE_STACK_TRACES -DSFML_OPENGL_ES -DSFML_STATIC -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_LIBCPP_REMOVE_TRANSITIVE_INCLUDES -IC:/OHWorkspace/SFML/include -IC:/OHWorkspace/SFML/src -isystem C:/OHWorkspace/SFML/extlibs/headers/glad/include -isystem C:/OHWorkspace/SFML/extlibs/headers/vulkan -Wall -Wextra -Wpedantic -Wno-ignored-attributes -Wno-unused-command-line-argument -g -std=c++20 -fansi-escape-codes -fcolor-diagnostics -g3 -gsource-map -O0 -pthread --shell-file=C:/OHWorkspace/SFML/emscripten/shell.html -Wall -Wextra -Wshadow -Wnon-virtual-dtor -Wcast-align -Wunused -Woverloaded-virtual -Wconversion -Wsign-conversion -Wdouble-promotion -Wformat=2 -Wimplicit-fallthrough -Wsuggest-override -Wnull-dereference -Wold-style-cast -Wpedantic -Wno-c++20-extensions -Wno-unknown-warning-option -MD -MT src/SFML/Window/CMakeFiles/sfml-window.dir/Glad.cpp.o -MF src\SFML\Window\CMakeFiles\sfml-window.dir\Glad.cpp.o.d -o src/SFML/Window/CMakeFiles/sfml-window.dir/Glad.cpp.o -c C:/OHWorkspace/SFML/src/SFML/Window/Glad.cpp
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:/msys64/clang64/opt/emscripten-llvm/bin/clang++.exe -target wasm32-unknown-emscripten -fignore-exceptions -mno-nontrapping-fptoint -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr --sysroot=C:/msys64/clang64/lib/emscripten/cache/sysroot -D__EMSCRIPTEN_SHARED_MEMORY__=1 -DEMSCRIPTEN -Xclang -iwithsysroot/include/fakesdl -Xclang -iwithsysroot/include/compat -DDOCTEST_CONFIG_SUPER_FAST_ASSERTS -DSFML_BUILD_AUDIO -DSFML_BUILD_EXAMPLES -DSFML_BUILD_GRAPHICS -DSFML_BUILD_IMGUI -DSFML_BUILD_NETWORK -DSFML_BUILD_TEST_SUITE -DSFML_BUILD_WINDOW -DSFML_ENABLE_LIFETIME_TRACKING -DSFML_ENABLE_STACK_TRACES -DSFML_OPENGL_ES -DSFML_STATIC -D_GLIBCXX_ASSERTIONS=1 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_LIBCPP_REMOVE_TRANSITIVE_INCLUDES -IC:/OHWorkspace/SFML/include -IC:/OHWorkspace/SFML/src -isystem C:/OHWorkspace/SFML/extlibs/headers/glad/include -isystem C:/OHWorkspace/SFML/extlibs/headers/vulkan -Wall -Wextra -Wpedantic -Wno-ignored-attributes -Wno-unused-command-line-argument -g3 -std=c++20 -fansi-escape-codes -fcolor-diagnostics -g3 -g -O0 -pthread -Wall -Wextra -Wshadow -Wnon-virtual-dtor -Wcast-align -Wunused -Woverloaded-virtual -Wconversion -Wsign-conversion -Wdouble-promotion -Wformat=2 -Wimplicit-fallthrough -Wsuggest-override -Wnull-dereference -Wold-style-cast -Wpedantic -Wno-c++20-extensions -Wno-unknown-warning-option -MD -MT src/SFML/Window/CMakeFiles/sfml-window.dir/Glad.cpp.o -MF src\\SFML\\Window\\CMakeFiles\\sfml-window.dir\\Glad.cpp.o.d -c C:/OHWorkspace/SFML/src/SFML/Window/Glad.cpp -o src/SFML/Window/CMakeFiles/sfml-window.dir/Glad.cpp.o
1.      C:/OHWorkspace/SFML/extlibs/headers/glad/include/gl
ad/gl.h:4986:119: current parser token ')'
Exception Code: 0x80000003
 #0 0x00007ff6fe3d0a18 clang::ASTContext::DecodeTypeStr(char const*&, clang::ASTContext const&, clang::ASTContext::GetBuiltinTypeError&, bool&, bool) const (C:\msys64\clang64\opt\emscripten-llvm\bin\clang++.exe+0xec0a18)

[...]

See message.txt for a full log.

Verification

Windows Version

MINGW64_NT-10.0-26120

MINGW environments affected

  • MINGW64
  • MINGW32
  • UCRT64
  • CLANG64
  • CLANGARM64

Are you willing to submit a PR?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants