Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 884371 - sys-boot/mbr-gpt-0.0.1-r1 - ld.lld: error: relocation R_386_16 cannot be used against local symbol; recompile with -fPIC
Summary: sys-boot/mbr-gpt-0.0.1-r1 - ld.lld: error: relocation R_386_16 cannot be used...
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: 2022-12-04 21:28 UTC by Toralf Förster
Modified: 2023-01-08 12:32 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,18.71 KB, text/plain)
2022-12-04 21:28 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,161.46 KB, text/plain)
2022-12-04 21:28 UTC, Toralf Förster
Details
environment (environment,66.74 KB, text/plain)
2022-12-04 21:28 UTC, Toralf Förster
Details
etc.clang.tar.bz2 (etc.clang.tar.bz2,698 bytes, application/x-bzip)
2022-12-04 21:28 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,41.84 KB, application/x-bzip)
2022-12-04 21:28 UTC, Toralf Förster
Details
sys-boot:mbr-gpt-0.0.1-r1:20221204-204521.log (sys-boot:mbr-gpt-0.0.1-r1:20221204-204521.log,2.22 KB, text/plain)
2022-12-04 21:28 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,17.88 KB, application/x-bzip)
2022-12-04 21:28 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 2022-12-04 21:28:03 UTC
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-boot/mbr-gpt-0.0.1-r1/work/mbr-gpt-0.0.1 ...
make -j4 CC=clang 
clang -Wall -m32 -nostdinc -nostdlib -Wl,-N,-Ttext,0x600 -DRELOC_ADDR=0x600 boot.S -o boot.elf
ld.lld: error: relocation R_386_16 cannot be used against local symbol; recompile with -fPIC
>>> defined in /var/tmp/portage/sys-boot/mbr-gpt-0.0.1-r1/temp/boot-a4495d.o
>>> referenced by boot.S

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma-j4-20221203-180005

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

GNUMAKEFLAGS="$GNUMAKEFLAGS --shuffle"
CC=clang
CXX=clang++
gcc-config -l:
 [1] x86_64-pc-linux-gnu-12 *
clang/llvm (if any):
clang version 15.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/15
15.0.6
Python 3.10.8
Available Rust versions:
  [1]   rust-bin-1.65.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.17_p8 [openjdk-bin-11]
*)	Eclipse Temurin JDK 17.0.5_p8 [openjdk-bin-17]
3)	Eclipse Temurin JDK 8.352_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17  system-vm

php cli (if any):

  HEAD of ::gentoo
commit 60d17206652d8161a0d55e58a0e8eb91c4fd95f2
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Dec 4 19:46:49 2022 +0000

    2022-12-04 19:46:49 UTC

emerge -qpvO sys-boot/mbr-gpt
[ebuild  N    ] sys-boot/mbr-gpt-0.0.1-r1
Comment 1 Toralf Förster gentoo-dev 2022-12-04 21:28:04 UTC
Created attachment 840125 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-12-04 21:28:06 UTC
Created attachment 840127 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-12-04 21:28:07 UTC
Created attachment 840129 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-12-04 21:28:08 UTC
Created attachment 840131 [details]
etc.clang.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-12-04 21:28:10 UTC
Created attachment 840133 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-12-04 21:28:10 UTC
Created attachment 840135 [details]
sys-boot:mbr-gpt-0.0.1-r1:20221204-204521.log
Comment 7 Toralf Förster gentoo-dev 2022-12-04 21:28:11 UTC
Created attachment 840137 [details]
temp.tar.bz2
Comment 8 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2022-12-05 05:24:25 UTC
Can't reproduce.

$ CC=clang-15 ebuild mbr-gpt-0.0.1-r2.ebuild clean install
 * mbr-gpt_0.0.1.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                          [ ok ]
>>> Unpacking source...
>>> Unpacking mbr-gpt_0.0.1.tar.gz to /var/tmp/portage-tmpfs/portage/sys-boot/mbr-gpt-0.0.1-r2/work
>>> Source unpacked in /var/tmp/portage-tmpfs/portage/sys-boot/mbr-gpt-0.0.1-r2/work
>>> Preparing source in /var/tmp/portage-tmpfs/portage/sys-boot/mbr-gpt-0.0.1-r2/work/mbr-gpt-0.0.1 ...
make -j14 -l12 clean 
rm -f mbr boot.elf *~
>>> Source prepared.
>>> Configuring source in /var/tmp/portage-tmpfs/portage/sys-boot/mbr-gpt-0.0.1-r2/work/mbr-gpt-0.0.1 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage-tmpfs/portage/sys-boot/mbr-gpt-0.0.1-r2/work/mbr-gpt-0.0.1 ...
make -j14 -l12 CC=clang-15 
clang-15 -Wall -m32 -Wl,--no-dynamic-linker -nostdinc -nostdlib -Wl,-N,-Ttext,0x600 -DRELOC_ADDR=0x600 boot.S -o boot.elf
objcopy -O binary -R .note -R .comment boot.elf mbr
>>> Source compiled.
>>> Test phase [not enabled]: sys-boot/mbr-gpt-0.0.1-r2

>>> Install sys-boot/mbr-gpt-0.0.1-r2 into /var/tmp/portage-tmpfs/portage/sys-boot/mbr-gpt-0.0.1-r2/image
>>> Completed installing sys-boot/mbr-gpt-0.0.1-r2 into /var/tmp/portage-tmpfs/portage/sys-boot/mbr-gpt-0.0.1-r2/image

 * Final size of build directory: 68 KiB
 * Final size of installed tree:  16 KiB

 * QA Notice: RESTRICT=binchecks prevented checks on these ELF files:
 * /usr/lib/mbr-gpt/boot.elf
Comment 9 Larry the Git Cow gentoo-dev 2023-01-08 12:32:26 UTC
The bug has been closed via the following commit(s):

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

commit 00a8f5c02b970e437ba0e739ffa39484c87372a4
Author:     Jakov Smolić <jsmolic@gentoo.org>
AuthorDate: 2023-01-08 12:21:10 +0000
Commit:     Jakov Smolić <jsmolic@gentoo.org>
CommitDate: 2023-01-08 12:21:10 +0000

    sys-boot/mbr-gpt: treeclean
    
    Closes: https://bugs.gentoo.org/884371
    Closes: https://bugs.gentoo.org/832025
    Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>

 profiles/package.mask                    | 10 -----
 sys-boot/mbr-gpt/Manifest                |  1 -
 sys-boot/mbr-gpt/mbr-gpt-0.0.1-r1.ebuild | 72 -------------------------------
 sys-boot/mbr-gpt/mbr-gpt-0.0.1-r2.ebuild | 74 --------------------------------
 sys-boot/mbr-gpt/metadata.xml            | 11 -----
 5 files changed, 168 deletions(-)