Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 710612 - app-emulation/punes-0.105 : fails to build with -fno-common or gcc-10
Summary: app-emulation/punes-0.105 : fails to build with -fno-common or gcc-10
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Azamat H. Hackimov
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: -fno-common
  Show dependency tree
 
Reported: 2020-02-23 20:42 UTC by Toralf Förster
Modified: 2020-08-08 09:04 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.93 KB, text/plain)
2020-02-23 20:42 UTC, Toralf Förster
Details
app-emulation:punes-0.105:20200223-202708.log.bz2 (app-emulation:punes-0.105:20200223-202708.log.bz2,157.59 KB, application/x-bzip)
2020-02-23 20:43 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,83.87 KB, text/plain)
2020-02-23 20:43 UTC, Toralf Förster
Details
environment (environment,64.60 KB, text/plain)
2020-02-23 20:43 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,10.74 KB, application/x-bzip)
2020-02-23 20:43 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,15.45 KB, application/x-bzip)
2020-02-23 20:43 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,175.91 KB, application/x-bzip)
2020-02-23 20:43 UTC, Toralf Förster
Details
Patch to correct compilation errors with the -fno-common option (puNES-0.105-gcc10-nocommon.patch,492.73 KB, patch)
2020-03-18 11:20 UTC, Fabio Cavallo
Details | Diff
Patch to fix compilation warnings with the new QT (puNES-0.105-fixed-compilation-warnings-with-QT-514.patch,4.79 KB, patch)
2020-03-18 11:25 UTC, Fabio Cavallo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-02-23 20:42:54 UTC
x86_64-pc-linux-gnu-g++ -std=c++11 -DHAVE_CONFIG_H -I. -I..    -fPIC -O2 -pipe -march=native -fno-common -falign-functions=32:25:16  -DWITH_OPENGL -DGLEW_STATIC -DRELEASE -Wall -Wextra -ffast-math -fmessage-length=0 -finline-functions -I/var/tmp/portage/app-emulation/punes-0.105/work/puNES-0.105/./src -I/var/tmp/portage/app-emulation/punes-0.105/work/puNES-0.105/./src/gui -I/var/tmp/portage/app-emulation/punes-0.105/work/puNES-0.105/./src/core -I/var/tmp/portage/app-emulation/punes-0.105/work/puNES-0.105/./src/video/shaders -I/var/tmp/portage/app-emulation/punes-0.105/work/puNES-0.105/./src/gui/linux -I/var/tmp/portage/app-emulation/punes-0.105/work/puNES-0.105/./src/video/opengl -I/usr/include/qt5/QtCore -I/usr/include/qt5 -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtWidgets -DQT_SVG_LIB -I/usr/include/qt5/QtSvg -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB  -I/usr/include/libdrm  --param inline-unit-growth=200 --param large-function-growth=500 -c -o gui/resources.o gui/resources.cpp
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..     -O2 -pipe -march=native -fno-common -falign-functions=32:25:16  -DWITH_OPENGL -DGLEW_STATIC -DRELEASE -Wall -Wextra -ffast-math -fmessage-length=0 -finline-functions -I/var/tmp/portage/app-emulation/punes-0.105/work/puNES-0.105/./src -I/var/tmp/portage/app-emulation/punes-0.105/work/puNES-0.105/./src/gui -I/var/tmp/portage/app-emulation/punes-0.105/work/puNES-0.105/./src/core -I/var/tmp/portage/app-emulation/punes-0.105/work/puNES-0.105/./src/video/shaders -I/var/tmp/portage/app-emulation/punes-0.105/work/puNES-0.105/./src/gui/linux -I/var/tmp/portage/app-emulation/punes-0.105/work/puNES-0.105/./src/video/opengl -I/usr/include/qt5/QtCore -I/usr/include/qt5 -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtWidgets -DQT_SVG_LIB -I/usr/include/qt5/QtSvg -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB  -I/usr/include/libdrm   -c -o core/palette.o core/palette.c
x86_64-pc-linux-gnu-g++ -std=c++11 -fPIC -O2 -pipe -march=native -fno-common -falign-functions=32:25:16  -DWITH_OPENGL -DGLEW_STATIC -DRELEASE -Wall -Wextra -ffast-math -fmessage-length=0 -finline-functions -I/var/tmp/portage/app-emulation/punes-0.105/work/puNES-0.105/./src -I/var/tmp/portage/app-emulation/punes-0.105/work/puNES-0.105/./src/gui -I/var/tmp/portage/app-emulation/punes-0.105/work/puNES-0.105/./src/core -I/var/tmp/portage/app-emulation/punes-0.105/work/puNES-0.105/./src/video/shaders -I/var/tmp/portage/app-emulation/punes-0.105/work/puNES-0.105/./src/gui/linux -I/var/tmp/portage/app-emulation/punes-0.105/work/puNES-0.105/./src/video/opengl -I/usr/include/qt5/QtCore -I/usr/include/qt5 -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtWidgets -DQT_SVG_LIB -I/usr/include/qt5/QtSvg -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB  -I/usr/include/libdrm  --param inline-unit-growth=200 --param large-function-growth=500  -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0  -o punes core/main.o gui/resources.o core/palette.o  core/libcore.a video/libvideo.a c++/libcplus.a gui/libgui.a audio/libaudio.a /var/tmp/portage/app-emulation/punes-0.105/work/puNES-0.105/src/extra/lib7zip-1.6.5/Lib7Zip/lib7zip.a -lQt5Svg -lQt5Widgets -lQt5Gui -lQt5Core  -lGL  -lasound  -ldl -lpthread
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: core/palette.o:(.bss+0x0): multiple definition of `palette_RGB'; core/main.o:(.bss+0xb760): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: core/palette.o:(.bss+0xc20): multiple definition of `palette_base_file'; core/main.o:(.bss+0xc380): first defined here

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_developer-20200221-171645

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

  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.41.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
