[me@localhost pht]$ make -j2
[ 0%] Built target xbmc-xrandr
[ 1%] Built target lib_squish
[ 2%] Built target lib_hts
[ 2%] Built target ffmpeg
[ 8%] Built target lib_upnp
[ 9%] Built target cpluff-x86_64-linux
[ 9%] Built target wrapper
[ 9%] Building CXX object lib/cximage-6.0/CxImage/CMakeFiles/cximage.dir/ximadsp.cpp.o
In file included from /usr/include/c++/6.1.1/deque:60:0,
from /usr/include/c++/6.1.1/queue:60,
from /home/syn4pse/plex/src/OpenPHT-1.6.2.123-e23a7eef/lib/cximage-6.0/CxImage/ximadsp.cpp:3480:
/usr/include/c++/6.1.1/bits/stl_algobase.h:243:56: error: macro "min" passed 3 arguments, but takes just 2
min(const _Tp& a, const _Tp& __b, _Compare comp)
^
/usr/include/c++/6.1.1/bits/stl_algobase.h:265:56: error: macro "max" passed 3 arguments, but takes just 2
max(const _Tp& a, const _Tp& __b, _Compare comp)
^
Scanning dependencies of target cx_raw
[ 9%] Building C object lib/cximage-6.0/raw/CMakeFiles/cx_raw.dir/dcr.c.o
In file included from /home/syn4pse/plex/src/OpenPHT-1.6.2.123-e23a7eef/lib/cximage-6.0/CxImage/xfile.h:51:0,
from /home/syn4pse/plex/src/OpenPHT-1.6.2.123-e23a7eef/lib/cximage-6.0/CxImage/ximage.h:62,
from /home/syn4pse/plex/src/OpenPHT-1.6.2.123-e23a7eef/lib/cximage-6.0/CxImage/ximadsp.cpp:6:
/usr/include/c++/6.1.1/bits/stl_algobase.h:195:5: error: expected unqualified-id before ‘const’
min(const _Tp& a, const _Tp& b)
^
/usr/include/c++/6.1.1/bits/stl_algobase.h:195:5: error: expected ‘)’ before ‘const’
/usr/include/c++/6.1.1/bits/stl_algobase.h:195:5: error: expected ‘)’ before ‘const’
/usr/include/c++/6.1.1/bits/stl_algobase.h:195:5: error: expected ‘)’ before ‘const’
/usr/include/c++/6.1.1/bits/stl_algobase.h:195:5: error: expected initializer before ‘const’
/usr/include/c++/6.1.1/bits/stl_algobase.h:219:5: error: expected unqualified-id before ‘const’
max(const _Tp& a, const _Tp& b)
^
/usr/include/c++/6.1.1/bits/stl_algobase.h:219:5: error: expected ‘)’ before ‘const’
/usr/include/c++/6.1.1/bits/stl_algobase.h:219:5: error: expected ‘)’ before ‘const’
/usr/include/c++/6.1.1/bits/stl_algobase.h:219:5: error: expected ‘)’ before ‘const’
/usr/include/c++/6.1.1/bits/stl_algobase.h:219:5: error: expected initializer before ‘const’
In file included from /usr/include/c++/6.1.1/deque:60:0,
from /usr/include/c++/6.1.1/queue:60,
from /home/syn4pse/plex/src/OpenPHT-1.6.2.123-e23a7eef/lib/cximage-6.0/CxImage/ximadsp.cpp:3480:
/usr/include/c++/6.1.1/bits/stl_algobase.h:243:5: error: ‘std::min’ declared as an ‘inline’ variable
min(const _Tp& a, const _Tp& __b, _Compare comp)
^~~
/usr/include/c++/6.1.1/bits/stl_algobase.h:246:7: error: expected primary-expression before ‘if’
if (comp(b, a))
^~
/usr/include/c++/6.1.1/bits/stl_algobase.h:246:7: error: expected ‘}’ before ‘if’
/usr/include/c++/6.1.1/bits/stl_algobase.h:246:7: error: expected ‘;’ before ‘if’
/usr/include/c++/6.1.1/bits/stl_algobase.h:248:7: error: expected unqualified-id before ‘return’
return a;
^~
/usr/include/c++/6.1.1/bits/stl_algobase.h:265:5: error: ‘max’ declared as an ‘inline’ variable
max(const _Tp& a, const _Tp& b, _Compare comp)
^~~
/usr/include/c++/6.1.1/bits/stl_algobase.h:268:7: error: expected primary-expression before ‘if’
if (comp(a, __b))
^~
/usr/include/c++/6.1.1/bits/stl_algobase.h:268:7: error: expected ‘}’ before ‘if’
/usr/include/c++/6.1.1/bits/stl_algobase.h:268:7: error: expected ‘;’ before ‘if’
/usr/include/c++/6.1.1/bits/stl_algobase.h:270:7: error: expected unqualified-id before ‘return’
return a;
^~
/usr/include/c++/6.1.1/bits/stl_algobase.h:271:5: error: expected declaration before ‘}’ token
}
^
lib/cximage-6.0/CxImage/CMakeFiles/cximage.dir/build.make:62: recipe for target 'lib/cximage-6.0/CxImage/CMakeFiles/cximage.dir/ximadsp.cpp.o' failed
make[2]: * [lib/cximage-6.0/CxImage/CMakeFiles/cximage.dir/ximadsp.cpp.o] Error 1
CMakeFiles/Makefile2:561: recipe for target 'lib/cximage-6.0/CxImage/CMakeFiles/cximage.dir/all' failed
make[1]: * [lib/cximage-6.0/CxImage/CMakeFiles/cximage.dir/all] Error 2
make[1]: * Waiting for unfinished jobs....
[ 9%] Building C object lib/cximage-6.0/raw/CMakeFiles/cx_raw.dir/libdcr.c.o
[ 9%] Linking C static library libcx_raw.a
[ 9%] Built target cx_raw
Makefile:149: recipe for target 'all' failed
make: * [all] Error 2
OpenPHT 1.6.2, Fedora 24
This seems to be a build error with gcc-6.1.1.
[me@localhost pht]$ make -j2 [ 0%] Built target xbmc-xrandr [ 1%] Built target lib_squish [ 2%] Built target lib_hts [ 2%] Built target ffmpeg [ 8%] Built target lib_upnp [ 9%] Built target cpluff-x86_64-linux [ 9%] Built target wrapper [ 9%] Building CXX object lib/cximage-6.0/CxImage/CMakeFiles/cximage.dir/ximadsp.cpp.o In file included from /usr/include/c++/6.1.1/deque:60:0, from /usr/include/c++/6.1.1/queue:60, from /home/syn4pse/plex/src/OpenPHT-1.6.2.123-e23a7eef/lib/cximage-6.0/CxImage/ximadsp.cpp:3480: /usr/include/c++/6.1.1/bits/stl_algobase.h:243:56: error: macro "min" passed 3 arguments, but takes just 2 min(const _Tp& a, const _Tp& __b, _Compare comp) ^ /usr/include/c++/6.1.1/bits/stl_algobase.h:265:56: error: macro "max" passed 3 arguments, but takes just 2 max(const _Tp& a, const _Tp& __b, _Compare comp) ^ Scanning dependencies of target cx_raw [ 9%] Building C object lib/cximage-6.0/raw/CMakeFiles/cx_raw.dir/dcr.c.o In file included from /home/syn4pse/plex/src/OpenPHT-1.6.2.123-e23a7eef/lib/cximage-6.0/CxImage/xfile.h:51:0, from /home/syn4pse/plex/src/OpenPHT-1.6.2.123-e23a7eef/lib/cximage-6.0/CxImage/ximage.h:62, from /home/syn4pse/plex/src/OpenPHT-1.6.2.123-e23a7eef/lib/cximage-6.0/CxImage/ximadsp.cpp:6: /usr/include/c++/6.1.1/bits/stl_algobase.h:195:5: error: expected unqualified-id before ‘const’ min(const _Tp& a, const _Tp& b) ^ /usr/include/c++/6.1.1/bits/stl_algobase.h:195:5: error: expected ‘)’ before ‘const’ /usr/include/c++/6.1.1/bits/stl_algobase.h:195:5: error: expected ‘)’ before ‘const’ /usr/include/c++/6.1.1/bits/stl_algobase.h:195:5: error: expected ‘)’ before ‘const’ /usr/include/c++/6.1.1/bits/stl_algobase.h:195:5: error: expected initializer before ‘const’ /usr/include/c++/6.1.1/bits/stl_algobase.h:219:5: error: expected unqualified-id before ‘const’ max(const _Tp& a, const _Tp& b) ^ /usr/include/c++/6.1.1/bits/stl_algobase.h:219:5: error: expected ‘)’ before ‘const’ /usr/include/c++/6.1.1/bits/stl_algobase.h:219:5: error: expected ‘)’ before ‘const’ /usr/include/c++/6.1.1/bits/stl_algobase.h:219:5: error: expected ‘)’ before ‘const’ /usr/include/c++/6.1.1/bits/stl_algobase.h:219:5: error: expected initializer before ‘const’ In file included from /usr/include/c++/6.1.1/deque:60:0, from /usr/include/c++/6.1.1/queue:60, from /home/syn4pse/plex/src/OpenPHT-1.6.2.123-e23a7eef/lib/cximage-6.0/CxImage/ximadsp.cpp:3480: /usr/include/c++/6.1.1/bits/stl_algobase.h:243:5: error: ‘std::min’ declared as an ‘inline’ variable min(const _Tp& a, const _Tp& __b, _Compare comp) ^~~ /usr/include/c++/6.1.1/bits/stl_algobase.h:246:7: error: expected primary-expression before ‘if’ if (comp(b, a)) ^~ /usr/include/c++/6.1.1/bits/stl_algobase.h:246:7: error: expected ‘}’ before ‘if’ /usr/include/c++/6.1.1/bits/stl_algobase.h:246:7: error: expected ‘;’ before ‘if’ /usr/include/c++/6.1.1/bits/stl_algobase.h:248:7: error: expected unqualified-id before ‘return’ return a; ^
~/usr/include/c++/6.1.1/bits/stl_algobase.h:265:5: error: ‘max’ declared as an ‘inline’ variable max(const _Tp& a, const _Tp& b, _Compare comp) ^~~ /usr/include/c++/6.1.1/bits/stl_algobase.h:268:7: error: expected primary-expression before ‘if’ if (comp(a, __b)) ^~ /usr/include/c++/6.1.1/bits/stl_algobase.h:268:7: error: expected ‘}’ before ‘if’ /usr/include/c++/6.1.1/bits/stl_algobase.h:268:7: error: expected ‘;’ before ‘if’ /usr/include/c++/6.1.1/bits/stl_algobase.h:270:7: error: expected unqualified-id before ‘return’ return a; ^~/usr/include/c++/6.1.1/bits/stl_algobase.h:271:5: error: expected declaration before ‘}’ token } ^ lib/cximage-6.0/CxImage/CMakeFiles/cximage.dir/build.make:62: recipe for target 'lib/cximage-6.0/CxImage/CMakeFiles/cximage.dir/ximadsp.cpp.o' failed make[2]: * [lib/cximage-6.0/CxImage/CMakeFiles/cximage.dir/ximadsp.cpp.o] Error 1 CMakeFiles/Makefile2:561: recipe for target 'lib/cximage-6.0/CxImage/CMakeFiles/cximage.dir/all' failed make[1]: * [lib/cximage-6.0/CxImage/CMakeFiles/cximage.dir/all] Error 2 make[1]: * Waiting for unfinished jobs.... [ 9%] Building C object lib/cximage-6.0/raw/CMakeFiles/cx_raw.dir/libdcr.c.o [ 9%] Linking C static library libcx_raw.a [ 9%] Built target cx_raw Makefile:149: recipe for target 'all' failed make: * [all] Error 2