-
-
Notifications
You must be signed in to change notification settings - Fork 21k
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
Build failure compiling Godot for Windows with LLVM MinGW (missing file) #92259
Comments
Given this is failing on |
I will try that PR and let you know @Repiteo |
Nope, even that PR did not fix the issue. When I try to build that branch, this is the error that gives me: Building editor for x86_64. Build will take longer.
scons: Reading SConscript files ...
Using MinGW, arch x86_64
Building for platform "windows", architecture "x86_64", target "editor".
AttributeError: 'SConsEnvironment' object has no attribute 'RES':
File "/home/mbcx/sources/godot-43/SConstruct", line 1029:
SConscript("platform/" + env["platform"] + "/SCsub") # Build selected platform.
File "/home/mbcx/pypy3.10/lib/pypy3.10/site-packages/SCons/Script/SConscript.py", line 676:
return method(*args, **kw)
File "/home/mbcx/pypy3.10/lib/pypy3.10/site-packages/SCons/Script/SConscript.py", line 612:
return _SConscript(self.fs, *files, **subst_kw)
File "/home/mbcx/pypy3.10/lib/pypy3.10/site-packages/SCons/Script/SConscript.py", line 279:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "/home/mbcx/sources/godot-43/platform/windows/SCsub", line 51:
res_obj = env.RES(res_target, res_file) By the way, I use SCons 4.7.0 running on PyPy 3.10, if that's useful. SCons by Steven Knight et al.:
SCons: v4.7.0.265be6883fadbb5a545612265acc919595158366, Sun, 17 Mar 2024 17:33:54 -0700, by bdbaddog on M1Dog2021
SCons path: ['/home/mbcx/pypy3.10/lib/pypy3.10/site-packages/SCons']
Copyright (c) 2001 - 2024 The SCons Foundation |
I suspect that a clean clone or git clean will resolve this issue since I tested mingw-llvm yesterday. |
Nope @fire, that did not fix the issue 😔. These are all the steps that I took, in the specified order.
This results in, from before: scons: Reading SConscript files ...
Using MinGW, arch x86_64
Building for platform "windows", architecture "x86_64", target "editor".
Checking for C header file mntent.h... no
scons: done reading SConscript files.
scons: Building targets ...
[Initial build] Compiling platform/windows/console_wrapper_windows.cpp ...
[Initial build] build_res_file(["platform/windows/godot_res_wrap.windows.editor.x86_64.llvm.o"], ["platform/windows/godot_res_wrap.rc"])
[Initial build] Generating core/disabled_classes.gen.h ...
scons: *** [platform/windows/godot_res_wrap.windows.editor.x86_64.llvm.o] Error -1
scons: building terminated because of errors.
[Time elapsed: 00:00:06.16] Then I integrated @Repiteo's pull request #91847
Results in scons: Reading SConscript files ...
Using MinGW, arch x86_64
Building for platform "windows", architecture "x86_64", target "editor".
AttributeError: 'SConsEnvironment' object has no attribute 'RES':
File "/home/mbcx/sources/godot-test/SConstruct", line 1029:
SConscript("platform/" + env["platform"] + "/SCsub") # Build selected platform.
File "/home/mbcx/pypy3.10/lib/pypy3.10/site-packages/SCons/Script/SConscript.py", line 676:
return method(*args, **kw)
File "/home/mbcx/pypy3.10/lib/pypy3.10/site-packages/SCons/Script/SConscript.py", line 612:
return _SConscript(self.fs, *files, **subst_kw)
File "/home/mbcx/pypy3.10/lib/pypy3.10/site-packages/SCons/Script/SConscript.py", line 279:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "/home/mbcx/sources/godot-test/platform/windows/SCsub", line 51:
res_obj = env.RES(res_target, res_file) Then I merged the pull request with the master branch:
Again results in scons: Reading SConscript files ...
Using MinGW, arch x86_64
Building for platform "windows", architecture "x86_64", target "editor".
AttributeError: 'SConsEnvironment' object has no attribute 'RES':
File "/home/mbcx/sources/godot-test/SConstruct", line 1029:
SConscript("platform/" + env["platform"] + "/SCsub") # Build selected platform.
File "/home/mbcx/pypy3.10/lib/pypy3.10/site-packages/SCons/Script/SConscript.py", line 676:
return method(*args, **kw)
File "/home/mbcx/pypy3.10/lib/pypy3.10/site-packages/SCons/Script/SConscript.py", line 612:
return _SConscript(self.fs, *files, **subst_kw)
File "/home/mbcx/pypy3.10/lib/pypy3.10/site-packages/SCons/Script/SConscript.py", line 279:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "/home/mbcx/sources/godot-test/platform/windows/SCsub", line 51:
res_obj = env.RES(res_target, res_file) |
That's not good. I'll try to look into it if there's some spare time. |
#91624 deferred the generation of Can we register the |
AttributeError: 'SConsEnvironment' object has no attribute 'RES' This… Shouldn't be possible. I have no idea why, but your SCons seems to simply not register the The only discrepancy I can think of atm is that you aren't passing a |
@Repiteo Still nothing :/ scons -j4 platform="windows" target="editor" use_mingw="yes" use_llvm="yes" mingw_prefix="$HOME/sysroot/llvm-mingw" scons: Reading SConscript files ...
Using MinGW, arch x86_64
Building for platform "windows", architecture "x86_64", target "editor".
AttributeError: 'SConsEnvironment' object has no attribute 'RES':
File "/home/mbcx/sources/godot-test/SConstruct", line 1039:
SConscript("platform/" + env["platform"] + "/SCsub") # Build selected platform.
File "/home/mbcx/pypy3.10/lib/pypy3.10/site-packages/SCons/Script/SConscript.py", line 676:
return method(*args, **kw)
File "/home/mbcx/pypy3.10/lib/pypy3.10/site-packages/SCons/Script/SConscript.py", line 612:
return _SConscript(self.fs, *files, **subst_kw)
File "/home/mbcx/pypy3.10/lib/pypy3.10/site-packages/SCons/Script/SConscript.py", line 279:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "/home/mbcx/sources/godot-test/platform/windows/SCsub", line 52:
res_obj = env.RES(res_target, res_file) You know, I will try unsetting |
Yup. Even after unsetting SCons from Package Manager AttributeError: 'SConsEnvironment' object has no attribute 'RES':
File "/home/mbcx/sources/godot-test/SConstruct", line 1039:
SConscript("platform/" + env["platform"] + "/SCsub") # Build selected platform.
File "/usr/lib/python3/dist-packages/SCons/Script/SConscript.py", line 662:
return method(*args, **kw)
File "/usr/lib/python3/dist-packages/SCons/Script/SConscript.py", line 598:
return _SConscript(self.fs, *files, **subst_kw)
File "/usr/lib/python3/dist-packages/SCons/Script/SConscript.py", line 285:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "/home/mbcx/sources/godot-test/platform/windows/SCsub", line 52:
res_obj = env.RES(res_target, res_file) From Pyston 2.3.5
|
Going back a commit before the merger of the pull request, still gives the errors of Pyston 2.3.5 $ export PATH="$HOME/pyston_2.3.5/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
$ which scons
$ /home/mbcx/pyston_2.3.5/bin/scons scons -j4 platform="windows" target="editor" use_mingw="yes" use_llvm="yes" mingw_prefix="$HOME/sysroot/llvm-mingw"
scons: Reading SConscript files ...
Using MinGW, arch x86_64
Building for platform "windows", architecture "x86_64", target "editor".
Checking for C header file mntent.h... (cached) no
scons: done reading SConscript files.
scons: Building targets ...
[Initial build] build_res_file(["platform/windows/godot_res_wrap.windows.editor.x86_64.llvm.o"], ["platform/windows/godot_res_wrap.rc"])
[Initial build] Generating core/object/gdvirtual.gen.inc ...
[Initial build] Generating core/version_generated.gen.h ...
[Initial build] scons: *** [platform/windows/godot_res_wrap.windows.editor.x86_64.llvm.o] Error -1
Generating servers/rendering/renderer_rd/shaders/blit.glsl.gen.h ...
scons: building terminated because of errors.
[Time elapsed: 00:00:01.58] SCons from Package Manager $ export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
$ which scons
$ /usr/bin/scons scons -j4 platform="windows" target="editor" use_mingw="yes" use_llvm="yes" mingw_prefix="$HOME/sysroot/llvm-mingw"
scons: Reading SConscript files ...
Using MinGW, arch x86_64
Building for platform "windows", architecture "x86_64", target "editor".
Checking for C header file mntent.h... no
scons: done reading SConscript files.
scons: Building targets ...
[Initial build] Compiling platform/windows/console_wrapper_windows.cpp ...
[Initial build] build_res_file(["platform/windows/godot_res_wrap.windows.editor.x86_64.llvm.o"], ["platform/windows/godot_res_wrap.rc"])
[Initial build] Generating core/disabled_classes.gen.h ...
[Initial build] scons: *** [platform/windows/godot_res_wrap.windows.editor.x86_64.llvm.o] Error -1
Generating modules/modules_enabled.gen.h ...
scons: building terminated because of errors.
[Time elapsed: 00:00:02.11] |
Is "a commit before the merger of the pull request" referring to the commit prior to 6fcdd24? |
Yes, I meant the commit before I merge your pull request f3dca43ff2 (HEAD -> master) Merge branch 'mingw-fix'
b7feebefab (this one) (origin/master, origin/HEAD) Merge pull request #92288 from smix8/navregion_debug |
This is beyond the scope of that PR then; made a separate one that explicitly assigns a dependancy for |
Tested versions
System information
Godot v4.3.beta (2311e0462) - 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
When I try to compile Godot for windows using LLVM MinGW, before reaching the
Generating ...
stages, it silently fails the build.I found out that this commit is the culprit. When I run the command manually, this is causing the build to fail.
Steps to reproduce
I'm not sure if this is a LLVM MinGW specific bug.
MINGW_PREFIX
environment variable.Minimal reproduction project (MRP)
N/A
The text was updated successfully, but these errors were encountered: