Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 707132 - sys-apps/kexec-tools-2.0.20 : fails to build with -fno-common or gcc-10
Summary: sys-apps/kexec-tools-2.0.20 : fails to build with -fno-common or gcc-10
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: -fno-common
  Show dependency tree
 
Reported: 2020-01-29 17:38 UTC by Toralf Förster
Modified: 2020-05-03 19:01 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,15.16 KB, text/plain)
2020-01-29 17:38 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,100.60 KB, text/plain)
2020-01-29 17:38 UTC, Toralf Förster
Details
environment (environment,93.73 KB, text/plain)
2020-01-29 17:38 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,13.56 KB, application/x-bzip)
2020-01-29 17:38 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,4.14 KB, application/x-bzip)
2020-01-29 17:38 UTC, Toralf Förster
Details
sys-apps:kexec-tools-2.0.20:20200128-224308.log (sys-apps:kexec-tools-2.0.20:20200128-224308.log,28.54 KB, text/plain)
2020-01-29 17:38 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,26.07 KB, application/x-bzip)
2020-01-29 17:38 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-01-29 17:38:23 UTC
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -fno-strict-aliasing -Wall -Wstrict-prototypes -I./include -I./include -I./util_lib/include -Iinclude/  -I./kexec/arch/x86_64/include -I./util_lib/include  -c -MD -o util_lib/sha256.o util_lib/sha256.c
x86_64-pc-linux-gnu-ar rs libutil.a util_lib/compute_ip_checksum.o util_lib/elf_info.o util_lib/sha256.o
x86_64-pc-linux-gnu-ar: creating libutil.a
x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed  -o build/sbin/kexec kexec/kexec.o kexec/ifdown.o kexec/kexec-elf.o kexec/kexec-elf-exec.o kexec/kexec-elf-core.o kexec/kexec-elf-rel.o kexec/kexec-elf-boot.o kexec/kexec-iomem.o kexec/firmware_memmap.o kexec/crashdump.o kexec/crashdump-xen.o kexec/phys_arch.o kexec/kernel_version.o kexec/lzma.o kexec/zlib.o kexec/kexec-xen.o kexec/symbols.o kexec/proc_iomem.o kexec/virt_to_phys.o kexec/phys_to_virt.o kexec/add_segment.o kexec/add_buffer.o kexec/arch_reuse_initrd.o kexec/arch/i386/kexec-elf-x86.o kexec/arch/i386/kexec-bzImage.o kexec/arch/i386/kexec-multiboot-x86.o kexec/arch/i386/kexec-mb2-x86.o kexec/arch/i386/kexec-beoboot-x86.o kexec/arch/i386/kexec-nbi.o kexec/arch/i386/x86-linux-setup.o kexec/arch/i386/kexec-x86-common.o kexec/arch/i386/crashdump-x86.o kexec/arch/x86_64/kexec-x86_64.o kexec/arch/x86_64/kexec-elf-x86_64.o kexec/arch/x86_64/kexec-elf-rel-x86_64.o kexec/arch/x86_64/kexec-bzImage64.o kexec/purgatory.o libutil.a -O2 -pipe -march=native -fno-common -fno-strict-aliasing -Wall -Wstrict-prototypes -lz 
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: kexec/arch/x86_64/kexec-bzImage64.o:(.bss+0x0): multiple definition of `bzImage_support_efi_boot'; kexec/arch/i386/kexec-bzImage.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened-libressl_test-20200126-104546

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

  Please see the tracker bug for details.

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)
  [5]   pypy3 (fallback)

Available Rust versions:
  [1]   rust-1.40.0 *
java-config:
The following VMs are available for generation-2:
Available Java Virtual Machines:
  (none found)
ghc:
The Glorious Glasgow Haskell Compilation System, version 8.0.2

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Tue, 28 Jan 2020 21:46:57 +0000

emerge -qpvO sys-apps/kexec-tools
[ebuild  N    ] sys-apps/kexec-tools-2.0.20  USE="zlib -booke -lzma -xen"
Comment 1 Toralf Förster gentoo-dev 2020-01-29 17:38:27 UTC
Created attachment 607404 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-29 17:38:30 UTC
Created attachment 607406 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-01-29 17:38:33 UTC
Created attachment 607408 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-01-29 17:38:36 UTC
Created attachment 607410 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-01-29 17:38:39 UTC
Created attachment 607412 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-01-29 17:38:42 UTC
Created attachment 607414 [details]
sys-apps:kexec-tools-2.0.20:20200128-224308.log
Comment 7 Toralf Förster gentoo-dev 2020-01-29 17:38:44 UTC
Created attachment 607416 [details]
temp.tbz2
Comment 8 Larry the Git Cow gentoo-dev 2020-05-03 19:01:45 UTC
The bug has been closed via the following commit(s):

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

commit a79ebc56e947c3561a98e56f1de792f491846cde
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2020-05-03 18:46:41 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2020-05-03 19:01:09 +0000

    sys-apps/kexec-tools: fix building against GCC 10
    
    Closes: https://bugs.gentoo.org/707132
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 ...0-remove-duplicated-variable-declarations.patch | 99 ++++++++++++++++++++++
 sys-apps/kexec-tools/kexec-tools-2.0.20-r1.ebuild  | 89 +++++++++++++++++++
 2 files changed, 188 insertions(+)