Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 686990

Summary: sci-visualization/paraview-5.6.0-r1 : with gcc-9: /.../FunctorsOpenMP.h:301:13: error: numVals not specified in enclosing parallel
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Matthias Maier <tamiko>
Status: RESOLVED FIXED    
Severity: normal CC: uleysky
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=685044
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
sci-visualization:paraview-5.6.0-r1:20190529-051130.log.bz2
temp.tbz2
Fix openmp compilation

Description Toralf Förster gentoo-dev 2019-05-30 09:51:08 UTC
/var/tmp/portage/sci-visualization/paraview-5.6.0-r1/work/ParaView-v5.6.0/VTK/ThirdParty/vtkm/vtk-m/vtkm/cont/openmp/internal/FunctorsOpenMP.h: In static member function ‘static ReturnType vtkm::cont::openmp::ReduceHelper::Execute(PortalT, ReturnType, Functor, std::false_type) [with PortalT = vtkm::cont::internal::ArrayPortalFromIterators<const char*, void>; ReturnType = vtkm::Vec<char, 2>; Functor = vtkm::MinAndMax<char>]’:
/var/tmp/portage/sci-visualization/paraview-5.6.0-r1/work/ParaView-v5.6.0/VTK/ThirdParty/vtkm/vtk-m/vtkm/cont/openmp/internal/FunctorsOpenMP.h:301:13: error: ‘numVals’ not specified in enclosing ‘parallel’
  301 |         if (numVals >= numThreads * 2)
      |             ^~~~~~~
/var/tmp/portage/sci-visualization/paraview-5.6.0-r1/work/ParaView-v5.6.0/VTK/ThirdParty/vtkm/vtk-m/vtkm/cont/openmp/internal/FunctorsOpenMP.h:293:1: error: enclosing ‘parallel’

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-desktop_libressl_20190526-141358

  -------------------------------------------------------------------

  Please see the tracker bug for details.

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-9.1.0 *

Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.35.0 *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.12.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpvO sci-visualization/paraview
[ebuild  N    ] sci-visualization/paraview-5.6.0-r1  USE="openmp qt5 -boost -cg -coprocessing -development -doc -examples -ffmpeg -mpi -mysql -nvcontrol -offscreen -plugins -python -sqlite -tcl -test -tk" PYTHON_SINGLE_TARGET="python3_6 -python2_7 -python3_5" PYTHON_TARGETS="python2_7 python3_6 -python3_5"
Comment 1 Toralf Förster gentoo-dev 2019-05-30 09:51:11 UTC
Created attachment 578038 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-05-30 09:51:14 UTC
Created attachment 578040 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2019-05-30 09:51:17 UTC
Created attachment 578042 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2019-05-30 09:51:20 UTC
Created attachment 578044 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2019-05-30 09:51:22 UTC
Created attachment 578046 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-05-30 09:51:25 UTC
Created attachment 578048 [details]
sci-visualization:paraview-5.6.0-r1:20190529-051130.log.bz2
Comment 7 Toralf Förster gentoo-dev 2019-05-30 09:51:28 UTC
Created attachment 578050 [details]
temp.tbz2
Comment 8 Matthias Maier gentoo-dev 2019-05-30 14:32:20 UTC
I know. The same compilation error will happen for about 99% of all packages using OpenMP.
Comment 9 Michael Uleysky 2019-06-28 05:19:56 UTC
Created attachment 581208 [details, diff]
Fix openmp compilation

https://www.gnu.org/software/gcc/gcc-9/porting_to.html
In previous versions of gcc there was a rule that const qualified variables without mutable member are predetermined shared. New OpenMP standart (4.0 and later) drop this rule and now with default(none) we must explictly specify such variables as shared. Patch attached.
Comment 10 Larry the Git Cow gentoo-dev 2019-06-30 18:20:14 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc620c1481998584ba8269585d82f04fe980fffa

commit dc620c1481998584ba8269585d82f04fe980fffa
Author:     Matthias Maier <tamiko@gentoo.org>
AuthorDate: 2019-06-30 14:48:09 +0000
Commit:     Matthias Maier <tamiko@gentoo.org>
CommitDate: 2019-06-30 18:19:07 +0000

    sci-visualization/paraview: version bump to 5.6.1
    
     - Version bump to 5.6.1
     - OpenMP 4.0 compatibility
     - Fix various dependencies
    
    Closes: https://bugs.gentoo.org/661860
    Closes: https://bugs.gentoo.org/686362
    Closes: https://bugs.gentoo.org/686990
    Closes: https://bugs.gentoo.org/687534
    Closes: https://bugs.gentoo.org/687790
    Package-Manager: Portage-2.3.67, Repoman-2.3.16
    Signed-off-by: Matthias Maier <tamiko@gentoo.org>

 sci-visualization/paraview/Manifest                |   1 +
 .../files/paraview-5.6.1-fix_openmp_4.0.patch      |  32 +++
 sci-visualization/paraview/paraview-5.6.1.ebuild   | 312 +++++++++++++++++++++
 3 files changed, 345 insertions(+)