Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 709510 - sys-boot/mbr-gpt-0.0.1-r1 : collect2: error: ld returned 1 exit status
Summary: sys-boot/mbr-gpt-0.0.1-r1 : collect2: error: ld returned 1 exit status
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-13 18:29 UTC by Toralf Förster
Modified: 2022-12-05 05:24 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,16.02 KB, text/plain)
2020-02-13 18:29 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,120.36 KB, text/plain)
2020-02-13 18:29 UTC, Toralf Förster
Details
environment (environment,65.88 KB, text/plain)
2020-02-13 18:29 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.18 KB, application/x-bzip)
2020-02-13 18:29 UTC, Toralf Förster
Details
sys-boot:mbr-gpt-0.0.1-r1:20200213-115713.log (sys-boot:mbr-gpt-0.0.1-r1:20200213-115713.log,1.90 KB, text/plain)
2020-02-13 18:29 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,16.93 KB, application/x-bzip)
2020-02-13 18:29 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-02-13 18:29:23 UTC
x86_64-pc-linux-gnu-gcc -Wall -m32 -nostdinc -nostdlib -Wl,-N,-Ttext,0x600 -DRELOC_ADDR=0x600 boot.S -o boot.elf
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: boot.elf: error: PHDR segment not covered by LOAD segment
collect2: error: ld returned 1 exit status
make: *** [Makefile:9: boot.elf] Error 1
 * ERROR: sys-boot/mbr-gpt-0.0.1-r1::gentoo failed (compile phase):
 *   emake failed

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome-20200210-221913

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.2.0 *

clang:
clang version 9.0.1 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/9/bin
llvm:
9.0.1
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.41.0 *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.14.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm
ghc:
The Glorious Glasgow Haskell Compilation System, version 8.0.2

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Thu, 13 Feb 2020 10:37:24 +0000

emerge -qpvO sys-boot/mbr-gpt
[ebuild  N    ] sys-boot/mbr-gpt-0.0.1-r1
Comment 1 Toralf Förster gentoo-dev 2020-02-13 18:29:27 UTC
Created attachment 613670 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-02-13 18:29:30 UTC
Created attachment 613672 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-02-13 18:29:33 UTC
Created attachment 613674 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-02-13 18:29:36 UTC
Created attachment 613676 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-02-13 18:29:39 UTC
Created attachment 613678 [details]
sys-boot:mbr-gpt-0.0.1-r1:20200213-115713.log
Comment 6 Toralf Förster gentoo-dev 2020-02-13 18:29:42 UTC
Created attachment 613680 [details]
temp.tbz2
Comment 7 Larry the Git Cow gentoo-dev 2022-12-05 05:24:47 UTC
The bug has been closed via the following commit(s):

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

commit f1de25303bd07f70781ec37d648b62fe7c1d3916
Author:     Robin H. Johnson <robbat2@gentoo.org>
AuthorDate: 2022-12-05 05:19:25 +0000
Commit:     Robin H. Johnson <robbat2@gentoo.org>
CommitDate: 2022-12-05 05:24:44 +0000

    sys-boot/mbr-gpt: fix PHDR/LOAD mess
    
    "PHDR segment not covered by LOAD segment", an error meaningless for MBR
    code.
    
    The solution is buried in binutils changelogs: --no-dynamic-linker for
    obscure cases like this.
    
    Reference: https://inbox.sourceware.org/binutils/20200222023739.GB5570@bubble.grove.modra.org/T/#u
    Closes: https://bugs.gentoo.org/870913
    Closes: https://bugs.gentoo.org/709510
    Closes: https://bugs.gentoo.org/722206
    Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>

 sys-boot/mbr-gpt/mbr-gpt-0.0.1-r2.ebuild | 69 ++++++++++++++++++++++++++++++++
 1 file changed, 69 insertions(+)