Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 810425 - games-emulation/mupen64plus-core-2.5.9-r2[debugger] - ../.../dbg_memory.c: error: print_insn_i386 undeclared (first use in this function)
Summary: games-emulation/mupen64plus-core-2.5.9-r2[debugger] - ../.../dbg_memory.c: er...
Status: CONFIRMED
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:
 
Reported: 2021-08-25 19:42 UTC by Toralf Förster
Modified: 2021-10-09 05:56 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.87 KB, text/plain)
2021-08-25 19:42 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,318.21 KB, text/plain)
2021-08-25 19:42 UTC, Toralf Förster
Details
environment (environment,56.07 KB, text/plain)
2021-08-25 19:42 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,22.93 KB, application/x-bzip)
2021-08-25 19:42 UTC, Toralf Förster
Details
games-emulation:mupen64plus-core-2.5.9-r2:20210825-193633.log (games-emulation:mupen64plus-core-2.5.9-r2:20210825-193633.log,40.24 KB, text/plain)
2021-08-25 19:43 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,16.82 KB, application/x-bzip)
2021-08-25 19:43 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 2021-08-25 19:42:54 UTC
x86_64-pc-linux-gnu-gcc  -Wall -pipe -march=native -fno-diagnostics-color -O2 -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/opencv4  -I/usr/include/SDL2 -D_REENTRANT  -DNDEBUG -DDBG -I../../subprojects/md5 -I../../subprojects/xxhash -DDYNAREC -DM64P_OPENCV -MD -MP   -c -o _obj/debugger/dbg_memory.o ../../src/debugger/dbg_memory.c
../../src/debugger/dbg_memory.c: In function ‘init_host_disassembler’:
../../src/debugger/dbg_memory.c:113:19: error: ‘print_insn_i386’ undeclared (first use in this function); did you mean ‘print_insn_m32c’?
  113 |     disassemble = print_insn_i386;
      |                   ^~~~~~~~~~~~~~~
      |                   print_insn_m32c
../../src/debugger/dbg_memory.c:113:19: note: each undeclared identifier is reported only once for each function it appears in

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop-j4-20210822-130025

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.0 *
clang version 12.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/12/bin
/usr/lib/llvm/12
12.0.1
Python 3.9.6
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.54.0 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK JRE 8.292_p10 [openjdk-jre-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-jre-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4
  [1]   php7.3
  [2]   php7.4
  [3]   php8.0 *

  HEAD of ::gentoo
commit 50361d488e9432f77d7daf0a705e939133209c36
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Aug 25 18:21:32 2021 +0000

    2021-08-25 18:21:29 UTC

emerge -qpvO games-emulation/mupen64plus-core
[ebuild  N    ] games-emulation/mupen64plus-core-2.5.9-r2  USE="debugger opencv -gles2-only -lirc (-new-dynarec) -osd" CPU_FLAGS_X86="sse"
Comment 1 Toralf Förster gentoo-dev 2021-08-25 19:42:55 UTC
Created attachment 736015 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-08-25 19:42:57 UTC
Created attachment 736017 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-08-25 19:42:58 UTC
Created attachment 736019 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-08-25 19:42:59 UTC
Created attachment 736021 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-08-25 19:43:01 UTC
Created attachment 736023 [details]
games-emulation:mupen64plus-core-2.5.9-r2:20210825-193633.log
Comment 6 Toralf Förster gentoo-dev 2021-08-25 19:43:02 UTC
Created attachment 736025 [details]
temp.tar.bz2
Comment 7 Ionen Wolkens gentoo-dev 2021-10-08 14:08:09 UTC
Had a quick look because of glibc-2.34, but this isn't it. It's misdetecting binutils-libs version and not setting -DUSE_LIBOPCODES_GE_2_29 when the off-by-default USE=debugger is set.

The lazy quickfix would be to `append-cppflags -DUSE_LIBOPCODES_GE_2_29` and depend on binutils-libs when USE=debugger (we don't have <2.29 anymore, so detection doesn't really matter).