Paraview fails building when USE flag "threads" is not set. Reproducible: Always Steps to Reproduce: leaf ~ # emerge paraview -av These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] sci-visualization/paraview-3.6.1 USE="doc python -boost -examples -hdf5 -mpi -plugins -qt4 -threads" 0 kB Actual Results: ... Linking C executable ../../../bin/ProcessShader [ 4%] Built target ProcessShader [ 4%] Building CXX object VTK/Common/CMakeFiles/vtkCommon.dir/vtkDataArray.o /var/tmp/portage/sci-visualization/paraview-3.6.1/work/ParaView3/VTK/Common/vtkConditionVariable.cxx:27: error: conflicting declaration 'typedef int pthread_condattr_t' /usr/include/bits/pthreadtypes.h:105: error: 'pthread_condattr_t' has a previous declaration as 'typedef union pthread_condattr_t pthread_condattr_t' make[2]: *** [VTK/Common/CMakeFiles/vtkCommon.dir/vtkConditionVariable.o] Error 1 make[2]: *** Waiting for unfinished jobs.... ... As you can see there is a redefinition of pthread_condattr_t as /usr/include/bits/pthreadtypes.h is being included, when I think it shouldn't. Setting USE flag "threads" solves the problem, and paraview builds fine.
Hi Carles, Please re-sync portage and try again. This has been fixed yesterday and the threads useflag is gone from ebuild since pthreads are now forces always. See bug #278982. Thanks, Markus
Oh, that was fast. Sorry for semi-duplicating the bug, I didn't see the other one was also related to pthreads. Thanks!