I cannot compile TDM, I get this weird error that appears inside the standard library limits. The source code comes from the homepage. I tried to include and use limits in a small C++ program and I get no problems, so I have no idea how to continue. Can anybody help? Here is the log (out of topic, how can I disable the syntax coloring?):
% g++ --version
g++ (GCC) 4.8.2 20131219 (prerelease)
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
% uname -a
Linux pendulum 3.12.6-1-ARCH #1 SMP PREEMPT Fri Dec 20 19:39:00 CET 2013 x86_64 GNU/Linux
% scons -j2 BUILD_GAMEPAK=1 NO_GCH=0 BUILD=release --debug=explain "$@"
scons: Reading SConscript files ...
Loading build configuration from site.conf:
BUILD_GAMEPAK='1'
JOBS='1'
NO_GCH='0'
DEDICATED='0'
SILENT='0'
GL_HARDLINK='0'
CC='gcc'
BUILD_ROOT='build'
ID_NOLANADDRESS='0'
ID_MCHECK='2'
TARGET_CORE='1'
BUILD='release'
TARGET_GAME='1'
TARGET_MONO='0'
BASEFLAGS=''
CXX='g++'
NOCURL='0'
DEBUG_MEMORY='0'
IDNET_HOST=''
LIBC_MALLOC='1'
ALSA='1'
TARGET_DEMO='0'
Command line: BUILD_GAMEPAK='1'
Command line: NO_GCH='0'
Command line: BUILD='release'
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: build/release/core/glimp build/release/core build/release/game
scons: building `game/precompiled_game.h.gch' because it doesn't exist
g++ -o game/precompiled_game.h.gch -x c++-header -c -pipe -Wall -Wno-unknown-pragmas -fmessage-length=0 -fpermissive -fvisibility=hidden -m32 -O3 -march=pentium3 -ffast-math -fno-unsafe-math-optimizations -fomit-frame-pointer -fno-strict-aliasing -Wno-deprecated -Winvalid-pch -fPIC -DGAME_DLL -Igame -Ibuild/release/game/sys/scons -Isys/scons -Iinclude -Iinclude/zlib -Iinclude/minizip -Iinclude/libjpeg -Iinclude/devil -I. game/precompiled_game.h
In file included from game/../idlib/../idlib/math/Math.h:24:0,
from game/../idlib/../idlib/Heap.h:23,
from game/../idlib/../idlib/Lib.h:157,
from game/../idlib/precompiled.h:107,
from game/precompiled_game.h:28:
/usr/include/c++/4.8.2/limits:1405:35: error: template argument 1 is invalid
struct numeric_limits<__int128>
^
/usr/include/c++/4.8.2/limits:1479:44: error: template argument 1 is invalid
struct numeric_limits<unsigned __int128>
^
In file included from game/../idlib/../idlib/Heap.h:25:0,
from game/../idlib/../idlib/Lib.h:157,
from game/../idlib/precompiled.h:107,
from game/precompiled_game.h:28:
/usr/include/c++/4.8.2/cstdlib:178:10: error: expected unqualified-id before ‘__int128’
inline __int128
^
In file included from game/../idlib/../game/Game_local.h:1305:0,
from game/../idlib/precompiled.h:172,
from game/precompiled_game.h:28:
game/../idlib/../game/ai/AI.h:453:8: warning: extra qualification ‘idAI::’ on member ‘GetBaseAcuity’ [-fpermissive]
float idAI::GetBaseAcuity(const char *type) const; // grayman #3552
^
scons: Cannot explain why `build/release/game/game/randomizer/userintf.os' is being rebuilt: No previous build information found
g++ -o build/release/game/game/randomizer/userintf.os -c -fPIC -pipe -Wall -Wno-unknown-pragmas -fmessage-length=0 -fpermissive -fvisibility=hidden -m32 -O3 -march=pentium3 -ffast-math -fno-unsafe-math-optimizations -fomit-frame-pointer -fno-strict-aliasing -Wno-deprecated -Winvalid-pch -fPIC -DGAME_DLL -Igame -Ibuild/release/game/sys/scons -Isys/scons -Iinclude -Iinclude/zlib -Iinclude/minizip -Iinclude/libjpeg -Iinclude/devil -I. game/randomizer/userintf.cpp
scons: building `build/release/game/idlib/Base64.os' because it doesn't exist
g++ -o build/release/game/idlib/Base64.os -c -fPIC -pipe -Wall -Wno-unknown-pragmas -fmessage-length=0 -fpermissive -fvisibility=hidden -m32 -O3 -march=pentium3 -ffast-math -fno-unsafe-math-optimizations -fomit-frame-pointer -DXTHREADS -fno-strict-aliasing -Iidlib -Ibuild/release/game/sys/scons -Isys/scons -Iinclude -Iinclude/zlib -Iinclude/minizip -Iinclude/libjpeg -Iinclude/devil -I. idlib/Base64.cpp
In file included from idlib/../idlib/math/Math.h:24:0,
from idlib/../idlib/Heap.h:23,
from idlib/../idlib/Lib.h:157,
from idlib/precompiled.h:107,
from idlib/Base64.cpp:2:
/usr/include/c++/4.8.2/limits:1405:35: error: template argument 1 is invalid
struct numeric_limits<__int128>
^
/usr/include/c++/4.8.2/limits:1479:44: error: template argument 1 is invalid
struct numeric_limits<unsigned __int128>
^
In file included from idlib/../idlib/Heap.h:25:0,
from idlib/../idlib/Lib.h:157,
from idlib/precompiled.h:107,
from idlib/Base64.cpp:2:
/usr/include/c++/4.8.2/cstdlib:178:10: error: expected unqualified-id before ‘__int128’
inline __int128
^
In file included from include/boost/filesystem/path_traits.hpp:23:0,
from include/boost/filesystem/path.hpp:25,
from include/boost/filesystem.hpp:16,
from idlib/../idlib/Image.h:29,
from idlib/../idlib/Lib.h:230,
from idlib/precompiled.h:107,
from idlib/Base64.cpp:2:
include/boost/system/error_code.hpp:214:36: warning: ‘boost::system::posix_category’ defined but not used [-Wunused-variable]
static const error_category & posix_category = generic_category();
^
include/boost/system/error_code.hpp:215:36: warning: ‘boost::system::errno_ecat’ defined but not used [-Wunused-variable]
static const error_category & errno_ecat = generic_category();
^
include/boost/system/error_code.hpp:216:36: warning: ‘boost::system::native_ecat’ defined but not used [-Wunused-variable]
static const error_category & native_ecat = system_category();
^
scons: *** [build/release/game/idlib/Base64.os] Error 1
scons: *** [game/precompiled_game.h.gch] Error 1
scons: building terminated because of errors.
OSError: [Errno 2] No such file or directory: 'scons.signatures.dblite':
File "/usr/lib/python2.7/site-packages/SCons/Script/Main.py", line 1344:
_exec_main(parser, values)
File "/usr/lib/python2.7/site-packages/SCons/Script/Main.py", line 1308:
_main(parser)
File "/usr/lib/python2.7/site-packages/SCons/Script/Main.py", line 1072:
nodes = _build_targets(fs, options, targets, target_top)
File "/usr/lib/python2.7/site-packages/SCons/Script/Main.py", line 1266:
jobs.run(postfunc = jobs_postfunc)
File "/usr/lib/python2.7/site-packages/SCons/Job.py", line 113:
postfunc()
File "/usr/lib/python2.7/site-packages/SCons/Script/Main.py", line 1263:
SCons.SConsign.write()
File "/usr/lib/python2.7/site-packages/SCons/SConsign.py", line 109:
syncmethod()
File "/usr/lib/python2.7/site-packages/SCons/dblite.py", line 127:
self._os_unlink(self._file_name)
Exception OSError: OSError(2, 'No such file or directory') in <bound method dblite.__del__ of <SCons.dblite.dblite object at 0x1b149d0>> ignored
scons -j2 BUILD_GAMEPAK=1 NO_GCH=0 BUILD=release --debug=explain "$@" 12,59s user 1,88s system 62% cpu 23,085 total