Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 708054 - games-emulation/mupen64plus-core-2.5.9 : fails to build with -fno-common or gcc-10
Summary: games-emulation/mupen64plus-core-2.5.9 : fails to build with -fno-common or g...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: -fno-common
  Show dependency tree
 
Reported: 2020-02-03 18:49 UTC by Toralf Förster
Modified: 2020-02-26 14:34 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.67 KB, text/plain)
2020-02-03 18:49 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,261.67 KB, text/plain)
2020-02-03 18:49 UTC, Toralf Förster
Details
environment (environment,53.41 KB, text/plain)
2020-02-03 18:49 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,40.96 KB, application/x-bzip)
2020-02-03 18:49 UTC, Toralf Förster
Details
games-emulation:mupen64plus-core-2.5.9:20200203-092217.log (games-emulation:mupen64plus-core-2.5.9:20200203-092217.log,48.82 KB, text/plain)
2020-02-03 18:49 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,17.19 KB, application/x-bzip)
2020-02-03 18:49 UTC, Toralf Förster
Details

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-03 18:49:30 UTC
x86_64-pc-linux-gnu-strings "_obj/asm_defines/asm_defines.o" | tr -d '\r' | awk -v dest_dir="../../src/asm_defines" -f ../../tools/gen_asm_defines.awk
nasm -f elf64 -d PIC -I../../src/ -I../../src/asm_defines/ -o _obj/device/r4300/x86_64/dyna_start.o ../../src/device/r4300/x86_64/dyna_start.asm
x86_64-pc-linux-gnu-g++  -Wall -O2 -pipe -march=native -fno-common -fvisibility-inlines-hidden -I../../subprojects/oglft -O2 -pipe -march=native -fno-common -ffast-math -fno-strict-aliasing -fvisibility=hidden -I../../src -I../../src/asm_defines -DM64P_PARALLEL -fPIC  -I/usr/include/minizip  -I/usr/include/libpng16  -I/usr/include/SDL2 -D_REENTRANT  -DM64P_OSD -I/usr/include/freetype2  -I/usr/include/libdrm  -I/usr/include/libdrm  -DNDEBUG -I../../subprojects/md5 -I../../subprojects/xxhash -DDYNAREC -MD -MP -Wl,-O1 -Wl,--as-needed -Wl,-Bsymbolic -shared -Wl,-export-dynamic -Wl,-soname,libmupen64plus.so.2 -Wl,-version-script,../../src/api/api_export.ver  _obj/api/callbacks.o _obj/api/common.o _obj/api/config.o _obj/api/debugger.o _obj/api/frontend.o _obj/api/vidext.o _obj/backends/api/video_capture_backend.o _obj/backends/plugins_compat/audio_plugin_compat.o _obj/backends/plugins_compat/input_plugin_compat.o _obj/backends/clock_ctime_plus_delta.o _obj/backends/dummy_video_capture.o _obj/backends/file_storage.o _obj/device/cart/cart.o _obj/device/cart/af_rtc.o _obj/device/cart/cart_rom.o _obj/device/cart/eeprom.o _obj/device/cart/flashram.o _obj/device/cart/sram.o _obj/device/controllers/game_controller.o _obj/device/controllers/paks/biopak.o _obj/device/controllers/paks/mempak.o _obj/device/controllers/paks/rumblepak.o _obj/device/controllers/paks/transferpak.o _obj/device/dd/dd_controller.o _obj/device/device.o _obj/device/gb/gb_cart.o _obj/device/gb/mbc3_rtc.o _obj/device/gb/m64282fp.o _obj/device/memory/memory.o _obj/device/pif/bootrom_hle.o _obj/device/pif/cic.o _obj/device/pif/n64_cic_nus_6105.o _obj/device/pif/pif.o _obj/device/r4300/cached_interp.o _obj/device/r4300/cp0.o _obj/device/r4300/cp1.o _obj/device/r4300/idec.o _obj/device/r4300/interrupt.o _obj/device/r4300/pure_interp.o _obj/device/r4300/r4300_core.o _obj/device/r4300/tlb.o _obj/device/rcp/ai/ai_controller.o _obj/device/rcp/mi/mi_controller.o _obj/device/rcp/pi/pi_controller.o _obj/device/rcp/rdp/fb.o _obj/device/rcp/rdp/rdp_core.o _obj/device/rcp/ri/ri_controller.o _obj/device/rcp/rsp/rsp_core.o _obj/device/rcp/si/si_controller.o _obj/device/rcp/vi/vi_controller.o _obj/device/rdram/rdram.o _obj/main/main.o _obj/main/util.o _obj/main/cheat.o _obj/main/eventloop.o _obj/main/rom.o _obj/main/savestates.o _obj/main/screenshot.o _obj/main/sdl_key_converter.o _obj/main/workqueue.o _obj/plugin/plugin.o _obj/plugin/dummy_video.o _obj/plugin/dummy_audio.o _obj/plugin/dummy_input.o _obj/plugin/dummy_rsp.o _obj/osal/dynamiclib_unix.o _obj/osal/files_unix.o _obj/osd/osd.o _obj/device/r4300/recomp.o _obj/device/r4300/x86_64/assemble.o _obj/device/r4300/x86_64/dynarec.o _obj/device/r4300/x86_64/regcache.o _obj/subprojects/md5/md5.o _obj/subprojects/xxhash/xxhash.o _obj/asm_defines/asm_defines.o _obj/osd/oglft_c.o _obj/subprojects/oglft/OGLFT.o _obj/device/r4300/x86_64/dyna_start.o  -lm -ldl -lz  -lminizip  -lpng16 -lz  -lSDL2  -lfreetype  -lGL  -lGLU -lGL  -o libmupen64plus.so.2.0.0
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: _obj/device/r4300/idec.o:(.data.rel.local+0x0): multiple definition of `g_r4300_opcodes'; _obj/device/r4300/cached_interp.o:(.bss+0x0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: _obj/device/r4300/interrupt.o:(.bss+0x0): multiple definition of `g_r4300_opcodes'; _obj/device/r4300/cached_interp.o:(.bss+0x0): first defined here

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

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

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

  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:
