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

Bug 707032

Summary: net-print/pnm2ppa-1.13-r1 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Printing Team <printing>
Status: RESOLVED FIXED    
Severity: normal CC: sam
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
net-print:pnm2ppa-1.13-r1:20200128-211438.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-01-28 21:20:51 UTC
./make_hash_ink 4 3 > hash_ink.c
./make_hash_ink 1 5 >> hash_ink.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.  -DSYSCONFDIR='"/etc"'   -O2 -pipe -march=native -fno-common -Wall -Wsign-compare -Wfloat-equal -Wformat-security -g -O2 -DNDEBUG -c hash_ink.c
x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=native -fno-common -Wall -Wsign-compare -Wfloat-equal -Wformat-security -g -O2 -DNDEBUG  -Wl,-O1 -Wl,--as-needed -o pnm2ppa pnm2ppa.o syslog.o ppa.o image.o dither.o cutswath.o gamma.o  hash_ink.o  -lm 
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: syslog.o:/var/tmp/portage/net-print/pnm2ppa-1.13-r1/work/pnm2ppa-1.13/ppa_syslog.h:42: multiple definition of `syslog_message'; pnm2ppa.o:/var/tmp/portage/net-print/pnm2ppa-1.13-r1/work/pnm2ppa-1.13/ppa_syslog.h:42: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ppa.o:/var/tmp/portage/net-print/pnm2ppa-1.13-r1/work/pnm2ppa-1.13/ppa_syslog.h:42: multiple definition of `syslog_message'; pnm2ppa.o:/var/tmp/portage/net-print/pnm2ppa-1.13-r1/work/pnm2ppa-1.13/ppa_syslog.h:42: first defined here

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

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

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

  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

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Tue, 28 Jan 2020 20:26:24 +0000

emerge -qpvO net-print/pnm2ppa
[ebuild  N    ] net-print/pnm2ppa-1.13-r1  USE="-syslog" L10N="-cs -en -es -fr -it -nl"
Comment 1 Toralf Förster gentoo-dev 2020-01-28 21:20:53 UTC
Created attachment 607254 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-28 21:20:56 UTC
Created attachment 607256 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-01-28 21:20:59 UTC
Created attachment 607258 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-01-28 21:21:02 UTC
Created attachment 607260 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-01-28 21:21:04 UTC
Created attachment 607262 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-01-28 21:21:07 UTC
Created attachment 607264 [details]
net-print:pnm2ppa-1.13-r1:20200128-211438.log
Comment 7 Toralf Förster gentoo-dev 2020-01-28 21:21:10 UTC
Created attachment 607266 [details]
temp.tbz2
Comment 9 Larry the Git Cow gentoo-dev 2020-12-28 11:50:40 UTC
The bug has been closed via the following commit(s):

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

commit 42a083cf5594e682bd1bb31d0abb08a13cac478b
Author:     Jakov Smolic <jakov.smolic@sartura.hr>
AuthorDate: 2020-12-28 11:50:14 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2020-12-28 11:50:14 +0000

    net-print/pnm2ppa: fix build with gcc-10
    
    * Thanks to Sam James for providing the patch link
    
    Closes: https://bugs.gentoo.org/707032
    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>

 .../pnm2ppa/files/pnm2ppa-1.13-fno-common.patch    | 26 ++++++++++++++++++++++
 net-print/pnm2ppa/pnm2ppa-1.13-r1.ebuild           |  2 ++
 2 files changed, 28 insertions(+)