Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 916191 - dev-haskell/criterion-1.6.3.0 - /.../ld: .../libHSbitvec-1.1.3.0-LJdykxZvwbx4TRVEwMJgdM-ghc9.2.8.so: undefined reference to _gmpn_nior_n
Summary: dev-haskell/criterion-1.6.3.0 - /.../ld: .../libHSbitvec-1.1.3.0-LJdykxZvwbx4...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-23 19:06 UTC by Toralf Förster
Modified: 2023-12-22 05:07 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,21.87 KB, text/plain)
2023-10-23 19:06 UTC, Toralf Förster
Details
dev-haskell:criterion-1.6.3.0:20231023-190451.log (dev-haskell:criterion-1.6.3.0:20231023-190451.log,17.88 KB, text/plain)
2023-10-23 19:06 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,92.07 KB, application/x-xz)
2023-10-23 19:06 UTC, Toralf Förster
Details
environment (environment,89.43 KB, text/plain)
2023-10-23 19:06 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.04 KB, application/x-xz)
2023-10-23 19:06 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,37.04 KB, application/x-xz)
2023-10-23 19:06 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,97.44 KB, application/x-xz)
2023-10-23 19:06 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,24.06 KB, application/x-xz)
2023-10-23 19:06 UTC, Toralf Förster
Details
readalf.txt (readalf.txt,107.29 KB, application/text-plain)
2023-10-28 18:24 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-10-23 19:06:14 UTC
too long lines were shrinked:

