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

Bug 707536

Summary: sci-calculators/transcalc-0.14-r2 : 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    
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-calculators:transcalc-0.14-r2:20200130-213616.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-01-30 21:54:51 UTC
      |               ~~~~~~~^~~~
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/libffi/include -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/uuid -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/atk-1.0 -pthread  -DDATADIR=\"/usr/share\"    -O2 -pipe -march=native -fno-common -c callback_general.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/libffi/include -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/uuid -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/atk-1.0 -pthread  -DDATADIR=\"/usr/share\"    -O2 -pipe -march=native -fno-common -c fnmatch.c
x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=native -fno-common -Wl,-O1 -Wl,--as-needed -o transcalc  transcalc.o setup_menu.o options.o help.o setup_body.o setup_status.o image_util.o unitscombo.o setup_label.o setup_values.o setup_transgui.o file_io.o print_trans.o microstrip.o c_microstrip.o rectwaveguide.o coax.o callback_general.o fnmatch.o -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype   -lm 
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: setup_menu.o:(.bss+0x20): multiple definition of `twin'; transcalc.o:(.bss+0x20): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: setup_menu.o:(.bss+0x0): multiple definition of `main_window_height'; transcalc.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
  [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
ghc:
The Glorious Glasgow Haskell Compilation System, version 8.0.2

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Thu, 30 Jan 2020 20:30:52 +0000

emerge -qpvO sci-calculators/transcalc
[ebuild  N    ] sci-calculators/transcalc-0.14-r2
Comment 1 Toralf Förster gentoo-dev 2020-01-30 21:54:54 UTC
Created attachment 609470 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-30 21:54:56 UTC
Created attachment 609472 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-01-30 21:54:59 UTC
Created attachment 609474 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-01-30 21:55:02 UTC
Created attachment 609476 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-01-30 21:55:05 UTC
Created attachment 609478 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-01-30 21:55:08 UTC
Created attachment 609480 [details]
sci-calculators:transcalc-0.14-r2:20200130-213616.log
Comment 7 Toralf Förster gentoo-dev 2020-01-30 21:55:11 UTC
Created attachment 609482 [details]
temp.tbz2
Comment 8 Larry the Git Cow gentoo-dev 2021-01-02 19:16:17 UTC
The bug has been closed via the following commit(s):

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

commit bc87905acb5f7f3bca89b62a0ca543352aaba78f
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2021-01-02 19:16:01 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2021-01-02 19:16:01 +0000

    sci-calculators/transcalc: Fix -fno-common
    
    Closes: https://bugs.gentoo.org/707536
    Package-Manager: Portage-3.0.12, Repoman-3.0.2
    Signed-off-by: David Seifert <soap@gentoo.org>

 .../files/transcalc-0.14-fno-common.patch          | 70 ++++++++++++++++++++++
 sci-calculators/transcalc/transcalc-0.14-r2.ebuild | 14 +++--
 2 files changed, 78 insertions(+), 6 deletions(-)