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

Bug 709722

Summary: sci-calculators/hcalc-1.2-r1 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED FIXED    
Severity: normal CC: jer
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
sci-calculators:hcalc-1.2-r1:20200215-102345.log
temp.tbz2
files/hcalc-1.2-fno-common.patch

Description Toralf Förster gentoo-dev 2020-02-15 11:13:03 UTC
      |    ^~~~~~~~~~~~~~
[100%] Linking C executable hcalc
/usr/bin/cmake -E cmake_link_script CMakeFiles/hcalc.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -I/usr/include  -Wl,-O1 -Wl,--as-needed -rdynamic CMakeFiles/hcalc.dir/draw.c.o CMakeFiles/hcalc.dir/hcalc.c.o CMakeFiles/hcalc.dir/images.c.o CMakeFiles/hcalc.dir/input.c.o CMakeFiles/hcalc.dir/setupx.c.o  -o hcalc  -lX11 -lXpm 
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/hcalc.dir/hcalc.c.o:(.bss+0x0): multiple definition of `bit_off'; CMakeFiles/hcalc.dir/draw.c.o:(.bss+0x0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/hcalc.dir/hcalc.c.o:(.bss+0x4): multiple definition of `bit_on'; CMakeFiles/hcalc.dir/draw.c.o:(.bss+0x4): first defined here

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

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

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

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

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Sat, 15 Feb 2020 09:37:28 +0000

emerge -qpvO sci-calculators/hcalc
[ebuild  N    ] sci-calculators/hcalc-1.2-r1
Comment 1 Toralf Förster gentoo-dev 2020-02-15 11:13:05 UTC
Created attachment 613908 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-02-15 11:13:08 UTC
Created attachment 613910 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-02-15 11:13:11 UTC
Created attachment 613912 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-02-15 11:13:14 UTC
Created attachment 613914 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-02-15 11:13:16 UTC
Created attachment 613916 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-02-15 11:13:19 UTC
Created attachment 613918 [details]
sci-calculators:hcalc-1.2-r1:20200215-102345.log
Comment 7 Toralf Förster gentoo-dev 2020-02-15 11:13:22 UTC
Created attachment 613920 [details]
temp.tbz2
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2020-02-15 11:23:01 UTC
Created attachment 613922 [details, diff]
files/hcalc-1.2-fno-common.patch
Comment 9 Larry the Git Cow gentoo-dev 2020-11-28 23:09:57 UTC
The bug has been closed via the following commit(s):

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

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

    sci-calculators/hcalc: port to EAPI 7
    
    * Thanks to Jeroen Roovers for submitting the patch.
    
    Closes: https://bugs.gentoo.org/709722
    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-calculators/hcalc/files/hcalc-1.2-fno-common.patch | 13 +++++++++++++
 sci-calculators/hcalc/hcalc-1.2-r1.ebuild              |  9 +++++----
 2 files changed, 18 insertions(+), 4 deletions(-)