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

Bug 706844

Summary: sys-fs/treesize-0.54.1-r1 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
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
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
sys-fs:treesize-0.54.1-r1:20200128-003435.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-01-28 18:21:32 UTC
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/share"\"  -D _FILE_OFFSET_BITS=64 -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -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    -Wall -g -O1 -O2 -pipe -march=native -fno-common -c -o LLlinkedList.o LLlinkedList.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/share"\"  -D _FILE_OFFSET_BITS=64 -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -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    -Wall -g -O1 -O2 -pipe -march=native -fno-common -c -o BTbinaryTree.o BTbinaryTree.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/share"\"  -D _FILE_OFFSET_BITS=64 -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -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    -Wall -g -O1 -O2 -pipe -march=native -fno-common -c -o dragAndDrop.o dragAndDrop.c
x86_64-pc-linux-gnu-gcc -Wall -g -O1 -O2 -pipe -march=native -fno-common  -Wl,-O1 -Wl,--as-needed -o treesize main.o support.o interface.o callbacks.o TStreeSizeGui.o util.o ui-util.o FAfolderAnalyzer.o FIfolderInfo.o LLlinkedList.o BTbinaryTree.o dragAndDrop.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   -lpthread 
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: callbacks.o:/var/tmp/portage/sys-fs/treesize-0.54.1-r1/work/treesize-0.54.1/src/callbacks.c:112: multiple definition of `gdkTreeSize'; main.o:/var/tmp/portage/sys-fs/treesize-0.54.1-r1/work/treesize-0.54.1/src/main.c:42: 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_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 (uninstalled)
  [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 <==
Mon, 27 Jan 2020 23:06:20 +0000

emerge -qpvO sys-fs/treesize
[ebuild  N    ] sys-fs/treesize-0.54.1-r1
Comment 1 Toralf Förster gentoo-dev 2020-01-28 18:21:35 UTC
Created attachment 606082 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-28 18:21:37 UTC
Created attachment 606084 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-01-28 18:21:40 UTC
Created attachment 606086 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-01-28 18:21:43 UTC
Created attachment 606088 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-01-28 18:21:46 UTC
Created attachment 606090 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-01-28 18:21:49 UTC
Created attachment 606092 [details]
sys-fs:treesize-0.54.1-r1:20200128-003435.log
Comment 7 Toralf Förster gentoo-dev 2020-01-28 18:21:51 UTC
Created attachment 606094 [details]
temp.tbz2
Comment 8 Larry the Git Cow gentoo-dev 2020-05-15 07:02:23 UTC
The bug has been closed via the following commit(s):

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

commit c1d2946ddacf91914438be47442f40dd613d9f19
Author:     Jeroen Roovers <jer@gentoo.org>
AuthorDate: 2020-05-15 07:01:38 +0000
Commit:     Jeroen Roovers <jer@gentoo.org>
CommitDate: 2020-05-15 07:02:19 +0000

    sys-fs/treesize: Fix building with CFLAGS=-fno-common
    
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Closes: https://bugs.gentoo.org/706844
    Signed-off-by: Jeroen Roovers <jer@gentoo.org>

 sys-fs/treesize/files/0.54.1-amd64.patch      |  4 ++--
 sys-fs/treesize/files/0.54.1-fno-common.patch | 11 +++++++++++
 sys-fs/treesize/treesize-0.54.1-r1.ebuild     |  7 +++++--
 3 files changed, 18 insertions(+), 4 deletions(-)