Summary: | sci-libs/vtk-{9.0.3-r4,9.1.0} USE=cuda - error: expected class-name before ‘{’ token | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Bernd <waebbl-gentoo> |
Component: | Current packages | Assignee: | Bernd <waebbl-gentoo> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bugzilla, fordfrog, proxy-maint, sci |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/22878 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 732706 | ||
Attachments: |
emerge-info-vtk-9.0.3-r1.txt
vtk-9.0.3-r1:20211027-223133.log.bz2 |
Description
Bernd
2021-10-28 11:34:45 UTC
Created attachment 747078 [details]
emerge-info-vtk-9.0.3-r1.txt
output of emerge --info =vtk-9.0.3-r1
Created attachment 747081 [details]
vtk-9.0.3-r1:20211027-223133.log.bz2
build log
It compiles with gcc-10 but not 11 Thanks for testing this. Didn't had the time yet to test with both compilers. still happens with 9.1.0 Now it doesn't even compile with gcc-10 any more. The error seems to be produced by nvcc. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6010f1d0f545b9ddf5f2ee3fd673332d8342821a commit 6010f1d0f545b9ddf5f2ee3fd673332d8342821a Author: Bernd Waibel <waebbl-gentoo@posteo.net> AuthorDate: 2021-11-05 19:34:22 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2021-12-14 08:36:16 +0000 sci-libs/vtk: bump to 9.1.0 Bug: https://bugs.gentoo.org/820593 Closes: https://bugs.gentoo.org/822780 Closes: https://bugs.gentoo.org/820521 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net> Signed-off-by: Joonas Niilola <juippis@gentoo.org> sci-libs/vtk/Manifest | 6 + sci-libs/vtk/vtk-9.1.0.ebuild | 596 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 602 insertions(+) vtk-9.1.0-r1 doesn't fix the error, either. I'm getting the same error: /var/tmp/portage/sci-libs/vtk-9.1.0-r1/work/VTK-9.1.0/ThirdParty/vtkm/vtkvtkm/vtk-m/vtkm/internal/brigand.hpp:1061:131: error: expected class-name before ‘{’ token as the OP when building with CUDA enabled and VTK_CUDA_ARCH=pascal set in /etc/portage/make.conf (as I'm running a GeForce GTX 1070). Without CUDA, it builds OK. Looking at the commit history for VTK-m (https://gitlab.kitware.com/vtk/vtk-m/-/commit/a771359d7222b835043481c24139ecc36bf9d39d), it looks like brigand.hpp was deprecated and removed about 3 months ago. Perhaps a backport of these changes is in order. (In reply to Scott Alfter from comment #8) > vtk-9.1.0-r1 doesn't fix the error, either. I'm getting the same error: > I'm aware of this. Changed the title to reflect this. > Looking at the commit history for VTK-m > (https://gitlab.kitware.com/vtk/vtk-m/-/commit/ > a771359d7222b835043481c24139ecc36bf9d39d), it looks like brigand.hpp was > deprecated and removed about 3 months ago. Perhaps a backport of these > changes is in order. Thanks for the hint. I wasn't yet aware of this change. That's a huge change, not just the commit you have linked, look at the merge request at https://gitlab.kitware.com/vtk/vtk-m/-/merge_requests/2715. I'm wondering whether it wouldn't be better to mask the cuda USE flag, until vtk uses a vtk-m version with these changes in place? This will be fixed in the v9.2.2 bump, which I'm currently preparing. Upstream removed the fragile brigand.hpp which causes this issue. On my tests so far, vtk-9.2.2 builds with USE=cuda. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=588025882a58b613f5ef08e02b96efbb7d4c7445 commit 588025882a58b613f5ef08e02b96efbb7d4c7445 Author: Bernd Waibel <waebbl-gentoo@posteo.net> AuthorDate: 2022-09-29 05:18:39 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2022-12-12 06:08:29 +0000 sci-libs/vtk: add 9.2.2 - add a new function to check memory and disk space requirements - don't drop bundled external libraries, it's only a few MB which are freed through this and upstream does a good job to avoid automagic deps - request more modules to build explicitly depending on USE flag settings - don't export CC and friends with USE=mpi, package builds fine with gcc and still links to MPI libraries - add USE flag to build vtk-m optional Bug: https://bugs.gentoo.org/793221 Bug: https://bugs.gentoo.org/835659 Bug: https://bugs.gentoo.org/880759 Closes: https://bugs.gentoo.org/820593 Closes: https://bugs.gentoo.org/827310 Closes: https://bugs.gentoo.org/846374 Closes: https://bugs.gentoo.org/874798 Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net> Closes: https://github.com/gentoo/gentoo/pull/28250 Signed-off-by: Joonas Niilola <juippis@gentoo.org> sci-libs/vtk/Manifest | 6 + .../vtk-9.2.2-VTKm-respect-user-CXXFLAGS.patch | 81 +++ ...9.2.2-link-with-glut-library-for-freeglut.patch | 18 + ...metryFilter-add-missing-mutex-header-file.patch | 20 + sci-libs/vtk/metadata.xml | 11 +- sci-libs/vtk/vtk-9.2.2.ebuild | 728 +++++++++++++++++++++ 6 files changed, 863 insertions(+), 1 deletion(-) |