godot-cpp-template icon indicating copy to clipboard operation
godot-cpp-template copied to clipboard

Template couldn't be built using MSYS2 CLANG64

Open PerikiyoXD opened this issue 1 year ago • 4 comments

Godot version

v4.3.stable.mono.official [77dcf97d8]

godot-cpp version

fbbf9ec4efd8f1055d00edb8d926eef8ba4c2cce

System information

Windows 10

Issue description

pxd@machine /c/WorkDir/gre3 
$ scons use_mingw=yes compiledb=true
scons: Reading SConscript files ...
Auto-detected 16 CPU cores available for build parallelism. Using 15 cores by default. You can override it with the -j argument.
Building for architecture x86_64 on platform windows
scons: done reading SConscript files.
scons: Building targets ...
Compiling godot-cpp/src/godot.cpp ...
Compiling godot-cpp/src/classes/editor_plugin_registration.cpp ...
Compiling godot-cpp/src/classes/low_level.cpp ...
scons: *** [godot-cpp/src/godot.windows.template_debug.x86_64.o] El sistema no puede encontrar el archivo especificado
scons: *** [godot-cpp/src/classes/editor_plugin_registration.windows.template_debug.x86_64.o] El sistema no puede encontrar el archivo especificado
scons: *** [godot-cpp/src/classes/low_level.windows.template_debug.x86_64.o] El sistema no puede encontrar el archivo especificado
scons: building terminated because of errors.

PerikiyoXD avatar Sep 03 '24 17:09 PerikiyoXD

Godot builds fine tho

PerikiyoXD avatar Sep 03 '24 17:09 PerikiyoXD

This seems to be an issue for godot-cpp and not for this template. Please create a new issue there and link to this issue here.

paddy-exe avatar Sep 25 '24 15:09 paddy-exe

I usually use MSYS2 with mingw on Windows, and don't personally have issues building godot-cpp. So, I think the godot-cpp issue will need some more details than provided here.

dsnopek avatar Oct 05 '24 17:10 dsnopek

I think I remember this problem. From recollection it's because the clang64 environment is for compiling with llvm so it does not provide an x86_64-w64-mingw32-ar and fails without a nice error message. Checking my own install I have x86_64-w64-mingw32-llvm-ar. Adding use_llvm=yes solves the issue for me when building godot-cpp, but it appears that does not carry over when using the same command here.

enetheru avatar Oct 23 '24 06:10 enetheru