Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 778341 - sci-libs/gerris-20131206-r1 - /.../ld: cannot find -lkdt
Summary: sci-libs/gerris-20131206-r1 - /.../ld: cannot find -lkdt
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
Keywords: PATCH
Depends on:
Blocks: slibtool
  Show dependency tree
Reported: 2021-03-26 08:12 UTC by Toralf Förster
Modified: 2021-03-27 02:57 UTC (History)
2 users (show)

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

emerge-info.txt (emerge-info.txt,17.95 KB, text/plain)
2021-03-26 08:12 UTC, Toralf Förster
emerge-history.txt (emerge-history.txt,272.03 KB, text/plain)
2021-03-26 08:12 UTC, Toralf Förster
environment (environment,111.88 KB, text/plain)
2021-03-26 08:12 UTC, Toralf Förster
etc.portage.tar.bz2 (etc.portage.tar.bz2,76.65 KB, application/x-bzip)
2021-03-26 08:12 UTC, Toralf Förster
logs.tar.bz2 (logs.tar.bz2,11.68 KB, application/x-bzip)
2021-03-26 08:12 UTC, Toralf Förster
sci-libs:gerris-20131206-r1:20210326-054042.log (sci-libs:gerris-20131206-r1:20210326-054042.log,219.45 KB, text/plain)
2021-03-26 08:12 UTC, Toralf Förster
temp.tar.bz2 (temp.tar.bz2,39.44 KB, application/x-bzip)
2021-03-26 08:12 UTC, Toralf Förster
Patch to fix the build with slibtool. (gerris-la.patch,4.29 KB, patch)
2021-03-26 23:05 UTC, orbea
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-03-26 08:12:15 UTC
rdlibtool: lconf: found "/var/tmp/portage/sci-libs/gerris-20131206-r1/work/gerris-snapshot-131206/libtool".
rdlibtool: link: x86_64-pc-linux-gnu-gcc xyz2kdt-xyz2kdt.o -O2 -pipe -march=native -fno-diagnostics-color -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE -D_GNU_SOURCE -Wall -Werror-implicit-function-declaration -Wmissing-prototypes -Wmissing-declarations -pipe -std=c99 -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -lkdt -lm -o .libs/xyz2kdt
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lkdt
collect2: error: ld returned 1 exit status
rdlibtool: exec error upon slbt_exec_link_create_executable(), line 1614: (see child process error messages).
rdlibtool: < returned to > slbt_exec_link(), line 1934.


  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome_systemd-20210318-090503


gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-10.2.0 *
clang version 11.1.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/11/bin
Python 3.8.8
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.50.0 *
The following VMs are available for generation-2:
1)	IcedTea JDK 3.16.0 [icedtea-bin-8]
2)	OpenJDK 8.282_p08 [openjdk-8]
*)	AdoptOpenJDK 8.282_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8 
  [2]   openjdk-8 
  [3]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Fri Mar 26 02:35:45 UTC 2021

emerge -qpvO sci-libs/gerris
[ebuild  N    ] sci-libs/gerris-20131206-r1  USE="-examples -mpi -static-libs"
Comment 1 Toralf Förster gentoo-dev 2021-03-26 08:12:17 UTC
Created attachment 694029 [details]
Comment 2 Toralf Förster gentoo-dev 2021-03-26 08:12:18 UTC
Created attachment 694032 [details]
Comment 3 Toralf Förster gentoo-dev 2021-03-26 08:12:20 UTC
Created attachment 694035 [details]
Comment 4 Toralf Förster gentoo-dev 2021-03-26 08:12:22 UTC
Created attachment 694038 [details]
Comment 5 Toralf Förster gentoo-dev 2021-03-26 08:12:23 UTC
Created attachment 694041 [details]
Comment 6 Toralf Förster gentoo-dev 2021-03-26 08:12:24 UTC
Created attachment 694044 [details]
Comment 7 Toralf Förster gentoo-dev 2021-03-26 08:12:26 UTC
Created attachment 694047 [details]
Comment 8 orbea 2021-03-26 23:05:31 UTC
Created attachment 694593 [details, diff]
Patch to fix the build with slibtool.

The build uses unreliable linker flags even though they already have the libtool archives available. Additionally it tries a link a binary with flags intended for libraries which doesn't work with slibtool. (Why does it work with GNU libtool...?)
Comment 9 Larry the Git Cow gentoo-dev 2021-03-27 02:57:52 UTC
The bug has been closed via the following commit(s):

commit 08b0488189721a4b2904e41b5e705b9ef86e4f8d
Author:     Sam James <>
AuthorDate: 2021-03-27 02:18:01 +0000
Commit:     Sam James <>
CommitDate: 2021-03-27 02:57:38 +0000

    sci-libs/gerris: fix build with slibtool
    Thanks-to: orbea <>
    Signed-off-by: Sam James <>

 .../gerris/files/gerris-20131206-slibtool.patch    | 119 +++++++++++++++++++++
 sci-libs/gerris/gerris-20131206-r1.ebuild          |   3 +-
 2 files changed, 121 insertions(+), 1 deletion(-)