Quote:
Originally Posted by Spirit_12
|
Thanks for the link to tutorial, I didn't know about it
Did everything again, according to instructions
Code:
~/alliedmodders$ ls -l
drwxrwxr-x 7 user user 4096 сен 4 10:53 ambuild
drwxrwxr-x 13 user user 4096 сен 4 10:07 hl2sdk-blade
drwxrwxr-x 21 user user 4096 сен 4 10:08 hl2sdk-bms
drwxrwxr-x 14 user user 4096 сен 4 10:07 hl2sdk-csgo
drwxrwxr-x 14 user user 4096 сен 4 10:07 hl2sdk-css
drwxrwxr-x 14 user user 4096 сен 4 10:07 hl2sdk-dods
drwxrwxr-x 13 user user 4096 сен 4 10:07 hl2sdk-doi
drwxrwxr-x 18 user user 4096 сен 4 10:07 hl2sdk-episode1
drwxrwxr-x 14 user user 4096 сен 4 10:07 hl2sdk-hl2dm
drwxrwxr-x 13 user user 4096 сен 4 10:07 hl2sdk-insurgency
drwxrwxr-x 14 user user 4096 сен 4 10:07 hl2sdk-l4d
drwxrwxr-x 14 user user 4096 сен 4 10:07 hl2sdk-l4d2
drwxrwxr-x 14 user user 4096 сен 4 10:07 hl2sdk-nucleardawn
drwxrwxr-x 14 user user 4096 сен 4 10:07 hl2sdk-orangebox
drwxrwxr-x 7 user user 4096 сен 4 10:07 hl2sdk-proxy-repo
drwxrwxr-x 21 user user 4096 сен 4 10:07 hl2sdk-sdk2013
drwxrwxr-x 14 user user 4096 сен 4 10:07 hl2sdk-tf2
drwxrwxr-x 4 user user 4096 сен 4 11:27 L4DToolz-master
drwxrwxr-x 13 user user 4096 сен 4 09:49 mmsource-1.10
drwxrwxr-x 13 user user 4096 сен 4 09:40 mysql-5.5
drwxrwxr-x 13 user user 4096 сен 4 09:49 mysql-5.5-x86_64
drwxrwxr-x 18 user user 4096 сен 4 10:13 sourcemod
next
Code:
~/alliedmodders/L4DToolz-master$ mkdir build2
~/alliedmodders/L4DToolz-master$ cd build2
~/alliedmodders/L4DToolz-master/build2$ python ../configure.py --enable-optimize -s l4d
Checking CC compiler (vendor test gcc)... ['cc', 'test.c', '-o', 'test']
found gcc version 7.3
Checking CXX compiler (vendor test gcc)... ['c++', 'test.cpp', '-o', 'testp']
found gcc version 7.3
~/alliedmodders/L4DToolz-master/build2$ ambuild
[create] mkdir -p l4dtoolz_mm
[create] mkdir -p package
[create] mkdir -p package/addons
[create] mkdir -p package/addons/l4dtoolz
[create] mkdir -p package/addons/metamod
/home/user/alliedmodders/hl2sdk-l4d/public/tier1/utlmemory.h: In member function ‘void CUtlMemory<T, I>::Swap(CUtlMemory<T, I>&)’:
/home/user/alliedmodders/hl2sdk-l4d/public/tier1/utlmemory.h:330:2: error: there are no arguments to ‘swap’ that depend on a template parameter, so a declaration of ‘swap’ must be available [-fpermissive]
swap( m_nGrowSize, mem.m_nGrowSize );
^~~~
/home/user/alliedmodders/hl2sdk-l4d/public/tier1/utlmemory.h:330:2: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/home/user/alliedmodders/hl2sdk-l4d/public/tier1/utlmemory.h:332:2: error: there are no arguments to ‘swap’ that depend on a template parameter, so a declaration of ‘swap’ must be available [-fpermissive]
swap( m_nAllocationCount, mem.m_nAllocationCount );
^~~~
[21991] cc -pipe -fno-strict-aliasing -Wall -Werror -Wno-unused -Wno-switch -Wno-array-bounds -msse -m32 -fvisibility=hidden -Wno-narrowing -Wno-unused-result -mfpmath=sse -O3 -g3 -ggdb3 -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_snprintf=snprintf -D_vsnprintf=vsnprintf -DHAVE_STDINT_H -DGNUC -DNDEBUG -D_LINUX -DPOSIX -DSE_LEFT4DEAD2=15 -DSE_LEFT4DEAD=12 -DHAVE_STRING_H -DSOURCE_ENGINE=12 -DCOMPILER_GCC -DNO_HOOK_MALLOC -DNO_MALLOC_OVERRIDE -I /home/user/alliedmodders/sourcemod/public -H -c /home/user/alliedmodders/sourcemod/public/libudis86/decode.c -o _home_user_alliedmodders_sourcemod_public_libudis86_decode.o
/home/user/alliedmodders/sourcemod/public/libudis86/decode.c: In function ‘ud_decode’:
/home/user/alliedmodders/sourcemod/public/libudis86/decode.c:207:11: error: ‘curr’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
uint8_t curr, last = 0;
^~~~
cc1: all warnings being treated as errors
Build failed.
Got the same error and another one from udis
Tried a different compiler, I got even more errors
Code:
:~/alliedmodders/L4DToolz-master/build2$ python ../configure.py --enable-optimize -s l4d
Checking CC compiler (vendor test gcc)... ['cc', 'test.c', '-o', 'test']
found clang version 6.0
Checking CXX compiler (vendor test gcc)... ['c++', 'test.cpp', '-o', 'testp']
found clang version 6.0
$ ambuild
/home/user/alliedmodders/hl2sdk-l4d/public/mathlib/vector.h:224:5: error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
#if USE_M64S
^
/home/user/alliedmodders/hl2sdk-l4d/public/mathlib/vector.h:207:23: note: expanded from macro 'USE_M64S'
#define USE_M64S ( ( !defined( _X360 ) ) && ( ! defined( _LINUX) ) )
^
/home/user/alliedmodders/hl2sdk-l4d/public/mathlib/vector.h:224:5: error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
/home/user/alliedmodders/hl2sdk-l4d/public/mathlib/vector.h:207:49: note: expanded from macro 'USE_M64S'
#define USE_M64S ( ( !defined( _X360 ) ) && ( ! defined( _LINUX) ) )
^
/home/user/alliedmodders/hl2sdk-l4d/public/mathlib/vector.h:281:5: error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
#if USE_M64S
^
/home/user/alliedmodders/hl2sdk-l4d/public/mathlib/vector.h:207:23: note: expanded from macro 'USE_M64S'
#define USE_M64S ( ( !defined( _X360 ) ) && ( ! defined( _LINUX) ) )
^
/home/user/alliedmodders/hl2sdk-l4d/public/mathlib/vector.h:281:5: error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
/home/user/alliedmodders/hl2sdk-l4d/public/mathlib/vector.h:207:49: note: expanded from macro 'USE_M64S'
#define USE_M64S ( ( !defined( _X360 ) ) && ( ! defined( _LINUX) ) )
^
4 errors generated.
Build failed.
Don't understand what's wrong