Preprocessing executable 'criterion-report' for criterion-1.6.3.0..
Building executable 'criterion-report' for criterion-1.6.3.0..
[1 of 3] Compiling Paths_criterion  ( dist/build/criterion-report/autogen/Paths_criterion.hs, dist/build/criterion-report/criterion-report-tmp/Paths_criterion.dyn_o )
[2 of 3] Compiling Options          ( app/Options.hs, dist/build/criterion-report/criterion-report-tmp/Options.dyn_o )
[3 of 3] Compiling Main             ( app/Report.hs, dist/build/criterion-report/criterion-report-tmp/Main.dyn_o )
Linking dist/build/criterion-report/criterion-report ...
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/x86_64-linux-ghc-9.2.8/libHSbitvec-1.1.3.0-LJdykxZvwbx4TRVEwMJgdM-ghc9.2.8.so: undefined reference to `__gmpn_nior_n'
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/x86_64-linux-ghc-9.2.8/libHSbitvec-1.1.3.0-LJdykxZvwbx4TRVEwMJgdM-ghc9.2.8.so: undefined reference to `__gmpn_xnor_n'
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/x86_64-linux-ghc-9.2.8/libHSbitvec-1.1.3.0-LJdykxZvwbx4TRVEwMJgdM-ghc9.2.8.so: undefined reference to `__gmpn_com'

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_systemd-20231016-181026

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 17.0.3
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.3
Python 3.11.6
Available Rust versions:
  [1]   rust-1.73.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
2)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.21.3 linux/amd64

  HEAD of ::gentoo
commit e45f06c2ed5abef55367cf45c905f897ea4b267d
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Oct 23 18:31:58 2023 +0000

    2023-10-23 18:31:57 UTC

emerge -qpvO dev-haskell/criterion
[ebuild  N    ] dev-haskell/criterion-1.6.3.0  USE="doc hscolour -embed-data-files -profile -test"
Comment 1 Toralf Förster gentoo-dev 2023-10-23 19:06:15 UTC
Created attachment 873362 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-10-23 19:06:16 UTC
Created attachment 873363 [details]
dev-haskell:criterion-1.6.3.0:20231023-190451.log
Comment 3 Toralf Förster gentoo-dev 2023-10-23 19:06:17 UTC
Created attachment 873364 [details]
emerge-history.txt.xz
Comment 4 Toralf Förster gentoo-dev 2023-10-23 19:06:18 UTC
Created attachment 873365 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2023-10-23 19:06:19 UTC
Created attachment 873366 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-10-23 19:06:20 UTC
Created attachment 873367 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-10-23 19:06:22 UTC
Created attachment 873368 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2023-10-23 19:06:23 UTC
Created attachment 873369 [details]
temp.tar.xz
Comment 9 hololeap 2023-10-27 01:44:12 UTC
libHSbitvec is from the dev-haskell/bitvec package, which dev-haskell/criterion pulls in via dev-haskell/vector-algorithms.

Can you please post the output of:

/usr/bin/ghc-pkg-9.2.8 --verbose check
Comment 10 Toralf Förster gentoo-dev 2023-10-27 15:06:49 UTC
$ /usr/bin/ghc-pkg-9.2.8 --verbose check
GHC package manager version 9.2.8
Timestamp 2023-10-25 18:29:07.923145658 UTC for /usr/lib64/ghc-9.2.8/package.conf.d/package.cache
using cache: /usr/lib64/ghc-9.2.8/package.conf.d/package.cache
db stack: ["/home/tinderbox/.ghc/x86_64-linux-9.2.8/package.conf.d","/usr/lib64/ghc-9.2.8/package.conf.d"]
flag db stack: ["/home/tinderbox/.ghc/x86_64-linux-9.2.8/package.conf.d","/usr/lib64/ghc-9.2.8/package.conf.d"]
Warning: haddock-interfaces: /usr/share/doc/fail-4.9.0.0/html/fail.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/fail-4.9.0.0/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/tf-random-0.5/html/tf-random.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/tf-random-0.5/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/persistent-template-2.12.0.0/html/persistent-template.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/persistent-template-2.12.0.0/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/bytestring-builder-0.10.8.2.0/html/bytestring-builder.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/bytestring-builder-0.10.8.2.0/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/mtl-compat-0.2.2/html/mtl-compat.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/mtl-compat-0.2.2/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/nats-1.1.2-r1/html/nats.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/nats-1.1.2-r1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/ghc-byteorder-4.11.0.0.10/html/ghc-byteorder.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/ghc-byteorder-4.11.0.0.10/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/attoparsec-aeson-2.1.0.0/html/attoparsec-aeson.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/attoparsec-aeson-2.1.0.0/html doesn't exist or isn't a directory
Comment 11 hololeap 2023-10-28 18:11:53 UTC
Could you please run:

readelf -s /usr/lib64/x86_64-linux-ghc-9.2.8/libHSbitvec-1.1.3.0-LJdykxZvwbx4TRVEwMJgdM-ghc9.2.8.so
Comment 12 Toralf Förster gentoo-dev 2023-10-28 18:24:29 UTC
Created attachment 873610 [details]
readalf.txt

dump
Comment 13 Larry the Git Cow gentoo-dev 2023-12-22 05:07:39 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24e3e1afaca561d90238c5a94d5f5af7d401e840

commit 24e3e1afaca561d90238c5a94d5f5af7d401e840
Author:     hololeap <hololeap@protonmail.com>
AuthorDate: 2023-12-04 20:14:01 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-12-22 05:05:41 +0000

    dev-haskell/vector-algorithms: Require gmp source
    
    It appears that vector-algorithms implicitly depends on gmp either via
    ghc or the bitvec package. If neither source for gmp is available,
    packages in vector-algorithm's reverse dependency tree may run into
    linker errors during compile time:
    
        libHSbitvec-1.1.3.0-*.so: undefined symbol: __gmpn_popcount
    
    Closes: https://bugs.gentoo.org/917291
    Closes: https://bugs.gentoo.org/917267
    Closes: https://bugs.gentoo.org/916208
    Closes: https://bugs.gentoo.org/916191
    Closes: https://bugs.gentoo.org/916186
    Closes: https://bugs.gentoo.org/916183
    Closes: https://bugs.gentoo.org/920461
    Signed-off-by: hololeap <hololeap@protonmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/34391
    Signed-off-by: Sam James <sam@gentoo.org>

 ...rithms-0.9.0.1.ebuild => vector-algorithms-0.9.0.1-r1.ebuild} | 9 +++++++++
 1 file changed, 9 insertions(+)