Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 905650 - sci-libs/gmsh-4.11.1 linker error with undefined symbols in libmetis.so
Summary: sci-libs/gmsh-4.11.1 linker error with undefined symbols in libmetis.so
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Matthias Maier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 905468
  Show dependency tree
 
Reported: 2023-05-03 11:18 UTC by Freddie Witherden
Modified: 2023-05-03 14:52 UTC (History)
3 users (show)

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


Attachments
Build log (build.log.xz,26.34 KB, application/x-xz)
2023-05-03 11:19 UTC, Freddie Witherden
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Freddie Witherden 2023-05-03 11:18:24 UTC
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
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-03 11:19:00 UTC
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).
Comment 2 Freddie Witherden 2023-05-03 11:19:16 UTC
Created attachment 861083 [details]
Build log
Comment 3 Freddie Witherden 2023-05-03 11:27:24 UTC
(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).
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-03 11:40:47 UTC
(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.
Comment 5 Nowa Ammerlaan gentoo-dev 2023-05-03 11:47:21 UTC
(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.
Comment 6 Larry the Git Cow gentoo-dev 2023-05-03 14:52:20 UTC
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(-)