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

Cannot build Godot for Windows with ANGLE using LLVM MinGW on Debian 13 (VM) #90879

Closed
MBCX opened this issue Apr 19, 2024 · 3 comments
Closed

Comments

@MBCX
Copy link
Contributor

MBCX commented Apr 19, 2024

Tested versions

  • Reproducible in latest master as of [2efbc6b]

System information

Godot v4.3.dev (68ad520) - Windows 10.0.22631 - Vulkan (Forward+) - dedicated Radeon RX 580 Series (Advanced Micro Devices, Inc.; 31.0.21912.14) - Intel(R) Core(TM) i5-9600K CPU @ 3.70GHz (6 Threads)

Issue description

I cannot get Godot to build with my self-compiled statically linked ANGLE libraries, when it tries to link, it errors with:

Linking Program bin/godot.windows.editor.x86_64.llvm.exe ...
ld.lld: error: undefined symbol: glad_eglGetProcAddress
>>> referenced by libdrivers.windows.editor.x86_64.llvm.a(gl.windows.editor.x86_64.llvm.o):(.refptr.glad_eglGetProcAddress)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
scons: *** [bin/godot.windows.editor.x86_64.llvm.exe] Error 1
scons: building terminated because of errors.

I haven't tested with the pre-compiled ANGLE libraries from here, primarily because AFAIK those are compiled with GCC MinGW while I use LLVM MinGW. And I need the aarch64 ones too.

Steps to reproduce

  1. Clone the godot-angle-static repo.
  2. Compile the static libraries using the latest LLVM MinGW
  3. Compile Godot scons platform="windows" use_mingw="yes" use_llvm="yes" angle_libs=<your_compiled_angle_libs>
  4. Wait until it fails to link.

Minimal reproduction project (MRP)

N/A

@MBCX MBCX changed the title Cannot build Godot for Windows with ANGLE using LLVM MinGW on Debian Cannot build Godot for Windows with ANGLE using LLVM MinGW on Debian 13 (VM) Apr 19, 2024
@MBCX
Copy link
Contributor Author

MBCX commented Apr 19, 2024

So, I was able to successfully compile 4.3.dev5 with ANGLE [89f70e9], so something was introduce in the latest master that is preventing me to compile with statically linked ANGLE. No idea what could that be though...

@akien-mga
Copy link
Member

Likely a regression from #90245.

@akien-mga
Copy link
Member

I still need to look into why the update introduced this bug, but for now I'm reverting #90245 to fix it.

theromis pushed a commit to theromis/godot that referenced this issue Apr 29, 2024
dimitry- pushed a commit to AndroidWasm/godot that referenced this issue May 16, 2024
MewPurPur pushed a commit to MewPurPur/godot that referenced this issue Jul 11, 2024
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

3 participants