Summary: | sci-libs/vtk-9.1.0-r2 failed to emerge with sci-libs/netcdf-4.9.0 (ex_utils.c:1773:19: error: expected identifier or ‘(’ before numeric constant) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Leonid Kopylov <leonchik1976> |
Component: | Current packages | Assignee: | Gentoo Science Related Packages <sci> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | proxy-maint, waebbl-gentoo, zeekec |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | ARM64 | ||
OS: | Linux | ||
See Also: |
https://bugs.debian.org/1012703 https://bugs.debian.org/1012663 https://github.com/gentoo/gentoo/pull/25954 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log.xz
0001-sci-libs-vtk-fix-build-against-netcdf-4.9.0.patch build.log.xz |
Description
Leonid Kopylov
2022-06-12 17:59:31 UTC
Created attachment 784397 [details]
build.log.xz
Downgrade to the latest 4.8 version of the netcdf package fixes the compilation. /var/tmp/portage/sci-libs/vtk-9.1.0-r2/work/VTK-9.1.0/ThirdParty/exodusII/vtkexodusII/src/ex_utils.c: In function ‘vtkexodusII_ex__compress_variable’: /var/tmp/portage/sci-libs/vtk-9.1.0-r2/work/VTK-9.1.0/ThirdParty/exodusII/vtkexodusII/src/ex_utils.c:1773:19: error: expected identifier or ‘(’ before numeric constant 1773 | const int NC_SZIP_NN = 32; /* Selects nearest neighbor coding method for szip. */ | ^~~~~~~~~~ Could it be, this is an arm specific issue? On my amd64 machine, it builds without issues, using the use flag settings from the attached build log and built against netcdf 4.9.0. (In reply to Bernd from comment #4) > Could it be, this is an arm specific issue? On my amd64 machine, it builds > without issues, using the use flag settings from the attached build log and > built against netcdf 4.9.0. Found https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1012703. Still can't reproduce it. In my chroot the package builds with the given use flags. Did another build run, ensuring to use --usepkg=n, so no binary package might give a false negative. If there's no objections, I'd patch out the line only if >=netcdf-4.9.0 is installed. If someone who actually has the issue could test the PR? (In reply to Bernd from comment #7) > If there's no objections, I'd patch out the line only if >=netcdf-4.9.0 is > installed. > If someone who actually has the issue could test the PR? Tell me what do you want me to test? Created attachment 786050 [details, diff]
0001-sci-libs-vtk-fix-build-against-netcdf-4.9.0.patch
I'm currently testing if the patch doesn't break anything before opening a PR. See the attached file if you want to test the changes ahead.
Created attachment 786068 [details]
build.log.xz
(In reply to Bernd from comment #9) > Created attachment 786050 [details, diff] [details, diff] > 0001-sci-libs-vtk-fix-build-against-netcdf-4.9.0.patch > > I'm currently testing if the patch doesn't break anything before opening a > PR. See the attached file if you want to test the changes ahead. now it fails with another error - attached build.log (In reply to Leonid Kopylov from comment #11) > (In reply to Bernd from comment #9) > > Created attachment 786050 [details, diff] [details, diff] [details, diff] > > 0001-sci-libs-vtk-fix-build-against-netcdf-4.9.0.patch > > > > I'm currently testing if the patch doesn't break anything before opening a > > PR. See the attached file if you want to test the changes ahead. > > now it fails with another error - attached build.log I'm pretty sure you ran out of RAM. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d699c8995b81d8cd0be7d051485af755d25cdf11 commit d699c8995b81d8cd0be7d051485af755d25cdf11 Author: Bernd Waibel <waebbl-gentoo@posteo.net> AuthorDate: 2022-06-18 10:29:13 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-06-26 07:09:32 +0000 sci-libs/vtk: fix build against netcdf-4.9.0 Closes: https://bugs.gentoo.org/851594 Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net> Closes: https://github.com/gentoo/gentoo/pull/25954 Signed-off-by: Sam James <sam@gentoo.org> ...-avoid-naming-collision-with-netcdf-4.9.0.patch | 26 ++++++++++++++++++++++ sci-libs/vtk/vtk-9.1.0-r2.ebuild | 1 + 2 files changed, 27 insertions(+) |