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

Bug 707788

Summary: app-misc/lcdproc-0.5.9 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Conrad Kostecki <conikost>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 705764    
Attachments: emerge-info.txt
app-misc:lcdproc-0.5.9:20200201-170345.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2020-02-01 17:09:09 UTC
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../..  -I../.. -I../../shared -DSYSCONFDIR=\"/etc\" -DPIDFILEDIR=\"/run\"   -Wall -O2 -pipe -march=native -fno-common -Wno-unused-function -ftrampolines -c -o machine_SunOS.o machine_SunOS.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../..  -I../.. -I../../shared -DSYSCONFDIR=\"/etc\" -DPIDFILEDIR=\"/run\"   -Wall -O2 -pipe -march=native -fno-common -Wno-unused-function -ftrampolines -c -o util.o util.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../..  -I../.. -I../../shared -DSYSCONFDIR=\"/etc\" -DPIDFILEDIR=\"/run\"   -Wall -O2 -pipe -march=native -fno-common -Wno-unused-function -ftrampolines -c -o iface.o iface.c
x86_64-pc-linux-gnu-gcc  -Wall -O2 -pipe -march=native -fno-common -Wno-unused-function -ftrampolines  -Wl,-O1 -Wl,--as-needed -o lcdproc main.o mode.o batt.o chrono.o cpu.o cpu_smp.o disk.o load.o mem.o eyebox.o machine_Linux.o machine_OpenBSD.o machine_FreeBSD.o machine_NetBSD.o machine_Darwin.o machine_SunOS.o util.o iface.o ../../shared/libLCDstuff.a -ldl 
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: iface.o:(.bss+0x0): multiple definition of `iface'; main.o:(.bss+0x60): first defined here
collect2: error: ld returned 1 exit status

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

  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
ghc:
The Glorious Glasgow Haskell Compilation System, version 8.0.2

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Sat, 01 Feb 2020 14:48:30 +0000

emerge -qpvO app-misc/lcdproc
[ebuild  N    ] app-misc/lcdproc-0.5.9  USE="-debug -doc -ethlcd -extra-charmaps -freetype -menu -nfs -png -samba -test-menu" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text -cfontzpacket -curses -cwlnx -ea65 -eyeboxone -futaba -g15 -glcd -glcdlib -i2500vfd -icp_a106 -imon -imonlcd -iowarrior -irman -irtrans -joy -lcterm -linux_input -lirc -lis -md8800 -mdm166a -ms6931 -mtc_s16209x -mx5000 -noritakevfd -olimex_mod_lcd1x9 -picolcd -pyramid -rawserial -sdeclcd -sed1330 -sed1520 -serialpos -serialvfd -shuttlevfd -sli -stv5730 -sureelec -t6963 -tyan -ula200 -vlsys_m428 -xosd -yard2lcd"
Comment 1 Toralf Förster gentoo-dev 2020-02-01 17:09:12 UTC
Created attachment 610536 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-02-01 17:09:15 UTC
Created attachment 610538 [details]
app-misc:lcdproc-0.5.9:20200201-170345.log
Comment 3 Toralf Förster gentoo-dev 2020-02-01 17:09:18 UTC
Created attachment 610540 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-02-01 17:09:21 UTC
Created attachment 610542 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-02-01 17:09:24 UTC
Created attachment 610544 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-02-01 17:09:27 UTC
Created attachment 610546 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-02-01 17:09:29 UTC
Created attachment 610548 [details]
temp.tbz2
Comment 8 Conrad Kostecki gentoo-dev 2020-02-02 17:54:14 UTC
Submited Patch upstream, will push an update.
Comment 9 Larry the Git Cow gentoo-dev 2020-02-02 21:38:39 UTC
The bug has been closed via the following commit(s):

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

commit 55cee0ab612902bb1125bf68b7f2b21103539bf3
Author:     Conrad Kostecki <conikost@gentoo.org>
AuthorDate: 2020-02-02 21:31:05 +0000
Commit:     Conrad Kostecki <conikost@gentoo.org>
CommitDate: 2020-02-02 21:31:05 +0000

    app-misc/lcdproc: fix -fno-common compilation
    
    Closes: https://bugs.gentoo.org/707788
    Package-Manager: Portage-2.3.84, Repoman-2.3.20
    Signed-off-by: Conrad Kostecki <conikost@gentoo.org>

 .../files/lcdproc-0.5.9-fix-fno-common-build.patch | 53 ++++++++++++++++++++++
 app-misc/lcdproc/lcdproc-0.5.9.ebuild              |  3 +-
 2 files changed, 55 insertions(+), 1 deletion(-)