Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 742404 - games-util/wit-3.02a adds -march=x86-64 to CFLAGS
Summary: games-util/wit-3.02a adds -march=x86-64 to CFLAGS
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at if you want to take care of it
Depends on:
Reported: 2020-09-13 23:37 UTC by Alexey
Modified: 2020-10-03 22:51 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---

build.log (build.log,330.65 KB, text/x-log)
2020-09-13 23:37 UTC, Alexey
emerge --info (,15.66 KB, application/x-info)
2020-09-13 23:40 UTC, Alexey

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey 2020-09-13 23:37:35 UTC
Created attachment 660051 [details]

>>> Install games-util/wit-3.02a into /home/user/gentoo/var/tmp/portage/games-util/wit-3.02a/image
make -j20 DESTDIR=/home/user/gentoo/var/tmp/portage/games-util/wit-3.02a/image install
gcc -O2 -pipe -O2 -pipe -fno-common -I./dclib -Wall -Wno-parentheses -Wno-unused-function -Isrc/libwbfs -Isrc -I./src/ui -I. -Iwork -march=x86-64  -MMD -DLARGE_FILES -D_FILE_OFFSET_BITS=64 -DWIT -DDEBUG_ASSERT -DEXTENDED_ERRORS=1 -D_7ZIP_ST=1 -D_LZMA_PROB32=1 -DTEST -c ./src/ui/gen-ui.c -o gen-ui.o

Also it seems to compile twice, first time in src_compile, and again in src_install, but using gcc this time instead of x86_64-pc-linux-gnu-gcc

-march=x86-64 comes from makefiles-local/Makefile.local.x86_64 included into Makefile.
Comment 1 Alexey 2020-09-13 23:40:06 UTC
Created attachment 660054 [details]
emerge --info
Comment 2 Alexey 2020-09-13 23:47:21 UTC
Some more issues with this package:
* it calls sudo if not root (relevant for Prefix)
* checks for existence of files like /usr/include/fuse.h and /usr/include/zlib.h to determine what should be supported (regardless of EPREFIX)
* cross-compilation won't work because it compiles and executes a C program during build to understand which of Makefiles to include

These really should be separate bugs, but I'm too lazy to upload build.log there again, sorry
Comment 3 Ionen Wolkens 2020-09-14 02:26:16 UTC
I guess it could all be fixed by updating the makefile patch if someone wants to do it (no maintainer since last year).

There's also a new 3.03a+b version available to accumulate more issues but, as of the writing of this, seems upstream only released binary tarballs for 3.03a and would need a git snapshot for source
Comment 4 Larry the Git Cow gentoo-dev 2020-10-03 22:51:02 UTC
The bug has been referenced in the following commit(s):

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

    games-util/wit: Fix -fno-common
    Package-Manager: Portage-3.0.8, Repoman-3.0.1
    Signed-off-by: David Seifert <>

 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(-)