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

Bug 706358

Summary: sys-process/htop-2.2.0 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Christian Ruppert (idl0r) <idl0r>
Status: RESOLVED FIXED    
Severity: normal CC: candrews, polynomial-c
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/hishamhm/htop/pull/982
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
sys-process:htop-2.2.0:20200125-200611.log
temp.tbz2
htop-2.2.0-gcc-10.patch

Description Toralf Förster gentoo-dev 2020-01-25 20:28:27 UTC
      |    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.  -DNDEBUG  -pedantic -Wall -Wextra -std=c99 -D_XOPEN_SOURCE_EXTENDED -DSYSCONFDIR=\"/etc\" -I"./linux" -rdynamic -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -O2 -pipe -march=native -fno-common -c -o linux/LinuxCRT.o linux/LinuxCRT.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.  -DNDEBUG  -pedantic -Wall -Wextra -std=c99 -D_XOPEN_SOURCE_EXTENDED -DSYSCONFDIR=\"/etc\" -I"./linux" -rdynamic -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -O2 -pipe -march=native -fno-common -c -o linux/Battery.o linux/Battery.c
x86_64-pc-linux-gnu-gcc -pedantic -Wall -Wextra -std=c99 -D_XOPEN_SOURCE_EXTENDED -DSYSCONFDIR=\"/etc\" -I"./linux" -rdynamic -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -O2 -pipe -march=native -fno-common   -Wl,-O1 -Wl,--as-needed -o htop   AvailableMetersPanel.o CategoriesPanel.o CheckItem.o ClockMeter.o ColorsPanel.o ColumnsPanel.o CPUMeter.o CRT.o MainPanel.o DisplayOptionsPanel.o FunctionBar.o Hashtable.o Header.o htop.o ListItem.o LoadAverageMeter.o MemoryMeter.o Meter.o MetersPanel.o Object.o Panel.o BatteryMeter.o Process.o ProcessList.o RichString.o ScreenManager.o Settings.o SignalsPanel.o StringUtils.o SwapMeter.o TasksMeter.o UptimeMeter.o TraceScreen.o UsersTable.o Vector.o AvailableColumnsPanel.o AffinityPanel.o HostnameMeter.o OpenFilesScreen.o Affinity.o IncSet.o Action.o EnvScreen.o InfoScreen.o XAlloc.o linux/Platform.o linux/IOPriorityPanel.o linux/IOPriority.o linux/LinuxProcess.o linux/LinuxProcessList.o linux/LinuxCRT.o linux/Battery.o  -L/usr/lib64 -lncursesw -ltinfow -lm  
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ClockMeter.o:(.bss+0x0): multiple definition of `backtraceArray'; CheckItem.o:(.bss+0x0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ClockMeter.o:(.bss+0x400): multiple definition of `CRT_termType'; CheckItem.o:(.bss+0x400): first defined here

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

  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 *


llvm:
9.0.1
Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.6
  [3]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.40.0 *



repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Sat, 25 Jan 2020 18:26:13 +0000

emerge -qpvO sys-process/htop
[ebuild  N    ] sys-process/htop-2.2.0  USE="unicode -openvz -vserver"
Comment 1 Toralf Förster gentoo-dev 2020-01-25 20:28:30 UTC
Created attachment 604390 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-25 20:28:33 UTC
Created attachment 604392 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-01-25 20:28:35 UTC
Created attachment 604394 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-01-25 20:28:38 UTC
Created attachment 604396 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-01-25 20:28:41 UTC
Created attachment 604398 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-01-25 20:28:44 UTC
Created attachment 604400 [details]
sys-process:htop-2.2.0:20200125-200611.log
Comment 7 Toralf Förster gentoo-dev 2020-01-25 20:28:46 UTC
Created attachment 604402 [details]
temp.tbz2
Comment 8 Sergei Trofimovich (RETIRED) gentoo-dev 2020-01-25 20:36:22 UTC
Proposed fix upstream as https://github.com/hishamhm/htop/pull/982
Comment 9 Sergei Trofimovich (RETIRED) gentoo-dev 2020-01-25 20:40:04 UTC
Created attachment 604404 [details, diff]
htop-2.2.0-gcc-10.patch
Comment 10 Larry the Git Cow gentoo-dev 2020-02-11 10:59:52 UTC
The bug has been closed via the following commit(s):

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

commit d73d1c70594d18629f3ff35896363cc33aa1fad6
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2020-02-11 10:59:33 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2020-02-11 10:59:33 +0000

    sys-process/htop: Fix building with -fno-common
    
    Closes: https://bugs.gentoo.org/706358
    Package-Manager: Portage-2.3.88, Repoman-2.3.20
    Signed-off-by: David Seifert <soap@gentoo.org>

 sys-process/htop/files/htop-2.2.0-gcc-10.patch | 27 ++++++++++++++++++++++++++
 sys-process/htop/htop-2.2.0.ebuild             |  1 +
 2 files changed, 28 insertions(+)
Comment 11 Larry the Git Cow gentoo-dev 2020-02-11 11:23:01 UTC
The bug has been closed via the following commit(s):

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

commit 5fa347583c1bf30e212cb38d529bbed3d233c9cc
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2020-02-11 11:22:36 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2020-02-11 11:22:36 +0000

    sys-process/htop: Fix building with -fno-common
    
    Closes: https://bugs.gentoo.org/706358
    Package-Manager: Portage-2.3.88, Repoman-2.3.20
    Signed-off-by: David Seifert <soap@gentoo.org>

 .../htop/files/htop-3.0.0_beta5-gcc-10.patch       | 52 ++++++++++++++++++++++
 sys-process/htop/htop-3.0.0_beta5.ebuild           |  4 +-
 2 files changed, 54 insertions(+), 2 deletions(-)