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

Bug 707168

Summary: dev-games/t4k-common-0.1.1 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/tux4kids/t4kcommon/pull/8
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 705764    
Attachments: emerge-info.txt
dev-games:t4k-common-0.1.1:20200129-022043.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2020-01-29 17:52:24 UTC
/bin/sh ../libtool --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..    -Wall -g -DCOMMON_DATA_PREFIX=\"/usr/share/t4k_common\" -DDEBUG -DUSE_T4K_PREFIX=1  -O2 -pipe -march=native -fno-common -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT   -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -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/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -I/usr/include/libxml2  -c -o t4k_replacements.lo t4k_replacements.c
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -Wall -g -DCOMMON_DATA_PREFIX=\"/usr/share/t4k_common\" -DDEBUG -DUSE_T4K_PREFIX=1 -O2 -pipe -march=native -fno-common -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -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/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/libxml2 -c t4k_replacements.c  -fPIC -DPIC -o .libs/t4k_replacements.o
/bin/sh ../libtool --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc -Wall -g -DCOMMON_DATA_PREFIX=\"/usr/share/t4k_common\" -DDEBUG -DUSE_T4K_PREFIX=1  -O2 -pipe -march=native -fno-common -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT   -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -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/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -I/usr/include/libxml2   -Wl,-O1 -Wl,--as-needed -o libt4k_common.la -rpath /usr/lib64 t4k_audio.lo t4k_convert_utf.lo t4k_linewrap.lo t4k_loaders.lo t4k_main.lo t4k_menu.lo t4k_pixels.lo t4k_sdl.lo t4k_throttle.lo t4k_replacements.lo linebreak/liblinebreak.la -lm  -lSDL -lpthread  -lSDL_image -lSDL -lpthread  -lSDL_mixer -lSDL -lpthread  -lSDL_Pango -lpango-1.0 -lgobject-2.0 -lglib-2.0  -lSDL_net -lSDL -lpthread  -lxml2 
libtool: link: x86_64-pc-linux-gnu-gcc -shared  .libs/t4k_audio.o .libs/t4k_convert_utf.o .libs/t4k_linewrap.o .libs/t4k_loaders.o .libs/t4k_main.o .libs/t4k_menu.o .libs/t4k_pixels.o .libs/t4k_sdl.o .libs/t4k_throttle.o .libs/t4k_replacements.o  -Wl,--whole-archive linebreak/.libs/liblinebreak.a -Wl,--no-whole-archive  -lm -lSDL_image -lSDL_mixer -lSDL_Pango -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lSDL_net -lSDL -lpthread -lxml2  -march=native -Wl,-O1 -Wl,--as-needed   -Wl,-soname -Wl,libt4k_common.so.0 -o .libs/libt4k_common.so.0.0.0
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/t4k_convert_utf.o:/var/tmp/portage/dev-games/t4k-common-0.1.1/work/t4kcommon-upstream-0.1.1/src/t4k_common.h:242: multiple definition of `wrapped_lines'; .libs/t4k_audio.o:/var/tmp/portage/dev-games/t4k-common-0.1.1/work/t4kcommon-upstream-0.1.1/src/t4k_common.h:242: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: .libs/t4k_linewrap.o:/var/tmp/portage/dev-games/t4k-common-0.1.1/work/t4kcommon-upstream-0.1.1/src/t4k_common.h:242: multiple definition of `wrapped_lines'; .libs/t4k_audio.o:/var/tmp/portage/dev-games/t4k-common-0.1.1/work/t4kcommon-upstream-0.1.1/src/t4k_common.h:242: first defined here

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

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

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

  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 7.10.3

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Wed, 29 Jan 2020 00:26:22 +0000

emerge -qpvO dev-games/t4k-common
[ebuild  N    ] dev-games/t4k-common-0.1.1  USE="-static-libs -svg"
Comment 1 Toralf Förster gentoo-dev 2020-01-29 17:52:27 UTC
Created attachment 607644 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-29 17:52:30 UTC
Created attachment 607646 [details]
dev-games:t4k-common-0.1.1:20200129-022043.log
Comment 3 Toralf Förster gentoo-dev 2020-01-29 17:52:32 UTC
Created attachment 607648 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-01-29 17:52:35 UTC
Created attachment 607650 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-01-29 17:52:37 UTC
Created attachment 607652 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-01-29 17:52:40 UTC
Created attachment 607654 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-01-29 17:52:43 UTC
Created attachment 607656 [details]
temp.tbz2
Comment 8 Larry the Git Cow gentoo-dev 2020-11-21 20:38:56 UTC
The bug has been closed via the following commit(s):

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

commit 74010217b98ba7f20211a93b53a34334893fa360
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2020-11-21 20:38:04 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2020-11-21 20:38:04 +0000

    dev-games/t4k-common: Port to EAPI 7
    
    Closes: https://bugs.gentoo.org/707168
    Closes: https://bugs.gentoo.org/715574
    Package-Manager: Portage-3.0.9, Repoman-3.0.2
    Signed-off-by: David Seifert <soap@gentoo.org>

 .../files/t4k-common-0.1.1-ICONV_CONST.patch       | 10 +++++++
 .../files/t4k-common-0.1.1-fno-common.patch        | 11 ++++++++
 .../t4k-common/files/t4k-common-0.1.1-libpng.patch |  4 +--
 dev-games/t4k-common/t4k-common-0.1.1.ebuild       | 33 +++++++++++++++-------
 4 files changed, 46 insertions(+), 12 deletions(-)