Using cmake 3.2.2 and gcc 5.2.1-22ubuntu2. I was able to build gzdoom properly (and consistently) before in this exact setup.
Code: Select all
[ 32%] Building CXX object src/CMakeFiles/zdoom.dir/p_lnspec.o
/home/hetdegon/Repositories/gzdoom/src/p_lnspec.cpp: In function ‘int LS_SendToCommunicator(line_t*, AActor*, bool, int, int, int, int, int)’:
/home/hetdegon/Repositories/gzdoom/src/p_lnspec.cpp:2994:12: error: ambiguous overload for ‘operator!=’ (operand types are ‘FString’ and ‘long int’)
if (msg != NULL)
^
/home/hetdegon/Repositories/gzdoom/src/p_lnspec.cpp:2994:12: note: candidate: operator!=(const char*, const char*) <built-in>
In file included from /home/hetdegon/Repositories/gzdoom/src/doomtype.h:46:0,
from /home/hetdegon/Repositories/gzdoom/src/c_cvars.h:37,
from /home/hetdegon/Repositories/gzdoom/src/doomstat.h:31,
from /home/hetdegon/Repositories/gzdoom/src/p_lnspec.cpp:37:
/home/hetdegon/Repositories/gzdoom/src/zstring.h:304:7: note: candidate: bool FString::operator!=(const FString&) const
bool operator != (const FString &illegal) const;
^
src/CMakeFiles/zdoom.dir/build.make:2347: recipe for target 'src/CMakeFiles/zdoom.dir/p_lnspec.o' failed
make[2]: *** [src/CMakeFiles/zdoom.dir/p_lnspec.o] Error 1
CMakeFiles/Makefile2:785: recipe for target 'src/CMakeFiles/zdoom.dir/all' failed
make[1]: *** [src/CMakeFiles/zdoom.dir/all] Error 2
Makefile:75: recipe for target 'all' failed
make: *** [all] Error 2