Bug#905477: openjk: FTBFS with GCC-8: static assertion failed: std::map must have the same value_type as its allocator
Andreas Beckmann
anbe at debian.org
Sun Aug 5 08:49:15 BST 2018
Source: openjk
Version: 0~20180414.698fe7c~dfsg-1
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-8
Hi,
openjk started to FTBFS after GCC 8 was made the default compiler:
[ 13%] Building CXX object codeJK2/game/CMakeFiles/jospgamex86_64.dir/Q3_Interface.cpp.o
cd "/build/openjk-0~20180414.698fe7c~dfsg/obj/codeJK2/game" && /usr/bin/c++ -DARCH_STRING=\"x86_64\" -DFINAL_BUILD -DJK2_MODE -DSOURCE_DATE="\"Apr 20 2018\"" -DSP_GAME -Djospgamex86_64_EXPORTS -I"/build/openjk-0~20180414.698fe7c~dfsg/codeJK2" -I"/build/openjk-0~20180414.698fe7c~dfsg/codeJK2/game" -I"/build/openjk-0~20180414.698fe7c~dfsg/shared" -I"/build/openjk-0~20180414.698fe7c~dfsg/lib/gsl-lite/include" -g -O2 -fdebug-prefix-map=/build/openjk-0~20180414.698fe7c~dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wno-unused-parameter -Wno-missing-field-initializers -fno-strict-aliasing -Wno-strict-aliasing -Wno-unused-but-set-variable -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -msse2 -std=c++11 -Wall -Wno-invalid-offsetof -Wno-write-strings -Wno-comment -fsigned-char -mstackrealign -mfpmath=sse -fPIC -fvisibility=hidden -o CMakeFiles/jospgamex86_64.dir/Q3_Interface.cpp.o -c "/build/openjk-0~20180414.698fe7c~dfsg/codeJK2/game/Q3_Interface.cpp"
In file included from /usr/include/c++/8/map:61,
from /build/openjk-0~20180414.698fe7c~dfsg/codeJK2/game/../game/../../code/ui/../qcommon/../game/ghoul2_shared.h:28,
from /build/openjk-0~20180414.698fe7c~dfsg/codeJK2/game/../game/../../code/ui/../qcommon/q_shared.h:512,
from /build/openjk-0~20180414.698fe7c~dfsg/codeJK2/game/../game/../../code/ui/gameinfo.h:27,
from /build/openjk-0~20180414.698fe7c~dfsg/codeJK2/game/../game/g_local.h:32,
from /build/openjk-0~20180414.698fe7c~dfsg/codeJK2/game/g_headers.h:28,
from /build/openjk-0~20180414.698fe7c~dfsg/codeJK2/game/Q3_Interface.cpp:30:
/usr/include/c++/8/bits/stl_map.h: In instantiation of 'class std::map<std::__cxx11::basic_string<char>, int, std::less<std::__cxx11::basic_string<char> >, std::allocator<int> >':
/build/openjk-0~20180414.698fe7c~dfsg/codeJK2/game/Q3_Interface.cpp:915:11: required from here
/usr/include/c++/8/bits/stl_map.h:122:21: error: static assertion failed: std::map must have the same value_type as its allocator
static_assert(is_same<typename _Alloc::value_type, value_type>::value,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[4]: *** [codeJK2/game/CMakeFiles/jospgamex86_64.dir/build.make:469: codeJK2/game/CMakeFiles/jospgamex86_64.dir/Q3_Interface.cpp.o] Error 1
Andreas
More information about the Pkg-games-devel
mailing list