I’m having an issue with superbuild and qt
[ 91%] Performing configure step for 'qt5'
+ cd qtbase
+ /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/configure -top-level -opensource -confirm-license -release -prefix /home/pascal/projects/paraview-superbuild_build/install -I /home/pascal/projects/paraview-superbuild_build/install/include -L /home/pascal/projects/paraview-superbuild_build/install/lib -skip qtconnectivity -skip qtgamepad -skip qtlocation -skip qtsensors -skip qtserialport -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -nomake examples -nomake tests -no-dbus -no-icu -qt-libjpeg -qt-pcre -system-zlib -no-openssl -system-libpng -fontconfig -qt-xcb -xkbcommon
Preparing build tree...
Creating qmake...
In file included from /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/qendian.h:1,
from /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/src/corelib/codecs/qutfcodec.cpp:43:
/home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/../../src/corelib/global/qendian.h: In static member function ‘static constexpr QSpecialInteger<S> QSpecialInteger<S>::max()’:
/home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/../../src/corelib/global/qendian.h:331:35: error: ‘numeric_limits’ is not a member of ‘std’
331 | { return QSpecialInteger(std::numeric_limits<T>::max()); }
| ^~~~~~~~~~~~~~
/home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/../../src/corelib/global/qendian.h:331:54: error: ‘::max’ has not been declared; did you mean ‘std::max’?
331 | { return QSpecialInteger(std::numeric_limits<T>::max()); }
| ^~~
| std::max
In file included from /usr/include/c++/11/algorithm:62,
from /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:142,
from /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/qglobal.h:1,
from /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/../../src/corelib/tools/qchar.h:43,
from /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/qchar.h:1,
from /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/../../src/corelib/tools/qstring.h:48,
from /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/qstring.h:1,
from /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/src/corelib/codecs/qutfcodec_p.h:55,
from /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/src/corelib/codecs/qutfcodec.cpp:41:
/usr/include/c++/11/bits/stl_algo.h:3467:5: note: ‘std::max’ declared here
3467 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
In file included from /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/qendian.h:1,
from /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/src/corelib/codecs/qutfcodec.cpp:43:
/home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/../../src/corelib/global/qendian.h:331:29: error: expected primary-expression before ‘(’ token
331 | { return QSpecialInteger(std::numeric_limits<T>::max()); }
| ^
/home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/../../src/corelib/global/qendian.h:331:35: error: ‘numeric_limits’ is not a member of ‘std’
331 | { return QSpecialInteger(std::numeric_limits<T>::max()); }
| ^~~~~~~~~~~~~~
/home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/../../src/corelib/global/qendian.h:331:51: error: expected primary-expression before ‘>’ token
331 | { return QSpecialInteger(std::numeric_limits<T>::max()); }
| ^
/home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/../../src/corelib/global/qendian.h:331:54: error: ‘::max’ has not been declared; did you mean ‘std::max’?
331 | { return QSpecialInteger(std::numeric_limits<T>::max()); }
| ^~~
| std::max
In file included from /usr/include/c++/11/algorithm:62,
from /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:142,
from /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/qglobal.h:1,
from /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/../../src/corelib/tools/qchar.h:43,
from /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/qchar.h:1,
from /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/../../src/corelib/tools/qstring.h:48,
from /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/qstring.h:1,
from /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/src/corelib/codecs/qutfcodec_p.h:55,
from /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/src/corelib/codecs/qutfcodec.cpp:41:
/usr/include/c++/11/bits/stl_algo.h:3467:5: note: ‘std::max’ declared here
3467 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
In file included from /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/qendian.h:1,
from /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/src/corelib/codecs/qutfcodec.cpp:43:
/home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/../../src/corelib/global/qendian.h: In static member function ‘static constexpr QSpecialInteger<S> QSpecialInteger<S>::min()’:
/home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/../../src/corelib/global/qendian.h:333:35: error: ‘numeric_limits’ is not a member of ‘std’
333 | { return QSpecialInteger(std::numeric_limits<T>::min()); }
| ^~~~~~~~~~~~~~
/home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/../../src/corelib/global/qendian.h:333:54: error: ‘::min’ has not been declared; did you mean ‘std::min’?
333 | { return QSpecialInteger(std::numeric_limits<T>::min()); }
| ^~~
| std::min
In file included from /usr/include/c++/11/algorithm:62,
from /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:142,
from /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/qglobal.h:1,
from /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/../../src/corelib/tools/qchar.h:43,
from /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/qchar.h:1,
from /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/../../src/corelib/tools/qstring.h:48,
from /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/qstring.h:1,
from /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/src/corelib/codecs/qutfcodec_p.h:55,
from /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/src/corelib/codecs/qutfcodec.cpp:41:
/usr/include/c++/11/bits/stl_algo.h:3455:5: note: ‘std::min’ declared here
3455 | min(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
In file included from /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/qendian.h:1,
from /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/src/corelib/codecs/qutfcodec.cpp:43:
/home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/../../src/corelib/global/qendian.h:333:29: error: expected primary-expression before ‘(’ token
333 | { return QSpecialInteger(std::numeric_limits<T>::min()); }
| ^
/home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/../../src/corelib/global/qendian.h:333:35: error: ‘numeric_limits’ is not a member of ‘std’
333 | { return QSpecialInteger(std::numeric_limits<T>::min()); }
| ^~~~~~~~~~~~~~
/home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/../../src/corelib/global/qendian.h:333:51: error: expected primary-expression before ‘>’ token
333 | { return QSpecialInteger(std::numeric_limits<T>::min()); }
| ^
/home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/../../src/corelib/global/qendian.h:333:54: error: ‘::min’ has not been declared; did you mean ‘std::min’?
333 | { return QSpecialInteger(std::numeric_limits<T>::min()); }
| ^~~
| std::min
In file included from /usr/include/c++/11/algorithm:62,
from /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:142,
from /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/qglobal.h:1,
from /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/../../src/corelib/tools/qchar.h:43,
from /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/qchar.h:1,
from /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/../../src/corelib/tools/qstring.h:48,
from /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/include/QtCore/qstring.h:1,
from /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/src/corelib/codecs/qutfcodec_p.h:55,
from /home/pascal/projects/paraview-superbuild_build/superbuild/qt5/src/qtbase/src/corelib/codecs/qutfcodec.cpp:41:
/usr/include/c++/11/bits/stl_algo.h:3455:5: note: ‘std::min’ declared here
3455 | min(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
make[3]: *** [Makefile:382: qutfcodec.o] Error 1
CMake Error at /home/pascal/projects/paraview-superbuild_build/superbuild/sb-qt5-configure.cmake:47 (message):
Failed with exit code 2
make[2]: *** [superbuild/CMakeFiles/qt5.dir/build.make:107: superbuild/qt5/stamp/qt5-configure] Error 1
make[1]: *** [CMakeFiles/Makefile2:2315: superbuild/CMakeFiles/qt5.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
This is my gcc version:
pascal@pn2035929:~/projects/paraview-superbuild_build$ gcc --version
gcc (Ubuntu 11.4.0-2ubuntu1~20.04) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
and this is from master:
pascal@pn2035929:~/projects/paraview-superbuild$ git branch
* master
pascal@pn2035929:~/projects/paraview-superbuild$ pwd
/home/pascal/projects/paraview-superbuild
What’s the fix for that?
Also, I talked to Cory at SC last week about this, and he recommended the superbuild as well. He showed me where BLOSC was but it seems that SZ is not available in paraview yet. This