Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.3 stable compile error #102689

Closed
njikmf opened this issue Feb 11, 2025 · 2 comments
Closed

4.3 stable compile error #102689

njikmf opened this issue Feb 11, 2025 · 2 comments
Labels

Comments

@njikmf
Copy link

njikmf commented Feb 11, 2025

Tested versions

4.3 stable, download the zip file.

System information

Win10, VS2022

Issue description

`
SCONS platform=windows target=editor progress=no dev_build=no arch=x86_64 optimize=debug debug_symbols=yes d3d12=no disable_3d=no modules_enabled_by_default=yes opengl3=no openxr=no use_volk=yes threads=no use_static_cpp=no verbose=yes vsproj=no
scons: Reading SConscript files ...
Auto-detected 4 CPU cores available for build parallelism. Using 4 cores by default. You can override it with the -j argument.
Using SCons-detected MSVC version 14.3, arch x86_64
Building for platform "windows", architecture "x86_64", target "editor".
Checking for C header file mntent.h... (cached) no
scons: done reading SConscript files.
scons: Building targets ...
cl /Fothirdparty\thorvg\src\loaders\svg\tvgSvgLoader.windows.editor.x86_64.nothreads.obj /c thirdparty\thorvg\src\loaders\svg\tvgSvgLoader.cpp /TP /std:c++17 /nologo /MD /fp:strict /Gd /GR /utf-8 /bigobj /Zi /FS /Od /w /DTOOLS_ENABLED /DDEBUG_ENABLED /DNDEBUG /DENGINE_UPDATE_CHECK_ENABLED /DNO_EDITOR_SPLASH /DWINDOWS_ENABLED /DWASAPI_ENABLED /DWINMIDI_ENABLED /DTYPED_METHOD_BIND /DWIN32 /DWINVER=0x0601 /D_WIN32_WINNT=0x0601 /DNOMINMAX /D_WIN64 /DVULKAN_ENABLED /DRD_ENABLED /D_HAS_EXCEPTIONS=0 /DMINIZIP_ENABLED /DBROTLI_ENABLED /DCLIPPER2_ENABLED /DZSTD_STATIC_LINKING_ONLY /DUSE_VOLK /DVK_USE_PLATFORM_WIN32_KHR /DGODOT_MODULE /DTHORVG_WEBP_LOADER_SUPPORT /DTVG_STATIC /Ithirdparty\libwebp\src /Ithirdparty\thorvg\src\loaders\external_webp /Ithirdparty\libpng /Ithirdparty\thorvg\src\common /Ithirdparty\thorvg\src\loaders\svg /Ithirdparty\thorvg\src\renderer /Ithirdparty\thorvg\src\renderer\sw_engine /Ithirdparty\thorvg\src\loaders\raw /Ithirdparty\thorvg\src\loaders\external_png /Ithirdparty\thorvg\src\loaders\jpg /Ithirdparty\thorvg\inc /Ithirdparty\libpng /Ithirdparty\volk /Ithirdparty\vulkan /Ithirdparty\vulkan\include /Ithirdparty\zstd /Ithirdparty\zlib /Ithirdparty\clipper2\include /Ithirdparty\brotli\include /Iplatform\windows /I.
cl /Fothirdparty\thorvg\src\loaders\raw\tvgRawLoader.windows.editor.x86_64.nothreads.obj /c thirdparty\thorvg\src\loaders\raw\tvgRawLoader.cpp /TP /std:c++17 /nologo /MD /fp:strict /Gd /GR /utf-8 /bigobj /Zi /FS /Od /w /DTOOLS_ENABLED /DDEBUG_ENABLED /DNDEBUG /DENGINE_UPDATE_CHECK_ENABLED /DNO_EDITOR_SPLASH /DWINDOWS_ENABLED /DWASAPI_ENABLED /DWINMIDI_ENABLED /DTYPED_METHOD_BIND /DWIN32 /DWINVER=0x0601 /D_WIN32_WINNT=0x0601 /DNOMINMAX /D_WIN64 /DVULKAN_ENABLED /DRD_ENABLED /D_HAS_EXCEPTIONS=0 /DMINIZIP_ENABLED /DBROTLI_ENABLED /DCLIPPER2_ENABLED /DZSTD_STATIC_LINKING_ONLY /DUSE_VOLK /DVK_USE_PLATFORM_WIN32_KHR /DGODOT_MODULE /DTHORVG_WEBP_LOADER_SUPPORT /DTVG_STATIC /Ithirdparty\libwebp\src /Ithirdparty\thorvg\src\loaders\external_webp /Ithirdparty\libpng /Ithirdparty\thorvg\src\common /Ithirdparty\thorvg\src\loaders\svg /Ithirdparty\thorvg\src\renderer /Ithirdparty\thorvg\src\renderer\sw_engine /Ithirdparty\thorvg\src\loaders\raw /Ithirdparty\thorvg\src\loaders\external_png /Ithirdparty\thorvg\src\loaders\jpg /Ithirdparty\thorvg\inc /Ithirdparty\libpng /Ithirdparty\volk /Ithirdparty\vulkan /Ithirdparty\vulkan\include /Ithirdparty\zstd /Ithirdparty\zlib /Ithirdparty\clipper2\include /Ithirdparty\brotli\include /Iplatform\windows /I.
cl /Fothirdparty\thorvg\src\loaders\external_png\tvgPngLoader.windows.editor.x86_64.nothreads.obj /c thirdparty\thorvg\src\loaders\external_png\tvgPngLoader.cpp /TP /std:c++17 /nologo /MD /fp:strict /Gd /GR /utf-8 /bigobj /Zi /FS /Od /w /DTOOLS_ENABLED /DDEBUG_ENABLED /DNDEBUG /DENGINE_UPDATE_CHECK_ENABLED /DNO_EDITOR_SPLASH /DWINDOWS_ENABLED /DWASAPI_ENABLED /DWINMIDI_ENABLED /DTYPED_METHOD_BIND /DWIN32 /DWINVER=0x0601 /D_WIN32_WINNT=0x0601 /DNOMINMAX /D_WIN64 /DVULKAN_ENABLED /DRD_ENABLED /D_HAS_EXCEPTIONS=0 /DMINIZIP_ENABLED /DBROTLI_ENABLED /DCLIPPER2_ENABLED /DZSTD_STATIC_LINKING_ONLY /DUSE_VOLK /DVK_USE_PLATFORM_WIN32_KHR /DGODOT_MODULE /DTHORVG_WEBP_LOADER_SUPPORT /DTVG_STATIC /Ithirdparty\libwebp\src /Ithirdparty\thorvg\src\loaders\external_webp /Ithirdparty\libpng /Ithirdparty\thorvg\src\common /Ithirdparty\thorvg\src\loaders\svg /Ithirdparty\thorvg\src\renderer /Ithirdparty\thorvg\src\renderer\sw_engine /Ithirdparty\thorvg\src\loaders\raw /Ithirdparty\thorvg\src\loaders\external_png /Ithirdparty\thorvg\src\loaders\jpg /Ithirdparty\thorvg\inc /Ithirdparty\libpng /Ithirdparty\volk /Ithirdparty\vulkan /Ithirdparty\vulkan\include /Ithirdparty\zstd /Ithirdparty\zlib /Ithirdparty\clipper2\include /Ithirdparty\brotli\include /Iplatform\windows /I.
cl /Fothirdparty\thorvg\src\loaders\jpg\tvgJpgd.windows.editor.x86_64.nothreads.obj /c thirdparty\thorvg\src\loaders\jpg\tvgJpgd.cpp /TP /std:c++17 /nologo /MD /fp:strict /Gd /GR /utf-8 /bigobj /Zi /FS /Od /w /DTOOLS_ENABLED /DDEBUG_ENABLED /DNDEBUG /DENGINE_UPDATE_CHECK_ENABLED /DNO_EDITOR_SPLASH /DWINDOWS_ENABLED /DWASAPI_ENABLED /DWINMIDI_ENABLED /DTYPED_METHOD_BIND /DWIN32 /DWINVER=0x0601 /D_WIN32_WINNT=0x0601 /DNOMINMAX /D_WIN64 /DVULKAN_ENABLED /DRD_ENABLED /D_HAS_EXCEPTIONS=0 /DMINIZIP_ENABLED /DBROTLI_ENABLED /DCLIPPER2_ENABLED /DZSTD_STATIC_LINKING_ONLY /DUSE_VOLK /DVK_USE_PLATFORM_WIN32_KHR /DGODOT_MODULE /DTHORVG_WEBP_LOADER_SUPPORT /DTVG_STATIC /Ithirdparty\libwebp\src /Ithirdparty\thorvg\src\loaders\external_webp /Ithirdparty\libpng /Ithirdparty\thorvg\src\common /Ithirdparty\thorvg\src\loaders\svg /Ithirdparty\thorvg\src\renderer /Ithirdparty\thorvg\src\renderer\sw_engine /Ithirdparty\thorvg\src\loaders\raw /Ithirdparty\thorvg\src\loaders\external_png /Ithirdparty\thorvg\src\loaders\jpg /Ithirdparty\thorvg\inc /Ithirdparty\libpng /Ithirdparty\volk /Ithirdparty\vulkan /Ithirdparty\vulkan\include /Ithirdparty\zstd /Ithirdparty\zlib /Ithirdparty\clipper2\include /Ithirdparty\brotli\include /Iplatform\windows /I.
cl /Fothirdparty\thorvg\src\loaders\jpg\tvgJpgLoader.windows.editor.x86_64.nothreads.obj /c thirdparty\thorvg\src\loaders\jpg\tvgJpgLoader.cpp /TP /std:c++17 /nologo /MD /fp:strict /Gd /GR /utf-8 /bigobj /Zi /FS /Od /w /DTOOLS_ENABLED /DDEBUG_ENABLED /DNDEBUG /DENGINE_UPDATE_CHECK_ENABLED /DNO_EDITOR_SPLASH /DWINDOWS_ENABLED /DWASAPI_ENABLED /DWINMIDI_ENABLED /DTYPED_METHOD_BIND /DWIN32 /DWINVER=0x0601 /D_WIN32_WINNT=0x0601 /DNOMINMAX /D_WIN64 /DVULKAN_ENABLED /DRD_ENABLED /D_HAS_EXCEPTIONS=0 /DMINIZIP_ENABLED /DBROTLI_ENABLED /DCLIPPER2_ENABLED /DZSTD_STATIC_LINKING_ONLY /DUSE_VOLK /DVK_USE_PLATFORM_WIN32_KHR /DGODOT_MODULE /DTHORVG_WEBP_LOADER_SUPPORT /DTVG_STATIC /Ithirdparty\libwebp\src /Ithirdparty\thorvg\src\loaders\external_webp /Ithirdparty\libpng /Ithirdparty\thorvg\src\common /Ithirdparty\thorvg\src\loaders\svg /Ithirdparty\thorvg\src\renderer /Ithirdparty\thorvg\src\renderer\sw_engine /Ithirdparty\thorvg\src\loaders\raw /Ithirdparty\thorvg\src\loaders\external_png /Ithirdparty\thorvg\src\loaders\jpg /Ithirdparty\thorvg\inc /Ithirdparty\libpng /Ithirdparty\volk /Ithirdparty\vulkan /Ithirdparty\vulkan\include /Ithirdparty\zstd /Ithirdparty\zlib /Ithirdparty\clipper2\include /Ithirdparty\brotli\include /Iplatform\windows /I.
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433\include\mutex(37): error C3861: '_Mtx_init_in_situ': identifier not found
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433\include\mutex(536): error C3861: '_Cnd_init_in_situ': identifier not found
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433\include\condition_variable(56): error C3861: '_Cnd_init_in_situ': identifier not found
scons: *** [thirdparty\thorvg\src\loaders\raw\tvgRawLoader.windows.editor.x86_64.nothreads.obj] Error 2
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433\include\mutex(37): error C3861: '_Mtx_init_in_situ': identifier not found
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433\include\mutex(536): error C3861: '_Cnd_init_in_situ': identifier not found
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433\include\condition_variable(56): error C3861: '_Cnd_init_in_situ': identifier not found
scons: *** [thirdparty\thorvg\src\loaders\svg\tvgSvgLoader.windows.editor.x86_64.nothreads.obj] Error 2
scons: building terminated because of errors.
[Time elapsed: 00:00:15.80]

`

Steps to reproduce

download 4.3 stable zip file, extract , then compile got this error,

Minimal reproduction project (MRP)

None

@AlexanderLife
Copy link

Recently I have been having trouble with building godot also from the main repo, it was giving me a segmentation faults in different places, I just now learned from this about scons --->

--stack-size=KILOBYTES
Set the size stack used to run threads to KILOBYTES. This value determines the stack size of the threads used to run jobs. These threads execute the actions of the builders for the nodes that are out-of-date. This option has no effect unless the number of concurrent build jobs is larger than one (as set by -j N or --jobs=N on the command line or SetOption in a script).

Using a stack size that is too small may cause stack overflow errors. This usually shows up as segmentation faults that cause scons to abort before building anything. Using a stack size that is too large will cause scons to use more memory than required and may slow down the entire build process. The default value is to use a stack size of 256 kilobytes, which should be appropriate for most uses. You should not need to increase this value unless you encounter stack overflow errors.

from this
https://www.scons.org/doc/HTML/scons-man.html

I don't know if it will help you but it helped me, to add --stack-size=512 to scons.
so the normal scons line looks like this

scons --stack-size=512

you might try playing around with the setting, to see if it helps.

@akien-mga
Copy link
Member

Duplicate of #95861.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants