Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 686990 - sci-visualization/paraview-5.6.0-r1 : with gcc-9: /.../FunctorsOpenMP.h:301:13: error: numVals not specified in enclosing parallel
Summary: sci-visualization/paraview-5.6.0-r1 : with gcc-9: /.../FunctorsOpenMP.h:301:1...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthias Maier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-30 09:51 UTC by Toralf Förster
Modified: 2019-07-29 08:31 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,15.73 KB, text/plain)
2019-05-30 09:51 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,120.02 KB, text/plain)
2019-05-30 09:51 UTC, Toralf Förster
Details
environment (environment,159.84 KB, text/plain)
2019-05-30 09:51 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,12.32 KB, application/x-bzip)
2019-05-30 09:51 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,16.10 KB, application/x-bzip)
2019-05-30 09:51 UTC, Toralf Förster
Details
sci-visualization:paraview-5.6.0-r1:20190529-051130.log.bz2 (sci-visualization:paraview-5.6.0-r1:20190529-051130.log.bz2,71.87 KB, application/x-bzip)
2019-05-30 09:51 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,105.14 KB, application/x-bzip)
2019-05-30 09:51 UTC, Toralf Förster
Details
Fix openmp compilation (ParaView-v5.6.0-openmp.patch,1.88 KB, patch)
2019-06-28 05:19 UTC, Michael Uleysky
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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(+)