can't compile godot, when I have gcc up to date

danju9danju9 Posts: 5Member
in 3D

pi@raspberrypi:~/godot $ scons -j8 platform=x11
scons: Reading SConscript files ...
Platform "x11" has been renamed to "linuxbsd" in Godot 4.0. Building for platform "linuxbsd".
Enabling ALSA
Enabling PulseAudio
Detected GCC 8 version < 8.4, which is not supported due to a regression in its C++17 guaranteed copy elision support. Use a newer GCC version, or Clang 6 or later by passing "use_llvm=yes" to the SCons command line.

This is my error. I have gcc 10.1.0 installed in opt/gcc-10.1.0. Why does it not recognize it? How can i change the gcc version? WHat does it mean by "passing "use_llvm=yes" to the SCons command line."? I typed in "use_llvm=yes" to the terminal, and I still have the same problem. WHat should i do?

Best Answer

  • TwistedTwiglegTwistedTwigleg Posts: 2,847
    Accepted Answer

    What platform are you compiling this on? Based on the OP, it looks like you are trying to compile on a Raspberry PI, which I do not think Godot supports right now. Additionally, Godot master requires Vulkan support, with the Raspberry PI only has limited support for (though I believe it is getting official support in the future?).

    You may want to try and compile with Godot 3, though I have no idea if it supports the Raspberry PI either. It does look like its possible though, based on this YouTube video:

    So, if you are using a Raspberry PI 4, you may want to try and compile for Godot 3 right now. I remember reading that there are plans to support the Raspberry PI with Godot on one of the engine blogs (if I recall correctly), meaning in the future Godot 4 should be able to be compiled from a Raspberry PI.

Answers

  • danju9danju9 Posts: 5Member
    edited July 28

    https://raspberrypi.stackexchange.com/questions/93597/problem-with-gcc-g-versions
    I followed through this link and now I have a new error.

    [Initial build] Compiling ==> main/main.cpp
    platform/linuxbsd/display_server_x11.cpp:659:2: warning: #warning Need to get from proper window [-Wcpp]
      659 | #warning Need to get from proper window
          |  ^~~~~~~
    platform/linuxbsd/display_server_x11.cpp:740:2: warning: #warning This is an incorrect implementation, if windows overlap, it should return the topmost visible one or none if occluded by a foreign window [-Wcpp]
      740 | #warning This is an incorrect implementation, if windows overlap, it should return the topmost visible one or none if occluded by a foreign window
          |  ^~~~~~~
    platform/linuxbsd/display_server_x11.cpp:3576:2: warning: #warning Forcing vulkan rendering driver because OpenGL not implemented yet [-Wcpp]
     3576 | #warning Forcing vulkan rendering driver because OpenGL not implemented yet
          |  ^~~~~~~
    [Initial build] Compiling ==> main/main_timer_sync.cpp
    g++: fatal error: Killed signal terminated program cc1plus
    compilation terminated.
    scons: *** [platform/linuxbsd/display_server_x11.linuxbsd.tools.32.o] Error 1
    g++: fatal error: Killed signal terminated program cc1plus
    compilation terminated.
    scons: *** [platform/linuxbsd/os_linuxbsd.linuxbsd.tools.32.o] Error 1
    ^[^[^[^C^Cscons: *** [platform/linuxbsd/vulkan_context_x11.linuxbsd.tools.32.o] Build interrupted.
    scons: *** [platform/linuxbsd/joypad_linux.linuxbsd.tools.32.o] Build interrupted.
    scons: *** [main/main_timer_sync.linuxbsd.tools.32.o] Build interrupted.
    scons: *** [platform/linuxbsd/godot_linuxbsd.linuxbsd.tools.32.o] Build interrupted.
    scons: *** [platform/linuxbsd/crash_handler_linuxbsd.linuxbsd.tools.32.o] Build interrupted.
    scons: *** [main/main.linuxbsd.tools.32.o] Build interrupted.
    scons: Build interrupted.
    scons: building terminated because of errors.
    scons: writing .sconsign file.
    
  • TwistedTwiglegTwistedTwigleg Posts: 2,847Admin
    Accepted Answer

    What platform are you compiling this on? Based on the OP, it looks like you are trying to compile on a Raspberry PI, which I do not think Godot supports right now. Additionally, Godot master requires Vulkan support, with the Raspberry PI only has limited support for (though I believe it is getting official support in the future?).

    You may want to try and compile with Godot 3, though I have no idea if it supports the Raspberry PI either. It does look like its possible though, based on this YouTube video:

    So, if you are using a Raspberry PI 4, you may want to try and compile for Godot 3 right now. I remember reading that there are plans to support the Raspberry PI with Godot on one of the engine blogs (if I recall correctly), meaning in the future Godot 4 should be able to be compiled from a Raspberry PI.

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file