Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 772014

Summary: dev-libs/libtecla-1.6.3-r1 - enhance.c:(.text+<snip>): undefined reference to gl_replace_prompt
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED FIXED    
Severity: normal CC: treecleaner
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
dev-libs:libtecla-1.6.3:20210222-045311.log
emerge-history.txt
environment
etc.portage.tar.bz2
logs.tar.bz2
temp.tar.bz2

Description Toralf Förster gentoo-dev 2021-02-22 08:01:35 UTC
fi
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/dev-libs/libtecla-1.6.3/temp/cchStm4p.o: in function `pty_read_from_program':
enhance.c:(.text+0x274): undefined reference to `gl_replace_prompt'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/dev-libs/libtecla-1.6.3/temp/cchStm4p.o: in function `main':
enhance.c:(.text.startup+0x116): undefined reference to `new_GetLine'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: enhance.c:(.text.startup+0x151): undefined reference to `gl_watch_fd'

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_developer-20210219-011805

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

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
/usr/lib/llvm/11
11.1.0
Python 3.8.8
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.50.0 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.282_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.8.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Mon Feb 22 04:37:28 UTC 2021

emerge -qpvO dev-libs/libtecla
[ebuild  N    ] dev-libs/libtecla-1.6.3  USE="-static-libs"
Comment 1 Toralf Förster gentoo-dev 2021-02-22 08:01:36 UTC
Created attachment 688011 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-02-22 08:01:38 UTC
Created attachment 688014 [details]
dev-libs:libtecla-1.6.3:20210222-045311.log
Comment 3 Toralf Förster gentoo-dev 2021-02-22 08:01:39 UTC
Created attachment 688017 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-02-22 08:01:41 UTC
Created attachment 688020 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-02-22 08:01:42 UTC
Created attachment 688023 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-02-22 08:01:43 UTC
Created attachment 688026 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2021-02-22 08:01:44 UTC
Created attachment 688029 [details]
temp.tar.bz2
Comment 8 Agostino Sarubbo gentoo-dev 2024-02-18 07:41:42 UTC
lto_tinderbox has reproduced this issue with version 1.6.3-r1 - Updating summary.
Comment 9 Larry the Git Cow gentoo-dev 2024-03-12 03:31:20 UTC
The bug has been closed via the following commit(s):

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

commit d258a6ab040a704adae2c1a6024b5cf2240865a5
Author:     Eli Schwartz <eschwartz93@gmail.com>
AuthorDate: 2024-03-12 03:09:40 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-12 03:30:49 +0000

    dev-libs/libtecla: mark as LTO-unsafe
    
    Actually, it doesn't use the compiler to link its shared libraries, it
    uses $LD directly. Totally broken. The resulting shared library is LTO
    bytecode linked without a bytecode handler, i.e. it's not really a real
    library. Everything then explodes.
    
    Closes: https://bugs.gentoo.org/772014
    Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/libtecla/libtecla-1.6.3-r1.ebuild | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)