To be accurate, we run the standalone-qt project which uses the same superbuild code to build and install qt5 on the machine and then we build against that version of Qt to save time. (Not rebuilding Qt cuts build time roughly in half). Also our buildbot is CentOS 6 with newer compilers, so it may be an Ubuntu problem.
Have you tried changing the qt5_SOURCE_SELECTION cmake variable? Unless you need Qt 5.8 for some reason, you could try building with 5.9 or 5.10. Ubuntu 18.04 is very new and you may have better luck with a newer Qt version.
[ 90%] Performing build step for 'qt5'
make[3]: warning: -jN forced in submake: disabling jobserver mode.
Info: creating cache file /home/qth20/Downloads/build-paraview/superbuild/qt5/build/qtbase/.qmake.cache
In file included from /home/qth20/Downloads/build-paraview/superbuild/qt5/src/qtbase/include/QtCore/qstring.h:1:0,
from /home/qth20/Downloads/build-paraview/superbuild/qt5/src/qtbase/include/QtCore/../../src/corelib/kernel/qcoreapplication.h:44,
from /home/qth20/Downloads/build-paraview/superbuild/qt5/src/qtbase/include/QtCore/qcoreapplication.h:1,
from /home/qth20/Downloads/build-paraview/superbuild/qt5/src/qtbase/src/corelib/global/qt_pch.h:62:
/home/qth20/Downloads/build-paraview/superbuild/qt5/src/qtbase/include/QtCore/../../src/corelib/tools/qstring.h: In member function ‘bool QUrlPrivate::setHost(const QString&, int, int, QUrl::ParsingMode)’:
/home/qth20/Downloads/build-paraview/superbuild/qt5/src/qtbase/include/QtCore/../../src/corelib/tools/qstring.h:1037:7: warning: assuming signed overflow does not occur when assuming that (X - c) > X is always false [-Wstrict-overflow]
{ if (i >= s.d->size) s.resize(i + 1, QLatin1Char(' ')); else s.detach();
^~
/usr/bin/x86_64-linux-gnu-ld.gold: error: .obj/qmutex_linux.o: multiple definition of 'QBasicMutex::lockInternal()'
/usr/bin/x86_64-linux-gnu-ld.gold: .obj/qmutex.o: previous definition here
/usr/bin/x86_64-linux-gnu-ld.gold: error: .obj/qmutex_linux.o: multiple definition of 'QBasicMutex::lockInternal(int)'
/usr/bin/x86_64-linux-gnu-ld.gold: .obj/qmutex.o: previous definition here
/usr/bin/x86_64-linux-gnu-ld.gold: error: .obj/qmutex_linux.o: multiple definition of 'QBasicMutex::unlockInternal()'
/usr/bin/x86_64-linux-gnu-ld.gold: .obj/qmutex.o: previous definition here
collect2: error: ld returned 1 exit status
Makefile:1158: recipe for target '../../lib/libQt5Core.so.5.10.1' failed
make[6]: *** [../../lib/libQt5Core.so.5.10.1] Error 1
I have deliberately tried to just use paraview, without anything extra (no guide, no tutorial, no ffmpeg, nothing. Just qt5 and paraview) and it is still giving up…
I am getting close to sudo apt install paraview… :’(