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

Bug 708382

Summary: sci-astronomy/stiff-2.4.0 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Astronomy project <sci-astronomy>
Status: RESOLVED FIXED    
Severity: normal CC: sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: ~arch only
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-astronomy:stiff-2.4.0:20200205-083425.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-02-05 18:12:35 UTC
xml.c:250:5: warning: ignoring return value of ‘getcwd’, declared with attribute warn_unused_result [-Wunused-result]
  250 |     getcwd(pspathb, MAXCHAR);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=native -fno-common  -Wl,-O1 -Wl,--as-needed -o stiff datamem.o field.o image.o main.o makeit.o prefs.o threads.o tiff.o xml.o ./fits/libfits.a -ltiff  -ljpeg  -lz -lm 
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: field.o:(.bss+0xfc0): multiple definition of `gstr'; datamem.o:(.bss+0x40): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: field.o:(.bss+0xfa8): multiple definition of `bswapflag'; datamem.o:(.bss+0x20): first defined here

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

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

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

  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.41.0 *


ghc:
The Glorious Glasgow Haskell Compilation System, version 8.0.2

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Wed, 05 Feb 2020 07:28:53 +0000

emerge -qpvO sci-astronomy/stiff
[ebuild  N    ] sci-astronomy/stiff-2.4.0  USE="-doc -threads"
Comment 1 Toralf Förster gentoo-dev 2020-02-05 18:12:37 UTC
Created attachment 611900 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-02-05 18:12:41 UTC
Created attachment 611902 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-02-05 18:12:44 UTC
Created attachment 611904 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-02-05 18:12:46 UTC
Created attachment 611906 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-02-05 18:12:49 UTC
Created attachment 611908 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-02-05 18:12:52 UTC
Created attachment 611910 [details]
sci-astronomy:stiff-2.4.0:20200205-083425.log
Comment 7 Toralf Förster gentoo-dev 2020-02-05 18:12:55 UTC
Created attachment 611912 [details]
temp.tbz2
Comment 8 Larry the Git Cow gentoo-dev 2021-02-27 05:16:21 UTC
The bug has been closed via the following commit(s):

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

commit 56ab65de7dfe1d8de3aa2e932426386fe9f3e947
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-02-27 04:52:44 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-02-27 04:52:44 +0000

    sci-astronomy/stiff: fix gcc 10 build
    
    Closes: https://bugs.gentoo.org/708382
    Package-Manager: Portage-3.0.15, Repoman-3.0.2
    Signed-off-by: Sam James <sam@gentoo.org>

 sci-astronomy/stiff/stiff-2.4.0.ebuild | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)