Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 919118 - sys-apps/fwupd-efi-1.4 - [clang] /.../llvm-objcopy: error: unknown argument --section-alignment
Summary: sys-apps/fwupd-efi-1.4 - [clang] /.../llvm-objcopy: error: unknown argument -...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Marek Szuba
URL: https://github.com/llvm/llvm-project/...
Whiteboard:
Keywords:
: 917169 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-12-03 11:01 UTC by Toralf Förster
Modified: 2023-12-05 15:57 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.53 KB, text/plain)
2023-12-03 11:01 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,169.46 KB, text/plain)
2023-12-03 11:01 UTC, Toralf Förster
Details
environment (environment,112.74 KB, text/plain)
2023-12-03 11:01 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.14 KB, application/x-xz)
2023-12-03 11:01 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,22.54 KB, application/x-xz)
2023-12-03 11:01 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,2.22 KB, application/x-xz)
2023-12-03 11:01 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,47.09 KB, application/x-xz)
2023-12-03 11:01 UTC, Toralf Förster
Details
sys-apps:fwupd-efi-1.4:20231203-030147.log (sys-apps:fwupd-efi-1.4:20231203-030147.log,11.93 KB, text/plain)
2023-12-03 11:01 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,34.02 KB, application/x-xz)
2023-12-03 11:01 UTC, Toralf Förster
Details
var.tmp.clang.tar.xz (var.tmp.clang.tar.xz,1.91 KB, application/x-xz)
2023-12-03 11:01 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 2023-12-03 11:01:18 UTC
too long lines were shrinked:

      |                ^~~~~~~~~~~~~~~~~
1 warning generated.
[6/7] /usr/lib/llvm/17/bin/ld.lld -o efi/fwup.so -T /var/tmp/portage/sys-apps/fwupd-efi-1.4/work/fwupd-efi-1.4/efi/lds/elf_x86_64_efi.lds -shared -Bsymbolic -nostdlib -znocombreloc -L /usr/lib64 -L /usr/lib64 /usr/lib64/crt0-efi-x86_64.o efi/fwupdate.o efi/fwup-debug.o efi/fwup-efi.o efi/fwup-common
[7/7] /var/tmp/portage/sys-apps/fwupd-efi-1.4/work/fwupd-efi-1.4/efi/generate_binary.py efi/fwup.so efi/fwupdx64.efi --arch x86_64 --os linux --objcopy /usr/lib/llvm/17/bin/llvm-objcopy --genpeimg ''
FAILED: efi/fwupdx64.efi 
/var/tmp/portage/sys-apps/fwupd-efi-1.4/work/fwupd-efi-1.4/efi/generate_binary.py efi/fwup.so efi/fwupdx64.efi --arch x86_64 --os linux --objcopy /usr/lib/llvm/17/bin/llvm-objcopy --genpeimg ''
/usr/lib/llvm/17/bin/llvm-objcopy: error: unknown argument '--section-alignment'
Traceback (most recent call last):
  File "/var/tmp/portage/sys-apps/fwupd-efi-1.4/work/fwupd-efi-1.4/efi/generate_binary.py", line 103, in <module>

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_clang-20231129-092259

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 17.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.6+libcxx
Python 3.11.6
Available Rust versions:
  [1]   rust-bin-1.73.0
  [2]   rust-1.73.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
3)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
  [1]   php8.1
  [2]   php8.2 *
go version go1.21.4 linux/amd64

  HEAD of ::gentoo
commit fdfd3a14f32bf12623212bfb5fd848c6c5cd71d6
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Dec 3 02:32:01 2023 +0000

    2023-12-03 02:32:01 UTC

emerge -qpvO sys-apps/fwupd-efi
[ebuild  N    ] sys-apps/fwupd-efi-1.4  USE="-secureboot"
Comment 1 Toralf Förster gentoo-dev 2023-12-03 11:01:19 UTC
Created attachment 876542 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-03 11:01:21 UTC
Created attachment 876543 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-12-03 11:01:22 UTC
Created attachment 876544 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-12-03 11:01:23 UTC
Created attachment 876545 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-12-03 11:01:24 UTC
Created attachment 876546 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-12-03 11:01:25 UTC
Created attachment 876547 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-12-03 11:01:26 UTC
Created attachment 876548 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2023-12-03 11:01:27 UTC
Created attachment 876549 [details]
sys-apps:fwupd-efi-1.4:20231203-030147.log
Comment 9 Toralf Förster gentoo-dev 2023-12-03 11:01:28 UTC
Created attachment 876550 [details]
temp.tar.xz
Comment 10 Toralf Förster gentoo-dev 2023-12-03 11:01:29 UTC
Created attachment 876551 [details]
var.tmp.clang.tar.xz
Comment 11 Marek Szuba archtester gentoo-dev 2023-12-05 15:41:34 UTC
*** Bug 917169 has been marked as a duplicate of this bug. ***
Comment 12 Larry the Git Cow gentoo-dev 2023-12-05 15:57:10 UTC
The bug has been closed via the following commit(s):

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

commit 606aeaebf581d0e5c8bd771d6413a64676fec9cf
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2023-12-05 15:53:20 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2023-12-05 15:56:55 +0000

    sys-apps/fwupd-efi: fix llvm-objcopy build error
    
    Upstream began passing --section-alignment to objcopy before 1.4
    and that option remains unsupported by llvm-objcopy. However, the
    change has since been reverted as non-compliant.
    
    Closes: https://bugs.gentoo.org/919118
    Signed-off-by: Marek Szuba <marecki@gentoo.org>

 .../files/fwupd-efi-1.4-uefi_210_fixes.patch       | 107 +++++++++++++++++++++
 sys-apps/fwupd-efi/fwupd-efi-1.4-r1.ebuild         |  71 ++++++++++++++
 2 files changed, 178 insertions(+)