*)	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 <==
Mon, 03 Feb 2020 08:28:28 +0000

emerge -qpvO games-emulation/mupen64plus-core
[ebuild  N    ] games-emulation/mupen64plus-core-2.5.9  USE="osd -debugger -gles2 -lirc (-new-dynarec) -opencv" CPU_FLAGS_X86="sse"
Comment 1 Toralf Förster gentoo-dev 2020-02-03 18:49:35 UTC
Created attachment 611400 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-02-03 18:49:38 UTC
Created attachment 611402 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-02-03 18:49:41 UTC
Created attachment 611404 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-02-03 18:49:43 UTC
Created attachment 611406 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-02-03 18:49:46 UTC
Created attachment 611408 [details]
games-emulation:mupen64plus-core-2.5.9:20200203-092217.log
Comment 6 Toralf Förster gentoo-dev 2020-02-03 18:49:49 UTC
Created attachment 611410 [details]
temp.tbz2
Comment 7 Samuel Bauer 2020-02-20 02:55:45 UTC
src_prepare needs to more line

sed -i '/g_r4300_opcodes/d' src/device/r4300/idec.h 
sed -i '30s/^/extern /' src/main/workqueue.h

I'll also submit patch upstream
Comment 8 Larry the Git Cow gentoo-dev 2020-02-26 14:34:18 UTC
The bug has been closed via the following commit(s):

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

commit 447ad3ceef7905cc45267886632da13f6a2bc8ed
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2020-02-26 14:33:58 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2020-02-26 14:33:58 +0000

    games-emulation/mupen64plus-core: Fix GCC 10 / -fno-common
    
    Closes: https://bugs.gentoo.org/708054
    Package-Manager: Portage-2.3.89, Repoman-2.3.20
    Signed-off-by: David Seifert <soap@gentoo.org>

 ...mupen64plus-core-2.5.9-fix-gcc10-fno-common.patch | 20 ++++++++++++++++++++
 .../mupen64plus-core/mupen64plus-core-2.5.9.ebuild   |  2 ++
 2 files changed, 22 insertions(+)