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

Bug 707138

Summary: sci-mathematics/gp2c-0.0.11.2-r1 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Michael Orlitzky <mjo>
Status: RESOLVED UPSTREAM    
Severity: normal CC: frp.bissey, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://pari.math.u-bordeaux.fr/cgi-bin/bugreport.cgi?bug=2202
See Also: https://bugs.gentoo.org/show_bug.cgi?id=763906
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
sci-mathematics:gp2c-0.0.11.2-r1:20200128-230056.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-01-29 17:39:51 UTC
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -DFUNCDSC_PATH=\"/usr/share/gp2c/func.dsc\" -O2 -pipe -march=native -fno-common -c -o util.o util.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -DFUNCDSC_PATH=\"/usr/share/gp2c/func.dsc\" -O2 -pipe -march=native -fno-common -c -o varlist.o varlist.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.    -DFUNCDSC_PATH=\"/usr/share/gp2c/func.dsc\" -O2 -pipe -march=native -fno-common -c -o stack.o stack.c
x86_64-pc-linux-gnu-gcc -DFUNCDSC_PATH=\"/usr/share/gp2c/func.dsc\" -O2 -pipe -march=native -fno-common  -Wl,-O1 -Wl,--as-needed -o gp2c gp2c.o context.o funcdesc.o funcspec.o genblock.o gencast.o gencode.o genfunc.o gentype.o gerepile.o lang.o moveblock.o node.o parse.o printnode.o toplevel.o topfunc.o util.o varlist.o stack.o  
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: context.o:(.bss+0x1d0): multiple definition of `tree'; gp2c.o:(.bss+0x230): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: context.o:(.bss+0x1c8): multiple definition of `value'; gp2c.o:(.bss+0x228): 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

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

emerge -qpvO sci-mathematics/gp2c
[ebuild  N    ] sci-mathematics/gp2c-0.0.11.2-r1  USE="-test"
Comment 1 Toralf Förster gentoo-dev 2020-01-29 17:39:54 UTC
Created attachment 607444 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-29 17:39:57 UTC
Created attachment 607446 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-01-29 17:40:00 UTC
Created attachment 607448 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-01-29 17:40:03 UTC
Created attachment 607450 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-01-29 17:40:06 UTC
Created attachment 607452 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-01-29 17:40:09 UTC
Created attachment 607454 [details]
sci-mathematics:gp2c-0.0.11.2-r1:20200128-230056.log
Comment 7 Toralf Förster gentoo-dev 2020-01-29 17:40:12 UTC
Created attachment 607456 [details]
temp.tbz2
Comment 8 Michael Orlitzky gentoo-dev 2020-01-30 02:03:54 UTC
I reported it upstream but it hasn't shown up on the bug tracker yet. The fix isn't so trivial.
Comment 9 Michael Orlitzky gentoo-dev 2020-01-30 14:16:25 UTC
This is fixed upstream already and will be a part of the next release. So long as that happens before gcc-10 comes to gentoo, I don't see a pressing need to backport the patch.