Error on compiling Paraview with OpenFOAM using ./makeparaview in Fedora

I installed all the dependancies for paraview and the command ./makeParaView -python -mpi -qmake /usr/lib64/qt5/ is called for compiling paraview . The version is 5.6.3. It ends up in an error at 65%. The last few lines in terminal is [ 65%] Building CXX object VTK/Wrapping/Python/CMakeFiles/vtkCommonDataModelPythonD.dir/vtkVectorOperatorsPython.cxx.o
[ 65%] Building CXX object VTK/Wrapping/Python/CMakeFiles/vtkCommonDataModelPythonD.dir/vtkNonOverlappingAMRPython.cxx.o
[ 65%] Building CXX object VTK/Wrapping/Python/CMakeFiles/vtkCommonDataModelPythonD.dir/vtkOverlappingAMRPython.cxx.o
[ 65%] Building CXX object VTK/Wrapping/Python/CMakeFiles/vtkCommonDataModelPythonD.dir/vtkAMRInformationPython.cxx.o
[ 65%] Building CXX object VTK/Wrapping/Python/CMakeFiles/vtkCommonDataModelPythonD.dir/vtkAMRDataInternalsPython.cxx.o
[ 65%] Building CXX object VTK/Wrapping/Python/CMakeFiles/vtkCommonDataModelPythonD.dir/vtkUniformGridAMRPython.cxx.o
[ 65%] Building CXX object VTK/Wrapping/Python/CMakeFiles/vtkCommonDataModelPythonD.dir/vtkUniformGridAMRDataIteratorPython.cxx.o
[ 65%] Building CXX object VTK/Wrapping/Python/CMakeFiles/vtkCommonDataModelPythonD.dir/vtkCommonDataModelPythonInitImpl.cxx.o
[ 65%] Linking CXX shared library …/…/…/lib/
[ 65%] Built target vtkCommonDataModelPythonD
make: *** [Makefile:171: all] Error 2

real 2m33.927s
user 10m47.335s
sys 5m45.248s

What may be the reason. I am struggling for days.
OS is fedora 33 (Wayland)

The error is probably far up the terminal because of the parallel build. I would recommend cd'ing into the ParaView build directory and doing a plain make (no parallelism) to get the actual error message.