Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 707606

Summary: sys-devel/remake-4.2.1.1.4-r1 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal CC: ago, jer, sam
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 705764    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
sys-devel:remake-4.2.1.1.4-r1:20200131-021434.log
temp.tbz2
make-4.2.1-fno-common.patch

Description Toralf Förster gentoo-dev 2020-01-31 17:36:07 UTC
x86_64-pc-linux-gnu-gcc -DLOCALEDIR=\"/usr/share/locale\" -DLIBDIR=\"/usr/lib64\" -DINCLUDEDIR=\"/usr/include\" -DHAVE_CONFIG_H -I.      -O2 -pipe -march=native -fno-common -c -o debugger/file2line.o debugger/file2line.c
x86_64-pc-linux-gnu-gcc -DLOCALEDIR=\"/usr/share/locale\" -DLIBDIR=\"/usr/lib64\" -DINCLUDEDIR=\"/usr/include\" -DHAVE_CONFIG_H -I.      -O2 -pipe -march=native -fno-common -c -o debugger/msg.o debugger/msg.c
x86_64-pc-linux-gnu-gcc -DLOCALEDIR=\"/usr/share/locale\" -DLIBDIR=\"/usr/lib64\" -DINCLUDEDIR=\"/usr/include\" -DHAVE_CONFIG_H -I.      -O2 -pipe -march=native -fno-common -c -o debugger/stack.o debugger/stack.c
x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=native -fno-common -Wl,--export-dynamic -Wl,-O1 -Wl,--as-needed -o make alloc.o ar.o arscan.o buildargv.o commands.o default.o debug.o dir.o expand.o file_basic.o file.o function.o getopt.o getopt1.o globals.o guile.o hash.o implicit.o job.o load.o loadapi.o main.o misc.o posixos.o profile.o print.o output.o read.o remake.o rule.o signame.o strcache.o trace.o variable.o version.o vpath.o remote-stub.o debugger/break.o debugger/cmd.o debugger/fns.o debugger/file2line.o debugger/msg.o debugger/stack.o    -ldl -lreadline  -lreadline
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: commands.o:(.bss+0x8): multiple definition of `read_makefiles'; ar.o:(.bss+0x0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: commands.o:(.bss+0x10): multiple definition of `stack_limit'; ar.o:(.bss+0x10): first defined here

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no-multilib-20200124-204141

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

  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)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.40.0 *
java-config:
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.242_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
ghc:
The Glorious Glasgow Haskell Compilation System, version 8.0.2

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Fri, 31 Jan 2020 01:26:20 +0000

emerge -qpvO sys-devel/remake
[ebuild  N    ] sys-devel/remake-4.2.1.1.4-r1  USE="readline -guile"
Comment 1 Toralf Förster gentoo-dev 2020-01-31 17:36:09 UTC
Created attachment 609624 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-31 17:36:12 UTC
Created attachment 609626 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-01-31 17:36:15 UTC
Created attachment 609628 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-01-31 17:36:18 UTC
Created attachment 609630 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-01-31 17:36:21 UTC
Created attachment 609632 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-01-31 17:36:23 UTC
Created attachment 609634 [details]
sys-devel:remake-4.2.1.1.4-r1:20200131-021434.log
Comment 7 Toralf Förster gentoo-dev 2020-01-31 17:36:26 UTC
Created attachment 609636 [details]
temp.tbz2
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2020-05-08 07:26:39 UTC
*** Bug 721586 has been marked as a duplicate of this bug. ***
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2020-05-08 08:47:11 UTC
Created attachment 636826 [details, diff]
make-4.2.1-fno-common.patch
Comment 10 Larry the Git Cow gentoo-dev 2020-12-28 11:50:37 UTC
The bug has been closed via the following commit(s):

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

commit 2d3f45f6f1ac0dbe8d987af727a0f7445cd30048
Author:     Jakov Smolic <jakov.smolic@sartura.hr>
AuthorDate: 2020-12-28 11:50:15 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2020-12-28 11:50:15 +0000

    sys-devel/remake: fix build with gcc-10
    
    Closes: https://bugs.gentoo.org/707606
    Package-Manager: Portage-3.0.9, Repoman-3.0.1
    Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
    Signed-off-by: David Seifert <soap@gentoo.org>

 .../remake/files/remake-4.2.1.1.4-fno-common.patch | 127 +++++++++++++++++++++
 sys-devel/remake/remake-4.2.1.1.4-r1.ebuild        |   3 +-
 2 files changed, 129 insertions(+), 1 deletion(-)