Compile custom Godot build without Build Errors

This was previously working, but after a recent update stopped working.

Godot unstable (4.5) is failing to compile for me.

This Godot PR is important to what I’m making, and is the main reason for the custom build I’m using.

Relevant Nix code
{ pkgs, ... }:
let
  godot_gravity = pkgs.godot_4.overrideAttrs {
    name = "godot_gravity";
    version = "4.5-custom";
    src = pkgs.fetchFromGitHub {
      owner = "godotengine";
      repo = "godot";
      rev = "8c2822ef2caf8a783d60a57505923d6d72929833"; # latest revision on PR 82878
      hash = "sha256-3uHZymDU46LeJUwHDX/PZLrp156saBqMaQuyupgk/WQ=";
      leaveDotGit = true;
      postFetch = ''
        hash=$(git -C "$out" rev-parse HEAD)
        rm -r "$out"/.git
        mkdir "$out"/.git
        echo "$hash" > "$out"/.git/HEAD
      '';
    };
  };
  # ...
in
{
  # ...
}
Error log
godot_gravity> Generating servers/rendering/renderer_rd/shaders/scene_forward_vertex_lights_inc.glsl.gen.h ...
godot_gravity> Linking Static Library bin/obj/core/libcore.linuxbsd.editor.x86_64.a ...
godot_gravity> Ranlib Library bin/obj/core/libcore.linuxbsd.editor.x86_64.a ...
godot_gravity> Linking Program bin/godot.linuxbsd.editor.x86_64 ...
godot_gravity> modules/minimp3/audio_stream_mp3.h:39: warning: type ‘struct AudioStreamPlaybackMP3’ violates the C++ One Definition Rule [-Wodr]
godot_gravity>    39 | class AudioStreamPlaybackMP3 : public AudioStreamPlaybackResampled {
godot_gravity> modules/minimp3/audio_stream_mp3.h:39: note: a different type is defined in another translation unit
godot_gravity>    39 | class AudioStreamPlaybackMP3 : public AudioStreamPlaybackResampled {
godot_gravity> modules/minimp3/audio_stream_mp3.h:50: note: the first difference of corresponding definitions is field ‘mp3d’
godot_gravity>    50 |         mp3dec_ex_t mp3d = {};
godot_gravity> modules/minimp3/audio_stream_mp3.h:50: note: a field of same name but different type is defined in another translation unit
godot_gravity>    50 |         mp3dec_ex_t mp3d = {};
godot_gravity> thirdparty/minimp3/minimp3_ex.h:88: note: type ‘struct mp3dec_ex_t’ itself violates the C++ One Definition Rule
godot_gravity>    88 | } mp3dec_ex_t;
godot_gravity> modules/minimp3/audio_stream_mp3.h:40: warning: type of ‘is_class_ptr’ does not match original declaration [-Wlto-type-mismatch]
godot_gravity>    40 |         GDCLASS(AudioStreamPlaybackMP3, AudioStreamPlaybackResampled);
godot_gravity> modules/minimp3/audio_stream_mp3.h:40: note: ‘is_class_ptr’ was previously declared here
godot_gravity>    40 |         GDCLASS(AudioStreamPlaybackMP3, AudioStreamPlaybackResampled);
godot_gravity> thirdparty/icu4c/common/udata.cpp:646: warning: type of ‘icudt_godot77_dat’ does not match original declaration [-Wlto-type-mismatch]
godot_gravity>   646 | extern "C" const DataHeader U_DATA_API U_ICUDATA_ENTRY_POINT;
godot_gravity> thirdparty/icu4c/icudata.gen.h:43:41: note: ‘icudt_godot77_dat’ was previously declared here
godot_gravity>    43 | extern "C" U_EXPORT const unsigned char U_ICUDATA_ENTRY_POINT[] = {
godot_gravity>       |                                         ^
godot_gravity> In function ‘uprv_free_77_godot’,
godot_gravity>     inlined from ‘releaseArray’ at thirdparty/icu4c/common/cmemory.h:460:22,
godot_gravity>     inlined from ‘__dt_base ’ at thirdparty/icu4c/common/cmemory.h:363:38,
godot_gravity>     inlined from ‘__dt_base ’ at thirdparty/icu4c/common/charstr.h:56:20,
godot_gravity>     inlined from ‘viaByteSinkToCharString’ at thirdparty/icu4c/common/bytesinkutil.h:147:5,
godot_gravity>     inlined from ‘ulocimp_getKeywords_77_godot.constprop’ at thirdparty/icu4c/common/uloc.cpp:605:15:
godot_gravity> thirdparty/icu4c/common/cmemory.cpp:99:13: warning: ‘free’ called on unallocated object ‘result’ [-Wfree-nonheap-object]
godot_gravity>    99 |             uprv_default_free(buffer);
godot_gravity>       |             ^
godot_gravity> thirdparty/icu4c/common/bytesinkutil.h: In function ‘ulocimp_getKeywords_77_godot.constprop’:
godot_gravity> thirdparty/icu4c/common/bytesinkutil.h:143:20: note: declared here
godot_gravity>   143 |         CharString result;
godot_gravity>       |                    ^
godot_gravity> In function ‘uprv_free_77_godot’,
godot_gravity>     inlined from ‘releaseArray’ at thirdparty/icu4c/common/cmemory.h:460:22,
godot_gravity>     inlined from ‘__dt_base ’ at thirdparty/icu4c/common/cmemory.h:363:38,
godot_gravity>     inlined from ‘__dt_base ’ at thirdparty/icu4c/common/charstr.h:56:20,
godot_gravity>     inlined from ‘viaByteSinkToCharString’ at thirdparty/icu4c/common/bytesinkutil.h:147:5,
godot_gravity>     inlined from ‘ulocimp_getVariant_77_godot.constprop’ at thirdparty/icu4c/common/uloc.cpp:1489:15:
godot_gravity> thirdparty/icu4c/common/cmemory.cpp:99:13: warning: ‘free’ called on unallocated object ‘result’ [-Wfree-nonheap-object]
godot_gravity>    99 |             uprv_default_free(buffer);
godot_gravity>       |             ^
godot_gravity> thirdparty/icu4c/common/bytesinkutil.h: In function ‘ulocimp_getVariant_77_godot.constprop’:
godot_gravity> thirdparty/icu4c/common/bytesinkutil.h:143:20: note: declared here
godot_gravity>   143 |         CharString result;
godot_gravity>       |                    ^
godot_gravity> In function ‘uprv_free_77_godot’,
godot_gravity>     inlined from ‘releaseArray’ at thirdparty/icu4c/common/cmemory.h:460:22,
godot_gravity>     inlined from ‘__dt_base ’ at thirdparty/icu4c/common/cmemory.h:363:38,
godot_gravity>     inlined from ‘__dt_base ’ at thirdparty/icu4c/common/charstr.h:56:20,
godot_gravity>     inlined from ‘viaByteSinkToCharString’ at thirdparty/icu4c/common/bytesinkutil.h:147:5,
godot_gravity>     inlined from ‘ulocimp_forLanguageTag_77_godot’ at thirdparty/icu4c/common/uloc_tag.cpp:2680:15:
godot_gravity> thirdparty/icu4c/common/cmemory.cpp:99:13: warning: ‘free’ called on unallocated object ‘result’ [-Wfree-nonheap-object]
godot_gravity>    99 |             uprv_default_free(buffer);
godot_gravity>       |             ^
godot_gravity> thirdparty/icu4c/common/bytesinkutil.h: In function ‘ulocimp_forLanguageTag_77_godot’:
godot_gravity> thirdparty/icu4c/common/bytesinkutil.h:143:20: note: declared here
godot_gravity>   143 |         CharString result;
godot_gravity>       |                    ^
godot_gravity> In function ‘uprv_free_77_godot’,
godot_gravity>     inlined from ‘releaseArray’ at thirdparty/icu4c/common/cmemory.h:460:22,
godot_gravity>     inlined from ‘__dt_base ’ at thirdparty/icu4c/common/cmemory.h:363:38,
godot_gravity>     inlined from ‘__dt_base ’ at thirdparty/icu4c/common/charstr.h:56:20,
godot_gravity>     inlined from ‘viaByteSinkToCharString’ at thirdparty/icu4c/common/bytesinkutil.h:147:5,
godot_gravity>     inlined from ‘ulocimp_getKeywordValue_77_godot’ at thirdparty/icu4c/common/uloc.cpp:756:15:
godot_gravity> thirdparty/icu4c/common/cmemory.cpp:99:13: warning: ‘free’ called on unallocated object ‘result’ [-Wfree-nonheap-object]
godot_gravity>    99 |             uprv_default_free(buffer);
godot_gravity>       |             ^
godot_gravity> thirdparty/icu4c/common/bytesinkutil.h: In function ‘ulocimp_getKeywordValue_77_godot’:
godot_gravity> thirdparty/icu4c/common/bytesinkutil.h:143:20: note: declared here
godot_gravity>   143 |         CharString result;
godot_gravity>       |                    ^
godot_gravity> In function ‘uprv_free_77_godot’,
godot_gravity>     inlined from ‘releaseArray’ at thirdparty/icu4c/common/cmemory.h:460:22,
godot_gravity>     inlined from ‘__dt_base ’ at thirdparty/icu4c/common/cmemory.h:363:38,
godot_gravity>     inlined from ‘__dt_base ’ at thirdparty/icu4c/common/charstr.h:56:20,
godot_gravity>     inlined from ‘viaByteSinkToCharString’ at thirdparty/icu4c/common/bytesinkutil.h:147:5,
godot_gravity>     inlined from ‘ulocimp_canonicalize_77_godot’ at thirdparty/icu4c/common/uloc.cpp:2222:12:
godot_gravity> thirdparty/icu4c/common/cmemory.cpp:99:13: warning: ‘free’ called on unallocated object ‘result’ [-Wfree-nonheap-object]
godot_gravity>    99 |             uprv_default_free(buffer);
godot_gravity>       |             ^
godot_gravity> thirdparty/icu4c/common/bytesinkutil.h: In function ‘ulocimp_canonicalize_77_godot’:
godot_gravity> thirdparty/icu4c/common/bytesinkutil.h:143:20: note: declared here
godot_gravity>   143 |         CharString result;
godot_gravity>       |                    ^
godot_gravity> In function ‘memset’,
godot_gravity>     inlined from ‘af_face_globals_new’ at thirdparty/freetype/src/autofit/afglobal.c:344:0:
godot_gravity> /nix/store/x4cz3spvw0bwwz5sjsdn2qm4f89rcryn-glibc-2.40-66-dev/include/bits/string_fortified.h:59: warning: ‘__builtin_memset’ writing 696 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=]
godot_gravity>    59 |   return __builtin___memset_chk (__dest, __ch, __len,
godot_gravity> In function ‘af_face_globals_new’:
godot_gravity> lto1: note: destination object is likely at address zero
godot_gravity> thirdparty/clipper2/src/clipper.engine.cpp: In function ‘AddPaths_’:
godot_gravity> thirdparty/clipper2/src/clipper.engine.cpp:620:53: warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
godot_gravity>   620 |     Vertex* vertices = new Vertex[total_vertex_count], * v = vertices;
godot_gravity>       |                                                     ^
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
godot_gravity>   133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
godot_gravity>       |                          ^
godot_gravity> In member function ‘Triangulate_OPT’,
godot_gravity>     inlined from ‘_generate_glyph_mesh_data’ at scene/resources/3d/primitive_meshes.cpp:3189:28:
godot_gravity> thirdparty/misc/polypartition.cpp:711:29: warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
godot_gravity>   711 |   dpstates = new DPState *[n];
godot_gravity>       |                             ^
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new: In member function ‘_generate_glyph_mesh_data’:
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
godot_gravity>   133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
godot_gravity>       |                          ^
godot_gravity> core/core_constants.cpp: In function ‘register_global_constants’:
godot_gravity> core/core_constants.cpp:254: note: variable tracking size limit exceeded with ‘-fvar-tracking-assignments’, retrying without
godot_gravity>   254 | void register_global_constants() {
godot_gravity> editor/plugins/visual_shader_editor_plugin.cpp: In member function ‘__ct_base ’:
godot_gravity> editor/plugins/visual_shader_editor_plugin.cpp:6426: note: variable tracking size limit exceeded with ‘-fvar-tracking-assignments’, retrying without
godot_gravity>  6426 | VisualShaderEditor::VisualShaderEditor() {
godot_gravity> In member function ‘Init’,
godot_gravity>     inlined from ‘generator_recursive_process_polytree_items’ at modules/navigation_2d/2d/nav_mesh_generator_2d.cpp:277:9:
godot_gravity> thirdparty/misc/polypartition.cpp:54:35: warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
godot_gravity>    54 |   points = new TPPLPoint[numpoints];
godot_gravity>       |                                   ^
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new: In function ‘generator_recursive_process_polytree_items’:
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
godot_gravity>   133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
godot_gravity>       |                          ^
godot_gravity> thirdparty/vhacd/src/VHACD.cpp: In member function ‘_ZN5VHACD5VHACD24ComputeBestClippingPlaneEPKNS_12PrimitiveSetEdRKNS_6SArrayINS_5PlaneELm64EEERKNS_4Vec3IdEEdddiddRS5_RdRKNS_6IVHACD10ParametersE.part.0’:
godot_gravity> thirdparty/vhacd/src/VHACD.cpp:702:84: warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
godot_gravity>   702 |     SArray<Vec3<double> >* chPts = new SArray<Vec3<double> >[2 * m_ompNumProcessors];
godot_gravity>       |                                                                                    ^
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
godot_gravity>   133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
godot_gravity>       |                          ^
godot_gravity> thirdparty/vhacd/src/VHACD.cpp:703:48: warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
godot_gravity>   703 |     Mesh* chs = new Mesh[2 * m_ompNumProcessors];
godot_gravity>       |                                                ^
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
godot_gravity>   133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
godot_gravity>       |                          ^
godot_gravity> In member function ‘PushBack’,
godot_gravity>     inlined from ‘ComputeAxesAlignedClippingPlanes’ at thirdparty/vhacd/src/VHACD.cpp:499:24,
godot_gravity>     inlined from ‘ComputeACD’ at thirdparty/vhacd/src/VHACD.cpp:1082:53:
godot_gravity> thirdparty/vhacd/inc/vhacdSArray.h:82:23: warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
godot_gravity>    82 |             T* temp = new T[maxSize];
godot_gravity>       |                       ^
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new: In member function ‘ComputeACD’:
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
godot_gravity>   133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
godot_gravity>       |                          ^
godot_gravity> In member function ‘PushBack’,
godot_gravity>     inlined from ‘ComputeAxesAlignedClippingPlanes’ at thirdparty/vhacd/src/VHACD.cpp:511:24,
godot_gravity>     inlined from ‘ComputeACD’ at thirdparty/vhacd/src/VHACD.cpp:1082:53:
godot_gravity> thirdparty/vhacd/inc/vhacdSArray.h:82:23: warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
godot_gravity>    82 |             T* temp = new T[maxSize];
godot_gravity>       |                       ^
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new: In member function ‘ComputeACD’:
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
godot_gravity>   133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
godot_gravity>       |                          ^
godot_gravity> In member function ‘PushBack’,
godot_gravity>     inlined from ‘ComputeAxesAlignedClippingPlanes’ at thirdparty/vhacd/src/VHACD.cpp:523:24,
godot_gravity>     inlined from ‘ComputeACD’ at thirdparty/vhacd/src/VHACD.cpp:1082:53:
godot_gravity> thirdparty/vhacd/inc/vhacdSArray.h:82:23: warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
godot_gravity>    82 |             T* temp = new T[maxSize];
godot_gravity>       |                       ^
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new: In member function ‘ComputeACD’:
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
godot_gravity>   133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
godot_gravity>       |                          ^
godot_gravity> In member function ‘PushBack’,
godot_gravity>     inlined from ‘ComputeAxesAlignedClippingPlanes’ at thirdparty/vhacd/src/VHACD.cpp:547:24,
godot_gravity>     inlined from ‘ComputeACD’ at thirdparty/vhacd/src/VHACD.cpp:1086:53:
godot_gravity> thirdparty/vhacd/inc/vhacdSArray.h:82:23: warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
godot_gravity>    82 |             T* temp = new T[maxSize];
godot_gravity>       |                       ^
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new: In member function ‘ComputeACD’:
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
godot_gravity>   133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
godot_gravity>       |                          ^
godot_gravity> In member function ‘PushBack’,
godot_gravity>     inlined from ‘ComputeAxesAlignedClippingPlanes’ at thirdparty/vhacd/src/VHACD.cpp:557:24,
godot_gravity>     inlined from ‘ComputeACD’ at thirdparty/vhacd/src/VHACD.cpp:1086:53:
godot_gravity> thirdparty/vhacd/inc/vhacdSArray.h:82:23: warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
godot_gravity>    82 |             T* temp = new T[maxSize];
godot_gravity>       |                       ^
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new: In member function ‘ComputeACD’:
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
godot_gravity>   133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
godot_gravity>       |                          ^
godot_gravity> In member function ‘PushBack’,
godot_gravity>     inlined from ‘ComputeAxesAlignedClippingPlanes’ at thirdparty/vhacd/src/VHACD.cpp:567:24,
godot_gravity>     inlined from ‘ComputeACD’ at thirdparty/vhacd/src/VHACD.cpp:1086:53:
godot_gravity> thirdparty/vhacd/inc/vhacdSArray.h:82:23: warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
godot_gravity>    82 |             T* temp = new T[maxSize];
godot_gravity>       |                       ^
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new: In member function ‘ComputeACD’:
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
godot_gravity>   133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
godot_gravity>       |                          ^
godot_gravity> In member function ‘PushBack’,
godot_gravity>     inlined from ‘RefineAxesAlignedClippingPlanes’ at thirdparty/vhacd/src/VHACD.cpp:589:28,
godot_gravity>     inlined from ‘ComputeACD’ at thirdparty/vhacd/src/VHACD.cpp:1115:56:
godot_gravity> thirdparty/vhacd/inc/vhacdSArray.h:82:23: warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
godot_gravity>    82 |             T* temp = new T[maxSize];
godot_gravity>       |                       ^
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new: In member function ‘ComputeACD’:
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
godot_gravity>   133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
godot_gravity>       |                          ^
godot_gravity> In member function ‘PushBack’,
godot_gravity>     inlined from ‘RefineAxesAlignedClippingPlanes’ at thirdparty/vhacd/src/VHACD.cpp:603:28,
godot_gravity>     inlined from ‘ComputeACD’ at thirdparty/vhacd/src/VHACD.cpp:1115:56:
godot_gravity> thirdparty/vhacd/inc/vhacdSArray.h:82:23: warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
godot_gravity>    82 |             T* temp = new T[maxSize];
godot_gravity>       |                       ^
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new: In member function ‘ComputeACD’:
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
godot_gravity>   133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
godot_gravity>       |                          ^
godot_gravity> In member function ‘PushBack’,
godot_gravity>     inlined from ‘RefineAxesAlignedClippingPlanes’ at thirdparty/vhacd/src/VHACD.cpp:617:28,
godot_gravity>     inlined from ‘ComputeACD’ at thirdparty/vhacd/src/VHACD.cpp:1115:56:
godot_gravity> thirdparty/vhacd/inc/vhacdSArray.h:82:23: warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
godot_gravity>    82 |             T* temp = new T[maxSize];
godot_gravity>       |                       ^
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new: In member function ‘ComputeACD’:
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
godot_gravity>   133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
godot_gravity>       |                          ^
godot_gravity> In member function ‘PushBack’,
godot_gravity>     inlined from ‘RefineAxesAlignedClippingPlanes’ at thirdparty/vhacd/src/VHACD.cpp:640:28,
godot_gravity>     inlined from ‘ComputeACD’ at thirdparty/vhacd/src/VHACD.cpp:1119:56:
godot_gravity> thirdparty/vhacd/inc/vhacdSArray.h:82:23: warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
godot_gravity>    82 |             T* temp = new T[maxSize];
godot_gravity>       |                       ^
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new: In member function ‘ComputeACD’:
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
godot_gravity>   133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
godot_gravity>       |                          ^
godot_gravity> In member function ‘PushBack’,
godot_gravity>     inlined from ‘RefineAxesAlignedClippingPlanes’ at thirdparty/vhacd/src/VHACD.cpp:654:28,
godot_gravity>     inlined from ‘ComputeACD’ at thirdparty/vhacd/src/VHACD.cpp:1119:56:
godot_gravity> thirdparty/vhacd/inc/vhacdSArray.h:82:23: warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
godot_gravity>    82 |             T* temp = new T[maxSize];
godot_gravity>       |                       ^
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new: In member function ‘ComputeACD’:
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
godot_gravity>   133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
godot_gravity>       |                          ^
godot_gravity> In member function ‘PushBack’,
godot_gravity>     inlined from ‘RefineAxesAlignedClippingPlanes’ at thirdparty/vhacd/src/VHACD.cpp:668:28,
godot_gravity>     inlined from ‘ComputeACD’ at thirdparty/vhacd/src/VHACD.cpp:1119:56:
godot_gravity> thirdparty/vhacd/inc/vhacdSArray.h:82:23: warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
godot_gravity>    82 |             T* temp = new T[maxSize];
godot_gravity>       |                       ^
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new: In member function ‘ComputeACD’:
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
godot_gravity>   133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
godot_gravity>       |                          ^
godot_gravity> In member function ‘PushBack’,
godot_gravity>     inlined from ‘ComputeACD’ at thirdparty/vhacd/src/VHACD.cpp:1151:34:
godot_gravity> thirdparty/vhacd/inc/vhacdSArray.h:82: warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
godot_gravity>    82 |             T* temp = new T[maxSize];
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new: In member function ‘ComputeACD’:
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
godot_gravity>   133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
godot_gravity>       |                          ^
godot_gravity> In member function ‘PushBack’,
godot_gravity>     inlined from ‘ComputeACD’ at thirdparty/vhacd/src/VHACD.cpp:1152:34:
godot_gravity> thirdparty/vhacd/inc/vhacdSArray.h:82: warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
godot_gravity>    82 |             T* temp = new T[maxSize];
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new: In member function ‘ComputeACD’:
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
godot_gravity>   133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
godot_gravity>       |                          ^
godot_gravity> In member function ‘PushBack’,
godot_gravity>     inlined from ‘ComputeACD’ at thirdparty/vhacd/src/VHACD.cpp:1165:31:
godot_gravity> thirdparty/vhacd/inc/vhacdSArray.h:82: warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
godot_gravity>    82 |             T* temp = new T[maxSize];
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new: In member function ‘ComputeACD’:
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
godot_gravity>   133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
godot_gravity>       |                          ^
godot_gravity> In member function ‘operator=’,
godot_gravity>     inlined from ‘ComputeACD’ at thirdparty/vhacd/src/VHACD.cpp:1178:24:
godot_gravity> thirdparty/vhacd/inc/vhacdSArray.h:124:22: warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
godot_gravity>   124 |             m_data = new T[m_maxSize];
godot_gravity>       |                      ^
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new: In member function ‘ComputeACD’:
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
godot_gravity>   133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
godot_gravity>       |                          ^
godot_gravity> In member function ‘PushBack’,
godot_gravity>     inlined from ‘ComputeACD’ at thirdparty/vhacd/src/VHACD.cpp:1184:23:
godot_gravity> thirdparty/vhacd/inc/vhacdSArray.h:82: warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
godot_gravity>    82 |             T* temp = new T[maxSize];
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new: In member function ‘ComputeACD’:
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
godot_gravity>   133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
godot_gravity>       |                          ^
godot_gravity> In member function ‘PushBack’,
godot_gravity>     inlined from ‘Process’ at thirdparty/vhacd/src/vhacdICHull.cpp:265:46,
godot_gravity>     inlined from ‘SimplifyConvexHull’ at thirdparty/vhacd/src/VHACD.cpp:1504:19,
godot_gravity>     inlined from ‘SimplifyConvexHull’ at thirdparty/vhacd/src/VHACD.cpp:1421:0,
godot_gravity>     inlined from ‘_ZN5VHACD5VHACD19SimplifyConvexHullsERKNS_6IVHACD10ParametersE.part.0’ at thirdparty/vhacd/src/VHACD.cpp:1536:27:
godot_gravity> thirdparty/vhacd/inc/vhacdSArray.h:82: warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
godot_gravity>    82 |             T* temp = new T[maxSize];
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new: In member function ‘_ZN5VHACD5VHACD19SimplifyConvexHullsERKNS_6IVHACD10ParametersE.part.0’:
godot_gravity> /nix/store/sa7j7cddyblhcb3ch3ds10w7nw75yjj1-gcc-14.3.0/include/c++/14.3.0/new:133:26: note: in a call to allocation function ‘operator new []’ declared here
godot_gravity>   133 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
godot_gravity>       |                          ^
godot_gravity> /nix/store/z3za8hfc24wb117s50p8b10agjkgm039-binutils-2.44/bin/ld: /nix/store/1im4v3c1rvqrqmjdy8ybaw7czzhiq20k-freetype-2.13.3/lib/libfreetype.so: undefined reference to symbol 'BZ2_bzDecompress'
godot_gravity> /nix/store/z3za8hfc24wb117s50p8b10agjkgm039-binutils-2.44/bin/ld: /nix/store/ywc5ismph30i5a1w56rl9kxa0a5887wx-bzip2-1.0.8/lib/libbz2.so.1: error adding symbols: DSO missing from command line
godot_gravity> collect2: error: ld returned 1 exit status
godot_gravity> scons: *** [bin/godot.linuxbsd.editor.x86_64] Error 1
godot_gravity> scons: building terminated because of errors.

What might be causing this error? A missing dependency?