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

Bug 706610

Summary: games-util/wit-3.02a : 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 CC: louis.leseur
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
games-util:wit-3.02a:20200127-015126.log
temp.tbz2
Patch fixing build

Description Toralf Förster gentoo-dev 2020-01-27 02:52:50 UTC
   68 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -I./dclib -Wall -Wno-parentheses -Wno-unused-function -Isrc/libwbfs -Isrc -I./src/ui -I. -Iwork -march=x86-64  -DHAVE_ZLIB=1 -DHAVE_POSIX_FALLOCATE=1 -DHAVE_FIEMAP=1 -DLARGE_FILES -D_FILE_OFFSET_BITS=64 -DWIT -DDEBUG_ASSERT -DEXTENDED_ERRORS=1 -D_7ZIP_ST=1 -D_LZMA_PROB32=1 -Wl,-O1 -Wl,--as-needed -static-libgcc gen-ui.o \
	cert.o dclib-basics.o dclib-color.o dclib-debug.o dclib-file.o dclib-numeric.o dclib-option.o dclib-tables.o dclib-ui.o dclib-utf8.o dclib-vector.o dclib-xdump.o file-formats.o iso-interface.o lib-bzip2.o lib-ciso.o lib-file.o lib-gcz.o lib-lzma.o lib-sf.o lib-std.o lib-wdf.o lib-wia.o libwbfs.o match-pattern.o patch.o rijndael.o sha1_one.o sha1dgst.o src/lzma/LzFind.o src/lzma/Lzma2Dec.o src/lzma/Lzma2Enc.o src/lzma/LzmaDec.o src/lzma/LzmaEnc.o ssl-asm.o titles.o tools.o wbfs-interface.o wiidisc.o  -lz -lm -lncurses -ltinfo  -lbz2  -o gen-ui
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cert.o:(.bss+0x20): multiple definition of `ColorTab_M0_M15'; gen-ui.o:(.bss+0x0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: dclib-basics.o:(.data+0x40): multiple definition of `ColorTab_M0_M15'; gen-ui.o:(.bss+0x0): 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 *


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 *



repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Mon, 27 Jan 2020 01:06:14 +0000

emerge -qpvO games-util/wit
[ebuild  N    ] games-util/wit-3.02a  USE="fuse zlib"
Comment 1 Toralf Förster gentoo-dev 2020-01-27 02:52:52 UTC
Created attachment 605132 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-27 02:52:55 UTC
Created attachment 605134 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-01-27 02:52:58 UTC
Created attachment 605136 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-01-27 02:53:00 UTC
Created attachment 605138 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-01-27 02:53:03 UTC
Created attachment 605140 [details]
games-util:wit-3.02a:20200127-015126.log
Comment 6 Toralf Förster gentoo-dev 2020-01-27 02:53:05 UTC
Created attachment 605142 [details]
temp.tbz2
Comment 7 Louis Leseur 2020-06-28 18:49:47 UTC
Created attachment 646994 [details, diff]
Patch fixing build

Added a patch fixing the build error with CFLAGS=-fno-common.
Comment 8 Larry the Git Cow gentoo-dev 2020-10-03 22:50:58 UTC
The bug has been closed via the following commit(s):

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

commit 48a5b269397a4dfb5c52a1e598c0d568bdfe6a9b
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2020-10-03 22:50:44 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2020-10-03 22:50:44 +0000

    games-util/wit: Fix -fno-common
    
    Bug: https://bugs.gentoo.org/742404
    Closes: https://bugs.gentoo.org/706610
    Closes: https://bugs.gentoo.org/724706
    Closes: https://bugs.gentoo.org/739408
    Package-Manager: Portage-3.0.8, Repoman-3.0.1
    Signed-off-by: David Seifert <soap@gentoo.org>

 games-util/wit/files/wit-3.02a-fno-common.patch    |  11 ++
 games-util/wit/files/wit-3.02a-makefile.patch      | 113 +++++++++++++++++++--
 ...c-stack.patch => wit-3.02a-no-exec-stack.patch} |   0
 games-util/wit/wit-3.02a.ebuild                    |  25 +++--
 4 files changed, 129 insertions(+), 20 deletions(-)