ghc:
The Glorious Glasgow Haskell Compilation System, version 8.0.2

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Sun, 23 Feb 2020 19:37:10 +0000

emerge -qpvO app-emulation/punes
[ebuild  N    ] app-emulation/punes-0.105  USE="-cg"
Comment 1 Toralf Förster gentoo-dev 2020-02-23 20:42:57 UTC
Created attachment 615404 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-02-23 20:43:00 UTC
Created attachment 615406 [details]
app-emulation:punes-0.105:20200223-202708.log.bz2
Comment 3 Toralf Förster gentoo-dev 2020-02-23 20:43:02 UTC
Created attachment 615408 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-02-23 20:43:05 UTC
Created attachment 615410 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-02-23 20:43:08 UTC
Created attachment 615412 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-02-23 20:43:11 UTC
Created attachment 615414 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-02-23 20:43:13 UTC
Created attachment 615416 [details]
temp.tbz2
Comment 8 Fabio Cavallo 2020-03-18 11:20:59 UTC
Created attachment 621624 [details, diff]
Patch to correct compilation errors with the -fno-common option
Comment 9 Fabio Cavallo 2020-03-18 11:25:01 UTC
Created attachment 621626 [details, diff]
Patch to fix compilation warnings with the new QT

I know that other things are discussed in the bug but I have also prepared this patch for the new QTs.
Comment 10 Azamat H. Hackimov 2020-07-28 14:00:15 UTC
Compilation issues solved in 0.106.
Comment 11 Larry the Git Cow gentoo-dev 2020-08-08 09:04:20 UTC
The bug has been closed via the following commit(s):

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

commit 56bf8b6a7e58810b7f3399e4ec33963d936c3cd6
Author:     Azamat H. Hackimov <azamat.hackimov@gmail.com>
AuthorDate: 2020-07-28 13:33:32 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2020-08-08 09:04:04 +0000

    app-emulation/punes: update to 0.106
    
    Update package to 0.106, which fixes gcc10 compilation issue (#710612).
    Additional fixes compilation error #734276.
    Closes: https://bugs.gentoo.org/710612
    Closes: https://bugs.gentoo.org/734276
    Package-Manager: Portage-2.3.103, Repoman-2.3.23
    Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com>
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 app-emulation/punes/Manifest           |  1 +
 app-emulation/punes/punes-0.106.ebuild | 58 ++++++++++++++++++++++++++++++++++
 2 files changed, 59 insertions(+)