Closed ACDouble closed 5 months ago
internal compiler error at compiling often indicates unstable hardware. Please try on another computer
As pointed out by @kxn, this is likely a hardware failure. Linux Mint 21 seems to provide GCC 9 which is working fine otherwise in my tests (and many users compiling on Ubuntu 22.04 LTS), and it failing similar with Clang further confirms that it doesn't seem to be a compiler issue, but something specific to your hardware or system.
Closing as this isn't something we can solve in Godot.
Godot version
4.1.1
System information
Linux Mint 21
Issue description
Following the documentation https://docs.godotengine.org/en/latest/contributing/development/compiling/compiling_for_linuxbsd.html#doc-compiling-for-linuxbsd , I've installed all the recquired packages, cloned the repo and ran
scons platform=linuxbsd
At first, everything was running smoothly, until I was hit with the following error:
I've opened the offending file, and this is how it was;
I've removed the empty line before the return and ran the
scons
again. This time, I got a segfault at a different place:Simply running the
scons
again, without doing any modifications to that/core/object/object.h
, I was met with yet another segfault, this time pointing to/core/object/object.h:496
Running yet another time, without any modifications to the code, this showed up:
Since a cursory google search showed several posts and topics pointing to segfault errors with GCC unrelated to Godot, I've decided to run
scons platform=linuxbsd use_llvm=yes
to compile using Clang, as noted in an info box on the docs.After roughly 8 minutes, with everything working fine thus far, the compilation failed with the following error
Running again, the error was different:
Only added the first Clang failure files because I kept getting an error with Github trying to upload the second one
editor-translation.zip
Steps to reproduce
On Linux Mint 21:
git clone https://github.com/godotengine/godot.git
cd godot
scons platform=linuxbsd
Minimal reproduction project
N/A