Build fails on macOS 26
Build failed -> task in 'ivp_physics' failed with exit status 1 (run with -v to display more information)
Setup: Build type : release LTO build : no PolyOpt build : no Checking for 'clang' (C compiler) : /usr/bin/clang Target OS : darwin Target CPU : aarch64 Target binfmt : mac-o Checking for 'clang++' (C++ compiler) : /usr/bin/clang++ Target OS : darwin Target CPU : aarch64 Target binfmt : mac-o Checking for c flags '-MMD' : yes Checking for cxx flags '-MMD' : yes Checking for program 'git' : /usr/bin/git Checking git hash : ed8209c Checking for program 'strip' : /usr/bin/strip Testing 32bit support : no Testing 64bit support : yes Checking for required C flags : yes Checking for required C++ flags : yes Checking supported flags for clang++ in parallel : started ... -Wno-unknown-pragmas : no ... -faligned-new : no ... -Wno-unused-function : no ... -Wno-unused-value : no ... -Wall : no ... -Wno-unused-but-set-variable : no ... -Wno-reorder : no ... -Winit-self : no ... -fdiagnostics-color=always : no ... -Wuninitialized : no ... -Wno-unused-variable : no ... -Wstrict-aliasing : no ... -Wcast-align : no -> processing test results : 13 test failed Checking supported flags for clang in parallel : started ... -Wcast-align : no ... -fnonconst-initializers : no ... -Wno-unused-function : no ... -Wno-unused-value : no ... -Wno-unknown-pragmas : no ... -fdiagnostics-color=always : no ... -Winit-self : no ... -faligned-new : no ... -Wno-reorder : no ... -Wall : no ... -Wstrict-aliasing : no ... -Wno-unused-variable : no ... -Wuninitialized : no ... -Wno-unused-but-set-variable : no -> processing test results : 14 test failed Checking for library dl : yes Checking for library bz2 : yes Checking for library rt : not found Checking for library m : yes Checking for library iconv : yes Checking for program 'pkg-config' : /opt/homebrew/bin/pkg-config Checking for 'sdl2' : yes Checking for 'freetype2' : yes Checking for 'freetype2' sanity : yes Checking for 'fontconfig' : yes Checking for 'fontconfig' sanity : yes Checking for 'libjpeg' : yes Checking for 'libpng' : yes Checking for 'libcurl' : yes Checking for 'zlib' : yes --> appframework : in progress <-- appframework : done --> bitmap : in progress <-- bitmap : done --> choreoobjects : in progress <-- choreoobjects : done --> datacache : in progress <-- datacache : done --> datamodel : in progress <-- datamodel : done --> dmxloader : in progress <-- dmxloader : done --> engine : in progress <-- engine : done --> engine/voice_codecs/minimp3 : in progress <-- engine/voice_codecs/minimp3 : done --> filesystem : in progress <-- filesystem : done --> game/client : in progress <-- game/client : done --> game/server : in progress <-- game/server : done --> gameui : in progress <-- gameui : done --> inputsystem : in progress <-- inputsystem : done --> ivp/havana : in progress <-- ivp/havana : done --> ivp/havana/havok/hk_base : in progress <-- ivp/havana/havok/hk_base : done --> ivp/havana/havok/hk_math : in progress <-- ivp/havana/havok/hk_math : done --> ivp/ivp_compact_builder : in progress <-- ivp/ivp_compact_builder : done --> ivp/ivp_physics : in progress <-- ivp/ivp_physics : done --> launcher : in progress <-- launcher : done --> launcher_main : in progress <-- launcher_main : done --> materialsystem : in progress <-- materialsystem : done --> materialsystem/shaderapidx9 : in progress <-- materialsystem/shaderapidx9 : done --> materialsystem/shaderlib : in progress <-- materialsystem/shaderlib : done --> materialsystem/stdshaders : in progress <-- materialsystem/stdshaders : done --> mathlib : in progress <-- mathlib : done --> particles : in progress <-- particles : done --> scenefilecache : in progress <-- scenefilecache : done --> serverbrowser : in progress <-- serverbrowser : done --> soundemittersystem : in progress <-- soundemittersystem : done --> studiorender : in progress <-- studiorender : done --> stub_steam : in progress <-- stub_steam : done --> tier0 : in progress <-- tier0 : done --> tier1 : in progress <-- tier1 : done --> tier2 : in progress <-- tier2 : done --> tier3 : in progress <-- tier3 : done --> vgui2/matsys_controls : in progress <-- vgui2/matsys_controls : done --> vgui2/src : in progress <-- vgui2/src : done --> vgui2/vgui_controls : in progress <-- vgui2/vgui_controls : done --> vgui2/vgui_surfacelib : in progress <-- vgui2/vgui_surfacelib : done --> vguimatsurface : in progress <-- vguimatsurface : done --> video : in progress <-- video : done --> vphysics : in progress <-- vphysics : done --> vpklib : in progress <-- vpklib : done --> vstdlib : in progress <-- vstdlib : done --> vtf : in progress <-- vtf : done --> utils/vtex : in progress <-- utils/vtex : done --> unicode : in progress <-- unicode : done --> video : in progress <-- video : done --> togl : in progress <-- togl : done 'configure' finished successfully (1.611s)
I am buikding portal
Build failed -> task in 'ivp_physics' failed with exit status 1: {task 4503019408: cxx ivp_constraint_local.cxx -> ivp_constraint_local.cxx.17.o} ['/usr/bin/clang++', '-MMD', '-fno-strict-aliasing', '-fvisibility=hidden', '-O2', '-funsafe-math-optimizations', '-ftree-vectorize', '-ffast-math', '-pipe', '-fPIC', '-L/Users/5836/source-engine/lib/darwin/aarch64/', '-pthread', '-fsigned-char', '-std=c++11', '-fpermissive', '-Iivp/ivp_physics', '-I../ivp/ivp_physics', '-Iivp/ivp_physics/havok', '-I../ivp/ivp_physics/havok', '-Iivp/ivp_physics', '-I../ivp/ivp_physics', '-Iivp/ivp_utility', '-I../ivp/ivp_utility', '-Iivp/ivp_controller', '-I../ivp/ivp_controller', '-Iivp/ivp_collision', '-I../ivp/ivp_collision', '-Iivp/ivp_surface_manager', '-I../ivp/ivp_surface_manager', '-Iivp/ivp_intern', '-I../ivp/ivp_intern', '-Iivp/havana/havok', '-I../ivp/havana/havok', '-I../common', '-DDX_TO_GL_ABSTRACTION', '-DGL_GLEXT_PROTOTYPES', '-DBINK_VIDEO', '-DUSE_SDL=1', '-DPLATFORM_64BITS=1', '-DOSX=1', '-D_OSX=1', '-DPOSIX=1', '-D_POSIX=1', '-DPLATFORM_POSIX=1', '-DGNUC', '-DNO_HOOK_MALLOC', '-D_DLL_EXT=.dylib', '-DNO_MEMOVERRIDE_NEW_DELETE=1', '-DNDEBUG', '-DGIT_COMMIT_HASH="ed8209c"', '-DHAVE_SDL2=1', '-DHAVE_FT2=1', '-DHAVE_FC=1', '-DHAVE_JPEG=1', '-DHAVE_PNG=1', '-DHAVE_CURL=1', '-DHAVE_ZLIB=1', '-DHAVOK_MOPP', '-DIVP_VERSION_SDK', '-DVPHYSICS_EXPORTS', '-DHAVANA_CONSTRAINTS', '../ivp/ivp_controller/ivp_constraint_local.cxx', '-c', '-o/Users/5836/source-engine/build/ivp/ivp_controller/ivp_constraint_local.cxx.17.o'] -> task in 'ivp_physics' failed with exit status 1: {task 4503022288: cxx ivp_great_matrix.cxx -> ivp_great_matrix.cxx.17.o} ['/usr/bin/clang++', '-MMD', '-fno-strict-aliasing', '-fvisibility=hidden', '-O2', '-funsafe-math-optimizations', '-ftree-vectorize', '-ffast-math', '-pipe', '-fPIC', '-L/Users/5836/source-engine/lib/darwin/aarch64/', '-pthread', '-fsigned-char', '-std=c++11', '-fpermissive', '-Iivp/ivp_physics', '-I../ivp/ivp_physics', '-Iivp/ivp_physics/havok', '-I../ivp/ivp_physics/havok', '-Iivp/ivp_physics', '-I../ivp/ivp_physics', '-Iivp/ivp_utility', '-I../ivp/ivp_utility', '-Iivp/ivp_controller', '-I../ivp/ivp_controller', '-Iivp/ivp_collision', '-I../ivp/ivp_collision', '-Iivp/ivp_surface_manager', '-I../ivp/ivp_surface_manager', '-Iivp/ivp_intern', '-I../ivp/ivp_intern', '-Iivp/havana/havok', '-I../ivp/havana/havok', '-I../common', '-DDX_TO_GL_ABSTRACTION', '-DGL_GLEXT_PROTOTYPES', '-DBINK_VIDEO', '-DUSE_SDL=1', '-DPLATFORM_64BITS=1', '-DOSX=1', '-D_OSX=1', '-DPOSIX=1', '-D_POSIX=1', '-DPLATFORM_POSIX=1', '-DGNUC', '-DNO_HOOK_MALLOC', '-D_DLL_EXT=.dylib', '-DNO_MEMOVERRIDE_NEW_DELETE=1', '-DNDEBUG', '-DGIT_COMMIT_HASH="ed8209c"', '-DHAVE_SDL2=1', '-DHAVE_FT2=1', '-DHAVE_FC=1', '-DHAVE_JPEG=1', '-DHAVE_PNG=1', '-DHAVE_CURL=1', '-DHAVE_ZLIB=1', '-DHAVOK_MOPP', '-DIVP_VERSION_SDK', '-DVPHYSICS_EXPORTS', '-DHAVANA_CONSTRAINTS', '../ivp/ivp_intern/ivp_great_matrix.cxx', '-c', '-o/Users/5836/source-engine/build/ivp/ivp_intern/ivp_great_matrix.cxx.17.o'] -> task in 'ivp_physics' failed with exit status 1: {task 4503017488: cxx ivp_mindist_minimize.cxx -> ivp_mindist_minimize.cxx.17.o} ['/usr/bin/clang++', '-MMD', '-fno-strict-aliasing', '-fvisibility=hidden', '-O2', '-funsafe-math-optimizations', '-ftree-vectorize', '-ffast-math', '-pipe', '-fPIC', '-L/Users/5836/source-engine/lib/darwin/aarch64/', '-pthread', '-fsigned-char', '-std=c++11', '-fpermissive', '-Iivp/ivp_physics', '-I../ivp/ivp_physics', '-Iivp/ivp_physics/havok', '-I../ivp/ivp_physics/havok', '-Iivp/ivp_physics', '-I../ivp/ivp_physics', '-Iivp/ivp_utility', '-I../ivp/ivp_utility', '-Iivp/ivp_controller', '-I../ivp/ivp_controller', '-Iivp/ivp_collision', '-I../ivp/ivp_collision', '-Iivp/ivp_surface_manager', '-I../ivp/ivp_surface_manager', '-Iivp/ivp_intern', '-I../ivp/ivp_intern', '-Iivp/havana/havok', '-I../ivp/havana/havok', '-I../common', '-DDX_TO_GL_ABSTRACTION', '-DGL_GLEXT_PROTOTYPES', '-DBINK_VIDEO', '-DUSE_SDL=1', '-DPLATFORM_64BITS=1', '-DOSX=1', '-D_OSX=1', '-DPOSIX=1', '-D_POSIX=1', '-DPLATFORM_POSIX=1', '-DGNUC', '-DNO_HOOK_MALLOC', '-D_DLL_EXT=.dylib', '-DNO_MEMOVERRIDE_NEW_DELETE=1', '-DNDEBUG', '-DGIT_COMMIT_HASH="ed8209c"', '-DHAVE_SDL2=1', '-DHAVE_FT2=1', '-DHAVE_FC=1', '-DHAVE_JPEG=1', '-DHAVE_PNG=1', '-DHAVE_CURL=1', '-DHAVE_ZLIB=1', '-DHAVOK_MOPP', '-DIVP_VERSION_SDK', '-DVPHYSICS_EXPORTS', '-DHAVANA_CONSTRAINTS', '../ivp/ivp_collision/ivp_mindist_minimize.cxx', '-c', '-o/Users/5836/source-engine/build/ivp/ivp_collision/ivp_mindist_minimize.cxx.17.o'] -> task in 'ivp_physics' failed with exit status 1: {task 4503021968: cxx ivp_friction.cxx -> ivp_friction.cxx.17.o} ['/usr/bin/clang++', '-MMD', '-fno-strict-aliasing', '-fvisibility=hidden', '-O2', '-funsafe-math-optimizations', '-ftree-vectorize', '-ffast-math', '-pipe', '-fPIC', '-L/Users/5836/source-engine/lib/darwin/aarch64/', '-pthread', '-fsigned-char', '-std=c++11', '-fpermissive', '-Iivp/ivp_physics', '-I../ivp/ivp_physics', '-Iivp/ivp_physics/havok', '-I../ivp/ivp_physics/havok', '-Iivp/ivp_physics', '-I../ivp/ivp_physics', '-Iivp/ivp_utility', '-I../ivp/ivp_utility', '-Iivp/ivp_controller', '-I../ivp/ivp_controller', '-Iivp/ivp_collision', '-I../ivp/ivp_collision', '-Iivp/ivp_surface_manager', '-I../ivp/ivp_surface_manager', '-Iivp/ivp_intern', '-I../ivp/ivp_intern', '-Iivp/havana/havok', '-I../ivp/havana/havok', '-I../common', '-DDX_TO_GL_ABSTRACTION', '-DGL_GLEXT_PROTOTYPES', '-DBINK_VIDEO', '-DUSE_SDL=1', '-DPLATFORM_64BITS=1', '-DOSX=1', '-D_OSX=1', '-DPOSIX=1', '-D_POSIX=1', '-DPLATFORM_POSIX=1', '-DGNUC', '-DNO_HOOK_MALLOC', '-D_DLL_EXT=.dylib', '-DNO_MEMOVERRIDE_NEW_DELETE=1', '-DNDEBUG', '-DGIT_COMMIT_HASH="ed8209c"', '-DHAVE_SDL2=1', '-DHAVE_FT2=1', '-DHAVE_FC=1', '-DHAVE_JPEG=1', '-DHAVE_PNG=1', '-DHAVE_CURL=1', '-DHAVE_ZLIB=1', '-DHAVOK_MOPP', '-DIVP_VERSION_SDK', '-DVPHYSICS_EXPORTS', '-DHAVANA_CONSTRAINTS', '../ivp/ivp_intern/ivp_friction.cxx', '-c', '-o/Users/5836/source-engine/build/ivp/ivp_intern/ivp_friction.cxx.17.o']
same here, very annoying.
Build failed -> task in 'ivp_physics' failed with exit status 1:
after
python3 waf build
I am also having this issue. Like, the exact same error... M1 MacBook Air on macOS 26.6. Trying to build Counter-Strike: Source (aka cstrike).
Waf: Leaving directory `/Users/kiiatto/source-engine/build'
Build failed
-> task in 'ivp_physics' failed with exit status 1:
{task 4452557968: cxx ivp_friction.cxx -> ivp_friction.cxx.17.o}
['/usr/bin/clang++', '-MMD', '-fno-strict-aliasing', '-fvisibility=hidden', '-O2', '-funsafe-math-optimizations', '-ftree-vectorize', '-ffast-math', '-pipe', '-fPIC', '-L/Users/kiiatto/source-engine/lib/darwin/aarch64/', '-pthread', '-fsigned-char', '-std=c++11', '-fpermissive', '-Iivp/ivp_physics', '-I../ivp/ivp_physics', '-Iivp/ivp_physics/havok', '-I../ivp/ivp_physics/havok', '-Iivp/ivp_physics', '-I../ivp/ivp_physics', '-Iivp/ivp_utility', '-I../ivp/ivp_utility', '-Iivp/ivp_controller', '-I../ivp/ivp_controller', '-Iivp/ivp_collision', '-I../ivp/ivp_collision', '-Iivp/ivp_surface_manager', '-I../ivp/ivp_surface_manager', '-Iivp/ivp_intern', '-I../ivp/ivp_intern', '-Iivp/havana/havok', '-I../ivp/havana/havok', '-I../common', '-DDX_TO_GL_ABSTRACTION', '-DGL_GLEXT_PROTOTYPES', '-DBINK_VIDEO', '-DUSE_SDL=1', '-DPLATFORM_64BITS=1', '-DOSX=1', '-D_OSX=1', '-DPOSIX=1', '-D_POSIX=1', '-DPLATFORM_POSIX=1', '-DGNUC', '-DNO_HOOK_MALLOC', '-D_DLL_EXT=.dylib', '-DNO_MEMOVERRIDE_NEW_DELETE=1', '-DNDEBUG', '-DGIT_COMMIT_HASH="ed8209cc"', '-DHAVE_SDL2=1', '-DHAVE_FT2=1', '-DHAVE_FC=1', '-DHAVE_JPEG=1', '-DHAVE_PNG=1', '-DHAVE_CURL=1', '-DHAVE_ZLIB=1', '-DHAVOK_MOPP', '-DIVP_VERSION_SDK', '-DVPHYSICS_EXPORTS', '-DHAVANA_CONSTRAINTS', '../ivp/ivp_intern/ivp_friction.cxx', '-c', '-o/Users/kiiatto/source-engine/build/ivp/ivp_intern/ivp_friction.cxx.17.o']
"On newer clang toolchains (i.e: Xcode 26): alloca() is used without including <alloca.h>. The fix is to add that include to the affected files."
There's probably a fork out there to fix this, or maybe you use can ask an AI agent to fix for you.
5. "On newer clang toolchains (i.e: Xcode 26):
alloca()is used without including<alloca.h>. The fix is to add that include to the affected files." There's probably a fork out there to fix this, or maybe you use can ask an AI agent to fix for you.
https://github.com/nillerusr/source-engine/issues/481#issuecomment-4898129783
Well there's this patch that seems to target that issue
A fix can be used:
export CFLAGS="-include alloca.h -include stdlib.h" export CXXFLAGS="-include alloca.h -include stdlib.h" ./waf configure -T release ./waf build
I am not sure how long this fix will last