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

Compilation in MSYS2/MinGW with GCC 13.1 fails: symbols not declared in this scope #77927

Closed
germanbv opened this issue Jun 6, 2023 · 0 comments · Fixed by #77949
Closed

Comments

@germanbv
Copy link

germanbv commented Jun 6, 2023

Godot version

4.0

System information

Windows 10, NVidiaRTX 2070

Issue description

When trying to compile using MinGW with GCC 13.1 compilation fails throwing a bunch of errors like this one:

G:/MABS/build/glslang-git/glslang/MachineIndependent/SymbolTable.h:71:1: note: 'uint32_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?

G:/MABS/build/glslang-git/glslang/MachineIndependent/SymbolTable.h:662:22: error: 'uint64_t' does not name a type
  662 |     static constexpr uint64_t uniqueIdMask = (1LL << LevelFlagBitOffset) - 1;

It looks like the problem comes from third parties: vhacd, openxr and glslang

I've solved the issue by adding:
#include <stdint.h>

to
\thirdparty\vhacd\inc\vhacdManifoldMesh.h
\thirdparty\openxr\src\common\platform_utils.hpp
\thirdparty\glslang\glslang\Include\Common.h

I'm not sure how to proceed after finding the fix...

Steps to reproduce

Try compiling the editor from Master or version 4.0 using MinGW with GCC 13.1

Minimal reproduction project

N/A

@akien-mga akien-mga added this to the 4.1 milestone Jun 6, 2023
@akien-mga akien-mga self-assigned this Jun 6, 2023
YuriSizov pushed a commit to YuriSizov/godot that referenced this issue Jun 29, 2023
akien-mga added a commit to akien-mga/godot that referenced this issue Aug 28, 2023
akien-mga added a commit to akien-mga/godot that referenced this issue Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants