Can't compile latest GZDoom on Linux

Bugs that have been resolved.

Moderator: Graf Zahl

Locked
Talon1024

Can't compile latest GZDoom on Linux

Post by Talon1024 » Wed Dec 07, 2016 10:20

This is what I get when I try to compile the latest version of GZDoom on Ubuntu Linux 16.04:

Code: Select all

-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found BZip2: /usr/lib/x86_64-linux-gnu/libbz2.so (found version "1.0.6") 
-- Looking for BZ2_bzCompressInit
-- Looking for BZ2_bzCompressInit - found
-- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so  
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8") 
-- Found GME: /usr/lib/x86_64-linux-gnu/libgme.so  
-- Using system zlib, includes found at /usr/include
-- Using system jpeg library, includes found at /usr/include
-- Using system bzip2 library, includes found at /usr/include
-- Using system gme library, includes found at /usr/include
-- Looking for strdup
-- Looking for strdup - found
-- Looking for strndup
-- Looking for strndup - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of 0i8
-- Check size of 0i8 - failed
-- Check size of 0l
-- Check size of 0l - done
-- Check size of 0ll
-- Check size of 0ll - done
-- Check size of char
-- Check size of char - done
-- Check size of short
-- Check size of short - done
-- Check size of int
-- Check size of int - done
-- Check size of long
-- Check size of long - done
-- Check size of long long
-- Check size of long long - done
-- Check size of void *
-- Check size of void * - done
-- Check size of __int64
-- Check size of __int64 - failed
-- Looking for itoa
-- Looking for itoa - not found
-- Performing Test DUMB_CAN_USE_SSE
-- Performing Test DUMB_CAN_USE_SSE - Success
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so  
-- Checking for module 'gtk+-3.0'
--   No package 'gtk+-3.0' found
-- Checking for module 'gtk+-2.0'
--   Found gtk+-2.0, version 2.24.30
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found SDL2: /usr/lib/x86_64-linux-gnu/libSDL2main.a;/usr/lib/x86_64-linux-gnu/libSDL2.so;-lpthread  
-- FMOD include files found at /usr/local/include/fmodex
-- FMOD version: 0004.26.36
-- FMOD library found at /usr/local/lib/libfmodex64-4.26.36.so
-- Found FluidSynth: /usr/lib/x86_64-linux-gnu/libfluidsynth.so  
-- Selected assembler: /usr/bin/as
-- Performing Test CAN_DO_CPP14
-- Performing Test CAN_DO_CPP14 - Success
-- Looking for filelength
-- Looking for filelength - not found
-- Looking for strupr
-- Looking for strupr - not found
-- Looking for stricmp
-- Looking for stricmp - not found
-- Looking for strnicmp
-- Looking for strnicmp - not found
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- Fluid synth libs: /usr/lib/x86_64-linux-gnu/libfluidsynth.so
-- Looking for FMOD_System_GetDriverCaps in /usr/local/lib/libfmodex64-4.26.36.so
-- Looking for FMOD_System_GetDriverCaps in /usr/local/lib/libfmodex64-4.26.36.so - found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/kevinc/Games/code/gzdoom/build-master
Scanning dependencies of target lzma
[  0%] Building C object lzma/CMakeFiles/lzma.dir/C/7zArcIn.c.o
[  1%] Building C object lzma/CMakeFiles/lzma.dir/C/7zBuf.c.o
[  1%] Building C object lzma/CMakeFiles/lzma.dir/C/7zCrc.c.o
[  1%] Building C object lzma/CMakeFiles/lzma.dir/C/7zCrcOpt.c.o
[  1%] Building C object lzma/CMakeFiles/lzma.dir/C/7zDec.c.o
[  1%] Building C object lzma/CMakeFiles/lzma.dir/C/7zStream.c.o
[  1%] Building C object lzma/CMakeFiles/lzma.dir/C/Bcj2.c.o
/home/kevinc/Games/code/gzdoom/lzma/C/Bcj2.c: In function ‘Bcj2Dec_Decode’:
/home/kevinc/Games/code/gzdoom/lzma/C/Bcj2.c:235:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
         SetUi32(p->temp, val);
         ^
[  2%] Building C object lzma/CMakeFiles/lzma.dir/C/Bra.c.o
[  2%] Building C object lzma/CMakeFiles/lzma.dir/C/Bra86.c.o
[  2%] Building C object lzma/CMakeFiles/lzma.dir/C/BraIA64.c.o
[  2%] Building C object lzma/CMakeFiles/lzma.dir/C/CpuArch.c.o
[  2%] Building C object lzma/CMakeFiles/lzma.dir/C/Delta.c.o
[  2%] Building C object lzma/CMakeFiles/lzma.dir/C/LzFind.c.o
[  3%] Building C object lzma/CMakeFiles/lzma.dir/C/Lzma2Dec.c.o
[  3%] Building C object lzma/CMakeFiles/lzma.dir/C/LzmaDec.c.o
[  3%] Building C object lzma/CMakeFiles/lzma.dir/C/LzmaEnc.c.o
[  3%] Building C object lzma/CMakeFiles/lzma.dir/C/Ppmd7.c.o
[  3%] Building C object lzma/CMakeFiles/lzma.dir/C/Ppmd7Dec.c.o
[  3%] Linking C static library liblzma.a
[  3%] Built target lzma
Scanning dependencies of target lemon
[  3%] Building C object tools/lemon/CMakeFiles/lemon.dir/lemon.c.o
[  3%] Linking C executable lemon
/home/kevinc/Games/code/gzdoom/build-master/tools/lemon
[  3%] Built target lemon
Scanning dependencies of target re2c
[  3%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/codegen/bitmap.cc.o
[  3%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/codegen/emit_action.cc.o
[  4%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/codegen/emit_dfa.cc.o
[  4%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/codegen/label.cc.o
[  4%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/codegen/go_construct.cc.o
[  4%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/codegen/go_destruct.cc.o
[  4%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/codegen/go_emit.cc.o
[  4%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/codegen/go_used_labels.cc.o
[  5%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/codegen/input_api.cc.o
[  5%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/codegen/output.cc.o
[  5%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/codegen/print.cc.o
[  5%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/conf/msg.cc.o
[  5%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/conf/opt.cc.o
[  5%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/conf/parse_opts.cc.o
[  6%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/conf/warn.cc.o
[  6%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/ir/nfa/calc_size.cc.o
[  6%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/ir/nfa/nfa.cc.o
[  6%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/ir/nfa/split.cc.o
[  6%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/ir/adfa/adfa.cc.o
[  6%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/ir/adfa/prepare.cc.o
[  6%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/ir/dfa/determinization.cc.o
[  7%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/ir/dfa/fillpoints.cc.o
[  7%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/ir/dfa/minimization.cc.o
[  7%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/ir/regexp/display.cc.o
[  7%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/ir/regexp/encoding/enc.cc.o
[  7%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/ir/regexp/encoding/range_suffix.cc.o
[  7%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/ir/regexp/encoding/utf8/utf8_regexp.cc.o
[  8%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/ir/regexp/encoding/utf8/utf8_range.cc.o
[  8%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/ir/regexp/encoding/utf8/utf8.cc.o
[  8%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/ir/regexp/encoding/utf16/utf16_regexp.cc.o
[  8%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/ir/regexp/encoding/utf16/utf16.cc.o
[  8%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/ir/regexp/encoding/utf16/utf16_range.cc.o
[  8%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/ir/regexp/fixed_length.cc.o
[  9%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/ir/regexp/regexp.cc.o
[  9%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/ir/compile.cc.o
[  9%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/ir/rule_rank.cc.o
[  9%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/ir/skeleton/control_flow.cc.o
[  9%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/ir/skeleton/generate_code.cc.o
[  9%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/ir/skeleton/generate_data.cc.o
[ 10%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/ir/skeleton/match_empty.cc.o
[ 10%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/ir/skeleton/maxlen.cc.o
[ 10%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/ir/skeleton/skeleton.cc.o
[ 10%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/ir/skeleton/unreachable.cc.o
[ 10%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/ir/skeleton/way.cc.o
[ 10%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/main.cc.o
[ 11%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/parse/code.cc.o
[ 11%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/parse/input.cc.o
[ 11%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/parse/lex.cc.o
[ 11%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/parse/lex_conf.cc.o
[ 11%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/parse/parser.cc.o
[ 11%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/parse/scanner.cc.o
[ 11%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/parse/unescape.cc.o
[ 12%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/util/s_to_n32_unsafe.cc.o
[ 12%] Building CXX object tools/re2c/CMakeFiles/re2c.dir/src/util/range.cc.o
[ 12%] Linking CXX executable re2c
[ 12%] Built target re2c
Scanning dependencies of target updaterevision
[ 12%] Building C object tools/updaterevision/CMakeFiles/updaterevision.dir/updaterevision.c.o
[ 12%] Linking C executable updaterevision
[ 12%] Built target updaterevision
Scanning dependencies of target zipdir
[ 12%] Building C object tools/zipdir/CMakeFiles/zipdir.dir/zipdir.c.o
[ 13%] Linking C executable zipdir
[ 13%] Built target zipdir
Scanning dependencies of target dumb
[ 13%] Building C object dumb/CMakeFiles/dumb.dir/src/core/unload.c.o
[ 13%] Building C object dumb/CMakeFiles/dumb.dir/src/core/rendsig.c.o
[ 13%] Building C object dumb/CMakeFiles/dumb.dir/src/core/rendduh.c.o
[ 14%] Building C object dumb/CMakeFiles/dumb.dir/src/core/register.c.o
[ 14%] Building C object dumb/CMakeFiles/dumb.dir/src/core/readduh.c.o
[ 14%] Building C object dumb/CMakeFiles/dumb.dir/src/core/rawsig.c.o
[ 14%] Building C object dumb/CMakeFiles/dumb.dir/src/core/makeduh.c.o
[ 14%] Building C object dumb/CMakeFiles/dumb.dir/src/core/loadduh.c.o
[ 14%] Building C object dumb/CMakeFiles/dumb.dir/src/core/dumbfile.c.o
[ 15%] Building C object dumb/CMakeFiles/dumb.dir/src/core/duhtag.c.o
[ 15%] Building C object dumb/CMakeFiles/dumb.dir/src/core/duhlen.c.o
[ 15%] Building C object dumb/CMakeFiles/dumb.dir/src/core/atexit.c.o
[ 15%] Building C object dumb/CMakeFiles/dumb.dir/src/helpers/stdfile.c.o
[ 15%] Building C object dumb/CMakeFiles/dumb.dir/src/helpers/silence.c.o
[ 15%] Building C object dumb/CMakeFiles/dumb.dir/src/helpers/sampbuf.c.o
[ 16%] Building C object dumb/CMakeFiles/dumb.dir/src/helpers/riff.c.o
[ 16%] Building C object dumb/CMakeFiles/dumb.dir/src/helpers/resample.c.o
[ 16%] Building C object dumb/CMakeFiles/dumb.dir/src/helpers/memfile.c.o
[ 16%] Building C object dumb/CMakeFiles/dumb.dir/src/helpers/clickrem.c.o
[ 16%] Building C object dumb/CMakeFiles/dumb.dir/src/helpers/barray.c.o
[ 16%] Building C object dumb/CMakeFiles/dumb.dir/src/it/xmeffect.c.o
[ 17%] Building C object dumb/CMakeFiles/dumb.dir/src/it/readxm2.c.o
[ 17%] Building C object dumb/CMakeFiles/dumb.dir/src/it/readxm.c.o
[ 17%] Building C object dumb/CMakeFiles/dumb.dir/src/it/readstm2.c.o
[ 17%] Building C object dumb/CMakeFiles/dumb.dir/src/it/readstm.c.o
[ 17%] Building C object dumb/CMakeFiles/dumb.dir/src/it/reads3m2.c.o
[ 17%] Building C object dumb/CMakeFiles/dumb.dir/src/it/reads3m.c.o
[ 17%] Building C object dumb/CMakeFiles/dumb.dir/src/it/readriff.c.o
[ 18%] Building C object dumb/CMakeFiles/dumb.dir/src/it/readptm.c.o
[ 18%] Building C object dumb/CMakeFiles/dumb.dir/src/it/readpsm.c.o
[ 18%] Building C object dumb/CMakeFiles/dumb.dir/src/it/readoldpsm.c.o
[ 18%] Building C object dumb/CMakeFiles/dumb.dir/src/it/readokt2.c.o
[ 18%] Building C object dumb/CMakeFiles/dumb.dir/src/it/readokt.c.o
[ 18%] Building C object dumb/CMakeFiles/dumb.dir/src/it/readmtm.c.o
[ 19%] Building C object dumb/CMakeFiles/dumb.dir/src/it/readmod2.c.o
[ 19%] Building C object dumb/CMakeFiles/dumb.dir/src/it/readmod.c.o
[ 19%] Building C object dumb/CMakeFiles/dumb.dir/src/it/readdsmf.c.o
[ 19%] Building C object dumb/CMakeFiles/dumb.dir/src/it/readasy.c.o
[ 19%] Building C object dumb/CMakeFiles/dumb.dir/src/it/readamf2.c.o
[ 19%] Building C object dumb/CMakeFiles/dumb.dir/src/it/readamf.c.o
[ 20%] Building C object dumb/CMakeFiles/dumb.dir/src/it/readam.c.o
[ 20%] Building C object dumb/CMakeFiles/dumb.dir/src/it/read6692.c.o
[ 20%] Building C object dumb/CMakeFiles/dumb.dir/src/it/read669.c.o
[ 20%] Building C object dumb/CMakeFiles/dumb.dir/src/it/ptmeffect.c.o
[ 20%] Building C object dumb/CMakeFiles/dumb.dir/src/it/loadxm2.c.o
[ 20%] Building C object dumb/CMakeFiles/dumb.dir/src/it/loadxm.c.o
[ 21%] Building C object dumb/CMakeFiles/dumb.dir/src/it/loadstm2.c.o
[ 21%] Building C object dumb/CMakeFiles/dumb.dir/src/it/loadstm.c.o
[ 21%] Building C object dumb/CMakeFiles/dumb.dir/src/it/loads3m2.c.o
[ 21%] Building C object dumb/CMakeFiles/dumb.dir/src/it/loads3m.c.o
[ 21%] Building C object dumb/CMakeFiles/dumb.dir/src/it/loadriff2.c.o
[ 21%] Building C object dumb/CMakeFiles/dumb.dir/src/it/loadriff.c.o
[ 22%] Building C object dumb/CMakeFiles/dumb.dir/src/it/loadptm2.c.o
[ 22%] Building C object dumb/CMakeFiles/dumb.dir/src/it/loadptm.c.o
[ 22%] Building C object dumb/CMakeFiles/dumb.dir/src/it/loadpsm2.c.o
[ 22%] Building C object dumb/CMakeFiles/dumb.dir/src/it/loadpsm.c.o
[ 22%] Building C object dumb/CMakeFiles/dumb.dir/src/it/loadoldpsm2.c.o
[ 22%] Building C object dumb/CMakeFiles/dumb.dir/src/it/loadoldpsm.c.o
[ 22%] Building C object dumb/CMakeFiles/dumb.dir/src/it/loadokt2.c.o
[ 23%] Building C object dumb/CMakeFiles/dumb.dir/src/it/loadokt.c.o
[ 23%] Building C object dumb/CMakeFiles/dumb.dir/src/it/loadmtm2.c.o
[ 23%] Building C object dumb/CMakeFiles/dumb.dir/src/it/loadmtm.c.o
[ 23%] Building C object dumb/CMakeFiles/dumb.dir/src/it/loadmod2.c.o
[ 23%] Building C object dumb/CMakeFiles/dumb.dir/src/it/loadmod.c.o
[ 23%] Building C object dumb/CMakeFiles/dumb.dir/src/it/loadasy2.c.o
[ 24%] Building C object dumb/CMakeFiles/dumb.dir/src/it/loadasy.c.o
[ 24%] Building C object dumb/CMakeFiles/dumb.dir/src/it/loadamf2.c.o
[ 24%] Building C object dumb/CMakeFiles/dumb.dir/src/it/loadamf.c.o
[ 24%] Building C object dumb/CMakeFiles/dumb.dir/src/it/load6692.c.o
[ 24%] Building C object dumb/CMakeFiles/dumb.dir/src/it/load669.c.o
[ 24%] Building C object dumb/CMakeFiles/dumb.dir/src/it/itunload.c.o
[ 25%] Building C object dumb/CMakeFiles/dumb.dir/src/it/itrender.c.o
[ 25%] Building C object dumb/CMakeFiles/dumb.dir/src/it/itread2.c.o
[ 25%] Building C object dumb/CMakeFiles/dumb.dir/src/it/itread.c.o
[ 25%] Building C object dumb/CMakeFiles/dumb.dir/src/it/itorder.c.o
[ 25%] Building C object dumb/CMakeFiles/dumb.dir/src/it/itmisc.c.o
[ 25%] Building C object dumb/CMakeFiles/dumb.dir/src/it/itload2.c.o
[ 26%] Building C object dumb/CMakeFiles/dumb.dir/src/it/itload.c.o
[ 26%] Building C object dumb/CMakeFiles/dumb.dir/src/it/readany.c.o
[ 26%] Building C object dumb/CMakeFiles/dumb.dir/src/it/loadany2.c.o
[ 26%] Building C object dumb/CMakeFiles/dumb.dir/src/it/loadany.c.o
[ 26%] Building C object dumb/CMakeFiles/dumb.dir/src/it/readany2.c.o
[ 26%] Building C object dumb/CMakeFiles/dumb.dir/src/helpers/resampler.c.o
[ 26%] Building C object dumb/CMakeFiles/dumb.dir/src/helpers/lpc.c.o
[ 27%] Linking C static library libdumb.a
[ 27%] Built target dumb
Scanning dependencies of target arithchk
[ 27%] Building C object gdtoa/CMakeFiles/arithchk.dir/arithchk.c.o
[ 27%] Linking C executable arithchk
[ 27%] Built target arithchk
[ 27%] Generating arith.h
Scanning dependencies of target qnan
[ 27%] Building C object gdtoa/CMakeFiles/qnan.dir/qnan.c.o
[ 27%] Linking C executable qnan
[ 27%] Built target qnan
[ 27%] Generating gd_qnan.h
Scanning dependencies of target gdtoa
[ 27%] Building C object gdtoa/CMakeFiles/gdtoa.dir/dmisc.c.o
[ 27%] Building C object gdtoa/CMakeFiles/gdtoa.dir/dtoa.c.o
[ 27%] Building C object gdtoa/CMakeFiles/gdtoa.dir/misc.c.o
/home/kevinc/Games/code/gzdoom/gdtoa/misc.c: In function ‘Balloc_D2A’:
/home/kevinc/Games/code/gzdoom/gdtoa/misc.c:70:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if (k <= Kmax && pmem_next - private_mem + len <= PRIVATE_mem) {
                                                  ^
[ 28%] Linking C static library libgdtoa.a
[ 28%] Built target gdtoa
Scanning dependencies of target revision_check
src/gitinfo.h is up to date at commit g2.3pre-888-g56f6772.
[ 28%] Built target revision_check
[ 28%] Generating CMakeFiles/zdoom.dir/asm_x86_64/tmap3.o
[ 28%] Generating sc_man_scanner.h
[ 29%] Generating xlat_parser.c, xlat_parser.h
[ 29%] Generating zcc-parse.c, zcc-parse.h
Scanning dependencies of target zdoom
[ 29%] Building CXX object src/CMakeFiles/zdoom.dir/__autostart.cpp.o
[ 29%] Building CXX object src/CMakeFiles/zdoom.dir/posix/i_cd.cpp.o
[ 29%] Building CXX object src/CMakeFiles/zdoom.dir/posix/i_movie.cpp.o
[ 30%] Building CXX object src/CMakeFiles/zdoom.dir/posix/i_steam.cpp.o
[ 30%] Building C object src/CMakeFiles/zdoom.dir/posix/sdl/crashcatcher.c.o
[ 30%] Building CXX object src/CMakeFiles/zdoom.dir/posix/sdl/hardware.cpp.o
[ 30%] Building CXX object src/CMakeFiles/zdoom.dir/posix/sdl/i_gui.cpp.o
[ 30%] Building CXX object src/CMakeFiles/zdoom.dir/posix/sdl/i_input.cpp.o
[ 30%] Building CXX object src/CMakeFiles/zdoom.dir/posix/sdl/i_joystick.cpp.o
[ 31%] Building CXX object src/CMakeFiles/zdoom.dir/posix/sdl/i_main.cpp.o
[ 31%] Building CXX object src/CMakeFiles/zdoom.dir/posix/sdl/i_system.cpp.o
[ 31%] Building CXX object src/CMakeFiles/zdoom.dir/posix/sdl/i_timer.cpp.o
[ 31%] Building CXX object src/CMakeFiles/zdoom.dir/posix/sdl/sdlvideo.cpp.o
[ 31%] Building CXX object src/CMakeFiles/zdoom.dir/posix/sdl/sdlglvideo.cpp.o
In file included from /home/kevinc/Games/code/gzdoom/src/./v_video.h:41:0,
                 from /home/kevinc/Games/code/gzdoom/src/posix/sdl/sdlglvideo.cpp:9:
/home/kevinc/Games/code/gzdoom/src/posix/sdl/sdlglvideo.cpp: In static member function ‘static void SDLGLFB::InPlaceConstructor(void*)’:
/home/kevinc/Games/code/gzdoom/src/posix/sdl/sdlglvideo.cpp:32:17: error: invalid new-expression of abstract class type ‘SDLGLFB’
 IMPLEMENT_CLASS(SDLGLFB, false, false)
                 ^
/home/kevinc/Games/code/gzdoom/src/./dobject.h:190:98: note: in definition of macro ‘_X_CONSTRUCTOR_false’
 alse(cls) void cls::InPlaceConstructor(void *mem) { new((EInPlace *)mem) cls; }
                                                                          ^
/home/kevinc/Games/code/gzdoom/src/posix/sdl/sdlglvideo.cpp:32:1: note: in expansion of macro ‘IMPLEMENT_CLASS’
 IMPLEMENT_CLASS(SDLGLFB, false, false)
 ^
In file included from /home/kevinc/Games/code/gzdoom/src/posix/sdl/sdlglvideo.cpp:15:0:
/home/kevinc/Games/code/gzdoom/src/posix/sdl/sdlglvideo.h:37:7: note:   because the following virtual functions are pure within ‘SDLGLFB’:
 class SDLGLFB : public DFrameBuffer
       ^
In file included from /home/kevinc/Games/code/gzdoom/src/posix/sdl/sdlglvideo.cpp:9:0:
/home/kevinc/Games/code/gzdoom/src/./v_video.h:343:15: note: 	virtual void DFrameBuffer::Update()
  virtual void Update () = 0;
               ^
/home/kevinc/Games/code/gzdoom/src/./v_video.h:346:20: note: 	virtual PalEntry* DFrameBuffer::GetPalette()
  virtual PalEntry *GetPalette () = 0;
                    ^
/home/kevinc/Games/code/gzdoom/src/./v_video.h:349:15: note: 	virtual void DFrameBuffer::GetFlashedPalette(PalEntry*)
  virtual void GetFlashedPalette (PalEntry palette[256]) = 0;
               ^
/home/kevinc/Games/code/gzdoom/src/./v_video.h:352:15: note: 	virtual void DFrameBuffer::UpdatePalette()
  virtual void UpdatePalette () = 0;
               ^
/home/kevinc/Games/code/gzdoom/src/./v_video.h:357:15: note: 	virtual bool DFrameBuffer::SetGamma(float)
  virtual bool SetGamma (float gamma) = 0;
               ^
/home/kevinc/Games/code/gzdoom/src/./v_video.h:363:15: note: 	virtual bool DFrameBuffer::SetFlash(PalEntry, int)
  virtual bool SetFlash (PalEntry rgb, int amount) = 0;
               ^
/home/kevinc/Games/code/gzdoom/src/./v_video.h:366:15: note: 	virtual void DFrameBuffer::GetFlash(PalEntry&, int&)
  virtual void GetFlash (PalEntry &rgb, int &amount) = 0;
               ^
/home/kevinc/Games/code/gzdoom/src/./v_video.h:369:14: note: 	virtual int DFrameBuffer::GetPageCount()
  virtual int GetPageCount () = 0;
              ^
src/CMakeFiles/zdoom.dir/build.make:400: recipe for target 'src/CMakeFiles/zdoom.dir/posix/sdl/sdlglvideo.cpp.o' failed
make[2]: *** [src/CMakeFiles/zdoom.dir/posix/sdl/sdlglvideo.cpp.o] Error 1
CMakeFiles/Makefile2:788: recipe for target 'src/CMakeFiles/zdoom.dir/all' failed
make[1]: *** [src/CMakeFiles/zdoom.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

User avatar
Rachael
Developer
Developer
Posts: 3614
Joined: Sat May 13, 2006 10:30

Re: Can't compile latest GZDoom on Linux

Post by Rachael » Wed Dec 07, 2016 10:26

Try changing line 32 in src/posix/sdl/sdlglvideo.cpp
from

Code: Select all

IMPLEMENT_CLASS(SDLGLFB, false, false)
to

Code: Select all

IMPLEMENT_CLASS(SDLGLFB, true, false)
I suggested that in the Doomworld thread where someone else had the same problem, and the person never told me if it worked, so...

But it should work.
Spoiler: Zen Sarcasm

Talon1024

Re: Can't compile latest GZDoom on Linux

Post by Talon1024 » Wed Dec 07, 2016 10:53

Yep, that worked. Thanks. :thumb:

Edward-san
Developer
Developer
Posts: 197
Joined: Sun Nov 29, 2009 16:36

Re: Can't compile latest GZDoom on Linux

Post by Edward-san » Wed Dec 07, 2016 10:53

I got the same problem and can confirm that the change above works.

User avatar
Rachael
Developer
Developer
Posts: 3614
Joined: Sat May 13, 2006 10:30

Re: Can't compile latest GZDoom on Linux

Post by Rachael » Wed Dec 07, 2016 11:12

Spoiler: Zen Sarcasm

Locked

Return to “Closed Bugs”

Who is online

Users browsing this forum: No registered users and 1 guest