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

Bug 787866

Summary: dev-scheme/ypsilon-0.9.6_p3 - /.../ld: interpreter.o: error adding symbols: bad value
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Scheme Project <scheme>
Status: RESOLVED FIXED    
Severity: normal CC: hodge, ionen, sam
Priority: Normal Keywords: PMASKED
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=730692
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 732706    
Attachments: emerge-info.txt
dev-scheme:ypsilon-0.9.6_p3:20210503-083401.log
emerge-history.txt
environment
etc.portage.tar.bz2
temp.tar.bz2
Disables TLS (thread-local storage)

Description Toralf Förster gentoo-dev 2021-05-03 08:55:58 UTC
/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: s_current_vm: TLS definition in main.o section .tbss mismatches non-TLS reference in interpreter.o
/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: interpreter.o: error adding symbols: bad value
collect2: error: ld returned 1 exit status
make: *** [Makefile:129: ypsilon] Error 1
 * ERROR: dev-scheme/ypsilon-0.9.6_p3::gentoo failed (compile phase):
 *   emake failed

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no-multilib-20210423-202814

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-8.3.1
 [3] x86_64-pc-linux-gnu-11.1.0 *
clang version 12.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/12/bin
/usr/lib/llvm/12
12.0.0
Python 3.8.9
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.51.0 *
The Glorious Glasgow Haskell Compilation System, version 8.10.4
  [1]   php7.3 *
  [2]   php7.4
  [3]   php8.0

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Mon May  3 08:20:12 UTC 2021

emerge -qpvO dev-scheme/ypsilon
[ebuild  N    ] dev-scheme/ypsilon-0.9.6_p3  USE="-examples -threads"
Comment 1 Toralf Förster gentoo-dev 2021-05-03 08:55:59 UTC
Created attachment 705648 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-05-03 08:56:01 UTC
Created attachment 705651 [details]
dev-scheme:ypsilon-0.9.6_p3:20210503-083401.log
Comment 3 Toralf Förster gentoo-dev 2021-05-03 08:56:02 UTC
Created attachment 705654 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-05-03 08:56:04 UTC
Created attachment 705657 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-05-03 08:56:05 UTC
Created attachment 705660 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-05-03 08:56:06 UTC
Created attachment 705663 [details]
temp.tar.bz2
Comment 7 Ionen Wolkens gentoo-dev 2021-05-04 00:05:26 UTC
Hm, this one looks more unusual. I suspected binutils but it works with gcc10.
Comment 8 Larry the Git Cow gentoo-dev 2021-08-04 22:45:25 UTC
The bug has been referenced in the following commit(s):

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

commit 47156a1b8d8872af7eb421b49ec2acfb9a4a4168
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-08-04 22:42:43 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-08-04 22:45:14 +0000

    profiles: last-rite dev-scheme/ypsilon
    
    Bug: https://bugs.gentoo.org/730692
    Bug: https://bugs.gentoo.org/787866
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/package.mask | 5 +++++
 1 file changed, 5 insertions(+)
Comment 9 Watcom 2021-08-24 23:11:37 UTC
Created attachment 735815 [details, diff]
Disables TLS (thread-local storage)

Disabling TLS (thread-local storage) in the makefile makes it compile fine in gcc 11.2 (see patch in attachment). When NO_TLS is defined, it uses a different method for achieving the same thing, which makes me wonder why it uses TLS in the first place.
Comment 10 Larry the Git Cow gentoo-dev 2021-08-27 03:03:04 UTC
The bug has been closed via the following commit(s):

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

commit f36a27d75b9d3f82b98f63624202cf3624387ec6
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-08-27 02:55:26 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-08-27 03:02:45 +0000

    dev-scheme/ypsilon: fix build with GCC 11, un-last-rite
    
    Thanks-to: Watcom <hodge@dornbeast.com>
    Bug: https://bugs.gentoo.org/730692
    Closes: https://bugs.gentoo.org/787866
    Signed-off-by: Sam James <sam@gentoo.org>

 .../ypsilon/files/ypsilon-0.9.6_p3-asneeded.patch  |  4 ++--
 ...-0.9.6_p3.ebuild => ypsilon-0.9.6_p3-r1.ebuild} | 28 ++++++++++++++--------
 profiles/package.mask                              |  5 ----
 3 files changed, 20 insertions(+), 17 deletions(-)