Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 743439 - sys-boot/tboot-1.9.11 : ld: error: /.../.tboot.0: unsupported ELF file type 2
Summary: sys-boot/tboot-1.9.11 : ld: error: /.../.tboot.0: unsupported ELF file type 2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jason Zaman
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-09-19 04:40 UTC by Toralf Förster
Modified: 2021-12-20 00:55 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,17.00 KB, text/plain)
2020-09-19 04:40 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,346.21 KB, text/plain)
2020-09-19 04:40 UTC, Toralf Förster
Details
environment (environment,73.73 KB, text/plain)
2020-09-19 04:40 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,31.07 KB, application/x-bzip)
2020-09-19 04:40 UTC, Toralf Förster
Details
sys-boot:tboot-1.9.11:20200918-235720.log (sys-boot:tboot-1.9.11:20200918-235720.log,44.76 KB, text/plain)
2020-09-19 04:40 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,21.48 KB, application/x-bzip)
2020-09-19 04:40 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 2020-09-19 04:40:39 UTC
nm -n /var/tmp/portage/sys-boot/tboot-1.9.11/work/tboot-1.9.11/tboot/.tboot.0 >/var/tmp/portage/sys-boot/tboot-1.9.11/work/tboot-1.9.11/tboot/tboot-syms
ld -melf_i386 -T /var/tmp/portage/sys-boot/tboot-1.9.11/work/tboot-1.9.11/tboot/common/tboot.lds  /var/tmp/portage/sys-boot/tboot-1.9.11/work/tboot-1.9.11/tboot/.tboot.0 -o /var/tmp/portage/sys-boot/tboot-1.9.11/work/tboot-1.9.11/tboot/tboot
ld: error: /var/tmp/portage/sys-boot/tboot-1.9.11/work/tboot-1.9.11/tboot/.tboot.0: unsupported ELF file type 2
ld: warning: cannot find entry symbol 'start'
make[2]: *** [Makefile:40: /var/tmp/portage/sys-boot/tboot-1.9.11/work/tboot-1.9.11/tboot/tboot] Error 1
make[2]: Leaving directory '/var/tmp/portage/sys-boot/tboot-1.9.11/work/tboot-1.9.11/tboot'

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop-abi32+64-20200908-071541

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-10.2.0 *
clang version 10.0.1 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.1
Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.9 (fallback)
  [3]   python3.8 (fallback)
  [4]   python3.6 (fallback)
  [5]   python2.7 (fallback)
  [6]   pypy3 (fallback)
Available Ruby profiles:
  [1]   ruby25 (with Rubygems)
  [2]   ruby26 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.46.0 *
The following VMs are available for generation-2:
1)	IcedTea JDK 3.16.0 [icedtea-8]
*)	IcedTea JDK 3.16.0 [icedtea-bin-8]
3)	JamVM JDK 2.0.0 [jamvm]
Available Java Virtual Machines:
  [1]   icedtea-8 
  [2]   icedtea-bin-8  system-vm
  [3]   jamvm 

The Glorious Glasgow Haskell Compilation System, version 8.8.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Fri Sep 18 11:05:42 PM UTC 2020

emerge -qpvO sys-boot/tboot
[ebuild  N    ] sys-boot/tboot-1.9.11  USE="-custom-cflags -libressl (-selinux)"
Comment 1 Toralf Förster gentoo-dev 2020-09-19 04:40:40 UTC
Created attachment 661287 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-09-19 04:40:42 UTC
Created attachment 661290 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-09-19 04:40:44 UTC
Created attachment 661293 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-09-19 04:40:46 UTC
Created attachment 661296 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-09-19 04:40:48 UTC
Created attachment 661299 [details]
sys-boot:tboot-1.9.11:20200918-235720.log
Comment 6 Toralf Förster gentoo-dev 2020-09-19 04:40:49 UTC
Created attachment 661302 [details]
temp.tbz2
Comment 7 Christopher Byrne 2020-09-21 04:02:53 UTC
I can replicate this - tboot 1.9.11 does not link under ld.gold. There's a new version upstream, 1.9.12, that does link under ld.gold. I've submitted a PR for the new version that fixes that and a few other bugs too.
Comment 8 Larry the Git Cow gentoo-dev 2021-12-20 00:55:40 UTC
The bug has been closed via the following commit(s):

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

commit 302e8ab6fca4bb824c4b9b657fa454ad163ff10e
Author:     Christopher Byrne <salah.coronya@gmail.com>
AuthorDate: 2021-12-19 22:44:08 +0000
Commit:     John Helmert III <ajak@gentoo.org>
CommitDate: 2021-12-20 00:54:14 +0000

    sys-boot/tboot: Bump to 1.10.3
    
    Closes: https://bugs.gentoo.org/709990
    Closes: https://bugs.gentoo.org/725714
    Closes: https://bugs.gentoo.org/743439
    Closes: https://bugs.gentoo.org/783198
    Closes: https://bugs.gentoo.org/815370
    Closes: https://github.com/gentoo/gentoo/pull/15053
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Christopher Byrne <salah.coronya@gmail.com>
    Signed-off-by: John Helmert III <ajak@gentoo.org>

 sys-boot/tboot/Manifest                            |  1 +
 .../tboot/files/tboot-1.10.3-disable-Werror.patch  | 12 ++++
 .../tboot/files/tboot-1.10.3-disable-strip.patch   | 14 +++++
 sys-boot/tboot/tboot-1.10.3.ebuild                 | 65 ++++++++++++++++++++++
 4 files changed, 92 insertions(+)