D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/grantlee-5.1.0-3.mga8.src.rpm Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.uXcInG + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf grantlee-5.1.0 + /usr/bin/gzip -dc /home/pterjan/rpmbuild/SOURCES/grantlee-5.1.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd grantlee-5.1.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.dSgXbI + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd grantlee-5.1.0 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + QTDIR=/usr/share/qt5 + export QTDIR + PATH=/usr/lib64/qt5/bin:/usr/local/bin:/usr/bin:/usr/local/games:/usr/games:/usr/lib64/qt5/bin:/home/pterjan/.local/bin:/home/pterjan/bin + export PATH + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + export FFLAGS + LDFLAGS=' -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags' + export LDFLAGS + mkdir -p build + cd build + /usr/bin/cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_LIBDIR:PATH=/usr/lib64 -DCMAKE_INSTALL_LIBEXECDIR:PATH=/usr/libexec -DCMAKE_INSTALL_RUNSTATEDIR:PATH=/run -DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-DNDEBUG -DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-DNDEBUG -DLIB_SUFFIX=64 -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON '-DCMAKE_MODULE_LINKER_FLAGS=-Wl,--as-needed -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags' -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_STATIC_LIBS:BOOL=OFF -DDBUS_SERVICES_DIR=/usr/share/dbus-1/services -DDBUS_INTERFACES_DIR=/usr/share/dbus-1/interfaces -- The C compiler identification is GNU 8.3.1 -- The CXX compiler identification is GNU 8.3.1 -- 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 -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success -- Performing Test COMPILER_HAS_DEPRECATED_ATTR -- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success -- Looking for C++ include tr1/unordered_map -- Looking for C++ include tr1/unordered_map - found -- Looking for C++ include tr1/array -- Looking for C++ include tr1/array - found -- Looking for C++ include tr1/memory -- Looking for C++ include tr1/memory - found -- Performing Test HAVE_WORKING_TR1_UNORDERED_MAP -- Performing Test HAVE_WORKING_TR1_UNORDERED_MAP - Success -- Enabling TR1 container tests -- Found Doxygen: /usr/bin/doxygen (found version "1.8.15") found components: doxygen dot -- Doxygen and dot found. make docs target is available -- Could NOT find LCov (missing: LCOV_EXECUTABLE GENHTML_EXECUTABLE) -- Could NOT find Cccc (missing: CCCC_EXECUTABLE) -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project: BUILD_STATIC_LIBS CMAKE_C_FLAGS_RELWITHDEBINFO CMAKE_INSTALL_LIBDIR CMAKE_INSTALL_LIBEXECDIR CMAKE_INSTALL_RUNSTATEDIR CMAKE_INSTALL_SYSCONFDIR DBUS_INTERFACES_DIR DBUS_SERVICES_DIR SHARE_INSTALL_PREFIX SYSCONF_INSTALL_DIR -- Build files have been written to: /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build + /usr/bin/make -O -j8 /usr/bin/cmake -S/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0 -B/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/CMakeFiles /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/CMakeFiles/progress.marks /usr/bin/make -f CMakeFiles/Makefile2 all /usr/bin/make -f templates/lib/CMakeFiles/Grantlee_Templates_autogen.dir/build.make templates/lib/CMakeFiles/Grantlee_Templates_autogen.dir/depend /usr/bin/make -f templates/tests/CMakeFiles/template_test_builtins_autogen.dir/build.make templates/tests/CMakeFiles/template_test_builtins_autogen.dir/depend /usr/bin/make -f templates/tests/pluginpointertest/CMakeFiles/main_app_autogen.dir/build.make templates/tests/pluginpointertest/CMakeFiles/main_app_autogen.dir/depend /usr/bin/make -f templates/tests/pluginpointertest/CMakeFiles/myplugin_autogen.dir/build.make templates/tests/pluginpointertest/CMakeFiles/myplugin_autogen.dir/depend /usr/bin/make -f textdocument/lib/CMakeFiles/Grantlee_TextDocument_autogen.dir/build.make textdocument/lib/CMakeFiles/Grantlee_TextDocument_autogen.dir/depend /usr/bin/make -f textdocument/tests/CMakeFiles/textdocument_test_builtins_autogen.dir/build.make textdocument/tests/CMakeFiles/textdocument_test_builtins_autogen.dir/depend make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0 /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests/pluginpointertest /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/pluginpointertest /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/pluginpointertest/CMakeFiles/myplugin_autogen.dir/DependInfo.cmake --color= Scanning dependencies of target myplugin_autogen make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0 /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/lib /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/lib/CMakeFiles/Grantlee_TextDocument_autogen.dir/DependInfo.cmake --color= Scanning dependencies of target Grantlee_TextDocument_autogen make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0 /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/CMakeFiles/Grantlee_Templates_autogen.dir/DependInfo.cmake --color= Scanning dependencies of target Grantlee_Templates_autogen make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0 /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests/pluginpointertest /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/pluginpointertest /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/pluginpointertest/CMakeFiles/main_app_autogen.dir/DependInfo.cmake --color= Scanning dependencies of target main_app_autogen make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' /usr/bin/make -f templates/tests/pluginpointertest/CMakeFiles/myplugin_autogen.dir/build.make templates/tests/pluginpointertest/CMakeFiles/myplugin_autogen.dir/build /usr/bin/make -f templates/lib/CMakeFiles/Grantlee_Templates_autogen.dir/build.make templates/lib/CMakeFiles/Grantlee_Templates_autogen.dir/build /usr/bin/make -f templates/tests/pluginpointertest/CMakeFiles/main_app_autogen.dir/build.make templates/tests/pluginpointertest/CMakeFiles/main_app_autogen.dir/build make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0 /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/CMakeFiles/template_test_builtins_autogen.dir/DependInfo.cmake --color= Scanning dependencies of target template_test_builtins_autogen make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0 /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/tests /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/tests /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/tests/CMakeFiles/textdocument_test_builtins_autogen.dir/DependInfo.cmake --color= Scanning dependencies of target textdocument_test_builtins_autogen make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' /usr/bin/make -f templates/tests/CMakeFiles/template_test_builtins_autogen.dir/build.make templates/tests/CMakeFiles/template_test_builtins_autogen.dir/build /usr/bin/make -f textdocument/lib/CMakeFiles/Grantlee_TextDocument_autogen.dir/build.make textdocument/lib/CMakeFiles/Grantlee_TextDocument_autogen.dir/build /usr/bin/make -f textdocument/tests/CMakeFiles/textdocument_test_builtins_autogen.dir/build.make textdocument/tests/CMakeFiles/textdocument_test_builtins_autogen.dir/build make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' [ 4%] Automatic MOC for target Grantlee_TextDocument cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/lib && /usr/bin/cmake -E cmake_autogen /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/lib/CMakeFiles/Grantlee_TextDocument_autogen.dir/AutogenInfo.cmake RelWithDebInfo make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' [ 5%] Built target Grantlee_TextDocument_autogen make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' /usr/bin/make -f textdocument/lib/CMakeFiles/Grantlee_TextDocument.dir/build.make textdocument/lib/CMakeFiles/Grantlee_TextDocument.dir/depend make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0 /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/lib /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/lib/CMakeFiles/Grantlee_TextDocument.dir/DependInfo.cmake --color= Scanning dependencies of target Grantlee_TextDocument make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' /usr/bin/make -f textdocument/lib/CMakeFiles/Grantlee_TextDocument.dir/build.make textdocument/lib/CMakeFiles/Grantlee_TextDocument.dir/build make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' [ 6%] Building CXX object textdocument/lib/CMakeFiles/Grantlee_TextDocument.dir/Grantlee_TextDocument_autogen/mocs_compilation.cpp.o cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/lib && /usr/bin/c++ -DGrantlee_TextDocument_EXPORTS -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DQT_STRICT_ITERATORS -DQT_USE_QSTRINGBUILDER -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/lib -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/lib/Grantlee_TextDocument_autogen/include -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-check-new -fno-common -pedantic-errors -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -o CMakeFiles/Grantlee_TextDocument.dir/Grantlee_TextDocument_autogen/mocs_compilation.cpp.o -c /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/lib/Grantlee_TextDocument_autogen/mocs_compilation.cpp make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' [ 2%] Automatic MOC for target template_test_builtins cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests && /usr/bin/cmake -E cmake_autogen /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/CMakeFiles/template_test_builtins_autogen.dir/AutogenInfo.cmake RelWithDebInfo make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' [ 1%] Automatic MOC for target myplugin cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/pluginpointertest && /usr/bin/cmake -E cmake_autogen /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/pluginpointertest/CMakeFiles/myplugin_autogen.dir/AutogenInfo.cmake RelWithDebInfo make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' [ 8%] Built target template_test_builtins_autogen make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' [ 5%] Automatic MOC for target textdocument_test_builtins cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/tests && /usr/bin/cmake -E cmake_autogen /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/tests/CMakeFiles/textdocument_test_builtins_autogen.dir/AutogenInfo.cmake RelWithDebInfo make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' [ 3%] Automatic MOC for target main_app cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/pluginpointertest && /usr/bin/cmake -E cmake_autogen /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/pluginpointertest/CMakeFiles/main_app_autogen.dir/AutogenInfo.cmake RelWithDebInfo make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' [ 8%] Built target myplugin_autogen make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' /usr/bin/make -f templates/tests/CMakeFiles/template_test_builtins.dir/build.make templates/tests/CMakeFiles/template_test_builtins.dir/depend make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' [ 8%] Built target textdocument_test_builtins_autogen make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' /usr/bin/make -f templates/tests/pluginpointertest/CMakeFiles/myplugin.dir/build.make templates/tests/pluginpointertest/CMakeFiles/myplugin.dir/depend make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' [ 8%] Built target main_app_autogen make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' /usr/bin/make -f textdocument/tests/CMakeFiles/textdocument_test_builtins.dir/build.make textdocument/tests/CMakeFiles/textdocument_test_builtins.dir/depend make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0 /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests/pluginpointertest /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/pluginpointertest /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/pluginpointertest/CMakeFiles/myplugin.dir/DependInfo.cmake --color= Scanning dependencies of target myplugin make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' [ 8%] Generating test_de_DE.qm, test_fr_FR.qm cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests && /usr/lib64/qt5/bin/lrelease /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests/test_fr_FR.ts -qm /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/test_fr_FR.qm Updating '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/test_fr_FR.qm'... Generated 17 translation(s) (17 finished and 0 unfinished) cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests && /usr/lib64/qt5/bin/lrelease /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests/test_de_DE.ts -qm /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/test_de_DE.qm Updating '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/test_de_DE.qm'... Generated 12 translation(s) (12 finished and 0 unfinished) Ignored 5 untranslated source text(s) make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' /usr/bin/make -f templates/tests/pluginpointertest/CMakeFiles/myplugin.dir/build.make templates/tests/pluginpointertest/CMakeFiles/myplugin.dir/build make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0 /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/tests /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/tests /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/tests/CMakeFiles/textdocument_test_builtins.dir/DependInfo.cmake --color= Scanning dependencies of target textdocument_test_builtins make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' /usr/bin/make -f textdocument/tests/CMakeFiles/textdocument_test_builtins.dir/build.make textdocument/tests/CMakeFiles/textdocument_test_builtins.dir/build make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' [ 10%] Generating qrc_testresource.cpp cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests && /usr/lib64/qt5/bin/rcc -root / --name testresource --output /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/qrc_testresource.cpp /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/testresource.qrc make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' [ 2%] Automatic MOC for target Grantlee_Templates cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib && /usr/bin/cmake -E cmake_autogen /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/CMakeFiles/Grantlee_Templates_autogen.dir/AutogenInfo.cmake RelWithDebInfo make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' [ 11%] Built target Grantlee_Templates_autogen make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0 /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/CMakeFiles/template_test_builtins.dir/DependInfo.cmake --color= Scanning dependencies of target template_test_builtins make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' /usr/bin/make -f templates/tests/CMakeFiles/template_test_builtins.dir/build.make templates/tests/CMakeFiles/template_test_builtins.dir/build make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' [ 11%] Building CXX object textdocument/tests/CMakeFiles/textdocument_test_builtins.dir/textdocument_test_builtins_autogen/mocs_compilation.cpp.o cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/tests && /usr/bin/c++ -DQT_CORE_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DQT_STRICT_ITERATORS -DQT_TESTCASE_BUILDDIR=\"/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build\" -DQT_TESTLIB_LIB -DQT_USE_QSTRINGBUILDER -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/tests -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/tests -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/tests/textdocument_test_builtins_autogen/include -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtTest -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-check-new -fno-common -pedantic-errors -DNDEBUG -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -o CMakeFiles/textdocument_test_builtins.dir/textdocument_test_builtins_autogen/mocs_compilation.cpp.o -c /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/tests/textdocument_test_builtins_autogen/mocs_compilation.cpp In file included from /usr/include/c++/8.3.1/type_traits:35, from /usr/include/qt5/QtCore/qglobal.h:45, from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/tests/textdocument_test_builtins_autogen/EWIEGA46WW/../../../../../textdocument/tests/coverageobject.h:3, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/tests/textdocument_test_builtins_autogen/EWIEGA46WW/moc_coverageobject.cpp:10, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/tests/textdocument_test_builtins_autogen/mocs_compilation.cpp:2: /usr/include/c++/8.3.1/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options. #error This file requires compiler and library support \ ^~~~~ In file included from /usr/include/qt5/QtCore/qglobal.h:105, from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/tests/textdocument_test_builtins_autogen/EWIEGA46WW/../../../../../textdocument/tests/coverageobject.h:3, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/tests/textdocument_test_builtins_autogen/EWIEGA46WW/moc_coverageobject.cpp:10, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/tests/textdocument_test_builtins_autogen/mocs_compilation.cpp:2: /usr/include/qt5/QtCore/qcompilerdetection.h:564:6: error: #error Qt requires a C++11 compiler and yours does not seem to be that. # error Qt requires a C++11 compiler and yours does not seem to be that. ^~~~~ In file included from /usr/include/qt5/QtCore/qatomic.h:46, from /usr/include/qt5/QtCore/qglobal.h:1224, from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/tests/textdocument_test_builtins_autogen/EWIEGA46WW/../../../../../textdocument/tests/coverageobject.h:3, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/tests/textdocument_test_builtins_autogen/EWIEGA46WW/moc_coverageobject.cpp:10, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/tests/textdocument_test_builtins_autogen/mocs_compilation.cpp:2: /usr/include/qt5/QtCore/qbasicatomic.h:61:4: error: #error "Qt requires C++11 support" # error "Qt requires C++11 support" ^~~~~ In file included from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/tests/textdocument_test_builtins_autogen/EWIEGA46WW/../../../../../textdocument/tests/coverageobject.h:3, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/tests/textdocument_test_builtins_autogen/EWIEGA46WW/moc_coverageobject.cpp:10, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/tests/textdocument_test_builtins_autogen/mocs_compilation.cpp:2: /usr/include/qt5/QtCore/qglobal.h:513:7: error: expected nested-name-specifier before 'qsizetype' using qsizetype = QIntegerForSizeof::Signed; ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:602:1: error: 'constexpr' does not name a type constexpr inline const T &qMin(const T &a, const T &b) { return (a < b) ? a : b; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:602:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qglobal.h:604:1: error: 'constexpr' does not name a type constexpr inline const T &qMax(const T &a, const T &b) { return (a < b) ? b : a; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:604:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qglobal.h:606:1: error: 'constexpr' does not name a type constexpr inline const T &qBound(const T &min, const T &val, const T &max) ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:606:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 In file included from /usr/include/qt5/QtCore/qglobal.h:105, from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/tests/textdocument_test_builtins_autogen/EWIEGA46WW/../../../../../textdocument/tests/coverageobject.h:3, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/tests/textdocument_test_builtins_autogen/EWIEGA46WW/moc_coverageobject.cpp:10, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/tests/textdocument_test_builtins_autogen/mocs_compilation.cpp:2: /usr/include/qt5/QtCore/qglobal.h:835:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyCompare(double p1, double p2) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:840:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyCompare(float p1, float p2) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:845:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNull(double d) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:850:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNull(float f) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:860:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT static inline Q_DECL_UNUSED bool qIsNull(double d) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:876:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT static inline Q_DECL_UNUSED bool qIsNull(float f) ^~~~~~~~~~~~~~~~~ In file included from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/tests/textdocument_test_builtins_autogen/EWIEGA46WW/../../../../../textdocument/tests/coverageobject.h:3, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/tests/textdocument_test_builtins_autogen/EWIEGA46WW/moc_coverageobject.cpp:10, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/tests/textdocument_test_builtins_autogen/mocs_compilation.cpp:2: /usr/include/qt5/QtCore/qglobal.h:971:32: error: 'add_const' in namespace 'std' does not name a template type Q_DECL_CONSTEXPR typename std::add_const::type &qAsConst(T &t) Q_DECL_NOTHROW { return t; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:971:41: error: expected unqualified-id before '<' token Q_DECL_CONSTEXPR typename std::add_const::type &qAsConst(T &t) Q_DECL_NOTHROW { return t; } ^ /usr/include/qt5/QtCore/qglobal.h:974:23: error: expected ',' or '...' before '&&' token void qAsConst(const T &&) Q_DECL_EQ_DELETE; ^~ /usr/include/qt5/QtCore/qglobal.h:985:25: error: expected ',' or '...' before '&&' token QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^~ /usr/include/qt5/QtCore/qglobal.h:987:41: error: expected ',' or '...' before '&&' token QForeachContainer(QForeachContainer &&other) ^~ /usr/include/qt5/QtCore/qglobal.h:987:48: error: invalid constructor; you probably meant 'QtPrivate::QForeachContainer (const QtPrivate::QForeachContainer&)' QForeachContainer(QForeachContainer &&other) ^ /usr/include/qt5/QtCore/qglobal.h:995:52: error: expected ',' or '...' before '&&' token QForeachContainer &operator=(QForeachContainer &&other) ^~ /usr/include/qt5/QtCore/qglobal.h: In constructor 'QtPrivate::QForeachContainer::QForeachContainer(T)': /usr/include/qt5/QtCore/qglobal.h:985:39: error: 'move' is not a member of 'std' QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^~~~ /usr/include/qt5/QtCore/qglobal.h:985:39: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:985:44: error: 't' was not declared in this scope QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^ /usr/include/qt5/QtCore/qglobal.h: In member function 'QtPrivate::QForeachContainer& QtPrivate::QForeachContainer::operator=(QtPrivate::QForeachContainer)': /usr/include/qt5/QtCore/qglobal.h:997:18: error: 'move' is not a member of 'std' c = std::move(other.c); ^~~~ /usr/include/qt5/QtCore/qglobal.h:997:18: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:997:23: error: 'other' was not declared in this scope c = std::move(other.c); ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1000:24: error: 'move' is not a member of 'std' control = std::move(other.control); ^~~~ /usr/include/qt5/QtCore/qglobal.h:1000:24: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h: At global scope: /usr/include/qt5/QtCore/qglobal.h:1010:33: error: 'decay' in namespace 'std' does not name a template type QForeachContainer::type> qMakeForeachContainer(T &&t) ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1010:38: error: expected template-argument before '<' token QForeachContainer::type> qMakeForeachContainer(T &&t) ^ /usr/include/qt5/QtCore/qglobal.h:1010:38: error: expected '>' before '<' token /usr/include/qt5/QtCore/qglobal.h:1010:47: error: template argument 1 is invalid QForeachContainer::type> qMakeForeachContainer(T &&t) ^ /usr/include/qt5/QtCore/qglobal.h:1010:73: error: expected ',' or '...' before '&&' token QForeachContainer::type> qMakeForeachContainer(T &&t) ^~ /usr/include/qt5/QtCore/qglobal.h: In function 'int QtPrivate::qMakeForeachContainer(T)': /usr/include/qt5/QtCore/qglobal.h:1012:44: error: 'decay' in namespace 'std' does not name a template type return QForeachContainer::type>(std::forward(t)); ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:49: error: expected template-argument before '<' token return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:49: error: expected '>' before '<' token /usr/include/qt5/QtCore/qglobal.h:1012:58: error: template argument 1 is invalid return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:65: error: 'forward' is not a member of 'std' return QForeachContainer::type>(std::forward(t)); ^~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:65: note: 'std::forward' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:1012:76: error: 't' was not declared in this scope return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:65: error: 'forward' is not a member of 'std' return QForeachContainer::type>(std::forward(t)); ^~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:65: note: 'std::forward' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:1012:74: error: expected primary-expression before '>' token return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h: At global scope: /usr/include/qt5/QtCore/qglobal.h:1055:70: error: expected type-specifier before 'decltype' template inline auto qGetPtrHelper(const Ptr &ptr) -> decltype(ptr.operator->()) { return ptr.operator->(); } ^~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1055:70: error: expected initializer before 'decltype' /usr/include/qt5/QtCore/qglobal.h:1189:79: error: 'nullptr' was not declared in this scope Q_CORE_EXPORT int qEnvironmentVariableIntValue(const char *varName, bool *ok=nullptr) Q_DECL_NOEXCEPT; ^~~~~~~ In file included from /usr/include/qt5/QtCore/qglobal.h:1218, from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/tests/textdocument_test_builtins_autogen/EWIEGA46WW/../../../../../textdocument/tests/coverageobject.h:3, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/tests/textdocument_test_builtins_autogen/EWIEGA46WW/moc_coverageobject.cpp:10, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/tests/textdocument_test_builtins_autogen/mocs_compilation.cpp:2: /usr/include/qt5/QtCore/qtypeinfo.h:53:8: error: 'constexpr' does not name a type static constexpr bool qIsRelocatable() ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:53:8: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qtypeinfo.h:63:8: error: 'constexpr' does not name a type static constexpr bool qIsTrivial() ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:63:8: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qtypeinfo.h:81:30: error: 'is_enum' is not a member of 'std' isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:81:39: error: expected primary-expression before '>' token isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^ /usr/include/qt5/QtCore/qtypeinfo.h:81:42: error: '::value' has not been declared isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:81:42: note: suggested alternative: 'valloc' isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~ valloc /usr/include/qt5/QtCore/qtypeinfo.h:83:27: error: 'is_integral' is not a member of 'std' isIntegral = std::is_integral::value, ^~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:83:40: error: expected primary-expression before '>' token isIntegral = std::is_integral::value, ^ /usr/include/qt5/QtCore/qtypeinfo.h:83:43: error: '::value' has not been declared isIntegral = std::is_integral::value, ^~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:83:43: note: suggested alternative: 'valloc' isIntegral = std::is_integral::value, ^~~~~ valloc /usr/include/qt5/QtCore/qtypeinfo.h:84:22: error: 'qIsTrivial' was not declared in this scope isComplex = !qIsTrivial(), ^~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:84:22: note: suggested alternative: 'qCritical' isComplex = !qIsTrivial(), ^~~~~~~~~~ qCritical /usr/include/qt5/QtCore/qtypeinfo.h:84:34: error: expected primary-expression before '>' token isComplex = !qIsTrivial(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:84:36: error: expected primary-expression before ')' token isComplex = !qIsTrivial(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:86:25: error: 'qIsRelocatable' was not declared in this scope isRelocatable = qIsRelocatable(), ^~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:86:41: error: expected primary-expression before '>' token isRelocatable = qIsRelocatable(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:86:43: error: expected primary-expression before ')' token isRelocatable = qIsRelocatable(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:150:40: error: 'enable_if' in namespace 'std' does not name a template type struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:150:40: note: suggested alternative: 'replace_if' struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^~~~~~~~~ replace_if /usr/include/qt5/QtCore/qtypeinfo.h:150:49: error: expected template-argument before '<' token struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ /usr/include/qt5/QtCore/qtypeinfo.h:150:49: error: expected '>' before '<' token /usr/include/qt5/QtCore/qtypeinfo.h:150:92: error: template argument 2 is invalid struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'qIsTrivial' was not declared in this scope Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: note: suggested alternative: 'qCritical' /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before ')' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'qIsRelocatable' was not declared in this scope Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before ')' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'is_integral' is not a member of 'std' Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: '::value' has not been declared Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: note: suggested alternative: 'valloc' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: 'qIsTrivial' was not declared in this scope Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: note: suggested alternative: 'qCritical' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected primary-expression before 'bool' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected '}' before 'bool' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: note: to match this '{' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected unqualified-id before '>' token Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected declaration before '}' token Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ make[2]: *** [textdocument/tests/CMakeFiles/textdocument_test_builtins.dir/build.make:66: textdocument/tests/CMakeFiles/textdocument_test_builtins.dir/textdocument_test_builtins_autogen/mocs_compilation.cpp.o] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' make[2]: *** Waiting for unfinished jobs.... make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' [ 6%] Building CXX object textdocument/lib/CMakeFiles/Grantlee_TextDocument.dir/bbcodebuilder.cpp.o cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/lib && /usr/bin/c++ -DGrantlee_TextDocument_EXPORTS -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DQT_STRICT_ITERATORS -DQT_USE_QSTRINGBUILDER -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/lib -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/lib/Grantlee_TextDocument_autogen/include -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-check-new -fno-common -pedantic-errors -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -o CMakeFiles/Grantlee_TextDocument.dir/bbcodebuilder.cpp.o -c /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/bbcodebuilder.cpp In file included from /usr/include/c++/8.3.1/type_traits:35, from /usr/include/qt5/QtCore/qglobal.h:45, from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/abstractmarkupbuilder.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/bbcodebuilder.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/bbcodebuilder.cpp:21: /usr/include/c++/8.3.1/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options. #error This file requires compiler and library support \ ^~~~~ In file included from /usr/include/qt5/QtCore/qglobal.h:105, from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/abstractmarkupbuilder.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/bbcodebuilder.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/bbcodebuilder.cpp:21: /usr/include/qt5/QtCore/qcompilerdetection.h:564:6: error: #error Qt requires a C++11 compiler and yours does not seem to be that. # error Qt requires a C++11 compiler and yours does not seem to be that. ^~~~~ In file included from /usr/include/qt5/QtCore/qatomic.h:46, from /usr/include/qt5/QtCore/qglobal.h:1224, from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/abstractmarkupbuilder.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/bbcodebuilder.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/bbcodebuilder.cpp:21: /usr/include/qt5/QtCore/qbasicatomic.h:61:4: error: #error "Qt requires C++11 support" # error "Qt requires C++11 support" ^~~~~ In file included from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/abstractmarkupbuilder.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/bbcodebuilder.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/bbcodebuilder.cpp:21: /usr/include/qt5/QtCore/qglobal.h:513:7: error: expected nested-name-specifier before 'qsizetype' using qsizetype = QIntegerForSizeof::Signed; ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:602:1: error: 'constexpr' does not name a type constexpr inline const T &qMin(const T &a, const T &b) { return (a < b) ? a : b; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:602:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qglobal.h:604:1: error: 'constexpr' does not name a type constexpr inline const T &qMax(const T &a, const T &b) { return (a < b) ? b : a; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:604:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qglobal.h:606:1: error: 'constexpr' does not name a type constexpr inline const T &qBound(const T &min, const T &val, const T &max) ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:606:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 In file included from /usr/include/qt5/QtCore/qglobal.h:105, from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/abstractmarkupbuilder.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/bbcodebuilder.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/bbcodebuilder.cpp:21: /usr/include/qt5/QtCore/qglobal.h:835:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyCompare(double p1, double p2) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:840:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyCompare(float p1, float p2) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:845:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNull(double d) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:850:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNull(float f) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:860:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT static inline Q_DECL_UNUSED bool qIsNull(double d) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:876:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT static inline Q_DECL_UNUSED bool qIsNull(float f) ^~~~~~~~~~~~~~~~~ In file included from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/abstractmarkupbuilder.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/bbcodebuilder.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/bbcodebuilder.cpp:21: /usr/include/qt5/QtCore/qglobal.h:971:32: error: 'add_const' in namespace 'std' does not name a template type Q_DECL_CONSTEXPR typename std::add_const::type &qAsConst(T &t) Q_DECL_NOTHROW { return t; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:971:41: error: expected unqualified-id before '<' token Q_DECL_CONSTEXPR typename std::add_const::type &qAsConst(T &t) Q_DECL_NOTHROW { return t; } ^ /usr/include/qt5/QtCore/qglobal.h:974:23: error: expected ',' or '...' before '&&' token void qAsConst(const T &&) Q_DECL_EQ_DELETE; ^~ /usr/include/qt5/QtCore/qglobal.h:985:25: error: expected ',' or '...' before '&&' token QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^~ /usr/include/qt5/QtCore/qglobal.h:987:41: error: expected ',' or '...' before '&&' token QForeachContainer(QForeachContainer &&other) ^~ /usr/include/qt5/QtCore/qglobal.h:987:48: error: invalid constructor; you probably meant 'QtPrivate::QForeachContainer (const QtPrivate::QForeachContainer&)' QForeachContainer(QForeachContainer &&other) ^ /usr/include/qt5/QtCore/qglobal.h:995:52: error: expected ',' or '...' before '&&' token QForeachContainer &operator=(QForeachContainer &&other) ^~ /usr/include/qt5/QtCore/qglobal.h: In constructor 'QtPrivate::QForeachContainer::QForeachContainer(T)': /usr/include/qt5/QtCore/qglobal.h:985:39: error: 'move' is not a member of 'std' QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^~~~ /usr/include/qt5/QtCore/qglobal.h:985:39: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:985:44: error: 't' was not declared in this scope QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^ /usr/include/qt5/QtCore/qglobal.h: In member function 'QtPrivate::QForeachContainer& QtPrivate::QForeachContainer::operator=(QtPrivate::QForeachContainer)': /usr/include/qt5/QtCore/qglobal.h:997:18: error: 'move' is not a member of 'std' c = std::move(other.c); ^~~~ /usr/include/qt5/QtCore/qglobal.h:997:18: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:997:23: error: 'other' was not declared in this scope c = std::move(other.c); ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1000:24: error: 'move' is not a member of 'std' control = std::move(other.control); ^~~~ /usr/include/qt5/QtCore/qglobal.h:1000:24: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h: At global scope: /usr/include/qt5/QtCore/qglobal.h:1010:33: error: 'decay' in namespace 'std' does not name a template type QForeachContainer::type> qMakeForeachContainer(T &&t) ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1010:38: error: expected template-argument before '<' token QForeachContainer::type> qMakeForeachContainer(T &&t) ^ /usr/include/qt5/QtCore/qglobal.h:1010:38: error: expected '>' before '<' token /usr/include/qt5/QtCore/qglobal.h:1010:47: error: template argument 1 is invalid QForeachContainer::type> qMakeForeachContainer(T &&t) ^ /usr/include/qt5/QtCore/qglobal.h:1010:73: error: expected ',' or '...' before '&&' token QForeachContainer::type> qMakeForeachContainer(T &&t) ^~ /usr/include/qt5/QtCore/qglobal.h: In function 'int QtPrivate::qMakeForeachContainer(T)': /usr/include/qt5/QtCore/qglobal.h:1012:44: error: 'decay' in namespace 'std' does not name a template type return QForeachContainer::type>(std::forward(t)); ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:49: error: expected template-argument before '<' token return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:49: error: expected '>' before '<' token /usr/include/qt5/QtCore/qglobal.h:1012:58: error: template argument 1 is invalid return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:65: error: 'forward' is not a member of 'std' return QForeachContainer::type>(std::forward(t)); ^~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:65: note: 'std::forward' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:1012:76: error: 't' was not declared in this scope return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:65: error: 'forward' is not a member of 'std' return QForeachContainer::type>(std::forward(t)); ^~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:65: note: 'std::forward' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:1012:74: error: expected primary-expression before '>' token return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h: At global scope: /usr/include/qt5/QtCore/qglobal.h:1055:70: error: expected type-specifier before 'decltype' template inline auto qGetPtrHelper(const Ptr &ptr) -> decltype(ptr.operator->()) { return ptr.operator->(); } ^~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1055:70: error: expected initializer before 'decltype' /usr/include/qt5/QtCore/qglobal.h:1189:79: error: 'nullptr' was not declared in this scope Q_CORE_EXPORT int qEnvironmentVariableIntValue(const char *varName, bool *ok=nullptr) Q_DECL_NOEXCEPT; ^~~~~~~ In file included from /usr/include/qt5/QtCore/qglobal.h:1218, from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/abstractmarkupbuilder.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/bbcodebuilder.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/bbcodebuilder.cpp:21: /usr/include/qt5/QtCore/qtypeinfo.h:53:8: error: 'constexpr' does not name a type static constexpr bool qIsRelocatable() ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:53:8: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qtypeinfo.h:63:8: error: 'constexpr' does not name a type static constexpr bool qIsTrivial() ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:63:8: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qtypeinfo.h:81:30: error: 'is_enum' is not a member of 'std' isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:81:39: error: expected primary-expression before '>' token isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^ /usr/include/qt5/QtCore/qtypeinfo.h:81:42: error: '::value' has not been declared isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:81:42: note: suggested alternative: 'valloc' isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~ valloc /usr/include/qt5/QtCore/qtypeinfo.h:83:27: error: 'is_integral' is not a member of 'std' isIntegral = std::is_integral::value, ^~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:83:40: error: expected primary-expression before '>' token isIntegral = std::is_integral::value, ^ /usr/include/qt5/QtCore/qtypeinfo.h:83:43: error: '::value' has not been declared isIntegral = std::is_integral::value, ^~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:83:43: note: suggested alternative: 'valloc' isIntegral = std::is_integral::value, ^~~~~ valloc /usr/include/qt5/QtCore/qtypeinfo.h:84:22: error: 'qIsTrivial' was not declared in this scope isComplex = !qIsTrivial(), ^~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:84:22: note: suggested alternative: 'qCritical' isComplex = !qIsTrivial(), ^~~~~~~~~~ qCritical /usr/include/qt5/QtCore/qtypeinfo.h:84:34: error: expected primary-expression before '>' token isComplex = !qIsTrivial(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:84:36: error: expected primary-expression before ')' token isComplex = !qIsTrivial(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:86:25: error: 'qIsRelocatable' was not declared in this scope isRelocatable = qIsRelocatable(), ^~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:86:41: error: expected primary-expression before '>' token isRelocatable = qIsRelocatable(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:86:43: error: expected primary-expression before ')' token isRelocatable = qIsRelocatable(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:150:40: error: 'enable_if' in namespace 'std' does not name a template type struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:150:40: note: suggested alternative: 'replace_if' struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^~~~~~~~~ replace_if /usr/include/qt5/QtCore/qtypeinfo.h:150:49: error: expected template-argument before '<' token struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ /usr/include/qt5/QtCore/qtypeinfo.h:150:49: error: expected '>' before '<' token /usr/include/qt5/QtCore/qtypeinfo.h:150:92: error: template argument 2 is invalid struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'qIsTrivial' was not declared in this scope Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: note: suggested alternative: 'qCritical' /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before ')' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'qIsRelocatable' was not declared in this scope Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before ')' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'is_integral' is not a member of 'std' Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: '::value' has not been declared Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: note: suggested alternative: 'valloc' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: 'qIsTrivial' was not declared in this scope Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: note: suggested alternative: 'qCritical' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected primary-expression before 'bool' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected '}' before 'bool' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: note: to match this '{' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected unqualified-id before '>' token Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected declaration before '}' token Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ make[2]: *** [textdocument/lib/CMakeFiles/Grantlee_TextDocument.dir/build.make:79: textdocument/lib/CMakeFiles/Grantlee_TextDocument.dir/bbcodebuilder.cpp.o] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' make[2]: *** Waiting for unfinished jobs.... make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' [ 7%] Building CXX object textdocument/lib/CMakeFiles/Grantlee_TextDocument.dir/markupdirector.cpp.o cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/lib && /usr/bin/c++ -DGrantlee_TextDocument_EXPORTS -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DQT_STRICT_ITERATORS -DQT_USE_QSTRINGBUILDER -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/lib -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/lib/Grantlee_TextDocument_autogen/include -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-check-new -fno-common -pedantic-errors -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -o CMakeFiles/Grantlee_TextDocument.dir/markupdirector.cpp.o -c /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/markupdirector.cpp In file included from /usr/include/c++/8.3.1/type_traits:35, from /usr/include/qt5/QtCore/qglobal.h:45, from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/abstractmarkupbuilder.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/markupdirector.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/markupdirector.cpp:21: /usr/include/c++/8.3.1/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options. #error This file requires compiler and library support \ ^~~~~ In file included from /usr/include/qt5/QtCore/qglobal.h:105, from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/abstractmarkupbuilder.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/markupdirector.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/markupdirector.cpp:21: /usr/include/qt5/QtCore/qcompilerdetection.h:564:6: error: #error Qt requires a C++11 compiler and yours does not seem to be that. # error Qt requires a C++11 compiler and yours does not seem to be that. ^~~~~ In file included from /usr/include/qt5/QtCore/qatomic.h:46, from /usr/include/qt5/QtCore/qglobal.h:1224, from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/abstractmarkupbuilder.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/markupdirector.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/markupdirector.cpp:21: /usr/include/qt5/QtCore/qbasicatomic.h:61:4: error: #error "Qt requires C++11 support" # error "Qt requires C++11 support" ^~~~~ In file included from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/abstractmarkupbuilder.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/markupdirector.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/markupdirector.cpp:21: /usr/include/qt5/QtCore/qglobal.h:513:7: error: expected nested-name-specifier before 'qsizetype' using qsizetype = QIntegerForSizeof::Signed; ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:602:1: error: 'constexpr' does not name a type constexpr inline const T &qMin(const T &a, const T &b) { return (a < b) ? a : b; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:602:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qglobal.h:604:1: error: 'constexpr' does not name a type constexpr inline const T &qMax(const T &a, const T &b) { return (a < b) ? b : a; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:604:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qglobal.h:606:1: error: 'constexpr' does not name a type constexpr inline const T &qBound(const T &min, const T &val, const T &max) ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:606:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 In file included from /usr/include/qt5/QtCore/qglobal.h:105, from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/abstractmarkupbuilder.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/markupdirector.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/markupdirector.cpp:21: /usr/include/qt5/QtCore/qglobal.h:835:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyCompare(double p1, double p2) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:840:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyCompare(float p1, float p2) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:845:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNull(double d) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:850:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNull(float f) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:860:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT static inline Q_DECL_UNUSED bool qIsNull(double d) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:876:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT static inline Q_DECL_UNUSED bool qIsNull(float f) ^~~~~~~~~~~~~~~~~ In file included from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/abstractmarkupbuilder.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/markupdirector.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/markupdirector.cpp:21: /usr/include/qt5/QtCore/qglobal.h:971:32: error: 'add_const' in namespace 'std' does not name a template type Q_DECL_CONSTEXPR typename std::add_const::type &qAsConst(T &t) Q_DECL_NOTHROW { return t; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:971:41: error: expected unqualified-id before '<' token Q_DECL_CONSTEXPR typename std::add_const::type &qAsConst(T &t) Q_DECL_NOTHROW { return t; } ^ /usr/include/qt5/QtCore/qglobal.h:974:23: error: expected ',' or '...' before '&&' token void qAsConst(const T &&) Q_DECL_EQ_DELETE; ^~ /usr/include/qt5/QtCore/qglobal.h:985:25: error: expected ',' or '...' before '&&' token QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^~ /usr/include/qt5/QtCore/qglobal.h:987:41: error: expected ',' or '...' before '&&' token QForeachContainer(QForeachContainer &&other) ^~ /usr/include/qt5/QtCore/qglobal.h:987:48: error: invalid constructor; you probably meant 'QtPrivate::QForeachContainer (const QtPrivate::QForeachContainer&)' QForeachContainer(QForeachContainer &&other) ^ /usr/include/qt5/QtCore/qglobal.h:995:52: error: expected ',' or '...' before '&&' token QForeachContainer &operator=(QForeachContainer &&other) ^~ /usr/include/qt5/QtCore/qglobal.h: In constructor 'QtPrivate::QForeachContainer::QForeachContainer(T)': /usr/include/qt5/QtCore/qglobal.h:985:39: error: 'move' is not a member of 'std' QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^~~~ /usr/include/qt5/QtCore/qglobal.h:985:39: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:985:44: error: 't' was not declared in this scope QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^ /usr/include/qt5/QtCore/qglobal.h: In member function 'QtPrivate::QForeachContainer& QtPrivate::QForeachContainer::operator=(QtPrivate::QForeachContainer)': /usr/include/qt5/QtCore/qglobal.h:997:18: error: 'move' is not a member of 'std' c = std::move(other.c); ^~~~ /usr/include/qt5/QtCore/qglobal.h:997:18: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:997:23: error: 'other' was not declared in this scope c = std::move(other.c); ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1000:24: error: 'move' is not a member of 'std' control = std::move(other.control); ^~~~ /usr/include/qt5/QtCore/qglobal.h:1000:24: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h: At global scope: /usr/include/qt5/QtCore/qglobal.h:1010:33: error: 'decay' in namespace 'std' does not name a template type QForeachContainer::type> qMakeForeachContainer(T &&t) ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1010:38: error: expected template-argument before '<' token QForeachContainer::type> qMakeForeachContainer(T &&t) ^ /usr/include/qt5/QtCore/qglobal.h:1010:38: error: expected '>' before '<' token /usr/include/qt5/QtCore/qglobal.h:1010:47: error: template argument 1 is invalid QForeachContainer::type> qMakeForeachContainer(T &&t) ^ /usr/include/qt5/QtCore/qglobal.h:1010:73: error: expected ',' or '...' before '&&' token QForeachContainer::type> qMakeForeachContainer(T &&t) ^~ /usr/include/qt5/QtCore/qglobal.h: In function 'int QtPrivate::qMakeForeachContainer(T)': /usr/include/qt5/QtCore/qglobal.h:1012:44: error: 'decay' in namespace 'std' does not name a template type return QForeachContainer::type>(std::forward(t)); ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:49: error: expected template-argument before '<' token return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:49: error: expected '>' before '<' token /usr/include/qt5/QtCore/qglobal.h:1012:58: error: template argument 1 is invalid return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:65: error: 'forward' is not a member of 'std' return QForeachContainer::type>(std::forward(t)); ^~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:65: note: 'std::forward' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:1012:76: error: 't' was not declared in this scope return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:65: error: 'forward' is not a member of 'std' return QForeachContainer::type>(std::forward(t)); ^~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:65: note: 'std::forward' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:1012:74: error: expected primary-expression before '>' token return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h: At global scope: /usr/include/qt5/QtCore/qglobal.h:1055:70: error: expected type-specifier before 'decltype' template inline auto qGetPtrHelper(const Ptr &ptr) -> decltype(ptr.operator->()) { return ptr.operator->(); } ^~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1055:70: error: expected initializer before 'decltype' /usr/include/qt5/QtCore/qglobal.h:1189:79: error: 'nullptr' was not declared in this scope Q_CORE_EXPORT int qEnvironmentVariableIntValue(const char *varName, bool *ok=nullptr) Q_DECL_NOEXCEPT; ^~~~~~~ In file included from /usr/include/qt5/QtCore/qglobal.h:1218, from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/abstractmarkupbuilder.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/markupdirector.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/markupdirector.cpp:21: /usr/include/qt5/QtCore/qtypeinfo.h:53:8: error: 'constexpr' does not name a type static constexpr bool qIsRelocatable() ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:53:8: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qtypeinfo.h:63:8: error: 'constexpr' does not name a type static constexpr bool qIsTrivial() ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:63:8: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qtypeinfo.h:81:30: error: 'is_enum' is not a member of 'std' isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:81:39: error: expected primary-expression before '>' token isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^ /usr/include/qt5/QtCore/qtypeinfo.h:81:42: error: '::value' has not been declared isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:81:42: note: suggested alternative: 'valloc' isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~ valloc /usr/include/qt5/QtCore/qtypeinfo.h:83:27: error: 'is_integral' is not a member of 'std' isIntegral = std::is_integral::value, ^~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:83:40: error: expected primary-expression before '>' token isIntegral = std::is_integral::value, ^ /usr/include/qt5/QtCore/qtypeinfo.h:83:43: error: '::value' has not been declared isIntegral = std::is_integral::value, ^~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:83:43: note: suggested alternative: 'valloc' isIntegral = std::is_integral::value, ^~~~~ valloc /usr/include/qt5/QtCore/qtypeinfo.h:84:22: error: 'qIsTrivial' was not declared in this scope isComplex = !qIsTrivial(), ^~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:84:22: note: suggested alternative: 'qCritical' isComplex = !qIsTrivial(), ^~~~~~~~~~ qCritical /usr/include/qt5/QtCore/qtypeinfo.h:84:34: error: expected primary-expression before '>' token isComplex = !qIsTrivial(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:84:36: error: expected primary-expression before ')' token isComplex = !qIsTrivial(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:86:25: error: 'qIsRelocatable' was not declared in this scope isRelocatable = qIsRelocatable(), ^~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:86:41: error: expected primary-expression before '>' token isRelocatable = qIsRelocatable(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:86:43: error: expected primary-expression before ')' token isRelocatable = qIsRelocatable(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:150:40: error: 'enable_if' in namespace 'std' does not name a template type struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:150:40: note: suggested alternative: 'replace_if' struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^~~~~~~~~ replace_if /usr/include/qt5/QtCore/qtypeinfo.h:150:49: error: expected template-argument before '<' token struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ /usr/include/qt5/QtCore/qtypeinfo.h:150:49: error: expected '>' before '<' token /usr/include/qt5/QtCore/qtypeinfo.h:150:92: error: template argument 2 is invalid struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'qIsTrivial' was not declared in this scope Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: note: suggested alternative: 'qCritical' /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before ')' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'qIsRelocatable' was not declared in this scope Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before ')' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'is_integral' is not a member of 'std' Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: '::value' has not been declared Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: note: suggested alternative: 'valloc' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: 'qIsTrivial' was not declared in this scope Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: note: suggested alternative: 'qCritical' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected primary-expression before 'bool' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected '}' before 'bool' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: note: to match this '{' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected unqualified-id before '>' token Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected declaration before '}' token Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ make[2]: *** [textdocument/lib/CMakeFiles/Grantlee_TextDocument.dir/build.make:92: textdocument/lib/CMakeFiles/Grantlee_TextDocument.dir/markupdirector.cpp.o] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' [ 8%] Building CXX object textdocument/lib/CMakeFiles/Grantlee_TextDocument.dir/plaintextmarkupbuilder.cpp.o cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/lib && /usr/bin/c++ -DGrantlee_TextDocument_EXPORTS -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DQT_STRICT_ITERATORS -DQT_USE_QSTRINGBUILDER -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/lib -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/lib/Grantlee_TextDocument_autogen/include -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-check-new -fno-common -pedantic-errors -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -o CMakeFiles/Grantlee_TextDocument.dir/plaintextmarkupbuilder.cpp.o -c /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/plaintextmarkupbuilder.cpp In file included from /usr/include/c++/8.3.1/type_traits:35, from /usr/include/qt5/QtCore/qglobal.h:45, from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/abstractmarkupbuilder.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/plaintextmarkupbuilder.h:31, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/plaintextmarkupbuilder.cpp:21: /usr/include/c++/8.3.1/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options. #error This file requires compiler and library support \ ^~~~~ In file included from /usr/include/qt5/QtCore/qglobal.h:105, from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/abstractmarkupbuilder.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/plaintextmarkupbuilder.h:31, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/plaintextmarkupbuilder.cpp:21: /usr/include/qt5/QtCore/qcompilerdetection.h:564:6: error: #error Qt requires a C++11 compiler and yours does not seem to be that. # error Qt requires a C++11 compiler and yours does not seem to be that. ^~~~~ In file included from /usr/include/qt5/QtCore/qatomic.h:46, from /usr/include/qt5/QtCore/qglobal.h:1224, from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/abstractmarkupbuilder.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/plaintextmarkupbuilder.h:31, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/plaintextmarkupbuilder.cpp:21: /usr/include/qt5/QtCore/qbasicatomic.h:61:4: error: #error "Qt requires C++11 support" # error "Qt requires C++11 support" ^~~~~ In file included from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/abstractmarkupbuilder.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/plaintextmarkupbuilder.h:31, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/plaintextmarkupbuilder.cpp:21: /usr/include/qt5/QtCore/qglobal.h:513:7: error: expected nested-name-specifier before 'qsizetype' using qsizetype = QIntegerForSizeof::Signed; ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:602:1: error: 'constexpr' does not name a type constexpr inline const T &qMin(const T &a, const T &b) { return (a < b) ? a : b; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:602:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qglobal.h:604:1: error: 'constexpr' does not name a type constexpr inline const T &qMax(const T &a, const T &b) { return (a < b) ? b : a; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:604:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qglobal.h:606:1: error: 'constexpr' does not name a type constexpr inline const T &qBound(const T &min, const T &val, const T &max) ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:606:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 In file included from /usr/include/qt5/QtCore/qglobal.h:105, from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/abstractmarkupbuilder.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/plaintextmarkupbuilder.h:31, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/plaintextmarkupbuilder.cpp:21: /usr/include/qt5/QtCore/qglobal.h:835:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyCompare(double p1, double p2) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:840:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyCompare(float p1, float p2) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:845:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNull(double d) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:850:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNull(float f) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:860:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT static inline Q_DECL_UNUSED bool qIsNull(double d) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:876:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT static inline Q_DECL_UNUSED bool qIsNull(float f) ^~~~~~~~~~~~~~~~~ In file included from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/abstractmarkupbuilder.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/plaintextmarkupbuilder.h:31, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/plaintextmarkupbuilder.cpp:21: /usr/include/qt5/QtCore/qglobal.h:971:32: error: 'add_const' in namespace 'std' does not name a template type Q_DECL_CONSTEXPR typename std::add_const::type &qAsConst(T &t) Q_DECL_NOTHROW { return t; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:971:41: error: expected unqualified-id before '<' token Q_DECL_CONSTEXPR typename std::add_const::type &qAsConst(T &t) Q_DECL_NOTHROW { return t; } ^ /usr/include/qt5/QtCore/qglobal.h:974:23: error: expected ',' or '...' before '&&' token void qAsConst(const T &&) Q_DECL_EQ_DELETE; ^~ /usr/include/qt5/QtCore/qglobal.h:985:25: error: expected ',' or '...' before '&&' token QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^~ /usr/include/qt5/QtCore/qglobal.h:987:41: error: expected ',' or '...' before '&&' token QForeachContainer(QForeachContainer &&other) ^~ /usr/include/qt5/QtCore/qglobal.h:987:48: error: invalid constructor; you probably meant 'QtPrivate::QForeachContainer (const QtPrivate::QForeachContainer&)' QForeachContainer(QForeachContainer &&other) ^ /usr/include/qt5/QtCore/qglobal.h:995:52: error: expected ',' or '...' before '&&' token QForeachContainer &operator=(QForeachContainer &&other) ^~ /usr/include/qt5/QtCore/qglobal.h: In constructor 'QtPrivate::QForeachContainer::QForeachContainer(T)': /usr/include/qt5/QtCore/qglobal.h:985:39: error: 'move' is not a member of 'std' QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^~~~ /usr/include/qt5/QtCore/qglobal.h:985:39: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:985:44: error: 't' was not declared in this scope QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^ /usr/include/qt5/QtCore/qglobal.h: In member function 'QtPrivate::QForeachContainer& QtPrivate::QForeachContainer::operator=(QtPrivate::QForeachContainer)': /usr/include/qt5/QtCore/qglobal.h:997:18: error: 'move' is not a member of 'std' c = std::move(other.c); ^~~~ /usr/include/qt5/QtCore/qglobal.h:997:18: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:997:23: error: 'other' was not declared in this scope c = std::move(other.c); ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1000:24: error: 'move' is not a member of 'std' control = std::move(other.control); ^~~~ /usr/include/qt5/QtCore/qglobal.h:1000:24: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h: At global scope: /usr/include/qt5/QtCore/qglobal.h:1010:33: error: 'decay' in namespace 'std' does not name a template type QForeachContainer::type> qMakeForeachContainer(T &&t) ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1010:38: error: expected template-argument before '<' token QForeachContainer::type> qMakeForeachContainer(T &&t) ^ /usr/include/qt5/QtCore/qglobal.h:1010:38: error: expected '>' before '<' token /usr/include/qt5/QtCore/qglobal.h:1010:47: error: template argument 1 is invalid QForeachContainer::type> qMakeForeachContainer(T &&t) ^ /usr/include/qt5/QtCore/qglobal.h:1010:73: error: expected ',' or '...' before '&&' token QForeachContainer::type> qMakeForeachContainer(T &&t) ^~ /usr/include/qt5/QtCore/qglobal.h: In function 'int QtPrivate::qMakeForeachContainer(T)': /usr/include/qt5/QtCore/qglobal.h:1012:44: error: 'decay' in namespace 'std' does not name a template type return QForeachContainer::type>(std::forward(t)); ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:49: error: expected template-argument before '<' token return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:49: error: expected '>' before '<' token /usr/include/qt5/QtCore/qglobal.h:1012:58: error: template argument 1 is invalid return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:65: error: 'forward' is not a member of 'std' return QForeachContainer::type>(std::forward(t)); ^~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:65: note: 'std::forward' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:1012:76: error: 't' was not declared in this scope return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:65: error: 'forward' is not a member of 'std' return QForeachContainer::type>(std::forward(t)); ^~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:65: note: 'std::forward' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:1012:74: error: expected primary-expression before '>' token return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h: At global scope: /usr/include/qt5/QtCore/qglobal.h:1055:70: error: expected type-specifier before 'decltype' template inline auto qGetPtrHelper(const Ptr &ptr) -> decltype(ptr.operator->()) { return ptr.operator->(); } ^~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1055:70: error: expected initializer before 'decltype' /usr/include/qt5/QtCore/qglobal.h:1189:79: error: 'nullptr' was not declared in this scope Q_CORE_EXPORT int qEnvironmentVariableIntValue(const char *varName, bool *ok=nullptr) Q_DECL_NOEXCEPT; ^~~~~~~ In file included from /usr/include/qt5/QtCore/qglobal.h:1218, from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/abstractmarkupbuilder.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/plaintextmarkupbuilder.h:31, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/plaintextmarkupbuilder.cpp:21: /usr/include/qt5/QtCore/qtypeinfo.h:53:8: error: 'constexpr' does not name a type static constexpr bool qIsRelocatable() ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:53:8: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qtypeinfo.h:63:8: error: 'constexpr' does not name a type static constexpr bool qIsTrivial() ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:63:8: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qtypeinfo.h:81:30: error: 'is_enum' is not a member of 'std' isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:81:39: error: expected primary-expression before '>' token isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^ /usr/include/qt5/QtCore/qtypeinfo.h:81:42: error: '::value' has not been declared isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:81:42: note: suggested alternative: 'valloc' isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~ valloc /usr/include/qt5/QtCore/qtypeinfo.h:83:27: error: 'is_integral' is not a member of 'std' isIntegral = std::is_integral::value, ^~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:83:40: error: expected primary-expression before '>' token isIntegral = std::is_integral::value, ^ /usr/include/qt5/QtCore/qtypeinfo.h:83:43: error: '::value' has not been declared isIntegral = std::is_integral::value, ^~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:83:43: note: suggested alternative: 'valloc' isIntegral = std::is_integral::value, ^~~~~ valloc /usr/include/qt5/QtCore/qtypeinfo.h:84:22: error: 'qIsTrivial' was not declared in this scope isComplex = !qIsTrivial(), ^~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:84:22: note: suggested alternative: 'qCritical' isComplex = !qIsTrivial(), ^~~~~~~~~~ qCritical /usr/include/qt5/QtCore/qtypeinfo.h:84:34: error: expected primary-expression before '>' token isComplex = !qIsTrivial(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:84:36: error: expected primary-expression before ')' token isComplex = !qIsTrivial(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:86:25: error: 'qIsRelocatable' was not declared in this scope isRelocatable = qIsRelocatable(), ^~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:86:41: error: expected primary-expression before '>' token isRelocatable = qIsRelocatable(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:86:43: error: expected primary-expression before ')' token isRelocatable = qIsRelocatable(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:150:40: error: 'enable_if' in namespace 'std' does not name a template type struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:150:40: note: suggested alternative: 'replace_if' struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^~~~~~~~~ replace_if /usr/include/qt5/QtCore/qtypeinfo.h:150:49: error: expected template-argument before '<' token struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ /usr/include/qt5/QtCore/qtypeinfo.h:150:49: error: expected '>' before '<' token /usr/include/qt5/QtCore/qtypeinfo.h:150:92: error: template argument 2 is invalid struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'qIsTrivial' was not declared in this scope Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: note: suggested alternative: 'qCritical' /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before ')' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'qIsRelocatable' was not declared in this scope Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before ')' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'is_integral' is not a member of 'std' Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: '::value' has not been declared Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: note: suggested alternative: 'valloc' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: 'qIsTrivial' was not declared in this scope Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: note: suggested alternative: 'qCritical' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected primary-expression before 'bool' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected '}' before 'bool' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: note: to match this '{' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected unqualified-id before '>' token Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected declaration before '}' token Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ make[2]: *** [textdocument/lib/CMakeFiles/Grantlee_TextDocument.dir/build.make:105: textdocument/lib/CMakeFiles/Grantlee_TextDocument.dir/plaintextmarkupbuilder.cpp.o] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' [ 9%] Building CXX object templates/tests/pluginpointertest/CMakeFiles/myplugin.dir/myplugin_autogen/mocs_compilation.cpp.o cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/pluginpointertest && /usr/bin/c++ -DQT_CORE_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DQT_STRICT_ITERATORS -DQT_USE_QSTRINGBUILDER -Dmyplugin_EXPORTS -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/pluginpointertest -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests/pluginpointertest -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/pluginpointertest/myplugin_autogen/include -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-check-new -fno-common -pedantic-errors -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -o CMakeFiles/myplugin.dir/myplugin_autogen/mocs_compilation.cpp.o -c /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/pluginpointertest/myplugin_autogen/mocs_compilation.cpp In file included from /usr/include/c++/8.3.1/type_traits:35, from /usr/include/qt5/QtCore/qglobal.h:45, from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/pluginpointertest/myplugin_autogen/EWIEGA46WW/../../../../../../templates/tests/pluginpointertest/myobject.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/pluginpointertest/myplugin_autogen/EWIEGA46WW/moc_myobject.cpp:10, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/pluginpointertest/myplugin_autogen/mocs_compilation.cpp:2: /usr/include/c++/8.3.1/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options. #error This file requires compiler and library support \ ^~~~~ In file included from /usr/include/qt5/QtCore/qglobal.h:105, from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/pluginpointertest/myplugin_autogen/EWIEGA46WW/../../../../../../templates/tests/pluginpointertest/myobject.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/pluginpointertest/myplugin_autogen/EWIEGA46WW/moc_myobject.cpp:10, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/pluginpointertest/myplugin_autogen/mocs_compilation.cpp:2: /usr/include/qt5/QtCore/qcompilerdetection.h:564:6: error: #error Qt requires a C++11 compiler and yours does not seem to be that. # error Qt requires a C++11 compiler and yours does not seem to be that. ^~~~~ In file included from /usr/include/qt5/QtCore/qatomic.h:46, from /usr/include/qt5/QtCore/qglobal.h:1224, from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/pluginpointertest/myplugin_autogen/EWIEGA46WW/../../../../../../templates/tests/pluginpointertest/myobject.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/pluginpointertest/myplugin_autogen/EWIEGA46WW/moc_myobject.cpp:10, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/pluginpointertest/myplugin_autogen/mocs_compilation.cpp:2: /usr/include/qt5/QtCore/qbasicatomic.h:61:4: error: #error "Qt requires C++11 support" # error "Qt requires C++11 support" ^~~~~ In file included from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/pluginpointertest/myplugin_autogen/EWIEGA46WW/../../../../../../templates/tests/pluginpointertest/myobject.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/pluginpointertest/myplugin_autogen/EWIEGA46WW/moc_myobject.cpp:10, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/pluginpointertest/myplugin_autogen/mocs_compilation.cpp:2: /usr/include/qt5/QtCore/qglobal.h:513:7: error: expected nested-name-specifier before 'qsizetype' using qsizetype = QIntegerForSizeof::Signed; ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:602:1: error: 'constexpr' does not name a type constexpr inline const T &qMin(const T &a, const T &b) { return (a < b) ? a : b; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:602:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qglobal.h:604:1: error: 'constexpr' does not name a type constexpr inline const T &qMax(const T &a, const T &b) { return (a < b) ? b : a; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:604:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qglobal.h:606:1: error: 'constexpr' does not name a type constexpr inline const T &qBound(const T &min, const T &val, const T &max) ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:606:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 In file included from /usr/include/qt5/QtCore/qglobal.h:105, from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/pluginpointertest/myplugin_autogen/EWIEGA46WW/../../../../../../templates/tests/pluginpointertest/myobject.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/pluginpointertest/myplugin_autogen/EWIEGA46WW/moc_myobject.cpp:10, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/pluginpointertest/myplugin_autogen/mocs_compilation.cpp:2: /usr/include/qt5/QtCore/qglobal.h:835:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyCompare(double p1, double p2) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:840:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyCompare(float p1, float p2) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:845:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNull(double d) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:850:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNull(float f) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:860:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT static inline Q_DECL_UNUSED bool qIsNull(double d) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:876:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT static inline Q_DECL_UNUSED bool qIsNull(float f) ^~~~~~~~~~~~~~~~~ In file included from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/pluginpointertest/myplugin_autogen/EWIEGA46WW/../../../../../../templates/tests/pluginpointertest/myobject.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/pluginpointertest/myplugin_autogen/EWIEGA46WW/moc_myobject.cpp:10, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/pluginpointertest/myplugin_autogen/mocs_compilation.cpp:2: /usr/include/qt5/QtCore/qglobal.h:971:32: error: 'add_const' in namespace 'std' does not name a template type Q_DECL_CONSTEXPR typename std::add_const::type &qAsConst(T &t) Q_DECL_NOTHROW { return t; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:971:41: error: expected unqualified-id before '<' token Q_DECL_CONSTEXPR typename std::add_const::type &qAsConst(T &t) Q_DECL_NOTHROW { return t; } ^ /usr/include/qt5/QtCore/qglobal.h:974:23: error: expected ',' or '...' before '&&' token void qAsConst(const T &&) Q_DECL_EQ_DELETE; ^~ /usr/include/qt5/QtCore/qglobal.h:985:25: error: expected ',' or '...' before '&&' token QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^~ /usr/include/qt5/QtCore/qglobal.h:987:41: error: expected ',' or '...' before '&&' token QForeachContainer(QForeachContainer &&other) ^~ /usr/include/qt5/QtCore/qglobal.h:987:48: error: invalid constructor; you probably meant 'QtPrivate::QForeachContainer (const QtPrivate::QForeachContainer&)' QForeachContainer(QForeachContainer &&other) ^ /usr/include/qt5/QtCore/qglobal.h:995:52: error: expected ',' or '...' before '&&' token QForeachContainer &operator=(QForeachContainer &&other) ^~ /usr/include/qt5/QtCore/qglobal.h: In constructor 'QtPrivate::QForeachContainer::QForeachContainer(T)': /usr/include/qt5/QtCore/qglobal.h:985:39: error: 'move' is not a member of 'std' QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^~~~ /usr/include/qt5/QtCore/qglobal.h:985:39: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:985:44: error: 't' was not declared in this scope QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^ /usr/include/qt5/QtCore/qglobal.h: In member function 'QtPrivate::QForeachContainer& QtPrivate::QForeachContainer::operator=(QtPrivate::QForeachContainer)': /usr/include/qt5/QtCore/qglobal.h:997:18: error: 'move' is not a member of 'std' c = std::move(other.c); ^~~~ /usr/include/qt5/QtCore/qglobal.h:997:18: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:997:23: error: 'other' was not declared in this scope c = std::move(other.c); ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1000:24: error: 'move' is not a member of 'std' control = std::move(other.control); ^~~~ /usr/include/qt5/QtCore/qglobal.h:1000:24: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h: At global scope: /usr/include/qt5/QtCore/qglobal.h:1010:33: error: 'decay' in namespace 'std' does not name a template type QForeachContainer::type> qMakeForeachContainer(T &&t) ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1010:38: error: expected template-argument before '<' token QForeachContainer::type> qMakeForeachContainer(T &&t) ^ /usr/include/qt5/QtCore/qglobal.h:1010:38: error: expected '>' before '<' token /usr/include/qt5/QtCore/qglobal.h:1010:47: error: template argument 1 is invalid QForeachContainer::type> qMakeForeachContainer(T &&t) ^ /usr/include/qt5/QtCore/qglobal.h:1010:73: error: expected ',' or '...' before '&&' token QForeachContainer::type> qMakeForeachContainer(T &&t) ^~ /usr/include/qt5/QtCore/qglobal.h: In function 'int QtPrivate::qMakeForeachContainer(T)': /usr/include/qt5/QtCore/qglobal.h:1012:44: error: 'decay' in namespace 'std' does not name a template type return QForeachContainer::type>(std::forward(t)); ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:49: error: expected template-argument before '<' token return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:49: error: expected '>' before '<' token /usr/include/qt5/QtCore/qglobal.h:1012:58: error: template argument 1 is invalid return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:65: error: 'forward' is not a member of 'std' return QForeachContainer::type>(std::forward(t)); ^~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:65: note: 'std::forward' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:1012:76: error: 't' was not declared in this scope return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:65: error: 'forward' is not a member of 'std' return QForeachContainer::type>(std::forward(t)); ^~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:65: note: 'std::forward' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:1012:74: error: expected primary-expression before '>' token return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h: At global scope: /usr/include/qt5/QtCore/qglobal.h:1055:70: error: expected type-specifier before 'decltype' template inline auto qGetPtrHelper(const Ptr &ptr) -> decltype(ptr.operator->()) { return ptr.operator->(); } ^~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1055:70: error: expected initializer before 'decltype' /usr/include/qt5/QtCore/qglobal.h:1189:79: error: 'nullptr' was not declared in this scope Q_CORE_EXPORT int qEnvironmentVariableIntValue(const char *varName, bool *ok=nullptr) Q_DECL_NOEXCEPT; ^~~~~~~ In file included from /usr/include/qt5/QtCore/qglobal.h:1218, from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/pluginpointertest/myplugin_autogen/EWIEGA46WW/../../../../../../templates/tests/pluginpointertest/myobject.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/pluginpointertest/myplugin_autogen/EWIEGA46WW/moc_myobject.cpp:10, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/pluginpointertest/myplugin_autogen/mocs_compilation.cpp:2: /usr/include/qt5/QtCore/qtypeinfo.h:53:8: error: 'constexpr' does not name a type static constexpr bool qIsRelocatable() ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:53:8: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qtypeinfo.h:63:8: error: 'constexpr' does not name a type static constexpr bool qIsTrivial() ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:63:8: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qtypeinfo.h:81:30: error: 'is_enum' is not a member of 'std' isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:81:39: error: expected primary-expression before '>' token isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^ /usr/include/qt5/QtCore/qtypeinfo.h:81:42: error: '::value' has not been declared isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:81:42: note: suggested alternative: 'valloc' isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~ valloc /usr/include/qt5/QtCore/qtypeinfo.h:83:27: error: 'is_integral' is not a member of 'std' isIntegral = std::is_integral::value, ^~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:83:40: error: expected primary-expression before '>' token isIntegral = std::is_integral::value, ^ /usr/include/qt5/QtCore/qtypeinfo.h:83:43: error: '::value' has not been declared isIntegral = std::is_integral::value, ^~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:83:43: note: suggested alternative: 'valloc' isIntegral = std::is_integral::value, ^~~~~ valloc /usr/include/qt5/QtCore/qtypeinfo.h:84:22: error: 'qIsTrivial' was not declared in this scope isComplex = !qIsTrivial(), ^~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:84:22: note: suggested alternative: 'qCritical' isComplex = !qIsTrivial(), ^~~~~~~~~~ qCritical /usr/include/qt5/QtCore/qtypeinfo.h:84:34: error: expected primary-expression before '>' token isComplex = !qIsTrivial(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:84:36: error: expected primary-expression before ')' token isComplex = !qIsTrivial(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:86:25: error: 'qIsRelocatable' was not declared in this scope isRelocatable = qIsRelocatable(), ^~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:86:41: error: expected primary-expression before '>' token isRelocatable = qIsRelocatable(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:86:43: error: expected primary-expression before ')' token isRelocatable = qIsRelocatable(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:150:40: error: 'enable_if' in namespace 'std' does not name a template type struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:150:40: note: suggested alternative: 'replace_if' struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^~~~~~~~~ replace_if /usr/include/qt5/QtCore/qtypeinfo.h:150:49: error: expected template-argument before '<' token struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ /usr/include/qt5/QtCore/qtypeinfo.h:150:49: error: expected '>' before '<' token /usr/include/qt5/QtCore/qtypeinfo.h:150:92: error: template argument 2 is invalid struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'qIsTrivial' was not declared in this scope Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: note: suggested alternative: 'qCritical' /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before ')' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'qIsRelocatable' was not declared in this scope Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before ')' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'is_integral' is not a member of 'std' Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: '::value' has not been declared Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: note: suggested alternative: 'valloc' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: 'qIsTrivial' was not declared in this scope Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: note: suggested alternative: 'qCritical' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected primary-expression before 'bool' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected '}' before 'bool' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: note: to match this '{' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected unqualified-id before '>' token Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected declaration before '}' token Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ make[2]: *** [templates/tests/pluginpointertest/CMakeFiles/myplugin.dir/build.make:66: templates/tests/pluginpointertest/CMakeFiles/myplugin.dir/myplugin_autogen/mocs_compilation.cpp.o] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' make[2]: *** Waiting for unfinished jobs.... /usr/bin/make -f templates/lib/CMakeFiles/Grantlee_Templates.dir/build.make templates/lib/CMakeFiles/Grantlee_Templates.dir/depend make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' [ 11%] Building CXX object textdocument/tests/CMakeFiles/textdocument_test_builtins.dir/coverageobject.cpp.o cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/tests && /usr/bin/c++ -DQT_CORE_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DQT_STRICT_ITERATORS -DQT_TESTCASE_BUILDDIR=\"/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build\" -DQT_TESTLIB_LIB -DQT_USE_QSTRINGBUILDER -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/tests -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/tests -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/tests/textdocument_test_builtins_autogen/include -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtTest -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-check-new -fno-common -pedantic-errors -DNDEBUG -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -o CMakeFiles/textdocument_test_builtins.dir/coverageobject.cpp.o -c /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/tests/coverageobject.cpp In file included from /usr/include/c++/8.3.1/type_traits:35, from /usr/include/qt5/QtCore/qglobal.h:45, from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/tests/coverageobject.h:3, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/tests/coverageobject.cpp:1: /usr/include/c++/8.3.1/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options. #error This file requires compiler and library support \ ^~~~~ In file included from /usr/include/qt5/QtCore/qglobal.h:105, from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/tests/coverageobject.h:3, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/tests/coverageobject.cpp:1: /usr/include/qt5/QtCore/qcompilerdetection.h:564:6: error: #error Qt requires a C++11 compiler and yours does not seem to be that. # error Qt requires a C++11 compiler and yours does not seem to be that. ^~~~~ In file included from /usr/include/qt5/QtCore/qatomic.h:46, from /usr/include/qt5/QtCore/qglobal.h:1224, from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/tests/coverageobject.h:3, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/tests/coverageobject.cpp:1: /usr/include/qt5/QtCore/qbasicatomic.h:61:4: error: #error "Qt requires C++11 support" # error "Qt requires C++11 support" ^~~~~ In file included from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/tests/coverageobject.h:3, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/tests/coverageobject.cpp:1: /usr/include/qt5/QtCore/qglobal.h:513:7: error: expected nested-name-specifier before 'qsizetype' using qsizetype = QIntegerForSizeof::Signed; ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:602:1: error: 'constexpr' does not name a type constexpr inline const T &qMin(const T &a, const T &b) { return (a < b) ? a : b; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:602:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qglobal.h:604:1: error: 'constexpr' does not name a type constexpr inline const T &qMax(const T &a, const T &b) { return (a < b) ? b : a; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:604:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qglobal.h:606:1: error: 'constexpr' does not name a type constexpr inline const T &qBound(const T &min, const T &val, const T &max) ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:606:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 In file included from /usr/include/qt5/QtCore/qglobal.h:105, from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/tests/coverageobject.h:3, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/tests/coverageobject.cpp:1: /usr/include/qt5/QtCore/qglobal.h:835:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyCompare(double p1, double p2) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:840:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyCompare(float p1, float p2) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:845:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNull(double d) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:850:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNull(float f) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:860:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT static inline Q_DECL_UNUSED bool qIsNull(double d) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:876:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT static inline Q_DECL_UNUSED bool qIsNull(float f) ^~~~~~~~~~~~~~~~~ In file included from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/tests/coverageobject.h:3, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/tests/coverageobject.cpp:1: /usr/include/qt5/QtCore/qglobal.h:971:32: error: 'add_const' in namespace 'std' does not name a template type Q_DECL_CONSTEXPR typename std::add_const::type &qAsConst(T &t) Q_DECL_NOTHROW { return t; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:971:41: error: expected unqualified-id before '<' token Q_DECL_CONSTEXPR typename std::add_const::type &qAsConst(T &t) Q_DECL_NOTHROW { return t; } ^ /usr/include/qt5/QtCore/qglobal.h:974:23: error: expected ',' or '...' before '&&' token void qAsConst(const T &&) Q_DECL_EQ_DELETE; ^~ /usr/include/qt5/QtCore/qglobal.h:985:25: error: expected ',' or '...' before '&&' token QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^~ /usr/include/qt5/QtCore/qglobal.h:987:41: error: expected ',' or '...' before '&&' token QForeachContainer(QForeachContainer &&other) ^~ /usr/include/qt5/QtCore/qglobal.h:987:48: error: invalid constructor; you probably meant 'QtPrivate::QForeachContainer (const QtPrivate::QForeachContainer&)' QForeachContainer(QForeachContainer &&other) ^ /usr/include/qt5/QtCore/qglobal.h:995:52: error: expected ',' or '...' before '&&' token QForeachContainer &operator=(QForeachContainer &&other) ^~ /usr/include/qt5/QtCore/qglobal.h: In constructor 'QtPrivate::QForeachContainer::QForeachContainer(T)': /usr/include/qt5/QtCore/qglobal.h:985:39: error: 'move' is not a member of 'std' QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^~~~ /usr/include/qt5/QtCore/qglobal.h:985:39: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:985:44: error: 't' was not declared in this scope QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^ /usr/include/qt5/QtCore/qglobal.h: In member function 'QtPrivate::QForeachContainer& QtPrivate::QForeachContainer::operator=(QtPrivate::QForeachContainer)': /usr/include/qt5/QtCore/qglobal.h:997:18: error: 'move' is not a member of 'std' c = std::move(other.c); ^~~~ /usr/include/qt5/QtCore/qglobal.h:997:18: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:997:23: error: 'other' was not declared in this scope c = std::move(other.c); ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1000:24: error: 'move' is not a member of 'std' control = std::move(other.control); ^~~~ /usr/include/qt5/QtCore/qglobal.h:1000:24: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h: At global scope: /usr/include/qt5/QtCore/qglobal.h:1010:33: error: 'decay' in namespace 'std' does not name a template type QForeachContainer::type> qMakeForeachContainer(T &&t) ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1010:38: error: expected template-argument before '<' token QForeachContainer::type> qMakeForeachContainer(T &&t) ^ /usr/include/qt5/QtCore/qglobal.h:1010:38: error: expected '>' before '<' token /usr/include/qt5/QtCore/qglobal.h:1010:47: error: template argument 1 is invalid QForeachContainer::type> qMakeForeachContainer(T &&t) ^ /usr/include/qt5/QtCore/qglobal.h:1010:73: error: expected ',' or '...' before '&&' token QForeachContainer::type> qMakeForeachContainer(T &&t) ^~ /usr/include/qt5/QtCore/qglobal.h: In function 'int QtPrivate::qMakeForeachContainer(T)': /usr/include/qt5/QtCore/qglobal.h:1012:44: error: 'decay' in namespace 'std' does not name a template type return QForeachContainer::type>(std::forward(t)); ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:49: error: expected template-argument before '<' token return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:49: error: expected '>' before '<' token /usr/include/qt5/QtCore/qglobal.h:1012:58: error: template argument 1 is invalid return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:65: error: 'forward' is not a member of 'std' return QForeachContainer::type>(std::forward(t)); ^~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:65: note: 'std::forward' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:1012:76: error: 't' was not declared in this scope return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:65: error: 'forward' is not a member of 'std' return QForeachContainer::type>(std::forward(t)); ^~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:65: note: 'std::forward' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:1012:74: error: expected primary-expression before '>' token return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h: At global scope: /usr/include/qt5/QtCore/qglobal.h:1055:70: error: expected type-specifier before 'decltype' template inline auto qGetPtrHelper(const Ptr &ptr) -> decltype(ptr.operator->()) { return ptr.operator->(); } ^~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1055:70: error: expected initializer before 'decltype' /usr/include/qt5/QtCore/qglobal.h:1189:79: error: 'nullptr' was not declared in this scope Q_CORE_EXPORT int qEnvironmentVariableIntValue(const char *varName, bool *ok=nullptr) Q_DECL_NOEXCEPT; ^~~~~~~ In file included from /usr/include/qt5/QtCore/qglobal.h:1218, from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/tests/coverageobject.h:3, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/tests/coverageobject.cpp:1: /usr/include/qt5/QtCore/qtypeinfo.h:53:8: error: 'constexpr' does not name a type static constexpr bool qIsRelocatable() ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:53:8: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qtypeinfo.h:63:8: error: 'constexpr' does not name a type static constexpr bool qIsTrivial() ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:63:8: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qtypeinfo.h:81:30: error: 'is_enum' is not a member of 'std' isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:81:39: error: expected primary-expression before '>' token isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^ /usr/include/qt5/QtCore/qtypeinfo.h:81:42: error: '::value' has not been declared isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:81:42: note: suggested alternative: 'valloc' isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~ valloc /usr/include/qt5/QtCore/qtypeinfo.h:83:27: error: 'is_integral' is not a member of 'std' isIntegral = std::is_integral::value, ^~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:83:40: error: expected primary-expression before '>' token isIntegral = std::is_integral::value, ^ /usr/include/qt5/QtCore/qtypeinfo.h:83:43: error: '::value' has not been declared isIntegral = std::is_integral::value, ^~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:83:43: note: suggested alternative: 'valloc' isIntegral = std::is_integral::value, ^~~~~ valloc /usr/include/qt5/QtCore/qtypeinfo.h:84:22: error: 'qIsTrivial' was not declared in this scope isComplex = !qIsTrivial(), ^~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:84:22: note: suggested alternative: 'qCritical' isComplex = !qIsTrivial(), ^~~~~~~~~~ qCritical /usr/include/qt5/QtCore/qtypeinfo.h:84:34: error: expected primary-expression before '>' token isComplex = !qIsTrivial(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:84:36: error: expected primary-expression before ')' token isComplex = !qIsTrivial(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:86:25: error: 'qIsRelocatable' was not declared in this scope isRelocatable = qIsRelocatable(), ^~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:86:41: error: expected primary-expression before '>' token isRelocatable = qIsRelocatable(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:86:43: error: expected primary-expression before ')' token isRelocatable = qIsRelocatable(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:150:40: error: 'enable_if' in namespace 'std' does not name a template type struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:150:40: note: suggested alternative: 'replace_if' struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^~~~~~~~~ replace_if /usr/include/qt5/QtCore/qtypeinfo.h:150:49: error: expected template-argument before '<' token struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ /usr/include/qt5/QtCore/qtypeinfo.h:150:49: error: expected '>' before '<' token /usr/include/qt5/QtCore/qtypeinfo.h:150:92: error: template argument 2 is invalid struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'qIsTrivial' was not declared in this scope Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: note: suggested alternative: 'qCritical' /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before ')' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'qIsRelocatable' was not declared in this scope Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before ')' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'is_integral' is not a member of 'std' Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: '::value' has not been declared Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: note: suggested alternative: 'valloc' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: 'qIsTrivial' was not declared in this scope Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: note: suggested alternative: 'qCritical' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected primary-expression before 'bool' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected '}' before 'bool' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: note: to match this '{' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected unqualified-id before '>' token Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected declaration before '}' token Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ make[2]: *** [textdocument/tests/CMakeFiles/textdocument_test_builtins.dir/build.make:79: textdocument/tests/CMakeFiles/textdocument_test_builtins.dir/coverageobject.cpp.o] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' make[1]: *** [CMakeFiles/Makefile2:1521: textdocument/tests/CMakeFiles/textdocument_test_builtins.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' [ 12%] Building CXX object templates/tests/CMakeFiles/template_test_builtins.dir/template_test_builtins_autogen/mocs_compilation.cpp.o cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests && /usr/bin/c++ -DQT_CORE_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DQT_STRICT_ITERATORS -DQT_TESTCASE_BUILDDIR=\"/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build\" -DQT_TESTLIB_LIB -DQT_USE_QSTRINGBUILDER -Dcxx_auto_type -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/template_test_builtins_autogen/include -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtTest -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-check-new -fno-common -pedantic-errors -DNDEBUG -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -o CMakeFiles/template_test_builtins.dir/template_test_builtins_autogen/mocs_compilation.cpp.o -c /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/template_test_builtins_autogen/mocs_compilation.cpp In file included from /usr/include/c++/8.3.1/type_traits:35, from /usr/include/qt5/QtCore/qglobal.h:45, from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/template_test_builtins_autogen/EWIEGA46WW/../../../../../templates/tests/coverageobject.h:3, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/template_test_builtins_autogen/EWIEGA46WW/moc_coverageobject.cpp:10, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/template_test_builtins_autogen/mocs_compilation.cpp:2: /usr/include/c++/8.3.1/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options. #error This file requires compiler and library support \ ^~~~~ In file included from /usr/include/qt5/QtCore/qglobal.h:105, from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/template_test_builtins_autogen/EWIEGA46WW/../../../../../templates/tests/coverageobject.h:3, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/template_test_builtins_autogen/EWIEGA46WW/moc_coverageobject.cpp:10, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/template_test_builtins_autogen/mocs_compilation.cpp:2: /usr/include/qt5/QtCore/qcompilerdetection.h:564:6: error: #error Qt requires a C++11 compiler and yours does not seem to be that. # error Qt requires a C++11 compiler and yours does not seem to be that. ^~~~~ In file included from /usr/include/qt5/QtCore/qatomic.h:46, from /usr/include/qt5/QtCore/qglobal.h:1224, from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/template_test_builtins_autogen/EWIEGA46WW/../../../../../templates/tests/coverageobject.h:3, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/template_test_builtins_autogen/EWIEGA46WW/moc_coverageobject.cpp:10, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/template_test_builtins_autogen/mocs_compilation.cpp:2: /usr/include/qt5/QtCore/qbasicatomic.h:61:4: error: #error "Qt requires C++11 support" # error "Qt requires C++11 support" ^~~~~ In file included from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/template_test_builtins_autogen/EWIEGA46WW/../../../../../templates/tests/coverageobject.h:3, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/template_test_builtins_autogen/EWIEGA46WW/moc_coverageobject.cpp:10, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/template_test_builtins_autogen/mocs_compilation.cpp:2: /usr/include/qt5/QtCore/qglobal.h:513:7: error: expected nested-name-specifier before 'qsizetype' using qsizetype = QIntegerForSizeof::Signed; ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:602:1: error: 'constexpr' does not name a type constexpr inline const T &qMin(const T &a, const T &b) { return (a < b) ? a : b; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:602:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qglobal.h:604:1: error: 'constexpr' does not name a type constexpr inline const T &qMax(const T &a, const T &b) { return (a < b) ? b : a; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:604:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qglobal.h:606:1: error: 'constexpr' does not name a type constexpr inline const T &qBound(const T &min, const T &val, const T &max) ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:606:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 In file included from /usr/include/qt5/QtCore/qglobal.h:105, from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/template_test_builtins_autogen/EWIEGA46WW/../../../../../templates/tests/coverageobject.h:3, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/template_test_builtins_autogen/EWIEGA46WW/moc_coverageobject.cpp:10, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/template_test_builtins_autogen/mocs_compilation.cpp:2: /usr/include/qt5/QtCore/qglobal.h:835:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyCompare(double p1, double p2) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:840:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyCompare(float p1, float p2) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:845:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNull(double d) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:850:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNull(float f) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:860:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT static inline Q_DECL_UNUSED bool qIsNull(double d) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:876:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT static inline Q_DECL_UNUSED bool qIsNull(float f) ^~~~~~~~~~~~~~~~~ In file included from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/template_test_builtins_autogen/EWIEGA46WW/../../../../../templates/tests/coverageobject.h:3, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/template_test_builtins_autogen/EWIEGA46WW/moc_coverageobject.cpp:10, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/template_test_builtins_autogen/mocs_compilation.cpp:2: /usr/include/qt5/QtCore/qglobal.h:971:32: error: 'add_const' in namespace 'std' does not name a template type Q_DECL_CONSTEXPR typename std::add_const::type &qAsConst(T &t) Q_DECL_NOTHROW { return t; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:971:41: error: expected unqualified-id before '<' token Q_DECL_CONSTEXPR typename std::add_const::type &qAsConst(T &t) Q_DECL_NOTHROW { return t; } ^ /usr/include/qt5/QtCore/qglobal.h:974:23: error: expected ',' or '...' before '&&' token void qAsConst(const T &&) Q_DECL_EQ_DELETE; ^~ /usr/include/qt5/QtCore/qglobal.h:985:25: error: expected ',' or '...' before '&&' token QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^~ /usr/include/qt5/QtCore/qglobal.h:987:41: error: expected ',' or '...' before '&&' token QForeachContainer(QForeachContainer &&other) ^~ /usr/include/qt5/QtCore/qglobal.h:987:48: error: invalid constructor; you probably meant 'QtPrivate::QForeachContainer (const QtPrivate::QForeachContainer&)' QForeachContainer(QForeachContainer &&other) ^ /usr/include/qt5/QtCore/qglobal.h:995:52: error: expected ',' or '...' before '&&' token QForeachContainer &operator=(QForeachContainer &&other) ^~ /usr/include/qt5/QtCore/qglobal.h: In constructor 'QtPrivate::QForeachContainer::QForeachContainer(T)': /usr/include/qt5/QtCore/qglobal.h:985:39: error: 'move' is not a member of 'std' QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^~~~ /usr/include/qt5/QtCore/qglobal.h:985:39: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:985:44: error: 't' was not declared in this scope QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^ /usr/include/qt5/QtCore/qglobal.h: In member function 'QtPrivate::QForeachContainer& QtPrivate::QForeachContainer::operator=(QtPrivate::QForeachContainer)': /usr/include/qt5/QtCore/qglobal.h:997:18: error: 'move' is not a member of 'std' c = std::move(other.c); ^~~~ /usr/include/qt5/QtCore/qglobal.h:997:18: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:997:23: error: 'other' was not declared in this scope c = std::move(other.c); ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1000:24: error: 'move' is not a member of 'std' control = std::move(other.control); ^~~~ /usr/include/qt5/QtCore/qglobal.h:1000:24: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h: At global scope: /usr/include/qt5/QtCore/qglobal.h:1010:33: error: 'decay' in namespace 'std' does not name a template type QForeachContainer::type> qMakeForeachContainer(T &&t) ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1010:38: error: expected template-argument before '<' token QForeachContainer::type> qMakeForeachContainer(T &&t) ^ /usr/include/qt5/QtCore/qglobal.h:1010:38: error: expected '>' before '<' token /usr/include/qt5/QtCore/qglobal.h:1010:47: error: template argument 1 is invalid QForeachContainer::type> qMakeForeachContainer(T &&t) ^ /usr/include/qt5/QtCore/qglobal.h:1010:73: error: expected ',' or '...' before '&&' token QForeachContainer::type> qMakeForeachContainer(T &&t) ^~ /usr/include/qt5/QtCore/qglobal.h: In function 'int QtPrivate::qMakeForeachContainer(T)': /usr/include/qt5/QtCore/qglobal.h:1012:44: error: 'decay' in namespace 'std' does not name a template type return QForeachContainer::type>(std::forward(t)); ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:49: error: expected template-argument before '<' token return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:49: error: expected '>' before '<' token /usr/include/qt5/QtCore/qglobal.h:1012:58: error: template argument 1 is invalid return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:65: error: 'forward' is not a member of 'std' return QForeachContainer::type>(std::forward(t)); ^~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:65: note: 'std::forward' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:1012:76: error: 't' was not declared in this scope return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:65: error: 'forward' is not a member of 'std' return QForeachContainer::type>(std::forward(t)); ^~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:65: note: 'std::forward' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:1012:74: error: expected primary-expression before '>' token return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h: At global scope: /usr/include/qt5/QtCore/qglobal.h:1055:70: error: expected type-specifier before 'decltype' template inline auto qGetPtrHelper(const Ptr &ptr) -> decltype(ptr.operator->()) { return ptr.operator->(); } ^~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1055:70: error: expected initializer before 'decltype' /usr/include/qt5/QtCore/qglobal.h:1189:79: error: 'nullptr' was not declared in this scope Q_CORE_EXPORT int qEnvironmentVariableIntValue(const char *varName, bool *ok=nullptr) Q_DECL_NOEXCEPT; ^~~~~~~ In file included from /usr/include/qt5/QtCore/qglobal.h:1218, from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/template_test_builtins_autogen/EWIEGA46WW/../../../../../templates/tests/coverageobject.h:3, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/template_test_builtins_autogen/EWIEGA46WW/moc_coverageobject.cpp:10, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/template_test_builtins_autogen/mocs_compilation.cpp:2: /usr/include/qt5/QtCore/qtypeinfo.h:53:8: error: 'constexpr' does not name a type static constexpr bool qIsRelocatable() ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:53:8: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qtypeinfo.h:63:8: error: 'constexpr' does not name a type static constexpr bool qIsTrivial() ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:63:8: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qtypeinfo.h:81:30: error: 'is_enum' is not a member of 'std' isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:81:39: error: expected primary-expression before '>' token isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^ /usr/include/qt5/QtCore/qtypeinfo.h:81:42: error: '::value' has not been declared isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:81:42: note: suggested alternative: 'valloc' isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~ valloc /usr/include/qt5/QtCore/qtypeinfo.h:83:27: error: 'is_integral' is not a member of 'std' isIntegral = std::is_integral::value, ^~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:83:40: error: expected primary-expression before '>' token isIntegral = std::is_integral::value, ^ /usr/include/qt5/QtCore/qtypeinfo.h:83:43: error: '::value' has not been declared isIntegral = std::is_integral::value, ^~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:83:43: note: suggested alternative: 'valloc' isIntegral = std::is_integral::value, ^~~~~ valloc /usr/include/qt5/QtCore/qtypeinfo.h:84:22: error: 'qIsTrivial' was not declared in this scope isComplex = !qIsTrivial(), ^~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:84:22: note: suggested alternative: 'qCritical' isComplex = !qIsTrivial(), ^~~~~~~~~~ qCritical /usr/include/qt5/QtCore/qtypeinfo.h:84:34: error: expected primary-expression before '>' token isComplex = !qIsTrivial(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:84:36: error: expected primary-expression before ')' token isComplex = !qIsTrivial(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:86:25: error: 'qIsRelocatable' was not declared in this scope isRelocatable = qIsRelocatable(), ^~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:86:41: error: expected primary-expression before '>' token isRelocatable = qIsRelocatable(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:86:43: error: expected primary-expression before ')' token isRelocatable = qIsRelocatable(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:150:40: error: 'enable_if' in namespace 'std' does not name a template type struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:150:40: note: suggested alternative: 'replace_if' struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^~~~~~~~~ replace_if /usr/include/qt5/QtCore/qtypeinfo.h:150:49: error: expected template-argument before '<' token struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ /usr/include/qt5/QtCore/qtypeinfo.h:150:49: error: expected '>' before '<' token /usr/include/qt5/QtCore/qtypeinfo.h:150:92: error: template argument 2 is invalid struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'qIsTrivial' was not declared in this scope Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: note: suggested alternative: 'qCritical' /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before ')' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'qIsRelocatable' was not declared in this scope Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before ')' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'is_integral' is not a member of 'std' Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: '::value' has not been declared Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: note: suggested alternative: 'valloc' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: 'qIsTrivial' was not declared in this scope Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: note: suggested alternative: 'qCritical' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected primary-expression before 'bool' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected '}' before 'bool' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: note: to match this '{' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected unqualified-id before '>' token Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected declaration before '}' token Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ make[2]: *** [templates/tests/CMakeFiles/template_test_builtins.dir/build.make:84: templates/tests/CMakeFiles/template_test_builtins.dir/template_test_builtins_autogen/mocs_compilation.cpp.o] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' make[2]: *** Waiting for unfinished jobs.... make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' [ 8%] Building CXX object textdocument/lib/CMakeFiles/Grantlee_TextDocument.dir/texthtmlbuilder.cpp.o cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/lib && /usr/bin/c++ -DGrantlee_TextDocument_EXPORTS -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DQT_STRICT_ITERATORS -DQT_USE_QSTRINGBUILDER -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/lib -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/lib/Grantlee_TextDocument_autogen/include -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-check-new -fno-common -pedantic-errors -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -o CMakeFiles/Grantlee_TextDocument.dir/texthtmlbuilder.cpp.o -c /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/texthtmlbuilder.cpp In file included from /usr/include/c++/8.3.1/type_traits:35, from /usr/include/qt5/QtCore/qglobal.h:45, from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/abstractmarkupbuilder.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/texthtmlbuilder.h:28, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/texthtmlbuilder.cpp:21: /usr/include/c++/8.3.1/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options. #error This file requires compiler and library support \ ^~~~~ In file included from /usr/include/qt5/QtCore/qglobal.h:105, from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/abstractmarkupbuilder.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/texthtmlbuilder.h:28, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/texthtmlbuilder.cpp:21: /usr/include/qt5/QtCore/qcompilerdetection.h:564:6: error: #error Qt requires a C++11 compiler and yours does not seem to be that. # error Qt requires a C++11 compiler and yours does not seem to be that. ^~~~~ In file included from /usr/include/qt5/QtCore/qatomic.h:46, from /usr/include/qt5/QtCore/qglobal.h:1224, from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/abstractmarkupbuilder.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/texthtmlbuilder.h:28, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/texthtmlbuilder.cpp:21: /usr/include/qt5/QtCore/qbasicatomic.h:61:4: error: #error "Qt requires C++11 support" # error "Qt requires C++11 support" ^~~~~ In file included from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/abstractmarkupbuilder.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/texthtmlbuilder.h:28, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/texthtmlbuilder.cpp:21: /usr/include/qt5/QtCore/qglobal.h:513:7: error: expected nested-name-specifier before 'qsizetype' using qsizetype = QIntegerForSizeof::Signed; ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:602:1: error: 'constexpr' does not name a type constexpr inline const T &qMin(const T &a, const T &b) { return (a < b) ? a : b; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:602:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qglobal.h:604:1: error: 'constexpr' does not name a type constexpr inline const T &qMax(const T &a, const T &b) { return (a < b) ? b : a; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:604:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qglobal.h:606:1: error: 'constexpr' does not name a type constexpr inline const T &qBound(const T &min, const T &val, const T &max) ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:606:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 In file included from /usr/include/qt5/QtCore/qglobal.h:105, from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/abstractmarkupbuilder.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/texthtmlbuilder.h:28, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/texthtmlbuilder.cpp:21: /usr/include/qt5/QtCore/qglobal.h:835:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyCompare(double p1, double p2) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:840:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyCompare(float p1, float p2) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:845:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNull(double d) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:850:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNull(float f) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:860:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT static inline Q_DECL_UNUSED bool qIsNull(double d) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:876:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT static inline Q_DECL_UNUSED bool qIsNull(float f) ^~~~~~~~~~~~~~~~~ In file included from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/abstractmarkupbuilder.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/texthtmlbuilder.h:28, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/texthtmlbuilder.cpp:21: /usr/include/qt5/QtCore/qglobal.h:971:32: error: 'add_const' in namespace 'std' does not name a template type Q_DECL_CONSTEXPR typename std::add_const::type &qAsConst(T &t) Q_DECL_NOTHROW { return t; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:971:41: error: expected unqualified-id before '<' token Q_DECL_CONSTEXPR typename std::add_const::type &qAsConst(T &t) Q_DECL_NOTHROW { return t; } ^ /usr/include/qt5/QtCore/qglobal.h:974:23: error: expected ',' or '...' before '&&' token void qAsConst(const T &&) Q_DECL_EQ_DELETE; ^~ /usr/include/qt5/QtCore/qglobal.h:985:25: error: expected ',' or '...' before '&&' token QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^~ /usr/include/qt5/QtCore/qglobal.h:987:41: error: expected ',' or '...' before '&&' token QForeachContainer(QForeachContainer &&other) ^~ /usr/include/qt5/QtCore/qglobal.h:987:48: error: invalid constructor; you probably meant 'QtPrivate::QForeachContainer (const QtPrivate::QForeachContainer&)' QForeachContainer(QForeachContainer &&other) ^ /usr/include/qt5/QtCore/qglobal.h:995:52: error: expected ',' or '...' before '&&' token QForeachContainer &operator=(QForeachContainer &&other) ^~ /usr/include/qt5/QtCore/qglobal.h: In constructor 'QtPrivate::QForeachContainer::QForeachContainer(T)': /usr/include/qt5/QtCore/qglobal.h:985:39: error: 'move' is not a member of 'std' QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^~~~ /usr/include/qt5/QtCore/qglobal.h:985:39: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:985:44: error: 't' was not declared in this scope QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^ /usr/include/qt5/QtCore/qglobal.h: In member function 'QtPrivate::QForeachContainer& QtPrivate::QForeachContainer::operator=(QtPrivate::QForeachContainer)': /usr/include/qt5/QtCore/qglobal.h:997:18: error: 'move' is not a member of 'std' c = std::move(other.c); ^~~~ /usr/include/qt5/QtCore/qglobal.h:997:18: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:997:23: error: 'other' was not declared in this scope c = std::move(other.c); ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1000:24: error: 'move' is not a member of 'std' control = std::move(other.control); ^~~~ /usr/include/qt5/QtCore/qglobal.h:1000:24: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h: At global scope: /usr/include/qt5/QtCore/qglobal.h:1010:33: error: 'decay' in namespace 'std' does not name a template type QForeachContainer::type> qMakeForeachContainer(T &&t) ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1010:38: error: expected template-argument before '<' token QForeachContainer::type> qMakeForeachContainer(T &&t) ^ /usr/include/qt5/QtCore/qglobal.h:1010:38: error: expected '>' before '<' token /usr/include/qt5/QtCore/qglobal.h:1010:47: error: template argument 1 is invalid QForeachContainer::type> qMakeForeachContainer(T &&t) ^ /usr/include/qt5/QtCore/qglobal.h:1010:73: error: expected ',' or '...' before '&&' token QForeachContainer::type> qMakeForeachContainer(T &&t) ^~ /usr/include/qt5/QtCore/qglobal.h: In function 'int QtPrivate::qMakeForeachContainer(T)': /usr/include/qt5/QtCore/qglobal.h:1012:44: error: 'decay' in namespace 'std' does not name a template type return QForeachContainer::type>(std::forward(t)); ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:49: error: expected template-argument before '<' token return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:49: error: expected '>' before '<' token /usr/include/qt5/QtCore/qglobal.h:1012:58: error: template argument 1 is invalid return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:65: error: 'forward' is not a member of 'std' return QForeachContainer::type>(std::forward(t)); ^~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:65: note: 'std::forward' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:1012:76: error: 't' was not declared in this scope return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:65: error: 'forward' is not a member of 'std' return QForeachContainer::type>(std::forward(t)); ^~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:65: note: 'std::forward' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:1012:74: error: expected primary-expression before '>' token return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h: At global scope: /usr/include/qt5/QtCore/qglobal.h:1055:70: error: expected type-specifier before 'decltype' template inline auto qGetPtrHelper(const Ptr &ptr) -> decltype(ptr.operator->()) { return ptr.operator->(); } ^~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1055:70: error: expected initializer before 'decltype' /usr/include/qt5/QtCore/qglobal.h:1189:79: error: 'nullptr' was not declared in this scope Q_CORE_EXPORT int qEnvironmentVariableIntValue(const char *varName, bool *ok=nullptr) Q_DECL_NOEXCEPT; ^~~~~~~ In file included from /usr/include/qt5/QtCore/qglobal.h:1218, from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/abstractmarkupbuilder.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/texthtmlbuilder.h:28, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/texthtmlbuilder.cpp:21: /usr/include/qt5/QtCore/qtypeinfo.h:53:8: error: 'constexpr' does not name a type static constexpr bool qIsRelocatable() ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:53:8: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qtypeinfo.h:63:8: error: 'constexpr' does not name a type static constexpr bool qIsTrivial() ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:63:8: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qtypeinfo.h:81:30: error: 'is_enum' is not a member of 'std' isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:81:39: error: expected primary-expression before '>' token isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^ /usr/include/qt5/QtCore/qtypeinfo.h:81:42: error: '::value' has not been declared isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:81:42: note: suggested alternative: 'valloc' isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~ valloc /usr/include/qt5/QtCore/qtypeinfo.h:83:27: error: 'is_integral' is not a member of 'std' isIntegral = std::is_integral::value, ^~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:83:40: error: expected primary-expression before '>' token isIntegral = std::is_integral::value, ^ /usr/include/qt5/QtCore/qtypeinfo.h:83:43: error: '::value' has not been declared isIntegral = std::is_integral::value, ^~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:83:43: note: suggested alternative: 'valloc' isIntegral = std::is_integral::value, ^~~~~ valloc /usr/include/qt5/QtCore/qtypeinfo.h:84:22: error: 'qIsTrivial' was not declared in this scope isComplex = !qIsTrivial(), ^~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:84:22: note: suggested alternative: 'qCritical' isComplex = !qIsTrivial(), ^~~~~~~~~~ qCritical /usr/include/qt5/QtCore/qtypeinfo.h:84:34: error: expected primary-expression before '>' token isComplex = !qIsTrivial(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:84:36: error: expected primary-expression before ')' token isComplex = !qIsTrivial(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:86:25: error: 'qIsRelocatable' was not declared in this scope isRelocatable = qIsRelocatable(), ^~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:86:41: error: expected primary-expression before '>' token isRelocatable = qIsRelocatable(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:86:43: error: expected primary-expression before ')' token isRelocatable = qIsRelocatable(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:150:40: error: 'enable_if' in namespace 'std' does not name a template type struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:150:40: note: suggested alternative: 'replace_if' struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^~~~~~~~~ replace_if /usr/include/qt5/QtCore/qtypeinfo.h:150:49: error: expected template-argument before '<' token struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ /usr/include/qt5/QtCore/qtypeinfo.h:150:49: error: expected '>' before '<' token /usr/include/qt5/QtCore/qtypeinfo.h:150:92: error: template argument 2 is invalid struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'qIsTrivial' was not declared in this scope Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: note: suggested alternative: 'qCritical' /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before ')' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'qIsRelocatable' was not declared in this scope Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before ')' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'is_integral' is not a member of 'std' Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: '::value' has not been declared Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: note: suggested alternative: 'valloc' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: 'qIsTrivial' was not declared in this scope Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: note: suggested alternative: 'qCritical' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected primary-expression before 'bool' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected '}' before 'bool' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: note: to match this '{' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected unqualified-id before '>' token Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected declaration before '}' token Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ make[2]: *** [textdocument/lib/CMakeFiles/Grantlee_TextDocument.dir/build.make:118: textdocument/lib/CMakeFiles/Grantlee_TextDocument.dir/texthtmlbuilder.cpp.o] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' [ 14%] Building CXX object templates/tests/CMakeFiles/template_test_builtins.dir/qrc_testresource.cpp.o cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests && /usr/bin/c++ -DQT_CORE_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DQT_STRICT_ITERATORS -DQT_TESTCASE_BUILDDIR=\"/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build\" -DQT_TESTLIB_LIB -DQT_USE_QSTRINGBUILDER -Dcxx_auto_type -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/template_test_builtins_autogen/include -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtTest -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-check-new -fno-common -pedantic-errors -DNDEBUG -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -o CMakeFiles/template_test_builtins.dir/qrc_testresource.cpp.o -c /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/qrc_testresource.cpp make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0 /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/CMakeFiles/Grantlee_Templates.dir/DependInfo.cmake --color= Scanning dependencies of target Grantlee_Templates make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' /usr/bin/make -f templates/lib/CMakeFiles/Grantlee_Templates.dir/build.make templates/lib/CMakeFiles/Grantlee_Templates.dir/build make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' [ 12%] Building CXX object templates/tests/CMakeFiles/template_test_builtins.dir/coverageobject.cpp.o cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests && /usr/bin/c++ -DQT_CORE_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DQT_STRICT_ITERATORS -DQT_TESTCASE_BUILDDIR=\"/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build\" -DQT_TESTLIB_LIB -DQT_USE_QSTRINGBUILDER -Dcxx_auto_type -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/template_test_builtins_autogen/include -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtTest -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-check-new -fno-common -pedantic-errors -DNDEBUG -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -o CMakeFiles/template_test_builtins.dir/coverageobject.cpp.o -c /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests/coverageobject.cpp In file included from /usr/include/c++/8.3.1/type_traits:35, from /usr/include/qt5/QtCore/qglobal.h:45, from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests/coverageobject.h:3, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests/coverageobject.cpp:1: /usr/include/c++/8.3.1/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options. #error This file requires compiler and library support \ ^~~~~ In file included from /usr/include/qt5/QtCore/qglobal.h:105, from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests/coverageobject.h:3, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests/coverageobject.cpp:1: /usr/include/qt5/QtCore/qcompilerdetection.h:564:6: error: #error Qt requires a C++11 compiler and yours does not seem to be that. # error Qt requires a C++11 compiler and yours does not seem to be that. ^~~~~ In file included from /usr/include/qt5/QtCore/qatomic.h:46, from /usr/include/qt5/QtCore/qglobal.h:1224, from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests/coverageobject.h:3, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests/coverageobject.cpp:1: /usr/include/qt5/QtCore/qbasicatomic.h:61:4: error: #error "Qt requires C++11 support" # error "Qt requires C++11 support" ^~~~~ In file included from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests/coverageobject.h:3, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests/coverageobject.cpp:1: /usr/include/qt5/QtCore/qglobal.h:513:7: error: expected nested-name-specifier before 'qsizetype' using qsizetype = QIntegerForSizeof::Signed; ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:602:1: error: 'constexpr' does not name a type constexpr inline const T &qMin(const T &a, const T &b) { return (a < b) ? a : b; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:602:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qglobal.h:604:1: error: 'constexpr' does not name a type constexpr inline const T &qMax(const T &a, const T &b) { return (a < b) ? b : a; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:604:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qglobal.h:606:1: error: 'constexpr' does not name a type constexpr inline const T &qBound(const T &min, const T &val, const T &max) ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:606:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 In file included from /usr/include/qt5/QtCore/qglobal.h:105, from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests/coverageobject.h:3, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests/coverageobject.cpp:1: /usr/include/qt5/QtCore/qglobal.h:835:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyCompare(double p1, double p2) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:840:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyCompare(float p1, float p2) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:845:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNull(double d) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:850:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNull(float f) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:860:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT static inline Q_DECL_UNUSED bool qIsNull(double d) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:876:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT static inline Q_DECL_UNUSED bool qIsNull(float f) ^~~~~~~~~~~~~~~~~ In file included from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests/coverageobject.h:3, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests/coverageobject.cpp:1: /usr/include/qt5/QtCore/qglobal.h:971:32: error: 'add_const' in namespace 'std' does not name a template type Q_DECL_CONSTEXPR typename std::add_const::type &qAsConst(T &t) Q_DECL_NOTHROW { return t; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:971:41: error: expected unqualified-id before '<' token Q_DECL_CONSTEXPR typename std::add_const::type &qAsConst(T &t) Q_DECL_NOTHROW { return t; } ^ /usr/include/qt5/QtCore/qglobal.h:974:23: error: expected ',' or '...' before '&&' token void qAsConst(const T &&) Q_DECL_EQ_DELETE; ^~ /usr/include/qt5/QtCore/qglobal.h:985:25: error: expected ',' or '...' before '&&' token QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^~ /usr/include/qt5/QtCore/qglobal.h:987:41: error: expected ',' or '...' before '&&' token QForeachContainer(QForeachContainer &&other) ^~ /usr/include/qt5/QtCore/qglobal.h:987:48: error: invalid constructor; you probably meant 'QtPrivate::QForeachContainer (const QtPrivate::QForeachContainer&)' QForeachContainer(QForeachContainer &&other) ^ /usr/include/qt5/QtCore/qglobal.h:995:52: error: expected ',' or '...' before '&&' token QForeachContainer &operator=(QForeachContainer &&other) ^~ /usr/include/qt5/QtCore/qglobal.h: In constructor 'QtPrivate::QForeachContainer::QForeachContainer(T)': /usr/include/qt5/QtCore/qglobal.h:985:39: error: 'move' is not a member of 'std' QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^~~~ /usr/include/qt5/QtCore/qglobal.h:985:39: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:985:44: error: 't' was not declared in this scope QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^ /usr/include/qt5/QtCore/qglobal.h: In member function 'QtPrivate::QForeachContainer& QtPrivate::QForeachContainer::operator=(QtPrivate::QForeachContainer)': /usr/include/qt5/QtCore/qglobal.h:997:18: error: 'move' is not a member of 'std' c = std::move(other.c); ^~~~ /usr/include/qt5/QtCore/qglobal.h:997:18: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:997:23: error: 'other' was not declared in this scope c = std::move(other.c); ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1000:24: error: 'move' is not a member of 'std' control = std::move(other.control); ^~~~ /usr/include/qt5/QtCore/qglobal.h:1000:24: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h: At global scope: /usr/include/qt5/QtCore/qglobal.h:1010:33: error: 'decay' in namespace 'std' does not name a template type QForeachContainer::type> qMakeForeachContainer(T &&t) ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1010:38: error: expected template-argument before '<' token QForeachContainer::type> qMakeForeachContainer(T &&t) ^ /usr/include/qt5/QtCore/qglobal.h:1010:38: error: expected '>' before '<' token /usr/include/qt5/QtCore/qglobal.h:1010:47: error: template argument 1 is invalid QForeachContainer::type> qMakeForeachContainer(T &&t) ^ /usr/include/qt5/QtCore/qglobal.h:1010:73: error: expected ',' or '...' before '&&' token QForeachContainer::type> qMakeForeachContainer(T &&t) ^~ /usr/include/qt5/QtCore/qglobal.h: In function 'int QtPrivate::qMakeForeachContainer(T)': /usr/include/qt5/QtCore/qglobal.h:1012:44: error: 'decay' in namespace 'std' does not name a template type return QForeachContainer::type>(std::forward(t)); ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:49: error: expected template-argument before '<' token return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:49: error: expected '>' before '<' token /usr/include/qt5/QtCore/qglobal.h:1012:58: error: template argument 1 is invalid return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:65: error: 'forward' is not a member of 'std' return QForeachContainer::type>(std::forward(t)); ^~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:65: note: 'std::forward' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:1012:76: error: 't' was not declared in this scope return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:65: error: 'forward' is not a member of 'std' return QForeachContainer::type>(std::forward(t)); ^~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:65: note: 'std::forward' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:1012:74: error: expected primary-expression before '>' token return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h: At global scope: /usr/include/qt5/QtCore/qglobal.h:1055:70: error: expected type-specifier before 'decltype' template inline auto qGetPtrHelper(const Ptr &ptr) -> decltype(ptr.operator->()) { return ptr.operator->(); } ^~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1055:70: error: expected initializer before 'decltype' /usr/include/qt5/QtCore/qglobal.h:1189:79: error: 'nullptr' was not declared in this scope Q_CORE_EXPORT int qEnvironmentVariableIntValue(const char *varName, bool *ok=nullptr) Q_DECL_NOEXCEPT; ^~~~~~~ In file included from /usr/include/qt5/QtCore/qglobal.h:1218, from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests/coverageobject.h:3, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests/coverageobject.cpp:1: /usr/include/qt5/QtCore/qtypeinfo.h:53:8: error: 'constexpr' does not name a type static constexpr bool qIsRelocatable() ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:53:8: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qtypeinfo.h:63:8: error: 'constexpr' does not name a type static constexpr bool qIsTrivial() ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:63:8: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qtypeinfo.h:81:30: error: 'is_enum' is not a member of 'std' isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:81:39: error: expected primary-expression before '>' token isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^ /usr/include/qt5/QtCore/qtypeinfo.h:81:42: error: '::value' has not been declared isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:81:42: note: suggested alternative: 'valloc' isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~ valloc /usr/include/qt5/QtCore/qtypeinfo.h:83:27: error: 'is_integral' is not a member of 'std' isIntegral = std::is_integral::value, ^~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:83:40: error: expected primary-expression before '>' token isIntegral = std::is_integral::value, ^ /usr/include/qt5/QtCore/qtypeinfo.h:83:43: error: '::value' has not been declared isIntegral = std::is_integral::value, ^~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:83:43: note: suggested alternative: 'valloc' isIntegral = std::is_integral::value, ^~~~~ valloc /usr/include/qt5/QtCore/qtypeinfo.h:84:22: error: 'qIsTrivial' was not declared in this scope isComplex = !qIsTrivial(), ^~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:84:22: note: suggested alternative: 'qCritical' isComplex = !qIsTrivial(), ^~~~~~~~~~ qCritical /usr/include/qt5/QtCore/qtypeinfo.h:84:34: error: expected primary-expression before '>' token isComplex = !qIsTrivial(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:84:36: error: expected primary-expression before ')' token isComplex = !qIsTrivial(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:86:25: error: 'qIsRelocatable' was not declared in this scope isRelocatable = qIsRelocatable(), ^~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:86:41: error: expected primary-expression before '>' token isRelocatable = qIsRelocatable(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:86:43: error: expected primary-expression before ')' token isRelocatable = qIsRelocatable(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:150:40: error: 'enable_if' in namespace 'std' does not name a template type struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:150:40: note: suggested alternative: 'replace_if' struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^~~~~~~~~ replace_if /usr/include/qt5/QtCore/qtypeinfo.h:150:49: error: expected template-argument before '<' token struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ /usr/include/qt5/QtCore/qtypeinfo.h:150:49: error: expected '>' before '<' token /usr/include/qt5/QtCore/qtypeinfo.h:150:92: error: template argument 2 is invalid struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'qIsTrivial' was not declared in this scope Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: note: suggested alternative: 'qCritical' /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before ')' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'qIsRelocatable' was not declared in this scope Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before ')' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'is_integral' is not a member of 'std' Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: '::value' has not been declared Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: note: suggested alternative: 'valloc' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: 'qIsTrivial' was not declared in this scope Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: note: suggested alternative: 'qCritical' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected primary-expression before 'bool' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected '}' before 'bool' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: note: to match this '{' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected unqualified-id before '>' token Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected declaration before '}' token Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ make[2]: *** [templates/tests/CMakeFiles/template_test_builtins.dir/build.make:97: templates/tests/CMakeFiles/template_test_builtins.dir/coverageobject.cpp.o] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' make[1]: *** [CMakeFiles/Makefile2:766: templates/tests/CMakeFiles/template_test_builtins.dir/all] Error 2 make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' [ 12%] Building CXX object templates/tests/pluginpointertest/CMakeFiles/myplugin.dir/myobject.cpp.o cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/pluginpointertest && /usr/bin/c++ -DQT_CORE_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DQT_STRICT_ITERATORS -DQT_USE_QSTRINGBUILDER -Dmyplugin_EXPORTS -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/pluginpointertest -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests/pluginpointertest -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/tests/pluginpointertest/myplugin_autogen/include -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-check-new -fno-common -pedantic-errors -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -o CMakeFiles/myplugin.dir/myobject.cpp.o -c /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests/pluginpointertest/myobject.cpp In file included from /usr/include/c++/8.3.1/type_traits:35, from /usr/include/qt5/QtCore/qglobal.h:45, from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests/pluginpointertest/myobject.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests/pluginpointertest/myobject.cpp:21: /usr/include/c++/8.3.1/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options. #error This file requires compiler and library support \ ^~~~~ In file included from /usr/include/qt5/QtCore/qglobal.h:105, from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests/pluginpointertest/myobject.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests/pluginpointertest/myobject.cpp:21: /usr/include/qt5/QtCore/qcompilerdetection.h:564:6: error: #error Qt requires a C++11 compiler and yours does not seem to be that. # error Qt requires a C++11 compiler and yours does not seem to be that. ^~~~~ In file included from /usr/include/qt5/QtCore/qatomic.h:46, from /usr/include/qt5/QtCore/qglobal.h:1224, from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests/pluginpointertest/myobject.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests/pluginpointertest/myobject.cpp:21: /usr/include/qt5/QtCore/qbasicatomic.h:61:4: error: #error "Qt requires C++11 support" # error "Qt requires C++11 support" ^~~~~ In file included from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests/pluginpointertest/myobject.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests/pluginpointertest/myobject.cpp:21: /usr/include/qt5/QtCore/qglobal.h:513:7: error: expected nested-name-specifier before 'qsizetype' using qsizetype = QIntegerForSizeof::Signed; ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:602:1: error: 'constexpr' does not name a type constexpr inline const T &qMin(const T &a, const T &b) { return (a < b) ? a : b; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:602:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qglobal.h:604:1: error: 'constexpr' does not name a type constexpr inline const T &qMax(const T &a, const T &b) { return (a < b) ? b : a; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:604:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qglobal.h:606:1: error: 'constexpr' does not name a type constexpr inline const T &qBound(const T &min, const T &val, const T &max) ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:606:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 In file included from /usr/include/qt5/QtCore/qglobal.h:105, from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests/pluginpointertest/myobject.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests/pluginpointertest/myobject.cpp:21: /usr/include/qt5/QtCore/qglobal.h:835:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyCompare(double p1, double p2) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:840:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyCompare(float p1, float p2) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:845:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNull(double d) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:850:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNull(float f) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:860:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT static inline Q_DECL_UNUSED bool qIsNull(double d) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:876:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT static inline Q_DECL_UNUSED bool qIsNull(float f) ^~~~~~~~~~~~~~~~~ In file included from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests/pluginpointertest/myobject.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests/pluginpointertest/myobject.cpp:21: /usr/include/qt5/QtCore/qglobal.h:971:32: error: 'add_const' in namespace 'std' does not name a template type Q_DECL_CONSTEXPR typename std::add_const::type &qAsConst(T &t) Q_DECL_NOTHROW { return t; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:971:41: error: expected unqualified-id before '<' token Q_DECL_CONSTEXPR typename std::add_const::type &qAsConst(T &t) Q_DECL_NOTHROW { return t; } ^ /usr/include/qt5/QtCore/qglobal.h:974:23: error: expected ',' or '...' before '&&' token void qAsConst(const T &&) Q_DECL_EQ_DELETE; ^~ /usr/include/qt5/QtCore/qglobal.h:985:25: error: expected ',' or '...' before '&&' token QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^~ /usr/include/qt5/QtCore/qglobal.h:987:41: error: expected ',' or '...' before '&&' token QForeachContainer(QForeachContainer &&other) ^~ /usr/include/qt5/QtCore/qglobal.h:987:48: error: invalid constructor; you probably meant 'QtPrivate::QForeachContainer (const QtPrivate::QForeachContainer&)' QForeachContainer(QForeachContainer &&other) ^ /usr/include/qt5/QtCore/qglobal.h:995:52: error: expected ',' or '...' before '&&' token QForeachContainer &operator=(QForeachContainer &&other) ^~ /usr/include/qt5/QtCore/qglobal.h: In constructor 'QtPrivate::QForeachContainer::QForeachContainer(T)': /usr/include/qt5/QtCore/qglobal.h:985:39: error: 'move' is not a member of 'std' QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^~~~ /usr/include/qt5/QtCore/qglobal.h:985:39: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:985:44: error: 't' was not declared in this scope QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^ /usr/include/qt5/QtCore/qglobal.h: In member function 'QtPrivate::QForeachContainer& QtPrivate::QForeachContainer::operator=(QtPrivate::QForeachContainer)': /usr/include/qt5/QtCore/qglobal.h:997:18: error: 'move' is not a member of 'std' c = std::move(other.c); ^~~~ /usr/include/qt5/QtCore/qglobal.h:997:18: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:997:23: error: 'other' was not declared in this scope c = std::move(other.c); ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1000:24: error: 'move' is not a member of 'std' control = std::move(other.control); ^~~~ /usr/include/qt5/QtCore/qglobal.h:1000:24: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h: At global scope: /usr/include/qt5/QtCore/qglobal.h:1010:33: error: 'decay' in namespace 'std' does not name a template type QForeachContainer::type> qMakeForeachContainer(T &&t) ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1010:38: error: expected template-argument before '<' token QForeachContainer::type> qMakeForeachContainer(T &&t) ^ /usr/include/qt5/QtCore/qglobal.h:1010:38: error: expected '>' before '<' token /usr/include/qt5/QtCore/qglobal.h:1010:47: error: template argument 1 is invalid QForeachContainer::type> qMakeForeachContainer(T &&t) ^ /usr/include/qt5/QtCore/qglobal.h:1010:73: error: expected ',' or '...' before '&&' token QForeachContainer::type> qMakeForeachContainer(T &&t) ^~ /usr/include/qt5/QtCore/qglobal.h: In function 'int QtPrivate::qMakeForeachContainer(T)': /usr/include/qt5/QtCore/qglobal.h:1012:44: error: 'decay' in namespace 'std' does not name a template type return QForeachContainer::type>(std::forward(t)); ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:49: error: expected template-argument before '<' token return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:49: error: expected '>' before '<' token /usr/include/qt5/QtCore/qglobal.h:1012:58: error: template argument 1 is invalid return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:65: error: 'forward' is not a member of 'std' return QForeachContainer::type>(std::forward(t)); ^~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:65: note: 'std::forward' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:1012:76: error: 't' was not declared in this scope return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:65: error: 'forward' is not a member of 'std' return QForeachContainer::type>(std::forward(t)); ^~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:65: note: 'std::forward' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:1012:74: error: expected primary-expression before '>' token return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h: At global scope: /usr/include/qt5/QtCore/qglobal.h:1055:70: error: expected type-specifier before 'decltype' template inline auto qGetPtrHelper(const Ptr &ptr) -> decltype(ptr.operator->()) { return ptr.operator->(); } ^~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1055:70: error: expected initializer before 'decltype' /usr/include/qt5/QtCore/qglobal.h:1189:79: error: 'nullptr' was not declared in this scope Q_CORE_EXPORT int qEnvironmentVariableIntValue(const char *varName, bool *ok=nullptr) Q_DECL_NOEXCEPT; ^~~~~~~ In file included from /usr/include/qt5/QtCore/qglobal.h:1218, from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests/pluginpointertest/myobject.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/tests/pluginpointertest/myobject.cpp:21: /usr/include/qt5/QtCore/qtypeinfo.h:53:8: error: 'constexpr' does not name a type static constexpr bool qIsRelocatable() ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:53:8: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qtypeinfo.h:63:8: error: 'constexpr' does not name a type static constexpr bool qIsTrivial() ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:63:8: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qtypeinfo.h:81:30: error: 'is_enum' is not a member of 'std' isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:81:39: error: expected primary-expression before '>' token isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^ /usr/include/qt5/QtCore/qtypeinfo.h:81:42: error: '::value' has not been declared isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:81:42: note: suggested alternative: 'valloc' isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~ valloc /usr/include/qt5/QtCore/qtypeinfo.h:83:27: error: 'is_integral' is not a member of 'std' isIntegral = std::is_integral::value, ^~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:83:40: error: expected primary-expression before '>' token isIntegral = std::is_integral::value, ^ /usr/include/qt5/QtCore/qtypeinfo.h:83:43: error: '::value' has not been declared isIntegral = std::is_integral::value, ^~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:83:43: note: suggested alternative: 'valloc' isIntegral = std::is_integral::value, ^~~~~ valloc /usr/include/qt5/QtCore/qtypeinfo.h:84:22: error: 'qIsTrivial' was not declared in this scope isComplex = !qIsTrivial(), ^~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:84:22: note: suggested alternative: 'qCritical' isComplex = !qIsTrivial(), ^~~~~~~~~~ qCritical /usr/include/qt5/QtCore/qtypeinfo.h:84:34: error: expected primary-expression before '>' token isComplex = !qIsTrivial(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:84:36: error: expected primary-expression before ')' token isComplex = !qIsTrivial(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:86:25: error: 'qIsRelocatable' was not declared in this scope isRelocatable = qIsRelocatable(), ^~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:86:41: error: expected primary-expression before '>' token isRelocatable = qIsRelocatable(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:86:43: error: expected primary-expression before ')' token isRelocatable = qIsRelocatable(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:150:40: error: 'enable_if' in namespace 'std' does not name a template type struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:150:40: note: suggested alternative: 'replace_if' struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^~~~~~~~~ replace_if /usr/include/qt5/QtCore/qtypeinfo.h:150:49: error: expected template-argument before '<' token struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ /usr/include/qt5/QtCore/qtypeinfo.h:150:49: error: expected '>' before '<' token /usr/include/qt5/QtCore/qtypeinfo.h:150:92: error: template argument 2 is invalid struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'qIsTrivial' was not declared in this scope Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: note: suggested alternative: 'qCritical' /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before ')' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'qIsRelocatable' was not declared in this scope Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before ')' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'is_integral' is not a member of 'std' Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: '::value' has not been declared Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: note: suggested alternative: 'valloc' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: 'qIsTrivial' was not declared in this scope Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: note: suggested alternative: 'qCritical' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected primary-expression before 'bool' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected '}' before 'bool' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: note: to match this '{' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected unqualified-id before '>' token Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected declaration before '}' token Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ make[2]: *** [templates/tests/pluginpointertest/CMakeFiles/myplugin.dir/build.make:79: templates/tests/pluginpointertest/CMakeFiles/myplugin.dir/myobject.cpp.o] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' make[1]: *** [CMakeFiles/Makefile2:1292: templates/tests/pluginpointertest/CMakeFiles/myplugin.dir/all] Error 2 make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' [ 13%] Building CXX object textdocument/lib/CMakeFiles/Grantlee_TextDocument.dir/mediawikimarkupbuilder.cpp.o cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/lib && /usr/bin/c++ -DGrantlee_TextDocument_EXPORTS -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DQT_STRICT_ITERATORS -DQT_USE_QSTRINGBUILDER -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/lib -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/textdocument/lib/Grantlee_TextDocument_autogen/include -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-check-new -fno-common -pedantic-errors -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -o CMakeFiles/Grantlee_TextDocument.dir/mediawikimarkupbuilder.cpp.o -c /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/mediawikimarkupbuilder.cpp In file included from /usr/include/c++/8.3.1/type_traits:35, from /usr/include/qt5/QtCore/qglobal.h:45, from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/abstractmarkupbuilder.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/mediawikimarkupbuilder.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/mediawikimarkupbuilder.cpp:21: /usr/include/c++/8.3.1/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options. #error This file requires compiler and library support \ ^~~~~ In file included from /usr/include/qt5/QtCore/qglobal.h:105, from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/abstractmarkupbuilder.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/mediawikimarkupbuilder.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/mediawikimarkupbuilder.cpp:21: /usr/include/qt5/QtCore/qcompilerdetection.h:564:6: error: #error Qt requires a C++11 compiler and yours does not seem to be that. # error Qt requires a C++11 compiler and yours does not seem to be that. ^~~~~ In file included from /usr/include/qt5/QtCore/qatomic.h:46, from /usr/include/qt5/QtCore/qglobal.h:1224, from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/abstractmarkupbuilder.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/mediawikimarkupbuilder.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/mediawikimarkupbuilder.cpp:21: /usr/include/qt5/QtCore/qbasicatomic.h:61:4: error: #error "Qt requires C++11 support" # error "Qt requires C++11 support" ^~~~~ In file included from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/abstractmarkupbuilder.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/mediawikimarkupbuilder.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/mediawikimarkupbuilder.cpp:21: /usr/include/qt5/QtCore/qglobal.h:513:7: error: expected nested-name-specifier before 'qsizetype' using qsizetype = QIntegerForSizeof::Signed; ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:602:1: error: 'constexpr' does not name a type constexpr inline const T &qMin(const T &a, const T &b) { return (a < b) ? a : b; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:602:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qglobal.h:604:1: error: 'constexpr' does not name a type constexpr inline const T &qMax(const T &a, const T &b) { return (a < b) ? b : a; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:604:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qglobal.h:606:1: error: 'constexpr' does not name a type constexpr inline const T &qBound(const T &min, const T &val, const T &max) ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:606:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 In file included from /usr/include/qt5/QtCore/qglobal.h:105, from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/abstractmarkupbuilder.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/mediawikimarkupbuilder.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/mediawikimarkupbuilder.cpp:21: /usr/include/qt5/QtCore/qglobal.h:835:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyCompare(double p1, double p2) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:840:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyCompare(float p1, float p2) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:845:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNull(double d) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:850:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNull(float f) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:860:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT static inline Q_DECL_UNUSED bool qIsNull(double d) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:876:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT static inline Q_DECL_UNUSED bool qIsNull(float f) ^~~~~~~~~~~~~~~~~ In file included from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/abstractmarkupbuilder.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/mediawikimarkupbuilder.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/mediawikimarkupbuilder.cpp:21: /usr/include/qt5/QtCore/qglobal.h:971:32: error: 'add_const' in namespace 'std' does not name a template type Q_DECL_CONSTEXPR typename std::add_const::type &qAsConst(T &t) Q_DECL_NOTHROW { return t; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:971:41: error: expected unqualified-id before '<' token Q_DECL_CONSTEXPR typename std::add_const::type &qAsConst(T &t) Q_DECL_NOTHROW { return t; } ^ /usr/include/qt5/QtCore/qglobal.h:974:23: error: expected ',' or '...' before '&&' token void qAsConst(const T &&) Q_DECL_EQ_DELETE; ^~ /usr/include/qt5/QtCore/qglobal.h:985:25: error: expected ',' or '...' before '&&' token QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^~ /usr/include/qt5/QtCore/qglobal.h:987:41: error: expected ',' or '...' before '&&' token QForeachContainer(QForeachContainer &&other) ^~ /usr/include/qt5/QtCore/qglobal.h:987:48: error: invalid constructor; you probably meant 'QtPrivate::QForeachContainer (const QtPrivate::QForeachContainer&)' QForeachContainer(QForeachContainer &&other) ^ /usr/include/qt5/QtCore/qglobal.h:995:52: error: expected ',' or '...' before '&&' token QForeachContainer &operator=(QForeachContainer &&other) ^~ /usr/include/qt5/QtCore/qglobal.h: In constructor 'QtPrivate::QForeachContainer::QForeachContainer(T)': /usr/include/qt5/QtCore/qglobal.h:985:39: error: 'move' is not a member of 'std' QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^~~~ /usr/include/qt5/QtCore/qglobal.h:985:39: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:985:44: error: 't' was not declared in this scope QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^ /usr/include/qt5/QtCore/qglobal.h: In member function 'QtPrivate::QForeachContainer& QtPrivate::QForeachContainer::operator=(QtPrivate::QForeachContainer)': /usr/include/qt5/QtCore/qglobal.h:997:18: error: 'move' is not a member of 'std' c = std::move(other.c); ^~~~ /usr/include/qt5/QtCore/qglobal.h:997:18: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:997:23: error: 'other' was not declared in this scope c = std::move(other.c); ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1000:24: error: 'move' is not a member of 'std' control = std::move(other.control); ^~~~ /usr/include/qt5/QtCore/qglobal.h:1000:24: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h: At global scope: /usr/include/qt5/QtCore/qglobal.h:1010:33: error: 'decay' in namespace 'std' does not name a template type QForeachContainer::type> qMakeForeachContainer(T &&t) ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1010:38: error: expected template-argument before '<' token QForeachContainer::type> qMakeForeachContainer(T &&t) ^ /usr/include/qt5/QtCore/qglobal.h:1010:38: error: expected '>' before '<' token /usr/include/qt5/QtCore/qglobal.h:1010:47: error: template argument 1 is invalid QForeachContainer::type> qMakeForeachContainer(T &&t) ^ /usr/include/qt5/QtCore/qglobal.h:1010:73: error: expected ',' or '...' before '&&' token QForeachContainer::type> qMakeForeachContainer(T &&t) ^~ /usr/include/qt5/QtCore/qglobal.h: In function 'int QtPrivate::qMakeForeachContainer(T)': /usr/include/qt5/QtCore/qglobal.h:1012:44: error: 'decay' in namespace 'std' does not name a template type return QForeachContainer::type>(std::forward(t)); ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:49: error: expected template-argument before '<' token return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:49: error: expected '>' before '<' token /usr/include/qt5/QtCore/qglobal.h:1012:58: error: template argument 1 is invalid return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:65: error: 'forward' is not a member of 'std' return QForeachContainer::type>(std::forward(t)); ^~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:65: note: 'std::forward' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:1012:76: error: 't' was not declared in this scope return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:65: error: 'forward' is not a member of 'std' return QForeachContainer::type>(std::forward(t)); ^~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:65: note: 'std::forward' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:1012:74: error: expected primary-expression before '>' token return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h: At global scope: /usr/include/qt5/QtCore/qglobal.h:1055:70: error: expected type-specifier before 'decltype' template inline auto qGetPtrHelper(const Ptr &ptr) -> decltype(ptr.operator->()) { return ptr.operator->(); } ^~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1055:70: error: expected initializer before 'decltype' /usr/include/qt5/QtCore/qglobal.h:1189:79: error: 'nullptr' was not declared in this scope Q_CORE_EXPORT int qEnvironmentVariableIntValue(const char *varName, bool *ok=nullptr) Q_DECL_NOEXCEPT; ^~~~~~~ In file included from /usr/include/qt5/QtCore/qglobal.h:1218, from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/abstractmarkupbuilder.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/mediawikimarkupbuilder.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/textdocument/lib/mediawikimarkupbuilder.cpp:21: /usr/include/qt5/QtCore/qtypeinfo.h:53:8: error: 'constexpr' does not name a type static constexpr bool qIsRelocatable() ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:53:8: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qtypeinfo.h:63:8: error: 'constexpr' does not name a type static constexpr bool qIsTrivial() ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:63:8: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qtypeinfo.h:81:30: error: 'is_enum' is not a member of 'std' isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:81:39: error: expected primary-expression before '>' token isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^ /usr/include/qt5/QtCore/qtypeinfo.h:81:42: error: '::value' has not been declared isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:81:42: note: suggested alternative: 'valloc' isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~ valloc /usr/include/qt5/QtCore/qtypeinfo.h:83:27: error: 'is_integral' is not a member of 'std' isIntegral = std::is_integral::value, ^~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:83:40: error: expected primary-expression before '>' token isIntegral = std::is_integral::value, ^ /usr/include/qt5/QtCore/qtypeinfo.h:83:43: error: '::value' has not been declared isIntegral = std::is_integral::value, ^~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:83:43: note: suggested alternative: 'valloc' isIntegral = std::is_integral::value, ^~~~~ valloc /usr/include/qt5/QtCore/qtypeinfo.h:84:22: error: 'qIsTrivial' was not declared in this scope isComplex = !qIsTrivial(), ^~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:84:22: note: suggested alternative: 'qCritical' isComplex = !qIsTrivial(), ^~~~~~~~~~ qCritical /usr/include/qt5/QtCore/qtypeinfo.h:84:34: error: expected primary-expression before '>' token isComplex = !qIsTrivial(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:84:36: error: expected primary-expression before ')' token isComplex = !qIsTrivial(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:86:25: error: 'qIsRelocatable' was not declared in this scope isRelocatable = qIsRelocatable(), ^~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:86:41: error: expected primary-expression before '>' token isRelocatable = qIsRelocatable(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:86:43: error: expected primary-expression before ')' token isRelocatable = qIsRelocatable(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:150:40: error: 'enable_if' in namespace 'std' does not name a template type struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:150:40: note: suggested alternative: 'replace_if' struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^~~~~~~~~ replace_if /usr/include/qt5/QtCore/qtypeinfo.h:150:49: error: expected template-argument before '<' token struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ /usr/include/qt5/QtCore/qtypeinfo.h:150:49: error: expected '>' before '<' token /usr/include/qt5/QtCore/qtypeinfo.h:150:92: error: template argument 2 is invalid struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'qIsTrivial' was not declared in this scope Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: note: suggested alternative: 'qCritical' /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before ')' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'qIsRelocatable' was not declared in this scope Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before ')' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'is_integral' is not a member of 'std' Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: '::value' has not been declared Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: note: suggested alternative: 'valloc' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: 'qIsTrivial' was not declared in this scope Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: note: suggested alternative: 'qCritical' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected primary-expression before 'bool' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected '}' before 'bool' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: note: to match this '{' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected unqualified-id before '>' token Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected declaration before '}' token Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ make[2]: *** [textdocument/lib/CMakeFiles/Grantlee_TextDocument.dir/build.make:131: textdocument/lib/CMakeFiles/Grantlee_TextDocument.dir/mediawikimarkupbuilder.cpp.o] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' make[1]: *** [CMakeFiles/Makefile2:1413: textdocument/lib/CMakeFiles/Grantlee_TextDocument.dir/all] Error 2 make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' [ 15%] Building CXX object templates/lib/CMakeFiles/Grantlee_Templates.dir/cachingloaderdecorator.cpp.o cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib && /usr/bin/c++ -DGrantlee_Templates_EXPORTS -DPLUGINS_PREFER_DEBUG_POSTFIX=0 -DQT_CORE_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DQT_SCRIPT_LIB -DQT_STRICT_ITERATORS -DQT_USE_QSTRINGBUILDER -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/include -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/../scriptabletags -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtScript -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-check-new -fno-common -pedantic-errors -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -o CMakeFiles/Grantlee_Templates.dir/cachingloaderdecorator.cpp.o -c /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/cachingloaderdecorator.cpp In file included from /usr/include/c++/8.3.1/type_traits:35, from /usr/include/qt5/QtCore/qglobal.h:45, from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/exception.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/template.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/templateloader.h:25, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/cachingloaderdecorator.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/cachingloaderdecorator.cpp:21: /usr/include/c++/8.3.1/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options. #error This file requires compiler and library support \ ^~~~~ In file included from /usr/include/qt5/QtCore/qglobal.h:105, from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/exception.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/template.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/templateloader.h:25, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/cachingloaderdecorator.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/cachingloaderdecorator.cpp:21: /usr/include/qt5/QtCore/qcompilerdetection.h:564:6: error: #error Qt requires a C++11 compiler and yours does not seem to be that. # error Qt requires a C++11 compiler and yours does not seem to be that. ^~~~~ In file included from /usr/include/qt5/QtCore/qatomic.h:46, from /usr/include/qt5/QtCore/qglobal.h:1224, from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/exception.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/template.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/templateloader.h:25, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/cachingloaderdecorator.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/cachingloaderdecorator.cpp:21: /usr/include/qt5/QtCore/qbasicatomic.h:61:4: error: #error "Qt requires C++11 support" # error "Qt requires C++11 support" ^~~~~ In file included from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/exception.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/template.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/templateloader.h:25, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/cachingloaderdecorator.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/cachingloaderdecorator.cpp:21: /usr/include/qt5/QtCore/qglobal.h:513:7: error: expected nested-name-specifier before 'qsizetype' using qsizetype = QIntegerForSizeof::Signed; ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:602:1: error: 'constexpr' does not name a type constexpr inline const T &qMin(const T &a, const T &b) { return (a < b) ? a : b; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:602:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qglobal.h:604:1: error: 'constexpr' does not name a type constexpr inline const T &qMax(const T &a, const T &b) { return (a < b) ? b : a; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:604:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qglobal.h:606:1: error: 'constexpr' does not name a type constexpr inline const T &qBound(const T &min, const T &val, const T &max) ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:606:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 In file included from /usr/include/qt5/QtCore/qglobal.h:105, from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/exception.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/template.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/templateloader.h:25, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/cachingloaderdecorator.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/cachingloaderdecorator.cpp:21: /usr/include/qt5/QtCore/qglobal.h:835:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyCompare(double p1, double p2) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:840:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyCompare(float p1, float p2) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:845:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNull(double d) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:850:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNull(float f) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:860:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT static inline Q_DECL_UNUSED bool qIsNull(double d) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:876:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT static inline Q_DECL_UNUSED bool qIsNull(float f) ^~~~~~~~~~~~~~~~~ In file included from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/exception.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/template.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/templateloader.h:25, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/cachingloaderdecorator.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/cachingloaderdecorator.cpp:21: /usr/include/qt5/QtCore/qglobal.h:971:32: error: 'add_const' in namespace 'std' does not name a template type Q_DECL_CONSTEXPR typename std::add_const::type &qAsConst(T &t) Q_DECL_NOTHROW { return t; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:971:41: error: expected unqualified-id before '<' token Q_DECL_CONSTEXPR typename std::add_const::type &qAsConst(T &t) Q_DECL_NOTHROW { return t; } ^ /usr/include/qt5/QtCore/qglobal.h:974:23: error: expected ',' or '...' before '&&' token void qAsConst(const T &&) Q_DECL_EQ_DELETE; ^~ /usr/include/qt5/QtCore/qglobal.h:985:25: error: expected ',' or '...' before '&&' token QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^~ /usr/include/qt5/QtCore/qglobal.h:987:41: error: expected ',' or '...' before '&&' token QForeachContainer(QForeachContainer &&other) ^~ /usr/include/qt5/QtCore/qglobal.h:987:48: error: invalid constructor; you probably meant 'QtPrivate::QForeachContainer (const QtPrivate::QForeachContainer&)' QForeachContainer(QForeachContainer &&other) ^ /usr/include/qt5/QtCore/qglobal.h:995:52: error: expected ',' or '...' before '&&' token QForeachContainer &operator=(QForeachContainer &&other) ^~ /usr/include/qt5/QtCore/qglobal.h: In constructor 'QtPrivate::QForeachContainer::QForeachContainer(T)': /usr/include/qt5/QtCore/qglobal.h:985:39: error: 'move' is not a member of 'std' QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^~~~ /usr/include/qt5/QtCore/qglobal.h:985:39: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:985:44: error: 't' was not declared in this scope QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^ /usr/include/qt5/QtCore/qglobal.h: In member function 'QtPrivate::QForeachContainer& QtPrivate::QForeachContainer::operator=(QtPrivate::QForeachContainer)': /usr/include/qt5/QtCore/qglobal.h:997:18: error: 'move' is not a member of 'std' c = std::move(other.c); ^~~~ /usr/include/qt5/QtCore/qglobal.h:997:18: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:997:23: error: 'other' was not declared in this scope c = std::move(other.c); ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1000:24: error: 'move' is not a member of 'std' control = std::move(other.control); ^~~~ /usr/include/qt5/QtCore/qglobal.h:1000:24: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h: At global scope: /usr/include/qt5/QtCore/qglobal.h:1010:33: error: 'decay' in namespace 'std' does not name a template type QForeachContainer::type> qMakeForeachContainer(T &&t) ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1010:38: error: expected template-argument before '<' token QForeachContainer::type> qMakeForeachContainer(T &&t) ^ /usr/include/qt5/QtCore/qglobal.h:1010:38: error: expected '>' before '<' token /usr/include/qt5/QtCore/qglobal.h:1010:47: error: template argument 1 is invalid QForeachContainer::type> qMakeForeachContainer(T &&t) ^ /usr/include/qt5/QtCore/qglobal.h:1010:73: error: expected ',' or '...' before '&&' token QForeachContainer::type> qMakeForeachContainer(T &&t) ^~ /usr/include/qt5/QtCore/qglobal.h: In function 'int QtPrivate::qMakeForeachContainer(T)': /usr/include/qt5/QtCore/qglobal.h:1012:44: error: 'decay' in namespace 'std' does not name a template type return QForeachContainer::type>(std::forward(t)); ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:49: error: expected template-argument before '<' token return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:49: error: expected '>' before '<' token /usr/include/qt5/QtCore/qglobal.h:1012:58: error: template argument 1 is invalid return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:65: error: 'forward' is not a member of 'std' return QForeachContainer::type>(std::forward(t)); ^~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:65: note: 'std::forward' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:1012:76: error: 't' was not declared in this scope return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:65: error: 'forward' is not a member of 'std' return QForeachContainer::type>(std::forward(t)); ^~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:65: note: 'std::forward' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:1012:74: error: expected primary-expression before '>' token return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h: At global scope: /usr/include/qt5/QtCore/qglobal.h:1055:70: error: expected type-specifier before 'decltype' template inline auto qGetPtrHelper(const Ptr &ptr) -> decltype(ptr.operator->()) { return ptr.operator->(); } ^~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1055:70: error: expected initializer before 'decltype' /usr/include/qt5/QtCore/qglobal.h:1189:79: error: 'nullptr' was not declared in this scope Q_CORE_EXPORT int qEnvironmentVariableIntValue(const char *varName, bool *ok=nullptr) Q_DECL_NOEXCEPT; ^~~~~~~ In file included from /usr/include/qt5/QtCore/qglobal.h:1218, from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/exception.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/template.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/templateloader.h:25, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/cachingloaderdecorator.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/cachingloaderdecorator.cpp:21: /usr/include/qt5/QtCore/qtypeinfo.h:53:8: error: 'constexpr' does not name a type static constexpr bool qIsRelocatable() ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:53:8: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qtypeinfo.h:63:8: error: 'constexpr' does not name a type static constexpr bool qIsTrivial() ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:63:8: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qtypeinfo.h:81:30: error: 'is_enum' is not a member of 'std' isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:81:39: error: expected primary-expression before '>' token isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^ /usr/include/qt5/QtCore/qtypeinfo.h:81:42: error: '::value' has not been declared isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:81:42: note: suggested alternative: 'valloc' isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~ valloc /usr/include/qt5/QtCore/qtypeinfo.h:83:27: error: 'is_integral' is not a member of 'std' isIntegral = std::is_integral::value, ^~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:83:40: error: expected primary-expression before '>' token isIntegral = std::is_integral::value, ^ /usr/include/qt5/QtCore/qtypeinfo.h:83:43: error: '::value' has not been declared isIntegral = std::is_integral::value, ^~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:83:43: note: suggested alternative: 'valloc' isIntegral = std::is_integral::value, ^~~~~ valloc /usr/include/qt5/QtCore/qtypeinfo.h:84:22: error: 'qIsTrivial' was not declared in this scope isComplex = !qIsTrivial(), ^~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:84:22: note: suggested alternative: 'qCritical' isComplex = !qIsTrivial(), ^~~~~~~~~~ qCritical /usr/include/qt5/QtCore/qtypeinfo.h:84:34: error: expected primary-expression before '>' token isComplex = !qIsTrivial(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:84:36: error: expected primary-expression before ')' token isComplex = !qIsTrivial(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:86:25: error: 'qIsRelocatable' was not declared in this scope isRelocatable = qIsRelocatable(), ^~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:86:41: error: expected primary-expression before '>' token isRelocatable = qIsRelocatable(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:86:43: error: expected primary-expression before ')' token isRelocatable = qIsRelocatable(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:150:40: error: 'enable_if' in namespace 'std' does not name a template type struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:150:40: note: suggested alternative: 'replace_if' struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^~~~~~~~~ replace_if /usr/include/qt5/QtCore/qtypeinfo.h:150:49: error: expected template-argument before '<' token struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ /usr/include/qt5/QtCore/qtypeinfo.h:150:49: error: expected '>' before '<' token /usr/include/qt5/QtCore/qtypeinfo.h:150:92: error: template argument 2 is invalid struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'qIsTrivial' was not declared in this scope Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: note: suggested alternative: 'qCritical' /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before ')' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'qIsRelocatable' was not declared in this scope Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before ')' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'is_integral' is not a member of 'std' Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: '::value' has not been declared Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: note: suggested alternative: 'valloc' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: 'qIsTrivial' was not declared in this scope Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: note: suggested alternative: 'qCritical' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected primary-expression before 'bool' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected '}' before 'bool' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: note: to match this '{' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected unqualified-id before '>' token Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected declaration before '}' token Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ make[2]: *** [templates/lib/CMakeFiles/Grantlee_Templates.dir/build.make:92: templates/lib/CMakeFiles/Grantlee_Templates.dir/cachingloaderdecorator.cpp.o] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' make[2]: *** Waiting for unfinished jobs.... make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' [ 15%] Building CXX object templates/lib/CMakeFiles/Grantlee_Templates.dir/abstractlocalizer.cpp.o cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib && /usr/bin/c++ -DGrantlee_Templates_EXPORTS -DPLUGINS_PREFER_DEBUG_POSTFIX=0 -DQT_CORE_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DQT_SCRIPT_LIB -DQT_STRICT_ITERATORS -DQT_USE_QSTRINGBUILDER -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/include -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/../scriptabletags -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtScript -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-check-new -fno-common -pedantic-errors -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -o CMakeFiles/Grantlee_Templates.dir/abstractlocalizer.cpp.o -c /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/abstractlocalizer.cpp In file included from /usr/include/c++/8.3.1/type_traits:35, from /usr/include/qt5/QtCore/qglobal.h:45, from /usr/include/qt5/QtCore/qatomic.h:41, from /usr/include/qt5/QtCore/qvariant.h:43, from /usr/include/qt5/QtCore/qlocale.h:43, from /usr/include/qt5/QtCore/QLocale:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/abstractlocalizer.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/abstractlocalizer.cpp:21: /usr/include/c++/8.3.1/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options. #error This file requires compiler and library support \ ^~~~~ In file included from /usr/include/qt5/QtCore/qglobal.h:105, from /usr/include/qt5/QtCore/qatomic.h:41, from /usr/include/qt5/QtCore/qvariant.h:43, from /usr/include/qt5/QtCore/qlocale.h:43, from /usr/include/qt5/QtCore/QLocale:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/abstractlocalizer.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/abstractlocalizer.cpp:21: /usr/include/qt5/QtCore/qcompilerdetection.h:564:6: error: #error Qt requires a C++11 compiler and yours does not seem to be that. # error Qt requires a C++11 compiler and yours does not seem to be that. ^~~~~ In file included from /usr/include/qt5/QtCore/qatomic.h:46, from /usr/include/qt5/QtCore/qglobal.h:1224, from /usr/include/qt5/QtCore/qatomic.h:41, from /usr/include/qt5/QtCore/qvariant.h:43, from /usr/include/qt5/QtCore/qlocale.h:43, from /usr/include/qt5/QtCore/QLocale:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/abstractlocalizer.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/abstractlocalizer.cpp:21: /usr/include/qt5/QtCore/qbasicatomic.h:61:4: error: #error "Qt requires C++11 support" # error "Qt requires C++11 support" ^~~~~ In file included from /usr/include/qt5/QtCore/qatomic.h:41, from /usr/include/qt5/QtCore/qvariant.h:43, from /usr/include/qt5/QtCore/qlocale.h:43, from /usr/include/qt5/QtCore/QLocale:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/abstractlocalizer.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/abstractlocalizer.cpp:21: /usr/include/qt5/QtCore/qglobal.h:513:7: error: expected nested-name-specifier before 'qsizetype' using qsizetype = QIntegerForSizeof::Signed; ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:602:1: error: 'constexpr' does not name a type constexpr inline const T &qMin(const T &a, const T &b) { return (a < b) ? a : b; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:602:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qglobal.h:604:1: error: 'constexpr' does not name a type constexpr inline const T &qMax(const T &a, const T &b) { return (a < b) ? b : a; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:604:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qglobal.h:606:1: error: 'constexpr' does not name a type constexpr inline const T &qBound(const T &min, const T &val, const T &max) ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:606:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 In file included from /usr/include/qt5/QtCore/qglobal.h:105, from /usr/include/qt5/QtCore/qatomic.h:41, from /usr/include/qt5/QtCore/qvariant.h:43, from /usr/include/qt5/QtCore/qlocale.h:43, from /usr/include/qt5/QtCore/QLocale:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/abstractlocalizer.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/abstractlocalizer.cpp:21: /usr/include/qt5/QtCore/qglobal.h:835:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyCompare(double p1, double p2) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:840:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyCompare(float p1, float p2) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:845:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNull(double d) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:850:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNull(float f) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:860:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT static inline Q_DECL_UNUSED bool qIsNull(double d) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:876:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT static inline Q_DECL_UNUSED bool qIsNull(float f) ^~~~~~~~~~~~~~~~~ In file included from /usr/include/qt5/QtCore/qatomic.h:41, from /usr/include/qt5/QtCore/qvariant.h:43, from /usr/include/qt5/QtCore/qlocale.h:43, from /usr/include/qt5/QtCore/QLocale:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/abstractlocalizer.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/abstractlocalizer.cpp:21: /usr/include/qt5/QtCore/qglobal.h:971:32: error: 'add_const' in namespace 'std' does not name a template type Q_DECL_CONSTEXPR typename std::add_const::type &qAsConst(T &t) Q_DECL_NOTHROW { return t; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:971:41: error: expected unqualified-id before '<' token Q_DECL_CONSTEXPR typename std::add_const::type &qAsConst(T &t) Q_DECL_NOTHROW { return t; } ^ /usr/include/qt5/QtCore/qglobal.h:974:23: error: expected ',' or '...' before '&&' token void qAsConst(const T &&) Q_DECL_EQ_DELETE; ^~ /usr/include/qt5/QtCore/qglobal.h:985:25: error: expected ',' or '...' before '&&' token QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^~ /usr/include/qt5/QtCore/qglobal.h:987:41: error: expected ',' or '...' before '&&' token QForeachContainer(QForeachContainer &&other) ^~ /usr/include/qt5/QtCore/qglobal.h:987:48: error: invalid constructor; you probably meant 'QtPrivate::QForeachContainer (const QtPrivate::QForeachContainer&)' QForeachContainer(QForeachContainer &&other) ^ /usr/include/qt5/QtCore/qglobal.h:995:52: error: expected ',' or '...' before '&&' token QForeachContainer &operator=(QForeachContainer &&other) ^~ /usr/include/qt5/QtCore/qglobal.h: In constructor 'QtPrivate::QForeachContainer::QForeachContainer(T)': /usr/include/qt5/QtCore/qglobal.h:985:39: error: 'move' is not a member of 'std' QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^~~~ /usr/include/qt5/QtCore/qglobal.h:985:39: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:985:44: error: 't' was not declared in this scope QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^ /usr/include/qt5/QtCore/qglobal.h: In member function 'QtPrivate::QForeachContainer& QtPrivate::QForeachContainer::operator=(QtPrivate::QForeachContainer)': /usr/include/qt5/QtCore/qglobal.h:997:18: error: 'move' is not a member of 'std' c = std::move(other.c); ^~~~ /usr/include/qt5/QtCore/qglobal.h:997:18: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:997:23: error: 'other' was not declared in this scope c = std::move(other.c); ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1000:24: error: 'move' is not a member of 'std' control = std::move(other.control); ^~~~ /usr/include/qt5/QtCore/qglobal.h:1000:24: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h: At global scope: /usr/include/qt5/QtCore/qglobal.h:1010:33: error: 'decay' in namespace 'std' does not name a template type QForeachContainer::type> qMakeForeachContainer(T &&t) ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1010:38: error: expected template-argument before '<' token QForeachContainer::type> qMakeForeachContainer(T &&t) ^ /usr/include/qt5/QtCore/qglobal.h:1010:38: error: expected '>' before '<' token /usr/include/qt5/QtCore/qglobal.h:1010:47: error: template argument 1 is invalid QForeachContainer::type> qMakeForeachContainer(T &&t) ^ /usr/include/qt5/QtCore/qglobal.h:1010:73: error: expected ',' or '...' before '&&' token QForeachContainer::type> qMakeForeachContainer(T &&t) ^~ /usr/include/qt5/QtCore/qglobal.h: In function 'int QtPrivate::qMakeForeachContainer(T)': /usr/include/qt5/QtCore/qglobal.h:1012:44: error: 'decay' in namespace 'std' does not name a template type return QForeachContainer::type>(std::forward(t)); ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:49: error: expected template-argument before '<' token return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:49: error: expected '>' before '<' token /usr/include/qt5/QtCore/qglobal.h:1012:58: error: template argument 1 is invalid return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:65: error: 'forward' is not a member of 'std' return QForeachContainer::type>(std::forward(t)); ^~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:65: note: 'std::forward' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:1012:76: error: 't' was not declared in this scope return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:65: error: 'forward' is not a member of 'std' return QForeachContainer::type>(std::forward(t)); ^~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:65: note: 'std::forward' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:1012:74: error: expected primary-expression before '>' token return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h: At global scope: /usr/include/qt5/QtCore/qglobal.h:1055:70: error: expected type-specifier before 'decltype' template inline auto qGetPtrHelper(const Ptr &ptr) -> decltype(ptr.operator->()) { return ptr.operator->(); } ^~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1055:70: error: expected initializer before 'decltype' /usr/include/qt5/QtCore/qglobal.h:1189:79: error: 'nullptr' was not declared in this scope Q_CORE_EXPORT int qEnvironmentVariableIntValue(const char *varName, bool *ok=nullptr) Q_DECL_NOEXCEPT; ^~~~~~~ In file included from /usr/include/qt5/QtCore/qglobal.h:1218, from /usr/include/qt5/QtCore/qatomic.h:41, from /usr/include/qt5/QtCore/qvariant.h:43, from /usr/include/qt5/QtCore/qlocale.h:43, from /usr/include/qt5/QtCore/QLocale:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/abstractlocalizer.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/abstractlocalizer.cpp:21: /usr/include/qt5/QtCore/qtypeinfo.h:53:8: error: 'constexpr' does not name a type static constexpr bool qIsRelocatable() ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:53:8: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qtypeinfo.h:63:8: error: 'constexpr' does not name a type static constexpr bool qIsTrivial() ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:63:8: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qtypeinfo.h:81:30: error: 'is_enum' is not a member of 'std' isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:81:39: error: expected primary-expression before '>' token isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^ /usr/include/qt5/QtCore/qtypeinfo.h:81:42: error: '::value' has not been declared isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:81:42: note: suggested alternative: 'valloc' isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~ valloc /usr/include/qt5/QtCore/qtypeinfo.h:83:27: error: 'is_integral' is not a member of 'std' isIntegral = std::is_integral::value, ^~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:83:40: error: expected primary-expression before '>' token isIntegral = std::is_integral::value, ^ /usr/include/qt5/QtCore/qtypeinfo.h:83:43: error: '::value' has not been declared isIntegral = std::is_integral::value, ^~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:83:43: note: suggested alternative: 'valloc' isIntegral = std::is_integral::value, ^~~~~ valloc /usr/include/qt5/QtCore/qtypeinfo.h:84:22: error: 'qIsTrivial' was not declared in this scope isComplex = !qIsTrivial(), ^~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:84:22: note: suggested alternative: 'qCritical' isComplex = !qIsTrivial(), ^~~~~~~~~~ qCritical /usr/include/qt5/QtCore/qtypeinfo.h:84:34: error: expected primary-expression before '>' token isComplex = !qIsTrivial(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:84:36: error: expected primary-expression before ')' token isComplex = !qIsTrivial(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:86:25: error: 'qIsRelocatable' was not declared in this scope isRelocatable = qIsRelocatable(), ^~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:86:41: error: expected primary-expression before '>' token isRelocatable = qIsRelocatable(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:86:43: error: expected primary-expression before ')' token isRelocatable = qIsRelocatable(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:150:40: error: 'enable_if' in namespace 'std' does not name a template type struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:150:40: note: suggested alternative: 'replace_if' struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^~~~~~~~~ replace_if /usr/include/qt5/QtCore/qtypeinfo.h:150:49: error: expected template-argument before '<' token struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ /usr/include/qt5/QtCore/qtypeinfo.h:150:49: error: expected '>' before '<' token /usr/include/qt5/QtCore/qtypeinfo.h:150:92: error: template argument 2 is invalid struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'qIsTrivial' was not declared in this scope Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: note: suggested alternative: 'qCritical' /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before ')' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'qIsRelocatable' was not declared in this scope Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before ')' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'is_integral' is not a member of 'std' Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: '::value' has not been declared Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: note: suggested alternative: 'valloc' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: 'qIsTrivial' was not declared in this scope Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: note: suggested alternative: 'qCritical' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected primary-expression before 'bool' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected '}' before 'bool' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: note: to match this '{' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected unqualified-id before '>' token Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected declaration before '}' token Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ make[2]: *** [templates/lib/CMakeFiles/Grantlee_Templates.dir/build.make:79: templates/lib/CMakeFiles/Grantlee_Templates.dir/abstractlocalizer.cpp.o] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' [ 16%] Building CXX object templates/lib/CMakeFiles/Grantlee_Templates.dir/context.cpp.o cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib && /usr/bin/c++ -DGrantlee_Templates_EXPORTS -DPLUGINS_PREFER_DEBUG_POSTFIX=0 -DQT_CORE_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DQT_SCRIPT_LIB -DQT_STRICT_ITERATORS -DQT_USE_QSTRINGBUILDER -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/include -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/../scriptabletags -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtScript -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-check-new -fno-common -pedantic-errors -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -o CMakeFiles/Grantlee_Templates.dir/context.cpp.o -c /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/context.cpp In file included from /usr/include/c++/8.3.1/type_traits:35, from /usr/include/qt5/QtCore/qglobal.h:45, from /usr/include/qt5/QtCore/qatomic.h:41, from /usr/include/qt5/QtCore/qvariant.h:43, from /usr/include/qt5/QtCore/qlocale.h:43, from /usr/include/qt5/QtCore/QLocale:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/abstractlocalizer.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/context.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/context.cpp:21: /usr/include/c++/8.3.1/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options. #error This file requires compiler and library support \ ^~~~~ In file included from /usr/include/qt5/QtCore/qglobal.h:105, from /usr/include/qt5/QtCore/qatomic.h:41, from /usr/include/qt5/QtCore/qvariant.h:43, from /usr/include/qt5/QtCore/qlocale.h:43, from /usr/include/qt5/QtCore/QLocale:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/abstractlocalizer.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/context.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/context.cpp:21: /usr/include/qt5/QtCore/qcompilerdetection.h:564:6: error: #error Qt requires a C++11 compiler and yours does not seem to be that. # error Qt requires a C++11 compiler and yours does not seem to be that. ^~~~~ In file included from /usr/include/qt5/QtCore/qatomic.h:46, from /usr/include/qt5/QtCore/qglobal.h:1224, from /usr/include/qt5/QtCore/qatomic.h:41, from /usr/include/qt5/QtCore/qvariant.h:43, from /usr/include/qt5/QtCore/qlocale.h:43, from /usr/include/qt5/QtCore/QLocale:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/abstractlocalizer.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/context.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/context.cpp:21: /usr/include/qt5/QtCore/qbasicatomic.h:61:4: error: #error "Qt requires C++11 support" # error "Qt requires C++11 support" ^~~~~ In file included from /usr/include/qt5/QtCore/qatomic.h:41, from /usr/include/qt5/QtCore/qvariant.h:43, from /usr/include/qt5/QtCore/qlocale.h:43, from /usr/include/qt5/QtCore/QLocale:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/abstractlocalizer.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/context.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/context.cpp:21: /usr/include/qt5/QtCore/qglobal.h:513:7: error: expected nested-name-specifier before 'qsizetype' using qsizetype = QIntegerForSizeof::Signed; ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:602:1: error: 'constexpr' does not name a type constexpr inline const T &qMin(const T &a, const T &b) { return (a < b) ? a : b; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:602:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qglobal.h:604:1: error: 'constexpr' does not name a type constexpr inline const T &qMax(const T &a, const T &b) { return (a < b) ? b : a; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:604:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qglobal.h:606:1: error: 'constexpr' does not name a type constexpr inline const T &qBound(const T &min, const T &val, const T &max) ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:606:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 In file included from /usr/include/qt5/QtCore/qglobal.h:105, from /usr/include/qt5/QtCore/qatomic.h:41, from /usr/include/qt5/QtCore/qvariant.h:43, from /usr/include/qt5/QtCore/qlocale.h:43, from /usr/include/qt5/QtCore/QLocale:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/abstractlocalizer.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/context.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/context.cpp:21: /usr/include/qt5/QtCore/qglobal.h:835:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyCompare(double p1, double p2) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:840:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyCompare(float p1, float p2) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:845:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNull(double d) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:850:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNull(float f) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:860:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT static inline Q_DECL_UNUSED bool qIsNull(double d) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:876:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT static inline Q_DECL_UNUSED bool qIsNull(float f) ^~~~~~~~~~~~~~~~~ In file included from /usr/include/qt5/QtCore/qatomic.h:41, from /usr/include/qt5/QtCore/qvariant.h:43, from /usr/include/qt5/QtCore/qlocale.h:43, from /usr/include/qt5/QtCore/QLocale:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/abstractlocalizer.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/context.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/context.cpp:21: /usr/include/qt5/QtCore/qglobal.h:971:32: error: 'add_const' in namespace 'std' does not name a template type Q_DECL_CONSTEXPR typename std::add_const::type &qAsConst(T &t) Q_DECL_NOTHROW { return t; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:971:41: error: expected unqualified-id before '<' token Q_DECL_CONSTEXPR typename std::add_const::type &qAsConst(T &t) Q_DECL_NOTHROW { return t; } ^ /usr/include/qt5/QtCore/qglobal.h:974:23: error: expected ',' or '...' before '&&' token void qAsConst(const T &&) Q_DECL_EQ_DELETE; ^~ /usr/include/qt5/QtCore/qglobal.h:985:25: error: expected ',' or '...' before '&&' token QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^~ /usr/include/qt5/QtCore/qglobal.h:987:41: error: expected ',' or '...' before '&&' token QForeachContainer(QForeachContainer &&other) ^~ /usr/include/qt5/QtCore/qglobal.h:987:48: error: invalid constructor; you probably meant 'QtPrivate::QForeachContainer (const QtPrivate::QForeachContainer&)' QForeachContainer(QForeachContainer &&other) ^ /usr/include/qt5/QtCore/qglobal.h:995:52: error: expected ',' or '...' before '&&' token QForeachContainer &operator=(QForeachContainer &&other) ^~ /usr/include/qt5/QtCore/qglobal.h: In constructor 'QtPrivate::QForeachContainer::QForeachContainer(T)': /usr/include/qt5/QtCore/qglobal.h:985:39: error: 'move' is not a member of 'std' QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^~~~ /usr/include/qt5/QtCore/qglobal.h:985:39: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:985:44: error: 't' was not declared in this scope QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^ /usr/include/qt5/QtCore/qglobal.h: In member function 'QtPrivate::QForeachContainer& QtPrivate::QForeachContainer::operator=(QtPrivate::QForeachContainer)': /usr/include/qt5/QtCore/qglobal.h:997:18: error: 'move' is not a member of 'std' c = std::move(other.c); ^~~~ /usr/include/qt5/QtCore/qglobal.h:997:18: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:997:23: error: 'other' was not declared in this scope c = std::move(other.c); ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1000:24: error: 'move' is not a member of 'std' control = std::move(other.control); ^~~~ /usr/include/qt5/QtCore/qglobal.h:1000:24: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h: At global scope: /usr/include/qt5/QtCore/qglobal.h:1010:33: error: 'decay' in namespace 'std' does not name a template type QForeachContainer::type> qMakeForeachContainer(T &&t) ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1010:38: error: expected template-argument before '<' token QForeachContainer::type> qMakeForeachContainer(T &&t) ^ /usr/include/qt5/QtCore/qglobal.h:1010:38: error: expected '>' before '<' token /usr/include/qt5/QtCore/qglobal.h:1010:47: error: template argument 1 is invalid QForeachContainer::type> qMakeForeachContainer(T &&t) ^ /usr/include/qt5/QtCore/qglobal.h:1010:73: error: expected ',' or '...' before '&&' token QForeachContainer::type> qMakeForeachContainer(T &&t) ^~ /usr/include/qt5/QtCore/qglobal.h: In function 'int QtPrivate::qMakeForeachContainer(T)': /usr/include/qt5/QtCore/qglobal.h:1012:44: error: 'decay' in namespace 'std' does not name a template type return QForeachContainer::type>(std::forward(t)); ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:49: error: expected template-argument before '<' token return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:49: error: expected '>' before '<' token /usr/include/qt5/QtCore/qglobal.h:1012:58: error: template argument 1 is invalid return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:65: error: 'forward' is not a member of 'std' return QForeachContainer::type>(std::forward(t)); ^~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:65: note: 'std::forward' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:1012:76: error: 't' was not declared in this scope return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:65: error: 'forward' is not a member of 'std' return QForeachContainer::type>(std::forward(t)); ^~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:65: note: 'std::forward' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:1012:74: error: expected primary-expression before '>' token return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h: At global scope: /usr/include/qt5/QtCore/qglobal.h:1055:70: error: expected type-specifier before 'decltype' template inline auto qGetPtrHelper(const Ptr &ptr) -> decltype(ptr.operator->()) { return ptr.operator->(); } ^~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1055:70: error: expected initializer before 'decltype' /usr/include/qt5/QtCore/qglobal.h:1189:79: error: 'nullptr' was not declared in this scope Q_CORE_EXPORT int qEnvironmentVariableIntValue(const char *varName, bool *ok=nullptr) Q_DECL_NOEXCEPT; ^~~~~~~ In file included from /usr/include/qt5/QtCore/qglobal.h:1218, from /usr/include/qt5/QtCore/qatomic.h:41, from /usr/include/qt5/QtCore/qvariant.h:43, from /usr/include/qt5/QtCore/qlocale.h:43, from /usr/include/qt5/QtCore/QLocale:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/abstractlocalizer.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/context.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/context.cpp:21: /usr/include/qt5/QtCore/qtypeinfo.h:53:8: error: 'constexpr' does not name a type static constexpr bool qIsRelocatable() ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:53:8: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qtypeinfo.h:63:8: error: 'constexpr' does not name a type static constexpr bool qIsTrivial() ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:63:8: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qtypeinfo.h:81:30: error: 'is_enum' is not a member of 'std' isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:81:39: error: expected primary-expression before '>' token isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^ /usr/include/qt5/QtCore/qtypeinfo.h:81:42: error: '::value' has not been declared isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:81:42: note: suggested alternative: 'valloc' isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~ valloc /usr/include/qt5/QtCore/qtypeinfo.h:83:27: error: 'is_integral' is not a member of 'std' isIntegral = std::is_integral::value, ^~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:83:40: error: expected primary-expression before '>' token isIntegral = std::is_integral::value, ^ /usr/include/qt5/QtCore/qtypeinfo.h:83:43: error: '::value' has not been declared isIntegral = std::is_integral::value, ^~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:83:43: note: suggested alternative: 'valloc' isIntegral = std::is_integral::value, ^~~~~ valloc /usr/include/qt5/QtCore/qtypeinfo.h:84:22: error: 'qIsTrivial' was not declared in this scope isComplex = !qIsTrivial(), ^~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:84:22: note: suggested alternative: 'qCritical' isComplex = !qIsTrivial(), ^~~~~~~~~~ qCritical /usr/include/qt5/QtCore/qtypeinfo.h:84:34: error: expected primary-expression before '>' token isComplex = !qIsTrivial(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:84:36: error: expected primary-expression before ')' token isComplex = !qIsTrivial(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:86:25: error: 'qIsRelocatable' was not declared in this scope isRelocatable = qIsRelocatable(), ^~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:86:41: error: expected primary-expression before '>' token isRelocatable = qIsRelocatable(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:86:43: error: expected primary-expression before ')' token isRelocatable = qIsRelocatable(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:150:40: error: 'enable_if' in namespace 'std' does not name a template type struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:150:40: note: suggested alternative: 'replace_if' struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^~~~~~~~~ replace_if /usr/include/qt5/QtCore/qtypeinfo.h:150:49: error: expected template-argument before '<' token struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ /usr/include/qt5/QtCore/qtypeinfo.h:150:49: error: expected '>' before '<' token /usr/include/qt5/QtCore/qtypeinfo.h:150:92: error: template argument 2 is invalid struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'qIsTrivial' was not declared in this scope Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: note: suggested alternative: 'qCritical' /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before ')' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'qIsRelocatable' was not declared in this scope Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before ')' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'is_integral' is not a member of 'std' Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: '::value' has not been declared Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: note: suggested alternative: 'valloc' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: 'qIsTrivial' was not declared in this scope Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: note: suggested alternative: 'qCritical' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected primary-expression before 'bool' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected '}' before 'bool' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: note: to match this '{' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected unqualified-id before '>' token Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected declaration before '}' token Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ make[2]: *** [templates/lib/CMakeFiles/Grantlee_Templates.dir/build.make:118: templates/lib/CMakeFiles/Grantlee_Templates.dir/context.cpp.o] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' [ 14%] Building CXX object templates/lib/CMakeFiles/Grantlee_Templates.dir/Grantlee_Templates_autogen/mocs_compilation.cpp.o cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib && /usr/bin/c++ -DGrantlee_Templates_EXPORTS -DPLUGINS_PREFER_DEBUG_POSTFIX=0 -DQT_CORE_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DQT_SCRIPT_LIB -DQT_STRICT_ITERATORS -DQT_USE_QSTRINGBUILDER -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/include -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/../scriptabletags -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtScript -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-check-new -fno-common -pedantic-errors -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -o CMakeFiles/Grantlee_Templates.dir/Grantlee_Templates_autogen/mocs_compilation.cpp.o -c /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/mocs_compilation.cpp In file included from /usr/include/c++/8.3.1/type_traits:35, from /usr/include/qt5/QtCore/qglobal.h:45, from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/EWIEGA46WW/../../../../../templates/lib/exception.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/EWIEGA46WW/../../../../../templates/lib/template.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/EWIEGA46WW/../../../../../templates/lib/engine.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/EWIEGA46WW/moc_engine.cpp:10, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/mocs_compilation.cpp:2: /usr/include/c++/8.3.1/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options. #error This file requires compiler and library support \ ^~~~~ In file included from /usr/include/qt5/QtCore/qglobal.h:105, from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/EWIEGA46WW/../../../../../templates/lib/exception.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/EWIEGA46WW/../../../../../templates/lib/template.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/EWIEGA46WW/../../../../../templates/lib/engine.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/EWIEGA46WW/moc_engine.cpp:10, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/mocs_compilation.cpp:2: /usr/include/qt5/QtCore/qcompilerdetection.h:564:6: error: #error Qt requires a C++11 compiler and yours does not seem to be that. # error Qt requires a C++11 compiler and yours does not seem to be that. ^~~~~ In file included from /usr/include/qt5/QtCore/qatomic.h:46, from /usr/include/qt5/QtCore/qglobal.h:1224, from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/EWIEGA46WW/../../../../../templates/lib/exception.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/EWIEGA46WW/../../../../../templates/lib/template.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/EWIEGA46WW/../../../../../templates/lib/engine.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/EWIEGA46WW/moc_engine.cpp:10, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/mocs_compilation.cpp:2: /usr/include/qt5/QtCore/qbasicatomic.h:61:4: error: #error "Qt requires C++11 support" # error "Qt requires C++11 support" ^~~~~ In file included from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/EWIEGA46WW/../../../../../templates/lib/exception.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/EWIEGA46WW/../../../../../templates/lib/template.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/EWIEGA46WW/../../../../../templates/lib/engine.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/EWIEGA46WW/moc_engine.cpp:10, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/mocs_compilation.cpp:2: /usr/include/qt5/QtCore/qglobal.h:513:7: error: expected nested-name-specifier before 'qsizetype' using qsizetype = QIntegerForSizeof::Signed; ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:602:1: error: 'constexpr' does not name a type constexpr inline const T &qMin(const T &a, const T &b) { return (a < b) ? a : b; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:602:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qglobal.h:604:1: error: 'constexpr' does not name a type constexpr inline const T &qMax(const T &a, const T &b) { return (a < b) ? b : a; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:604:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qglobal.h:606:1: error: 'constexpr' does not name a type constexpr inline const T &qBound(const T &min, const T &val, const T &max) ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:606:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 In file included from /usr/include/qt5/QtCore/qglobal.h:105, from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/EWIEGA46WW/../../../../../templates/lib/exception.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/EWIEGA46WW/../../../../../templates/lib/template.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/EWIEGA46WW/../../../../../templates/lib/engine.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/EWIEGA46WW/moc_engine.cpp:10, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/mocs_compilation.cpp:2: /usr/include/qt5/QtCore/qglobal.h:835:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyCompare(double p1, double p2) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:840:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyCompare(float p1, float p2) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:845:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNull(double d) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:850:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNull(float f) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:860:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT static inline Q_DECL_UNUSED bool qIsNull(double d) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:876:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT static inline Q_DECL_UNUSED bool qIsNull(float f) ^~~~~~~~~~~~~~~~~ In file included from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/EWIEGA46WW/../../../../../templates/lib/exception.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/EWIEGA46WW/../../../../../templates/lib/template.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/EWIEGA46WW/../../../../../templates/lib/engine.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/EWIEGA46WW/moc_engine.cpp:10, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/mocs_compilation.cpp:2: /usr/include/qt5/QtCore/qglobal.h:971:32: error: 'add_const' in namespace 'std' does not name a template type Q_DECL_CONSTEXPR typename std::add_const::type &qAsConst(T &t) Q_DECL_NOTHROW { return t; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:971:41: error: expected unqualified-id before '<' token Q_DECL_CONSTEXPR typename std::add_const::type &qAsConst(T &t) Q_DECL_NOTHROW { return t; } ^ /usr/include/qt5/QtCore/qglobal.h:974:23: error: expected ',' or '...' before '&&' token void qAsConst(const T &&) Q_DECL_EQ_DELETE; ^~ /usr/include/qt5/QtCore/qglobal.h:985:25: error: expected ',' or '...' before '&&' token QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^~ /usr/include/qt5/QtCore/qglobal.h:987:41: error: expected ',' or '...' before '&&' token QForeachContainer(QForeachContainer &&other) ^~ /usr/include/qt5/QtCore/qglobal.h:987:48: error: invalid constructor; you probably meant 'QtPrivate::QForeachContainer (const QtPrivate::QForeachContainer&)' QForeachContainer(QForeachContainer &&other) ^ /usr/include/qt5/QtCore/qglobal.h:995:52: error: expected ',' or '...' before '&&' token QForeachContainer &operator=(QForeachContainer &&other) ^~ /usr/include/qt5/QtCore/qglobal.h: In constructor 'QtPrivate::QForeachContainer::QForeachContainer(T)': /usr/include/qt5/QtCore/qglobal.h:985:39: error: 'move' is not a member of 'std' QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^~~~ /usr/include/qt5/QtCore/qglobal.h:985:39: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:985:44: error: 't' was not declared in this scope QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^ /usr/include/qt5/QtCore/qglobal.h: In member function 'QtPrivate::QForeachContainer& QtPrivate::QForeachContainer::operator=(QtPrivate::QForeachContainer)': /usr/include/qt5/QtCore/qglobal.h:997:18: error: 'move' is not a member of 'std' c = std::move(other.c); ^~~~ /usr/include/qt5/QtCore/qglobal.h:997:18: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:997:23: error: 'other' was not declared in this scope c = std::move(other.c); ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1000:24: error: 'move' is not a member of 'std' control = std::move(other.control); ^~~~ /usr/include/qt5/QtCore/qglobal.h:1000:24: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h: At global scope: /usr/include/qt5/QtCore/qglobal.h:1010:33: error: 'decay' in namespace 'std' does not name a template type QForeachContainer::type> qMakeForeachContainer(T &&t) ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1010:38: error: expected template-argument before '<' token QForeachContainer::type> qMakeForeachContainer(T &&t) ^ /usr/include/qt5/QtCore/qglobal.h:1010:38: error: expected '>' before '<' token /usr/include/qt5/QtCore/qglobal.h:1010:47: error: template argument 1 is invalid QForeachContainer::type> qMakeForeachContainer(T &&t) ^ /usr/include/qt5/QtCore/qglobal.h:1010:73: error: expected ',' or '...' before '&&' token QForeachContainer::type> qMakeForeachContainer(T &&t) ^~ /usr/include/qt5/QtCore/qglobal.h: In function 'int QtPrivate::qMakeForeachContainer(T)': /usr/include/qt5/QtCore/qglobal.h:1012:44: error: 'decay' in namespace 'std' does not name a template type return QForeachContainer::type>(std::forward(t)); ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:49: error: expected template-argument before '<' token return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:49: error: expected '>' before '<' token /usr/include/qt5/QtCore/qglobal.h:1012:58: error: template argument 1 is invalid return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:65: error: 'forward' is not a member of 'std' return QForeachContainer::type>(std::forward(t)); ^~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:65: note: 'std::forward' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:1012:76: error: 't' was not declared in this scope return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:65: error: 'forward' is not a member of 'std' return QForeachContainer::type>(std::forward(t)); ^~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:65: note: 'std::forward' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:1012:74: error: expected primary-expression before '>' token return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h: At global scope: /usr/include/qt5/QtCore/qglobal.h:1055:70: error: expected type-specifier before 'decltype' template inline auto qGetPtrHelper(const Ptr &ptr) -> decltype(ptr.operator->()) { return ptr.operator->(); } ^~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1055:70: error: expected initializer before 'decltype' /usr/include/qt5/QtCore/qglobal.h:1189:79: error: 'nullptr' was not declared in this scope Q_CORE_EXPORT int qEnvironmentVariableIntValue(const char *varName, bool *ok=nullptr) Q_DECL_NOEXCEPT; ^~~~~~~ In file included from /usr/include/qt5/QtCore/qglobal.h:1218, from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/EWIEGA46WW/../../../../../templates/lib/exception.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/EWIEGA46WW/../../../../../templates/lib/template.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/EWIEGA46WW/../../../../../templates/lib/engine.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/EWIEGA46WW/moc_engine.cpp:10, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/mocs_compilation.cpp:2: /usr/include/qt5/QtCore/qtypeinfo.h:53:8: error: 'constexpr' does not name a type static constexpr bool qIsRelocatable() ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:53:8: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qtypeinfo.h:63:8: error: 'constexpr' does not name a type static constexpr bool qIsTrivial() ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:63:8: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qtypeinfo.h:81:30: error: 'is_enum' is not a member of 'std' isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:81:39: error: expected primary-expression before '>' token isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^ /usr/include/qt5/QtCore/qtypeinfo.h:81:42: error: '::value' has not been declared isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:81:42: note: suggested alternative: 'valloc' isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~ valloc /usr/include/qt5/QtCore/qtypeinfo.h:83:27: error: 'is_integral' is not a member of 'std' isIntegral = std::is_integral::value, ^~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:83:40: error: expected primary-expression before '>' token isIntegral = std::is_integral::value, ^ /usr/include/qt5/QtCore/qtypeinfo.h:83:43: error: '::value' has not been declared isIntegral = std::is_integral::value, ^~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:83:43: note: suggested alternative: 'valloc' isIntegral = std::is_integral::value, ^~~~~ valloc /usr/include/qt5/QtCore/qtypeinfo.h:84:22: error: 'qIsTrivial' was not declared in this scope isComplex = !qIsTrivial(), ^~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:84:22: note: suggested alternative: 'qCritical' isComplex = !qIsTrivial(), ^~~~~~~~~~ qCritical /usr/include/qt5/QtCore/qtypeinfo.h:84:34: error: expected primary-expression before '>' token isComplex = !qIsTrivial(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:84:36: error: expected primary-expression before ')' token isComplex = !qIsTrivial(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:86:25: error: 'qIsRelocatable' was not declared in this scope isRelocatable = qIsRelocatable(), ^~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:86:41: error: expected primary-expression before '>' token isRelocatable = qIsRelocatable(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:86:43: error: expected primary-expression before ')' token isRelocatable = qIsRelocatable(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:150:40: error: 'enable_if' in namespace 'std' does not name a template type struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:150:40: note: suggested alternative: 'replace_if' struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^~~~~~~~~ replace_if /usr/include/qt5/QtCore/qtypeinfo.h:150:49: error: expected template-argument before '<' token struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ /usr/include/qt5/QtCore/qtypeinfo.h:150:49: error: expected '>' before '<' token /usr/include/qt5/QtCore/qtypeinfo.h:150:92: error: template argument 2 is invalid struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'qIsTrivial' was not declared in this scope Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: note: suggested alternative: 'qCritical' /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before ')' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'qIsRelocatable' was not declared in this scope Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before ')' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'is_integral' is not a member of 'std' Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: '::value' has not been declared Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: note: suggested alternative: 'valloc' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: 'qIsTrivial' was not declared in this scope Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: note: suggested alternative: 'qCritical' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected primary-expression before 'bool' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected '}' before 'bool' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: note: to match this '{' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected unqualified-id before '>' token Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected declaration before '}' token Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ make[2]: *** [templates/lib/CMakeFiles/Grantlee_Templates.dir/build.make:66: templates/lib/CMakeFiles/Grantlee_Templates.dir/Grantlee_Templates_autogen/mocs_compilation.cpp.o] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' [ 17%] Building CXX object templates/lib/CMakeFiles/Grantlee_Templates.dir/customtyperegistry.cpp.o cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib && /usr/bin/c++ -DGrantlee_Templates_EXPORTS -DPLUGINS_PREFER_DEBUG_POSTFIX=0 -DQT_CORE_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DQT_SCRIPT_LIB -DQT_STRICT_ITERATORS -DQT_USE_QSTRINGBUILDER -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/include -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/../scriptabletags -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtScript -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-check-new -fno-common -pedantic-errors -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -o CMakeFiles/Grantlee_Templates.dir/customtyperegistry.cpp.o -c /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/customtyperegistry.cpp In file included from /usr/include/c++/8.3.1/type_traits:35, from /usr/include/qt5/QtCore/qglobal.h:45, from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/typeaccessor.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/metatype.h:27, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/customtyperegistry_p.h:25, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/customtyperegistry.cpp:22: /usr/include/c++/8.3.1/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options. #error This file requires compiler and library support \ ^~~~~ In file included from /usr/include/qt5/QtCore/qglobal.h:105, from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/typeaccessor.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/metatype.h:27, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/customtyperegistry_p.h:25, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/customtyperegistry.cpp:22: /usr/include/qt5/QtCore/qcompilerdetection.h:564:6: error: #error Qt requires a C++11 compiler and yours does not seem to be that. # error Qt requires a C++11 compiler and yours does not seem to be that. ^~~~~ In file included from /usr/include/qt5/QtCore/qatomic.h:46, from /usr/include/qt5/QtCore/qglobal.h:1224, from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/typeaccessor.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/metatype.h:27, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/customtyperegistry_p.h:25, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/customtyperegistry.cpp:22: /usr/include/qt5/QtCore/qbasicatomic.h:61:4: error: #error "Qt requires C++11 support" # error "Qt requires C++11 support" ^~~~~ In file included from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/typeaccessor.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/metatype.h:27, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/customtyperegistry_p.h:25, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/customtyperegistry.cpp:22: /usr/include/qt5/QtCore/qglobal.h:513:7: error: expected nested-name-specifier before 'qsizetype' using qsizetype = QIntegerForSizeof::Signed; ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:602:1: error: 'constexpr' does not name a type constexpr inline const T &qMin(const T &a, const T &b) { return (a < b) ? a : b; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:602:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qglobal.h:604:1: error: 'constexpr' does not name a type constexpr inline const T &qMax(const T &a, const T &b) { return (a < b) ? b : a; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:604:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qglobal.h:606:1: error: 'constexpr' does not name a type constexpr inline const T &qBound(const T &min, const T &val, const T &max) ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:606:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 In file included from /usr/include/qt5/QtCore/qglobal.h:105, from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/typeaccessor.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/metatype.h:27, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/customtyperegistry_p.h:25, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/customtyperegistry.cpp:22: /usr/include/qt5/QtCore/qglobal.h:835:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyCompare(double p1, double p2) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:840:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyCompare(float p1, float p2) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:845:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNull(double d) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:850:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNull(float f) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:860:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT static inline Q_DECL_UNUSED bool qIsNull(double d) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:876:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT static inline Q_DECL_UNUSED bool qIsNull(float f) ^~~~~~~~~~~~~~~~~ In file included from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/typeaccessor.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/metatype.h:27, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/customtyperegistry_p.h:25, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/customtyperegistry.cpp:22: /usr/include/qt5/QtCore/qglobal.h:971:32: error: 'add_const' in namespace 'std' does not name a template type Q_DECL_CONSTEXPR typename std::add_const::type &qAsConst(T &t) Q_DECL_NOTHROW { return t; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:971:41: error: expected unqualified-id before '<' token Q_DECL_CONSTEXPR typename std::add_const::type &qAsConst(T &t) Q_DECL_NOTHROW { return t; } ^ /usr/include/qt5/QtCore/qglobal.h:974:23: error: expected ',' or '...' before '&&' token void qAsConst(const T &&) Q_DECL_EQ_DELETE; ^~ /usr/include/qt5/QtCore/qglobal.h:985:25: error: expected ',' or '...' before '&&' token QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^~ /usr/include/qt5/QtCore/qglobal.h:987:41: error: expected ',' or '...' before '&&' token QForeachContainer(QForeachContainer &&other) ^~ /usr/include/qt5/QtCore/qglobal.h:987:48: error: invalid constructor; you probably meant 'QtPrivate::QForeachContainer (const QtPrivate::QForeachContainer&)' QForeachContainer(QForeachContainer &&other) ^ /usr/include/qt5/QtCore/qglobal.h:995:52: error: expected ',' or '...' before '&&' token QForeachContainer &operator=(QForeachContainer &&other) ^~ /usr/include/qt5/QtCore/qglobal.h: In constructor 'QtPrivate::QForeachContainer::QForeachContainer(T)': /usr/include/qt5/QtCore/qglobal.h:985:39: error: 'move' is not a member of 'std' QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^~~~ /usr/include/qt5/QtCore/qglobal.h:985:39: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:985:44: error: 't' was not declared in this scope QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^ /usr/include/qt5/QtCore/qglobal.h: In member function 'QtPrivate::QForeachContainer& QtPrivate::QForeachContainer::operator=(QtPrivate::QForeachContainer)': /usr/include/qt5/QtCore/qglobal.h:997:18: error: 'move' is not a member of 'std' c = std::move(other.c); ^~~~ /usr/include/qt5/QtCore/qglobal.h:997:18: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:997:23: error: 'other' was not declared in this scope c = std::move(other.c); ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1000:24: error: 'move' is not a member of 'std' control = std::move(other.control); ^~~~ /usr/include/qt5/QtCore/qglobal.h:1000:24: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h: At global scope: /usr/include/qt5/QtCore/qglobal.h:1010:33: error: 'decay' in namespace 'std' does not name a template type QForeachContainer::type> qMakeForeachContainer(T &&t) ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1010:38: error: expected template-argument before '<' token QForeachContainer::type> qMakeForeachContainer(T &&t) ^ /usr/include/qt5/QtCore/qglobal.h:1010:38: error: expected '>' before '<' token /usr/include/qt5/QtCore/qglobal.h:1010:47: error: template argument 1 is invalid QForeachContainer::type> qMakeForeachContainer(T &&t) ^ /usr/include/qt5/QtCore/qglobal.h:1010:73: error: expected ',' or '...' before '&&' token QForeachContainer::type> qMakeForeachContainer(T &&t) ^~ /usr/include/qt5/QtCore/qglobal.h: In function 'int QtPrivate::qMakeForeachContainer(T)': /usr/include/qt5/QtCore/qglobal.h:1012:44: error: 'decay' in namespace 'std' does not name a template type return QForeachContainer::type>(std::forward(t)); ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:49: error: expected template-argument before '<' token return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:49: error: expected '>' before '<' token /usr/include/qt5/QtCore/qglobal.h:1012:58: error: template argument 1 is invalid return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:65: error: 'forward' is not a member of 'std' return QForeachContainer::type>(std::forward(t)); ^~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:65: note: 'std::forward' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:1012:76: error: 't' was not declared in this scope return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:65: error: 'forward' is not a member of 'std' return QForeachContainer::type>(std::forward(t)); ^~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:65: note: 'std::forward' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:1012:74: error: expected primary-expression before '>' token return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h: At global scope: /usr/include/qt5/QtCore/qglobal.h:1055:70: error: expected type-specifier before 'decltype' template inline auto qGetPtrHelper(const Ptr &ptr) -> decltype(ptr.operator->()) { return ptr.operator->(); } ^~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1055:70: error: expected initializer before 'decltype' /usr/include/qt5/QtCore/qglobal.h:1189:79: error: 'nullptr' was not declared in this scope Q_CORE_EXPORT int qEnvironmentVariableIntValue(const char *varName, bool *ok=nullptr) Q_DECL_NOEXCEPT; ^~~~~~~ In file included from /usr/include/qt5/QtCore/qglobal.h:1218, from /usr/include/qt5/QtCore/qnamespace.h:43, from /usr/include/qt5/QtCore/qobjectdefs.h:48, from /usr/include/qt5/QtCore/qobject.h:46, from /usr/include/qt5/QtCore/QObject:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/typeaccessor.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/metatype.h:27, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/customtyperegistry_p.h:25, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/customtyperegistry.cpp:22: /usr/include/qt5/QtCore/qtypeinfo.h:53:8: error: 'constexpr' does not name a type static constexpr bool qIsRelocatable() ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:53:8: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qtypeinfo.h:63:8: error: 'constexpr' does not name a type static constexpr bool qIsTrivial() ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:63:8: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qtypeinfo.h:81:30: error: 'is_enum' is not a member of 'std' isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:81:39: error: expected primary-expression before '>' token isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^ /usr/include/qt5/QtCore/qtypeinfo.h:81:42: error: '::value' has not been declared isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:81:42: note: suggested alternative: 'valloc' isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~ valloc /usr/include/qt5/QtCore/qtypeinfo.h:83:27: error: 'is_integral' is not a member of 'std' isIntegral = std::is_integral::value, ^~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:83:40: error: expected primary-expression before '>' token isIntegral = std::is_integral::value, ^ /usr/include/qt5/QtCore/qtypeinfo.h:83:43: error: '::value' has not been declared isIntegral = std::is_integral::value, ^~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:83:43: note: suggested alternative: 'valloc' isIntegral = std::is_integral::value, ^~~~~ valloc /usr/include/qt5/QtCore/qtypeinfo.h:84:22: error: 'qIsTrivial' was not declared in this scope isComplex = !qIsTrivial(), ^~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:84:22: note: suggested alternative: 'qCritical' isComplex = !qIsTrivial(), ^~~~~~~~~~ qCritical /usr/include/qt5/QtCore/qtypeinfo.h:84:34: error: expected primary-expression before '>' token isComplex = !qIsTrivial(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:84:36: error: expected primary-expression before ')' token isComplex = !qIsTrivial(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:86:25: error: 'qIsRelocatable' was not declared in this scope isRelocatable = qIsRelocatable(), ^~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:86:41: error: expected primary-expression before '>' token isRelocatable = qIsRelocatable(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:86:43: error: expected primary-expression before ')' token isRelocatable = qIsRelocatable(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:150:40: error: 'enable_if' in namespace 'std' does not name a template type struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:150:40: note: suggested alternative: 'replace_if' struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^~~~~~~~~ replace_if /usr/include/qt5/QtCore/qtypeinfo.h:150:49: error: expected template-argument before '<' token struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ /usr/include/qt5/QtCore/qtypeinfo.h:150:49: error: expected '>' before '<' token /usr/include/qt5/QtCore/qtypeinfo.h:150:92: error: template argument 2 is invalid struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'qIsTrivial' was not declared in this scope Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: note: suggested alternative: 'qCritical' /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before ')' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'qIsRelocatable' was not declared in this scope Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before ')' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'is_integral' is not a member of 'std' Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: '::value' has not been declared Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: note: suggested alternative: 'valloc' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: 'qIsTrivial' was not declared in this scope Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: note: suggested alternative: 'qCritical' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected primary-expression before 'bool' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected '}' before 'bool' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: note: to match this '{' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected unqualified-id before '>' token Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected declaration before '}' token Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ make[2]: *** [templates/lib/CMakeFiles/Grantlee_Templates.dir/build.make:105: templates/lib/CMakeFiles/Grantlee_Templates.dir/customtyperegistry.cpp.o] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' [ 18%] Building CXX object templates/lib/CMakeFiles/Grantlee_Templates.dir/filter.cpp.o cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib && /usr/bin/c++ -DGrantlee_Templates_EXPORTS -DPLUGINS_PREFER_DEBUG_POSTFIX=0 -DQT_CORE_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DQT_SCRIPT_LIB -DQT_STRICT_ITERATORS -DQT_USE_QSTRINGBUILDER -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/include -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/../scriptabletags -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtScript -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-check-new -fno-common -pedantic-errors -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -o CMakeFiles/Grantlee_Templates.dir/filter.cpp.o -c /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/filter.cpp In file included from /usr/include/c++/8.3.1/type_traits:35, from /usr/include/qt5/QtCore/qglobal.h:45, from /usr/include/qt5/QtCore/qsharedpointer.h:43, from /usr/include/qt5/QtCore/QSharedPointer:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/outputstream.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/filter.h:27, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/filter.cpp:2: /usr/include/c++/8.3.1/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options. #error This file requires compiler and library support \ ^~~~~ In file included from /usr/include/qt5/QtCore/qglobal.h:105, from /usr/include/qt5/QtCore/qsharedpointer.h:43, from /usr/include/qt5/QtCore/QSharedPointer:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/outputstream.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/filter.h:27, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/filter.cpp:2: /usr/include/qt5/QtCore/qcompilerdetection.h:564:6: error: #error Qt requires a C++11 compiler and yours does not seem to be that. # error Qt requires a C++11 compiler and yours does not seem to be that. ^~~~~ In file included from /usr/include/qt5/QtCore/qatomic.h:46, from /usr/include/qt5/QtCore/qglobal.h:1224, from /usr/include/qt5/QtCore/qsharedpointer.h:43, from /usr/include/qt5/QtCore/QSharedPointer:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/outputstream.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/filter.h:27, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/filter.cpp:2: /usr/include/qt5/QtCore/qbasicatomic.h:61:4: error: #error "Qt requires C++11 support" # error "Qt requires C++11 support" ^~~~~ In file included from /usr/include/qt5/QtCore/qsharedpointer.h:43, from /usr/include/qt5/QtCore/QSharedPointer:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/outputstream.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/filter.h:27, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/filter.cpp:2: /usr/include/qt5/QtCore/qglobal.h:513:7: error: expected nested-name-specifier before 'qsizetype' using qsizetype = QIntegerForSizeof::Signed; ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:602:1: error: 'constexpr' does not name a type constexpr inline const T &qMin(const T &a, const T &b) { return (a < b) ? a : b; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:602:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qglobal.h:604:1: error: 'constexpr' does not name a type constexpr inline const T &qMax(const T &a, const T &b) { return (a < b) ? b : a; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:604:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qglobal.h:606:1: error: 'constexpr' does not name a type constexpr inline const T &qBound(const T &min, const T &val, const T &max) ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:606:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 In file included from /usr/include/qt5/QtCore/qglobal.h:105, from /usr/include/qt5/QtCore/qsharedpointer.h:43, from /usr/include/qt5/QtCore/QSharedPointer:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/outputstream.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/filter.h:27, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/filter.cpp:2: /usr/include/qt5/QtCore/qglobal.h:835:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyCompare(double p1, double p2) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:840:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyCompare(float p1, float p2) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:845:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNull(double d) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:850:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNull(float f) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:860:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT static inline Q_DECL_UNUSED bool qIsNull(double d) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:876:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT static inline Q_DECL_UNUSED bool qIsNull(float f) ^~~~~~~~~~~~~~~~~ In file included from /usr/include/qt5/QtCore/qsharedpointer.h:43, from /usr/include/qt5/QtCore/QSharedPointer:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/outputstream.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/filter.h:27, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/filter.cpp:2: /usr/include/qt5/QtCore/qglobal.h:971:32: error: 'add_const' in namespace 'std' does not name a template type Q_DECL_CONSTEXPR typename std::add_const::type &qAsConst(T &t) Q_DECL_NOTHROW { return t; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:971:41: error: expected unqualified-id before '<' token Q_DECL_CONSTEXPR typename std::add_const::type &qAsConst(T &t) Q_DECL_NOTHROW { return t; } ^ /usr/include/qt5/QtCore/qglobal.h:974:23: error: expected ',' or '...' before '&&' token void qAsConst(const T &&) Q_DECL_EQ_DELETE; ^~ /usr/include/qt5/QtCore/qglobal.h:985:25: error: expected ',' or '...' before '&&' token QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^~ /usr/include/qt5/QtCore/qglobal.h:987:41: error: expected ',' or '...' before '&&' token QForeachContainer(QForeachContainer &&other) ^~ /usr/include/qt5/QtCore/qglobal.h:987:48: error: invalid constructor; you probably meant 'QtPrivate::QForeachContainer (const QtPrivate::QForeachContainer&)' QForeachContainer(QForeachContainer &&other) ^ /usr/include/qt5/QtCore/qglobal.h:995:52: error: expected ',' or '...' before '&&' token QForeachContainer &operator=(QForeachContainer &&other) ^~ /usr/include/qt5/QtCore/qglobal.h: In constructor 'QtPrivate::QForeachContainer::QForeachContainer(T)': /usr/include/qt5/QtCore/qglobal.h:985:39: error: 'move' is not a member of 'std' QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^~~~ /usr/include/qt5/QtCore/qglobal.h:985:39: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:985:44: error: 't' was not declared in this scope QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^ /usr/include/qt5/QtCore/qglobal.h: In member function 'QtPrivate::QForeachContainer& QtPrivate::QForeachContainer::operator=(QtPrivate::QForeachContainer)': /usr/include/qt5/QtCore/qglobal.h:997:18: error: 'move' is not a member of 'std' c = std::move(other.c); ^~~~ /usr/include/qt5/QtCore/qglobal.h:997:18: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:997:23: error: 'other' was not declared in this scope c = std::move(other.c); ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1000:24: error: 'move' is not a member of 'std' control = std::move(other.control); ^~~~ /usr/include/qt5/QtCore/qglobal.h:1000:24: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h: At global scope: /usr/include/qt5/QtCore/qglobal.h:1010:33: error: 'decay' in namespace 'std' does not name a template type QForeachContainer::type> qMakeForeachContainer(T &&t) ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1010:38: error: expected template-argument before '<' token QForeachContainer::type> qMakeForeachContainer(T &&t) ^ /usr/include/qt5/QtCore/qglobal.h:1010:38: error: expected '>' before '<' token /usr/include/qt5/QtCore/qglobal.h:1010:47: error: template argument 1 is invalid QForeachContainer::type> qMakeForeachContainer(T &&t) ^ /usr/include/qt5/QtCore/qglobal.h:1010:73: error: expected ',' or '...' before '&&' token QForeachContainer::type> qMakeForeachContainer(T &&t) ^~ /usr/include/qt5/QtCore/qglobal.h: In function 'int QtPrivate::qMakeForeachContainer(T)': /usr/include/qt5/QtCore/qglobal.h:1012:44: error: 'decay' in namespace 'std' does not name a template type return QForeachContainer::type>(std::forward(t)); ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:49: error: expected template-argument before '<' token return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:49: error: expected '>' before '<' token /usr/include/qt5/QtCore/qglobal.h:1012:58: error: template argument 1 is invalid return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:65: error: 'forward' is not a member of 'std' return QForeachContainer::type>(std::forward(t)); ^~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:65: note: 'std::forward' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:1012:76: error: 't' was not declared in this scope return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:65: error: 'forward' is not a member of 'std' return QForeachContainer::type>(std::forward(t)); ^~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:65: note: 'std::forward' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:1012:74: error: expected primary-expression before '>' token return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h: At global scope: /usr/include/qt5/QtCore/qglobal.h:1055:70: error: expected type-specifier before 'decltype' template inline auto qGetPtrHelper(const Ptr &ptr) -> decltype(ptr.operator->()) { return ptr.operator->(); } ^~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1055:70: error: expected initializer before 'decltype' /usr/include/qt5/QtCore/qglobal.h:1189:79: error: 'nullptr' was not declared in this scope Q_CORE_EXPORT int qEnvironmentVariableIntValue(const char *varName, bool *ok=nullptr) Q_DECL_NOEXCEPT; ^~~~~~~ In file included from /usr/include/qt5/QtCore/qglobal.h:1218, from /usr/include/qt5/QtCore/qsharedpointer.h:43, from /usr/include/qt5/QtCore/QSharedPointer:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/outputstream.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/filter.h:27, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/filter.cpp:2: /usr/include/qt5/QtCore/qtypeinfo.h:53:8: error: 'constexpr' does not name a type static constexpr bool qIsRelocatable() ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:53:8: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qtypeinfo.h:63:8: error: 'constexpr' does not name a type static constexpr bool qIsTrivial() ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:63:8: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qtypeinfo.h:81:30: error: 'is_enum' is not a member of 'std' isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:81:39: error: expected primary-expression before '>' token isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^ /usr/include/qt5/QtCore/qtypeinfo.h:81:42: error: '::value' has not been declared isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:81:42: note: suggested alternative: 'valloc' isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~ valloc /usr/include/qt5/QtCore/qtypeinfo.h:83:27: error: 'is_integral' is not a member of 'std' isIntegral = std::is_integral::value, ^~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:83:40: error: expected primary-expression before '>' token isIntegral = std::is_integral::value, ^ /usr/include/qt5/QtCore/qtypeinfo.h:83:43: error: '::value' has not been declared isIntegral = std::is_integral::value, ^~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:83:43: note: suggested alternative: 'valloc' isIntegral = std::is_integral::value, ^~~~~ valloc /usr/include/qt5/QtCore/qtypeinfo.h:84:22: error: 'qIsTrivial' was not declared in this scope isComplex = !qIsTrivial(), ^~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:84:22: note: suggested alternative: 'qCritical' isComplex = !qIsTrivial(), ^~~~~~~~~~ qCritical /usr/include/qt5/QtCore/qtypeinfo.h:84:34: error: expected primary-expression before '>' token isComplex = !qIsTrivial(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:84:36: error: expected primary-expression before ')' token isComplex = !qIsTrivial(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:86:25: error: 'qIsRelocatable' was not declared in this scope isRelocatable = qIsRelocatable(), ^~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:86:41: error: expected primary-expression before '>' token isRelocatable = qIsRelocatable(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:86:43: error: expected primary-expression before ')' token isRelocatable = qIsRelocatable(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:150:40: error: 'enable_if' in namespace 'std' does not name a template type struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:150:40: note: suggested alternative: 'replace_if' struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^~~~~~~~~ replace_if /usr/include/qt5/QtCore/qtypeinfo.h:150:49: error: expected template-argument before '<' token struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ /usr/include/qt5/QtCore/qtypeinfo.h:150:49: error: expected '>' before '<' token /usr/include/qt5/QtCore/qtypeinfo.h:150:92: error: template argument 2 is invalid struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'qIsTrivial' was not declared in this scope Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: note: suggested alternative: 'qCritical' /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before ')' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'qIsRelocatable' was not declared in this scope Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before ')' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'is_integral' is not a member of 'std' Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: '::value' has not been declared Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: note: suggested alternative: 'valloc' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: 'qIsTrivial' was not declared in this scope Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: note: suggested alternative: 'qCritical' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected primary-expression before 'bool' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected '}' before 'bool' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: note: to match this '{' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected unqualified-id before '>' token Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected declaration before '}' token Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ make[2]: *** [templates/lib/CMakeFiles/Grantlee_Templates.dir/build.make:144: templates/lib/CMakeFiles/Grantlee_Templates.dir/filter.cpp.o] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' [ 18%] Building CXX object templates/lib/CMakeFiles/Grantlee_Templates.dir/filterexpression.cpp.o cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib && /usr/bin/c++ -DGrantlee_Templates_EXPORTS -DPLUGINS_PREFER_DEBUG_POSTFIX=0 -DQT_CORE_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DQT_SCRIPT_LIB -DQT_STRICT_ITERATORS -DQT_USE_QSTRINGBUILDER -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/include -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/../scriptabletags -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtScript -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-check-new -fno-common -pedantic-errors -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -o CMakeFiles/Grantlee_Templates.dir/filterexpression.cpp.o -c /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/filterexpression.cpp In file included from /usr/include/c++/8.3.1/type_traits:35, from /usr/include/qt5/QtCore/qglobal.h:45, from /usr/include/qt5/QtCore/qatomic.h:41, from /usr/include/qt5/QtCore/qvariant.h:43, from /usr/include/qt5/QtCore/QVariant:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/variable.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/filterexpression.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/filterexpression.cpp:21: /usr/include/c++/8.3.1/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options. #error This file requires compiler and library support \ ^~~~~ In file included from /usr/include/qt5/QtCore/qglobal.h:105, from /usr/include/qt5/QtCore/qatomic.h:41, from /usr/include/qt5/QtCore/qvariant.h:43, from /usr/include/qt5/QtCore/QVariant:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/variable.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/filterexpression.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/filterexpression.cpp:21: /usr/include/qt5/QtCore/qcompilerdetection.h:564:6: error: #error Qt requires a C++11 compiler and yours does not seem to be that. # error Qt requires a C++11 compiler and yours does not seem to be that. ^~~~~ In file included from /usr/include/qt5/QtCore/qatomic.h:46, from /usr/include/qt5/QtCore/qglobal.h:1224, from /usr/include/qt5/QtCore/qatomic.h:41, from /usr/include/qt5/QtCore/qvariant.h:43, from /usr/include/qt5/QtCore/QVariant:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/variable.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/filterexpression.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/filterexpression.cpp:21: /usr/include/qt5/QtCore/qbasicatomic.h:61:4: error: #error "Qt requires C++11 support" # error "Qt requires C++11 support" ^~~~~ In file included from /usr/include/qt5/QtCore/qatomic.h:41, from /usr/include/qt5/QtCore/qvariant.h:43, from /usr/include/qt5/QtCore/QVariant:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/variable.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/filterexpression.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/filterexpression.cpp:21: /usr/include/qt5/QtCore/qglobal.h:513:7: error: expected nested-name-specifier before 'qsizetype' using qsizetype = QIntegerForSizeof::Signed; ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:602:1: error: 'constexpr' does not name a type constexpr inline const T &qMin(const T &a, const T &b) { return (a < b) ? a : b; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:602:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qglobal.h:604:1: error: 'constexpr' does not name a type constexpr inline const T &qMax(const T &a, const T &b) { return (a < b) ? b : a; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:604:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qglobal.h:606:1: error: 'constexpr' does not name a type constexpr inline const T &qBound(const T &min, const T &val, const T &max) ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:606:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 In file included from /usr/include/qt5/QtCore/qglobal.h:105, from /usr/include/qt5/QtCore/qatomic.h:41, from /usr/include/qt5/QtCore/qvariant.h:43, from /usr/include/qt5/QtCore/QVariant:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/variable.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/filterexpression.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/filterexpression.cpp:21: /usr/include/qt5/QtCore/qglobal.h:835:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyCompare(double p1, double p2) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:840:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyCompare(float p1, float p2) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:845:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNull(double d) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:850:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNull(float f) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:860:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT static inline Q_DECL_UNUSED bool qIsNull(double d) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:876:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT static inline Q_DECL_UNUSED bool qIsNull(float f) ^~~~~~~~~~~~~~~~~ In file included from /usr/include/qt5/QtCore/qatomic.h:41, from /usr/include/qt5/QtCore/qvariant.h:43, from /usr/include/qt5/QtCore/QVariant:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/variable.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/filterexpression.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/filterexpression.cpp:21: /usr/include/qt5/QtCore/qglobal.h:971:32: error: 'add_const' in namespace 'std' does not name a template type Q_DECL_CONSTEXPR typename std::add_const::type &qAsConst(T &t) Q_DECL_NOTHROW { return t; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:971:41: error: expected unqualified-id before '<' token Q_DECL_CONSTEXPR typename std::add_const::type &qAsConst(T &t) Q_DECL_NOTHROW { return t; } ^ /usr/include/qt5/QtCore/qglobal.h:974:23: error: expected ',' or '...' before '&&' token void qAsConst(const T &&) Q_DECL_EQ_DELETE; ^~ /usr/include/qt5/QtCore/qglobal.h:985:25: error: expected ',' or '...' before '&&' token QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^~ /usr/include/qt5/QtCore/qglobal.h:987:41: error: expected ',' or '...' before '&&' token QForeachContainer(QForeachContainer &&other) ^~ /usr/include/qt5/QtCore/qglobal.h:987:48: error: invalid constructor; you probably meant 'QtPrivate::QForeachContainer (const QtPrivate::QForeachContainer&)' QForeachContainer(QForeachContainer &&other) ^ /usr/include/qt5/QtCore/qglobal.h:995:52: error: expected ',' or '...' before '&&' token QForeachContainer &operator=(QForeachContainer &&other) ^~ /usr/include/qt5/QtCore/qglobal.h: In constructor 'QtPrivate::QForeachContainer::QForeachContainer(T)': /usr/include/qt5/QtCore/qglobal.h:985:39: error: 'move' is not a member of 'std' QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^~~~ /usr/include/qt5/QtCore/qglobal.h:985:39: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:985:44: error: 't' was not declared in this scope QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^ /usr/include/qt5/QtCore/qglobal.h: In member function 'QtPrivate::QForeachContainer& QtPrivate::QForeachContainer::operator=(QtPrivate::QForeachContainer)': /usr/include/qt5/QtCore/qglobal.h:997:18: error: 'move' is not a member of 'std' c = std::move(other.c); ^~~~ /usr/include/qt5/QtCore/qglobal.h:997:18: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:997:23: error: 'other' was not declared in this scope c = std::move(other.c); ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1000:24: error: 'move' is not a member of 'std' control = std::move(other.control); ^~~~ /usr/include/qt5/QtCore/qglobal.h:1000:24: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h: At global scope: /usr/include/qt5/QtCore/qglobal.h:1010:33: error: 'decay' in namespace 'std' does not name a template type QForeachContainer::type> qMakeForeachContainer(T &&t) ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1010:38: error: expected template-argument before '<' token QForeachContainer::type> qMakeForeachContainer(T &&t) ^ /usr/include/qt5/QtCore/qglobal.h:1010:38: error: expected '>' before '<' token /usr/include/qt5/QtCore/qglobal.h:1010:47: error: template argument 1 is invalid QForeachContainer::type> qMakeForeachContainer(T &&t) ^ /usr/include/qt5/QtCore/qglobal.h:1010:73: error: expected ',' or '...' before '&&' token QForeachContainer::type> qMakeForeachContainer(T &&t) ^~ /usr/include/qt5/QtCore/qglobal.h: In function 'int QtPrivate::qMakeForeachContainer(T)': /usr/include/qt5/QtCore/qglobal.h:1012:44: error: 'decay' in namespace 'std' does not name a template type return QForeachContainer::type>(std::forward(t)); ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:49: error: expected template-argument before '<' token return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:49: error: expected '>' before '<' token /usr/include/qt5/QtCore/qglobal.h:1012:58: error: template argument 1 is invalid return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:65: error: 'forward' is not a member of 'std' return QForeachContainer::type>(std::forward(t)); ^~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:65: note: 'std::forward' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:1012:76: error: 't' was not declared in this scope return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:65: error: 'forward' is not a member of 'std' return QForeachContainer::type>(std::forward(t)); ^~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:65: note: 'std::forward' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:1012:74: error: expected primary-expression before '>' token return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h: At global scope: /usr/include/qt5/QtCore/qglobal.h:1055:70: error: expected type-specifier before 'decltype' template inline auto qGetPtrHelper(const Ptr &ptr) -> decltype(ptr.operator->()) { return ptr.operator->(); } ^~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1055:70: error: expected initializer before 'decltype' /usr/include/qt5/QtCore/qglobal.h:1189:79: error: 'nullptr' was not declared in this scope Q_CORE_EXPORT int qEnvironmentVariableIntValue(const char *varName, bool *ok=nullptr) Q_DECL_NOEXCEPT; ^~~~~~~ In file included from /usr/include/qt5/QtCore/qglobal.h:1218, from /usr/include/qt5/QtCore/qatomic.h:41, from /usr/include/qt5/QtCore/qvariant.h:43, from /usr/include/qt5/QtCore/QVariant:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/variable.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/filterexpression.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/filterexpression.cpp:21: /usr/include/qt5/QtCore/qtypeinfo.h:53:8: error: 'constexpr' does not name a type static constexpr bool qIsRelocatable() ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:53:8: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qtypeinfo.h:63:8: error: 'constexpr' does not name a type static constexpr bool qIsTrivial() ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:63:8: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qtypeinfo.h:81:30: error: 'is_enum' is not a member of 'std' isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:81:39: error: expected primary-expression before '>' token isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^ /usr/include/qt5/QtCore/qtypeinfo.h:81:42: error: '::value' has not been declared isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:81:42: note: suggested alternative: 'valloc' isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~ valloc /usr/include/qt5/QtCore/qtypeinfo.h:83:27: error: 'is_integral' is not a member of 'std' isIntegral = std::is_integral::value, ^~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:83:40: error: expected primary-expression before '>' token isIntegral = std::is_integral::value, ^ /usr/include/qt5/QtCore/qtypeinfo.h:83:43: error: '::value' has not been declared isIntegral = std::is_integral::value, ^~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:83:43: note: suggested alternative: 'valloc' isIntegral = std::is_integral::value, ^~~~~ valloc /usr/include/qt5/QtCore/qtypeinfo.h:84:22: error: 'qIsTrivial' was not declared in this scope isComplex = !qIsTrivial(), ^~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:84:22: note: suggested alternative: 'qCritical' isComplex = !qIsTrivial(), ^~~~~~~~~~ qCritical /usr/include/qt5/QtCore/qtypeinfo.h:84:34: error: expected primary-expression before '>' token isComplex = !qIsTrivial(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:84:36: error: expected primary-expression before ')' token isComplex = !qIsTrivial(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:86:25: error: 'qIsRelocatable' was not declared in this scope isRelocatable = qIsRelocatable(), ^~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:86:41: error: expected primary-expression before '>' token isRelocatable = qIsRelocatable(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:86:43: error: expected primary-expression before ')' token isRelocatable = qIsRelocatable(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:150:40: error: 'enable_if' in namespace 'std' does not name a template type struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:150:40: note: suggested alternative: 'replace_if' struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^~~~~~~~~ replace_if /usr/include/qt5/QtCore/qtypeinfo.h:150:49: error: expected template-argument before '<' token struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ /usr/include/qt5/QtCore/qtypeinfo.h:150:49: error: expected '>' before '<' token /usr/include/qt5/QtCore/qtypeinfo.h:150:92: error: template argument 2 is invalid struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'qIsTrivial' was not declared in this scope Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: note: suggested alternative: 'qCritical' /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before ')' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'qIsRelocatable' was not declared in this scope Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before ')' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'is_integral' is not a member of 'std' Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: '::value' has not been declared Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: note: suggested alternative: 'valloc' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: 'qIsTrivial' was not declared in this scope Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: note: suggested alternative: 'qCritical' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected primary-expression before 'bool' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected '}' before 'bool' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: note: to match this '{' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected unqualified-id before '>' token Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected declaration before '}' token Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ make[2]: *** [templates/lib/CMakeFiles/Grantlee_Templates.dir/build.make:157: templates/lib/CMakeFiles/Grantlee_Templates.dir/filterexpression.cpp.o] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' [ 17%] Building CXX object templates/lib/CMakeFiles/Grantlee_Templates.dir/engine.cpp.o cd /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib && /usr/bin/c++ -DGrantlee_Templates_EXPORTS -DPLUGINS_PREFER_DEBUG_POSTFIX=0 -DQT_CORE_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DQT_SCRIPT_LIB -DQT_STRICT_ITERATORS -DQT_USE_QSTRINGBUILDER -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build/templates/lib/Grantlee_Templates_autogen/include -I/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/../scriptabletags -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtScript -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-check-new -fno-common -pedantic-errors -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -o CMakeFiles/Grantlee_Templates.dir/engine.cpp.o -c /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/engine.cpp In file included from /usr/include/c++/8.3.1/type_traits:35, from /usr/include/qt5/QtCore/qglobal.h:45, from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/exception.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/template.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/engine.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/engine.cpp:21: /usr/include/c++/8.3.1/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options. #error This file requires compiler and library support \ ^~~~~ In file included from /usr/include/qt5/QtCore/qglobal.h:105, from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/exception.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/template.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/engine.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/engine.cpp:21: /usr/include/qt5/QtCore/qcompilerdetection.h:564:6: error: #error Qt requires a C++11 compiler and yours does not seem to be that. # error Qt requires a C++11 compiler and yours does not seem to be that. ^~~~~ In file included from /usr/include/qt5/QtCore/qatomic.h:46, from /usr/include/qt5/QtCore/qglobal.h:1224, from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/exception.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/template.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/engine.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/engine.cpp:21: /usr/include/qt5/QtCore/qbasicatomic.h:61:4: error: #error "Qt requires C++11 support" # error "Qt requires C++11 support" ^~~~~ In file included from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/exception.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/template.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/engine.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/engine.cpp:21: /usr/include/qt5/QtCore/qglobal.h:513:7: error: expected nested-name-specifier before 'qsizetype' using qsizetype = QIntegerForSizeof::Signed; ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:602:1: error: 'constexpr' does not name a type constexpr inline const T &qMin(const T &a, const T &b) { return (a < b) ? a : b; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:602:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qglobal.h:604:1: error: 'constexpr' does not name a type constexpr inline const T &qMax(const T &a, const T &b) { return (a < b) ? b : a; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:604:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qglobal.h:606:1: error: 'constexpr' does not name a type constexpr inline const T &qBound(const T &min, const T &val, const T &max) ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:606:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 In file included from /usr/include/qt5/QtCore/qglobal.h:105, from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/exception.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/template.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/engine.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/engine.cpp:21: /usr/include/qt5/QtCore/qglobal.h:835:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyCompare(double p1, double p2) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:840:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyCompare(float p1, float p2) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:845:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNull(double d) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:850:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT Q_DECL_CONSTEXPR static inline Q_DECL_UNUSED bool qFuzzyIsNull(float f) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:860:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT static inline Q_DECL_UNUSED bool qIsNull(double d) ^~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:876:1: error: expected unqualified-id before '[' token Q_REQUIRED_RESULT static inline Q_DECL_UNUSED bool qIsNull(float f) ^~~~~~~~~~~~~~~~~ In file included from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/exception.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/template.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/engine.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/engine.cpp:21: /usr/include/qt5/QtCore/qglobal.h:971:32: error: 'add_const' in namespace 'std' does not name a template type Q_DECL_CONSTEXPR typename std::add_const::type &qAsConst(T &t) Q_DECL_NOTHROW { return t; } ^~~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:971:41: error: expected unqualified-id before '<' token Q_DECL_CONSTEXPR typename std::add_const::type &qAsConst(T &t) Q_DECL_NOTHROW { return t; } ^ /usr/include/qt5/QtCore/qglobal.h:974:23: error: expected ',' or '...' before '&&' token void qAsConst(const T &&) Q_DECL_EQ_DELETE; ^~ /usr/include/qt5/QtCore/qglobal.h:985:25: error: expected ',' or '...' before '&&' token QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^~ /usr/include/qt5/QtCore/qglobal.h:987:41: error: expected ',' or '...' before '&&' token QForeachContainer(QForeachContainer &&other) ^~ /usr/include/qt5/QtCore/qglobal.h:987:48: error: invalid constructor; you probably meant 'QtPrivate::QForeachContainer (const QtPrivate::QForeachContainer&)' QForeachContainer(QForeachContainer &&other) ^ /usr/include/qt5/QtCore/qglobal.h:995:52: error: expected ',' or '...' before '&&' token QForeachContainer &operator=(QForeachContainer &&other) ^~ /usr/include/qt5/QtCore/qglobal.h: In constructor 'QtPrivate::QForeachContainer::QForeachContainer(T)': /usr/include/qt5/QtCore/qglobal.h:985:39: error: 'move' is not a member of 'std' QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^~~~ /usr/include/qt5/QtCore/qglobal.h:985:39: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:985:44: error: 't' was not declared in this scope QForeachContainer(T &&t) : c(std::move(t)), i(qAsConst(c).begin()), e(qAsConst(c).end()) {} ^ /usr/include/qt5/QtCore/qglobal.h: In member function 'QtPrivate::QForeachContainer& QtPrivate::QForeachContainer::operator=(QtPrivate::QForeachContainer)': /usr/include/qt5/QtCore/qglobal.h:997:18: error: 'move' is not a member of 'std' c = std::move(other.c); ^~~~ /usr/include/qt5/QtCore/qglobal.h:997:18: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:997:23: error: 'other' was not declared in this scope c = std::move(other.c); ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1000:24: error: 'move' is not a member of 'std' control = std::move(other.control); ^~~~ /usr/include/qt5/QtCore/qglobal.h:1000:24: note: 'std::move' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h: At global scope: /usr/include/qt5/QtCore/qglobal.h:1010:33: error: 'decay' in namespace 'std' does not name a template type QForeachContainer::type> qMakeForeachContainer(T &&t) ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1010:38: error: expected template-argument before '<' token QForeachContainer::type> qMakeForeachContainer(T &&t) ^ /usr/include/qt5/QtCore/qglobal.h:1010:38: error: expected '>' before '<' token /usr/include/qt5/QtCore/qglobal.h:1010:47: error: template argument 1 is invalid QForeachContainer::type> qMakeForeachContainer(T &&t) ^ /usr/include/qt5/QtCore/qglobal.h:1010:73: error: expected ',' or '...' before '&&' token QForeachContainer::type> qMakeForeachContainer(T &&t) ^~ /usr/include/qt5/QtCore/qglobal.h: In function 'int QtPrivate::qMakeForeachContainer(T)': /usr/include/qt5/QtCore/qglobal.h:1012:44: error: 'decay' in namespace 'std' does not name a template type return QForeachContainer::type>(std::forward(t)); ^~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:49: error: expected template-argument before '<' token return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:49: error: expected '>' before '<' token /usr/include/qt5/QtCore/qglobal.h:1012:58: error: template argument 1 is invalid return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:65: error: 'forward' is not a member of 'std' return QForeachContainer::type>(std::forward(t)); ^~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:65: note: 'std::forward' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:1012:76: error: 't' was not declared in this scope return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h:1012:65: error: 'forward' is not a member of 'std' return QForeachContainer::type>(std::forward(t)); ^~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1012:65: note: 'std::forward' is only available from C++11 onwards /usr/include/qt5/QtCore/qglobal.h:1012:74: error: expected primary-expression before '>' token return QForeachContainer::type>(std::forward(t)); ^ /usr/include/qt5/QtCore/qglobal.h: At global scope: /usr/include/qt5/QtCore/qglobal.h:1055:70: error: expected type-specifier before 'decltype' template inline auto qGetPtrHelper(const Ptr &ptr) -> decltype(ptr.operator->()) { return ptr.operator->(); } ^~~~~~~~ /usr/include/qt5/QtCore/qglobal.h:1055:70: error: expected initializer before 'decltype' /usr/include/qt5/QtCore/qglobal.h:1189:79: error: 'nullptr' was not declared in this scope Q_CORE_EXPORT int qEnvironmentVariableIntValue(const char *varName, bool *ok=nullptr) Q_DECL_NOEXCEPT; ^~~~~~~ In file included from /usr/include/qt5/QtCore/qglobal.h:1218, from /usr/include/qt5/QtCore/qchar.h:43, from /usr/include/qt5/QtCore/qstring.h:48, from /usr/include/qt5/QtCore/QString:1, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/exception.h:26, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/template.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/engine.h:24, from /home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/templates/lib/engine.cpp:21: /usr/include/qt5/QtCore/qtypeinfo.h:53:8: error: 'constexpr' does not name a type static constexpr bool qIsRelocatable() ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:53:8: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qtypeinfo.h:63:8: error: 'constexpr' does not name a type static constexpr bool qIsTrivial() ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:63:8: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11 /usr/include/qt5/QtCore/qtypeinfo.h:81:30: error: 'is_enum' is not a member of 'std' isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:81:39: error: expected primary-expression before '>' token isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^ /usr/include/qt5/QtCore/qtypeinfo.h:81:42: error: '::value' has not been declared isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:81:42: note: suggested alternative: 'valloc' isSpecialized = std::is_enum::value, // don't require every enum to be marked manually ^~~~~ valloc /usr/include/qt5/QtCore/qtypeinfo.h:83:27: error: 'is_integral' is not a member of 'std' isIntegral = std::is_integral::value, ^~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:83:40: error: expected primary-expression before '>' token isIntegral = std::is_integral::value, ^ /usr/include/qt5/QtCore/qtypeinfo.h:83:43: error: '::value' has not been declared isIntegral = std::is_integral::value, ^~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:83:43: note: suggested alternative: 'valloc' isIntegral = std::is_integral::value, ^~~~~ valloc /usr/include/qt5/QtCore/qtypeinfo.h:84:22: error: 'qIsTrivial' was not declared in this scope isComplex = !qIsTrivial(), ^~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:84:22: note: suggested alternative: 'qCritical' isComplex = !qIsTrivial(), ^~~~~~~~~~ qCritical /usr/include/qt5/QtCore/qtypeinfo.h:84:34: error: expected primary-expression before '>' token isComplex = !qIsTrivial(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:84:36: error: expected primary-expression before ')' token isComplex = !qIsTrivial(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:86:25: error: 'qIsRelocatable' was not declared in this scope isRelocatable = qIsRelocatable(), ^~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:86:41: error: expected primary-expression before '>' token isRelocatable = qIsRelocatable(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:86:43: error: expected primary-expression before ')' token isRelocatable = qIsRelocatable(), ^ /usr/include/qt5/QtCore/qtypeinfo.h:150:40: error: 'enable_if' in namespace 'std' does not name a template type struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:150:40: note: suggested alternative: 'replace_if' struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^~~~~~~~~ replace_if /usr/include/qt5/QtCore/qtypeinfo.h:150:49: error: expected template-argument before '<' token struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ /usr/include/qt5/QtCore/qtypeinfo.h:150:49: error: expected '>' before '<' token /usr/include/qt5/QtCore/qtypeinfo.h:150:92: error: template argument 2 is invalid struct QTypeInfoQuery::isRelocatable || true>::type> : public QTypeInfo ^ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'qIsTrivial' was not declared in this scope Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: note: suggested alternative: 'qCritical' /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before ')' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'qIsRelocatable' was not declared in this scope Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before ')' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: 'is_integral' is not a member of 'std' Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: expected primary-expression before '>' token Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: error: '::value' has not been declared Q_DECLARE_TYPEINFO_BODY(QFlags, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:290:1: note: suggested alternative: 'valloc' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: 'qIsTrivial' was not declared in this scope Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: note: suggested alternative: 'qCritical' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected primary-expression before 'bool' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected '}' before 'bool' /usr/include/qt5/QtCore/qtypeinfo.h:320:1: note: to match this '{' Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected unqualified-id before '>' token Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ /usr/include/qt5/QtCore/qtypeinfo.h:320:1: error: expected declaration before '}' token Q_DECLARE_TYPEINFO(bool, Q_PRIMITIVE_TYPE); ^~~~~~~~~~~~~~~~~~ make[2]: *** [templates/lib/CMakeFiles/Grantlee_Templates.dir/build.make:131: templates/lib/CMakeFiles/Grantlee_Templates.dir/engine.cpp.o] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/grantlee-5.1.0/build' make[1]: *** [CMakeFiles/Makefile2:190: templates/lib/CMakeFiles/Grantlee_Templates.dir/all] Error 2 make: *** [Makefile:166: all] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.dSgXbI (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.dSgXbI (%build) I: [iurt_root_command] ERROR: chroot