Compiling gmsh on a ~AMD64 system as: [ebuild U ] sci-libs/gmsh-4.11.1::gentoo [4.10.3::gentoo] USE="X alglib blas gmm jpeg metis netgen pdf png zlib -cgns -eigen -examples -med -mpi -mumps -opencascade -petsc -python -shared -slepc -voro" 0 KiB results in a linker error: /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libmetis.so: undefined reference to `gk_randint32' /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libmetis.so: undefined reference to `gk_errexit' /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libmetis.so: undefined reference to `gk_mcorePop' /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libmetis.so: undefined reference to `gk_rmpath' /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libmetis.so: undefined reference to `gk_malloc_init' /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libmetis.so: undefined reference to `gk_mcoreDestroy' /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libmetis.so: undefined reference to `gk_randinit' /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libmetis.so: undefined reference to `gk_free' /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libmetis.so: undefined reference to `gk_mcoreCreate' /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libmetis.so: undefined reference to `gk_CPUSeconds' /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libmetis.so: undefined reference to `gk_realloc' /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libmetis.so: undefined reference to `gk_log2' /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libmetis.so: undefined reference to `gk_jbufs' /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libmetis.so: undefined reference to `gk_mcorePush' /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libmetis.so: undefined reference to `gk_siguntrap' /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libmetis.so: undefined reference to `gk_malloc_cleanup' /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libmetis.so: undefined reference to `gk_mcoreMalloc' /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libmetis.so: undefined reference to `gk_idxsmalloc' /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libmetis.so: undefined reference to `gk_cur_jbufs' /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libmetis.so: undefined reference to `gk_sigtrap' /usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libmetis.so: undefined reference to `gk_malloc' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. Build log attached. Reproducible: Always
What version of sci-libs/metis? This was likely fixed earlier (if you sync, the bad versions of metis are now masked, and a new version si available).
Created attachment 861083 [details] Build log
(In reply to Sam James from comment #1) > What version of sci-libs/metis? This was likely fixed earlier (if you sync, > the bad versions of metis are now masked, and a new version si available). Metis version is: [ebuild R ] sci-libs/metis-5.2.1-r1::gentoo USE="openmp -double-precision -examples -int64" 0 KiB which appears to be the most recent in portage (https://packages.gentoo.org/packages/sci-libs/metis).
(In reply to Freddie Witherden from comment #3) > (In reply to Sam James from comment #1) > > What version of sci-libs/metis? This was likely fixed earlier (if you sync, > > the bad versions of metis are now masked, and a new version si available). > > Metis version is: > > [ebuild R ] sci-libs/metis-5.2.1-r1::gentoo USE="openmp > -double-precision -examples -int64" 0 KiB > > which appears to be the most recent in portage > (https://packages.gentoo.org/packages/sci-libs/metis). Ew, okay. Thanks.
(In reply to Sam James from comment #4) > (In reply to Freddie Witherden from comment #3) > > (In reply to Sam James from comment #1) > > > What version of sci-libs/metis? This was likely fixed earlier (if you sync, > > > the bad versions of metis are now masked, and a new version si available). > > > > Metis version is: > > > > [ebuild R ] sci-libs/metis-5.2.1-r1::gentoo USE="openmp > > -double-precision -examples -int64" 0 KiB > > > > which appears to be the most recent in portage > > (https://packages.gentoo.org/packages/sci-libs/metis). > > Ew, okay. Thanks. It's very likely the same problem though. Adding '-lGKlib' will probably fix the build. This package appears to not use the pkgconfig file where I added the fix for this problem before.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b62ee8825bd6ac801dc982d5850b222c9eb0c37c commit b62ee8825bd6ac801dc982d5850b222c9eb0c37c Author: Andrew Ammerlaan <andrewammerlaan@gentoo.org> AuthorDate: 2023-05-03 14:50:55 +0000 Commit: Andrew Ammerlaan <andrewammerlaan@gentoo.org> CommitDate: 2023-05-03 14:52:10 +0000 sci-libs/gmsh: fix build with metis-5.2 Closes: https://bugs.gentoo.org/905650 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org> sci-libs/gmsh/files/gmsh-4.11.1-metis-5-2.patch | 19 +++++++++++++++++++ .../{gmsh-4.10.3.ebuild => gmsh-4.10.3-r1.ebuild} | 7 ++++--- .../{gmsh-4.11.1.ebuild => gmsh-4.11.1-r1.ebuild} | 8 +++++--- .../{gmsh-4.9.5-r2.ebuild => gmsh-4.9.5-r3.ebuild} | 7 ++++--- 4 files changed, 32 insertions(+), 9 deletions(-)