Building Source.Python failed - ./Build.sh: 158: Bad substitution
Posted: Mon May 04, 2020 5:05 pm
Hi everyone, so I am trying to build SP on an ubuntu 20.04 machine. I am using gcc 4.8.5, cmake 3.16.3. I ran ./Build.sh csgo and my build died after 47%:
The last messages are:
Line 158 in my Build.sh is:
Before I had different errors regarding the gcc version or missing libraries but now I am a little lost about what's wrong. Any help here to get this to work is appreciated. Thanks
Code: Select all
[ 47%] Building CXX object CMakeFiles/core.dir/core/modules/entities/entities_entity_wrap.cpp.o
The last messages are:
Code: Select all
In file included from /home/steam/sourcepython/Source.Python/src/core/modules/entities/entities_entity_wrap.cpp:34:0:
/home/steam/sourcepython/Source.Python/src/core/modules/physics/physics.h: In static member function ‘static U* Wrapper<T>::_obj(CPointer*)’:
/home/steam/sourcepython/Source.Python/src/core/modules/physics/physics.h:60:11: error: ‘Wrap’ was not declared in this scope
{ return Wrap<U>(__obj__<T>(pPtr)); }
^
/home/steam/sourcepython/Source.Python/src/core/modules/physics/physics.h:60:17: error: expected primary-expression before ‘>’ token
{ return Wrap<U>(__obj__<T>(pPtr)); }
^
make[2]: *** [CMakeFiles/core.dir/build.make:609: CMakeFiles/core.dir/core/modules/entities/entities_entity_wrap.cpp.o] Error 1
COLLECT_GCC_OPTIONS='-D' 'BOOST_PYTHON_MAX_ARITY=32' '-D' 'BOOST_PYTHON_NO_LIB' '-D' 'BOOST_PYTHON_SOURCE' '-D' 'BOOST_PYTHON_STATIC_LIB' '-D' 'ENGINE_BRANCH_CSGO' '-D' 'ENGINE_CSGO' '-D' 'GAME_DLL=1' '-D' 'SOURCE_ENGINE=csgo' '-D' 'SOURCE_ENGINE_BRANCH=csgo' '-D' 'USE_PROTOBUF' '-D' 'core_EXPORTS' '-I' '/home/steam/sourcepython/Source.Python/src/hl2sdk/csgo' '-I' '/home/steam/sourcepython/Source.Python/src/hl2sdk/csgo/common' '-I' '/home/steam/sourcepython/Source.Python/src/hl2sdk/csgo/common/protobuf-2.5.0/src' '-I' '/home/steam/sourcepython/Source.Python/src/hl2sdk/csgo/game/shared' '-I' '/home/steam/sourcepython/Source.Python/src/hl2sdk/csgo/game/server' '-I' '/home/steam/sourcepython/Source.Python/src/hl2sdk/csgo/public' '-I' '/home/steam/sourcepython/Source.Python/src/hl2sdk/csgo/public/tier0' '-I' '/home/steam/sourcepython/Source.Python/src/hl2sdk/csgo/public/tier1' '-I' '/home/steam/sourcepython/Source.Python/src/hl2sdk/csgo/public/engine/protobuf' '-I' '/home/steam/sourcepython/Source.Python/src/thirdparty/dyncall/include' '-I' '/home/steam/sourcepython/Source.Python/src/thirdparty/boost' '-I' '/home/steam/sourcepython/Source.Python/src/thirdparty/AsmJit/include' '-I' '/home/steam/sourcepython/Source.Python/src/thirdparty/DynamicHooks/include' '-I' '/home/steam/sourcepython/Source.Python/src/core' '-I' '/home/steam/sourcepython/Source.Python/src/thirdparty/python_linux/include' '-D' '_LINUX' '-D' 'POSIX' '-D' 'LINUX' '-D' 'GNUC' '-D' 'COMPILER_GCC' '-D' 'stricmp=strcasecmp' '-D' '_stricmp=strcasecmp' '-D' '_strnicmp=strncasecmp' '-D' 'strnicmp=strncasecmp' '-D' '_snprintf=snprintf' '-D' '_vsnprintf=vsnprintf' '-D' '_alloca=alloca' '-D' 'strcmpi=strcasecmp' '-Wall' '-Wno-uninitialized' '-Wno-switch' '-Wno-unused' '-Wno-non-virtual-dtor' '-Wno-overloaded-virtual' '-Wno-conversion-null' '-Wno-write-strings' '-Wno-invalid-offsetof' '-Wno-reorder' '-mfpmath=sse' '-msse' '-m32' '-fno-strict-aliasing' '-std=c++11' '-fno-threadsafe-statics' '-v' '-fvisibility=hidden' '-D' '_NDEBUG' '-O3' '-D' 'NDEBUG' '-fPIC' '-o' 'CMakeFiles/core.dir/core/modules/engines/engines_server_wrap.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=i686'
as -v -I /home/steam/sourcepython/Source.Python/src/hl2sdk/csgo -I /home/steam/sourcepython/Source.Python/src/hl2sdk/csgo/common -I /home/steam/sourcepython/Source.Python/src/hl2sdk/csgo/common/protobuf-2.5.0/src -I /home/steam/sourcepython/Source.Python/src/hl2sdk/csgo/game/shared -I /home/steam/sourcepython/Source.Python/src/hl2sdk/csgo/game/server -I /home/steam/sourcepython/Source.Python/src/hl2sdk/csgo/public -I /home/steam/sourcepython/Source.Python/src/hl2sdk/csgo/public/tier0 -I /home/steam/sourcepython/Source.Python/src/hl2sdk/csgo/public/tier1 -I /home/steam/sourcepython/Source.Python/src/hl2sdk/csgo/public/engine/protobuf -I /home/steam/sourcepython/Source.Python/src/thirdparty/dyncall/include -I /home/steam/sourcepython/Source.Python/src/thirdparty/boost -I /home/steam/sourcepython/Source.Python/src/thirdparty/AsmJit/include -I /home/steam/sourcepython/Source.Python/src/thirdparty/DynamicHooks/include -I /home/steam/sourcepython/Source.Python/src/core -I /home/steam/sourcepython/Source.Python/src/thirdparty/python_linux/include --32 -o CMakeFiles/core.dir/core/modules/engines/engines_server_wrap.cpp.o /tmp/cct6aa0I.s
GNU assembler version 2.34 (x86_64-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.34
COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/
LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/4.8/32/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../i386-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib32/:/lib/i386-linux-gnu/:/lib/../lib32/:/usr/lib/i386-linux-gnu/:/usr/lib/../lib32/:/usr/lib/gcc/x86_64-linux-gnu/4.8/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../i386-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../:/lib/i386-linux-gnu/:/lib/:/usr/lib/i386-linux-gnu/:/usr/lib/
COLLECT_GCC_OPTIONS='-D' 'BOOST_PYTHON_MAX_ARITY=32' '-D' 'BOOST_PYTHON_NO_LIB' '-D' 'BOOST_PYTHON_SOURCE' '-D' 'BOOST_PYTHON_STATIC_LIB' '-D' 'ENGINE_BRANCH_CSGO' '-D' 'ENGINE_CSGO' '-D' 'GAME_DLL=1' '-D' 'SOURCE_ENGINE=csgo' '-D' 'SOURCE_ENGINE_BRANCH=csgo' '-D' 'USE_PROTOBUF' '-D' 'core_EXPORTS' '-I' '/home/steam/sourcepython/Source.Python/src/hl2sdk/csgo' '-I' '/home/steam/sourcepython/Source.Python/src/hl2sdk/csgo/common' '-I' '/home/steam/sourcepython/Source.Python/src/hl2sdk/csgo/common/protobuf-2.5.0/src' '-I' '/home/steam/sourcepython/Source.Python/src/hl2sdk/csgo/game/shared' '-I' '/home/steam/sourcepython/Source.Python/src/hl2sdk/csgo/game/server' '-I' '/home/steam/sourcepython/Source.Python/src/hl2sdk/csgo/public' '-I' '/home/steam/sourcepython/Source.Python/src/hl2sdk/csgo/public/tier0' '-I' '/home/steam/sourcepython/Source.Python/src/hl2sdk/csgo/public/tier1' '-I' '/home/steam/sourcepython/Source.Python/src/hl2sdk/csgo/public/engine/protobuf' '-I' '/home/steam/sourcepython/Source.Python/src/thirdparty/dyncall/include' '-I' '/home/steam/sourcepython/Source.Python/src/thirdparty/boost' '-I' '/home/steam/sourcepython/Source.Python/src/thirdparty/AsmJit/include' '-I' '/home/steam/sourcepython/Source.Python/src/thirdparty/DynamicHooks/include' '-I' '/home/steam/sourcepython/Source.Python/src/core' '-I' '/home/steam/sourcepython/Source.Python/src/thirdparty/python_linux/include' '-D' '_LINUX' '-D' 'POSIX' '-D' 'LINUX' '-D' 'GNUC' '-D' 'COMPILER_GCC' '-D' 'stricmp=strcasecmp' '-D' '_stricmp=strcasecmp' '-D' '_strnicmp=strncasecmp' '-D' 'strnicmp=strncasecmp' '-D' '_snprintf=snprintf' '-D' '_vsnprintf=vsnprintf' '-D' '_alloca=alloca' '-D' 'strcmpi=strcasecmp' '-Wall' '-Wno-uninitialized' '-Wno-switch' '-Wno-unused' '-Wno-non-virtual-dtor' '-Wno-overloaded-virtual' '-Wno-conversion-null' '-Wno-write-strings' '-Wno-invalid-offsetof' '-Wno-reorder' '-mfpmath=sse' '-msse' '-m32' '-fno-strict-aliasing' '-std=c++11' '-fno-threadsafe-statics' '-v' '-fvisibility=hidden' '-D' '_NDEBUG' '-O3' '-D' 'NDEBUG' '-fPIC' '-o' 'CMakeFiles/core.dir/core/modules/engines/engines_server_wrap.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=i686'
make[1]: *** [CMakeFiles/Makefile2:105: CMakeFiles/core.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
./Build.sh: 158: Bad substitution
Line 158 in my Build.sh is:
Code: Select all
test ${PIPESTATUS[0]} -eq 0
Before I had different errors regarding the gcc version or missing libraries but now I am a little lost about what's wrong. Any help here to get this to work is appreciated. Thanks