Open DSOE1024 opened 4 months ago
Adding -latomic
to GCC won't do much since it still using GCC headers and CRT. You can try building a single-thread version (threads=no
flag).
But even if you can build it, GPU drivers on VisionFive2 are garbage and completely unusable, so it Godot won't run as is (the only way to run anything is removing GPU drivers and replacing with Mesa software OpenGL implementation).
Adding
-latomic
to GCC won't do much since it still using GCC headers and CRT. You can try building a single-thread version (threads=no
flag).But even if you can build it, GPU drivers on VisionFive2 are garbage and completely unusable, so it Godot won't run as is (the only way to run anything is removing GPU drivers and replacing with Mesa software OpenGL implementation).
Hello, thank you very much, I will try. Regarding this GPU (IMG BXE-4-32 MC1) of the VF2 board, it can run vulkan, but there seems to be a problem with the driver, do you need to wait for the driver of vulkan to be perfected? Is there a way to get Godot to use GLES drivers like on an ARM board device?
Is there a way to get Godot to use GLES drivers like on an ARM board device?
Run with --rendering-method compatibility --rendering-driver opengl3_es
, but last time I have tested it (a few months ago), GLES driver was as broken as the rest.
Adding
-latomic
to GCC won't do much since it still using GCC headers and CRT. You can try building a single-thread version (threads=no
flag).But even if you can build it, GPU drivers on VisionFive2 are garbage and completely unusable, so it Godot won't run as is (the only way to run anything is removing GPU drivers and replacing with Mesa software OpenGL implementation).
Hello, I tried this, but the problem persists, I replaced VF2 with Arch's image, GCC version is 13, and the compilation works fine
However, I copied the compiled file to the debian image of VF2 (the official desktop version), but the error "Segmentation fault" (the Arch image can be run but not graphical) may be the reason, thanks !
Tested versions
4.2.1-stable
System information
Debian11 Godot-4.2.1-stable
Issue description
Hello I compiled Godot on my RISC-V device (VisionFive2), the previous issue(https://github.com/godotengine/godot/issues/80676) said to use the clang compiler, but the program compiled by the clang compiler does not run normally (can only run headless mode)
Since the GCC compiler libatomic doesn't work properly seems to be that the atomic instructions of riscv64 are incomplete, it is necessary to add the
-latomic
parameter to gcc and install the libatomic library at compile time to fully support the features of atomicIf you are using GCC12 on VF2, the following error message is displayed:
This is probably caused by Godot's compilation ignoring atomic under riscv64, hope this build issue can be fixed, thanks
Steps to reproduce
scons platform=linuxbsd target=editor
Minimal reproduction project (MRP)
N/A