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

Bug 706938

Summary: sci-chemistry/elem-1.0.3-r2 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Chemistry-Related Packages <sci-chemistry>
Status: RESOLVED FIXED    
Severity: normal Keywords: PullRequest
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/18431
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 705764    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
sci-chemistry:elem-1.0.3-r2:20200128-115423.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-01-28 18:43:53 UTC
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common  -DDEUTSCH -o elem_main_de.o -c elem_main.c
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common  -DDEUTSCH -o elem_cb_de.o -c elem_cb.c
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common  -DDEUTSCH  -o elem_de.o -c elem.c
x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -O2 -pipe -march=native -fno-common -o elem-de elem_main_de.o elem_cb_de.o elem_de.o -lm -L./ -lforms
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: elem_cb_de.o:(.bss+0x8): multiple definition of `amsumme'; elem_main_de.o:(.bss+0x8): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: elem_cb_de.o:(.bss+0x0): multiple definition of `massensumme'; elem_main_de.o:(.bss+0x0): first defined here

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma-libressl-20200126-092715

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

  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 (uninstalled)
  [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:
*)	IcedTea JDK 3.14.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

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

emerge -qpvO sci-chemistry/elem
[ebuild  N    ] sci-chemistry/elem-1.0.3-r2
Comment 1 Toralf Förster gentoo-dev 2020-01-28 18:43:55 UTC
Created attachment 606702 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-28 18:43:58 UTC
Created attachment 606704 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-01-28 18:44:01 UTC
Created attachment 606706 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-01-28 18:44:04 UTC
Created attachment 606708 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-01-28 18:44:08 UTC
Created attachment 606710 [details]
sci-chemistry:elem-1.0.3-r2:20200128-115423.log
Comment 6 Toralf Förster gentoo-dev 2020-01-28 18:44:10 UTC
Created attachment 606712 [details]
temp.tbz2
Comment 7 Larry the Git Cow gentoo-dev 2020-11-27 17:37:06 UTC
The bug has been closed via the following commit(s):

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

commit e6a1186c2d69bc5300f1c41972cf8dfef61e8c2c
Author:     Jakov Smolic <jakov.smolic@sartura.hr>
AuthorDate: 2020-11-27 17:36:49 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2020-11-27 17:36:49 +0000

    sci-chemistry/elem: fix build with gcc-10
    
    Closes: https://github.com/gentoo/gentoo/pull/18431
    Closes: https://bugs.gentoo.org/706938
    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>

 sci-chemistry/elem/elem-1.0.3-r2.ebuild            |  2 +-
 .../elem/files/elem-1.0.3-fno-common.patch         | 24 ++++++++++++++++++++++
 2 files changed, 25 insertions(+), 1 deletion(-)