memtt / malt

MALT is a MALloc Tracker to find where and how your made your memory allocations in C/C++/Fortran applications.
https://memtt.github.io/malt/
Other
106 stars 15 forks source link

CentOS-7 rebuild of the src.rpm failure #4

Open truatpasteurdotfr opened 6 years ago

truatpasteurdotfr commented 6 years ago

Hi

the default gcc version doesn't seem to be able to rebuild the x86_64.rpm with a plain "rpmbuild --rebuild".

[ 98%] Building CXX object src/qtview/CMakeFiles/malt-qt5.dir/main.cpp.o
cd /home/tru/rpmbuild/BUILD/malt-1.0.0/src/qtview && /usr/bin/c++   -DHAVE_QT5_WEBKIT_WIDGETS -DMALT_PREFIX=\"/usr\" -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_WEBKITWIDGETS_LIB -DQT_WEBKIT_LIB -DQT_WIDGETS_LIB -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic  -I/home/tru/rpmbuild/BUILD/malt-1.0.0/src/qtview -I/usr/include/qt5 -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I/usr/lib64/qt5/./mkspecs/linux-g++ -I/usr/include/qt5/QtWebKitWidgets -I/usr/include/qt5/QtWebKit -I/usr/include/qt5/QtNetwork    -fPIC -o CMakeFiles/malt-qt5.dir/main.cpp.o -c /home/tru/rpmbuild/BUILD/malt-1.0.0/src/qtview/main.cpp
In file included from /usr/include/c++/4.8.2/type_traits:35:0,
                 from /usr/include/qt5/QtCore/qglobal.h:45,
                 from /usr/include/qt5/QtGui/qtguiglobal.h:43,
                 from /usr/include/qt5/QtWidgets/qtwidgetsglobal.h:43,
                 from /usr/include/qt5/QtWidgets/qapplication.h:43,
                 from /usr/include/qt5/QtWidgets/QApplication:1,
                 from /home/tru/rpmbuild/BUILD/malt-1.0.0/src/qtview/main.cpp:11:
/usr/include/c++/4.8.2/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
 #error This file requires compiler and library support for the \
  ^
In file included from /usr/include/qt5/QtCore/qglobal.h:98:0,
                 from /usr/include/qt5/QtGui/qtguiglobal.h:43,
                 from /usr/include/qt5/QtWidgets/qtwidgetsglobal.h:43,
                 from /usr/include/qt5/QtWidgets/qapplication.h:43,
                 from /usr/include/qt5/QtWidgets/QApplication:1,
                 from /home/tru/rpmbuild/BUILD/malt-1.0.0/src/qtview/main.cpp:11:
/usr/include/qt5/QtCore/qcompilerdetection.h:567: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.

If I am using a newer gcc version such as the one provided by devtoolset-6, it builds fine.

svalat commented 6 years ago

This is because of my recent add for qt view, I will give a look as soon as possible, thanks for reporting and sorry for delay.

svalat commented 5 years ago

I'm thinking ? You made your test on which centos/fedora version ?

Cheers.

truatpasteurdotfr commented 5 years ago

I am running CentOS-7 7.5 at that time.