Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 486570 - games-emulation/sdlmame-0.144 fails
Summary: games-emulation/sdlmame-0.144 fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on: 486686
Blocks:
  Show dependency tree
 
Reported: 2013-09-30 12:28 UTC by ta2002
Modified: 2013-11-22 22:20 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ta2002 2013-09-30 12:28:19 UTC
* Package:    games-emulation/sdlmame-0.144
 * Repository: gentoo
 * Maintainer: games@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux multilib opengl userland_GNU
 * FEATURES:   sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking mame0144s.zip to /var/tmp/portage/games-emulation/sdlmame-0.144/work
>>> Unpacking sdlmame-ui.bdf.gz to /var/tmp/portage/games-emulation/sdlmame-0.144/work
>>> Unpacking ./mame.zip to /var/tmp/portage/games-emulation/sdlmame-0.144/work
>>> Source unpacked in /var/tmp/portage/games-emulation/sdlmame-0.144/work
>>> Preparing source in /var/tmp/portage/games-emulation/sdlmame-0.144/work ...
 * Applying sdlmame-0.144-makefile.patch ...
 [ ok ]
 * Applying sdlmame-0.144-no-opengl.patch ...
 [ ok ]
 * Disabling embedded libraries: zlib and expat
 * Enabling 64-bit support
 * Disabling debug support
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/games-emulation/sdlmame-0.144/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/games-emulation/sdlmame-0.144/work ...
make -j5 NAME=sdlmame 'OPT_FLAGS=-DINI_PATH=\"\$$HOME/.sdlmame\;/etc/games/sdlmame\" -march=native -O2 -pipe' CC=x86_64-pc-linux-gnu-g++ all 
mkdir -p obj/sdl/sdlmame64
mkdir -p obj/sdl/sdlmame64/build
mkdir -p obj/sdl/sdlmame64/emu/audio
mkdir -p obj/sdl/sdlmame64/emu/cpu

[...]

Compiling src/tools/split.c...
x86_64-pc-linux-gnu-g++ -DCRLF=2 -DINLINE="static inline" -DLSB_FIRST -DPTR64 -DNDEBUG  -DDISTRO=generic "-DSDLMAME_ARCH=" -DSYNC_IMPLEMENTATION=tc -DSDLMAME_UNIX -DNO_DEBUGGER -DUSE_OPENGL=1 -DUSE_DISPATCH_GL=1 -DSDLMAME_NO_X11 -DNATIVE_DRC=drcbe_x64  -Wall -Wcast-align -Wundef -Wformat-security -Wwrite-strings -Wno-sign-compare -Wno-conversion -DINI_PATH=\"\$HOME/.sdlmame\;/etc/games/sdlmame\" -march=native -O2 -pipe -m64 `sdl-config --cflags  | sed -e 's:/SDL::' -e 's:\(-I[^ ]*\)::g'` -Isrc/mame -Iobj/sdl/sdlmame64/mame/layout -Isrc/emu -Iobj/sdl/sdlmame64/emu -Iobj/sdl/sdlmame64/emu/layout -Isrc/lib/util -Isrc/lib -Isrc/osd -Isrc/osd/sdl  -Isrc/debug -include src/osd/sdl/sdlprefix.h `sdl-config --cflags  | sed -e 's:/SDL::' -e 's:\(-D[^ ]*\)::g'` `pkg-config --cflags fontconfig`  -x c++ -std=gnu++98 -c src/tools/split.c -o obj/sdl/sdlmame64/tools/split.o
Archiving obj/sdl/sdlmame64/libocore.a...
Archiving obj/sdl/sdlmame64/libutil.a...
Archiving obj/sdl/sdlmame64/mame/acorn.a...
Archiving obj/sdl/sdlmame64/mame/alba.a...
Archiving obj/sdl/sdlmame64/mame/alliedl.a...
Archiving obj/sdl/sdlmame64/mame/alpha.a...
Archiving obj/sdl/sdlmame64/mame/amiga.a...
Archiving obj/sdl/sdlmame64/mame/ascii.a...
Archiving obj/sdl/sdlmame64/mame/atlus.a...
Archiving obj/sdl/sdlmame64/mame/bmc.a...
Archiving obj/sdl/sdlmame64/mame/capcom.a...
Archiving obj/sdl/sdlmame64/mame/comad.a...
Archiving obj/sdl/sdlmame64/mame/cvs.a...
Archiving obj/sdl/sdlmame64/mame/dataeast.a...
Archiving obj/sdl/sdlmame64/mame/dgrm.a...
Archiving obj/sdl/sdlmame64/mame/dooyong.a...
Archiving obj/sdl/sdlmame64/mame/dynax.a...
Archiving obj/sdl/sdlmame64/mame/edevices.a...
Archiving obj/sdl/sdlmame64/mame/eolith.a...
Archiving obj/sdl/sdlmame64/mame/excelent.a...
Archiving obj/sdl/sdlmame64/mame/f32.a...
Archiving obj/sdl/sdlmame64/mame/fuuki.a...
Archiving obj/sdl/sdlmame64/mame/gaelco.a...
Archiving obj/sdl/sdlmame64/mame/gameplan.a...
Archiving obj/sdl/sdlmame64/mame/gottlieb.a...
Archiving obj/sdl/sdlmame64/mame/ibmpc.a...
Archiving obj/sdl/sdlmame64/mame/irem.a...
Archiving obj/sdl/sdlmame64/mame/itech.a...
Archiving obj/sdl/sdlmame64/mame/jpm.a...
Archiving obj/sdl/sdlmame64/mame/kaneko.a...
Archiving obj/sdl/sdlmame64/mame/maygay.a...
Archiving obj/sdl/sdlmame64/mame/metro.a...
Archiving obj/sdl/sdlmame64/mame/midcoin.a...
Archiving obj/sdl/sdlmame64/mame/nasco.a...
Archiving obj/sdl/sdlmame64/mame/nintendo.a...
Archiving obj/sdl/sdlmame64/mame/nix.a...
Archiving obj/sdl/sdlmame64/mame/nmk.a...
Archiving obj/sdl/sdlmame64/mame/omori.a...
Archiving obj/sdl/sdlmame64/mame/olympia.a...
Archiving obj/sdl/sdlmame64/mame/orca.a...
Archiving obj/sdl/sdlmame64/mame/pacific.a...
Archiving obj/sdl/sdlmame64/mame/pacman.a...
Archiving obj/sdl/sdlmame64/mame/pce.a...
Archiving obj/sdl/sdlmame64/mame/phoenix.a...
Archiving obj/sdl/sdlmame64/mame/psikyo.a...
Archiving obj/sdl/sdlmame64/mame/ramtek.a...
Archiving obj/sdl/sdlmame64/mame/rare.a...
Archiving obj/sdl/sdlmame64/mame/sanritsu.a...
Archiving obj/sdl/sdlmame64/mame/seibu.a...
Archiving obj/sdl/sdlmame64/mame/seta.a...
Archiving obj/sdl/sdlmame64/mame/sigma.a...
Archiving obj/sdl/sdlmame64/mame/snk.a...
Archiving obj/sdl/sdlmame64/mame/sony.a...
Archiving obj/sdl/sdlmame64/mame/stern.a...
Archiving obj/sdl/sdlmame64/mame/sun.a...
Archiving obj/sdl/sdlmame64/mame/suna.a...
Archiving obj/sdl/sdlmame64/mame/tch.a...
Archiving obj/sdl/sdlmame64/mame/tecfri.a...
Archiving obj/sdl/sdlmame64/mame/technos.a...
Archiving obj/sdl/sdlmame64/mame/thepit.a...
Archiving obj/sdl/sdlmame64/mame/toaplan.a...
Archiving obj/sdl/sdlmame64/mame/tong.a...
Archiving obj/sdl/sdlmame64/mame/unico.a...
Archiving obj/sdl/sdlmame64/mame/univers.a...
Archiving obj/sdl/sdlmame64/mame/upl.a...
Archiving obj/sdl/sdlmame64/mame/valadon.a...
Archiving obj/sdl/sdlmame64/mame/venture.a...
Archiving obj/sdl/sdlmame64/mame/vsystem.a...
Archiving obj/sdl/sdlmame64/mame/yunsung.a...
Archiving obj/sdl/sdlmame64/mame/shared.a...
Archiving obj/sdl/sdlmame64/libosd.a...
Archiving obj/sdl/sdlmame64/libsound.a...
Archiving obj/sdl/sdlmame64/libsoftfloat.a...
Archiving obj/sdl/sdlmame64/libformats.a...
Archiving obj/sdl/sdlmame64/libco.a...
Linking testkeys...
Linking romcmp...
Linking jedutil...
Linking ldresample...
Linking ldverify...
obj/sdl/sdlmame64/libocore.a(sdlsocket.o): In function `operator new(unsigned long)':
sdlsocket.c:(.text._Znwm[_Znwm]+0x9): undefined reference to `malloc_file_line(unsigned long, char const*, int)'
obj/sdl/sdlmame64/libocore.a(sdlsocket.o): In function `operator delete(void*)':
sdlsocket.c:(.text._ZdlPv[_ZdlPv]+0xe): undefined reference to `free_file_line(void*, char const*, int)'
collect2: error: ld returned 1 exit status
make: *** [ldverify] Error 1
make: *** Waiting for unfinished jobs....
obj/sdl/sdlmame64/libocore.a(sdlsocket.o): In function `operator new(unsigned long)':
sdlsocket.c:(.text._Znwm[_Znwm]+0x9): undefined reference to `malloc_file_line(unsigned long, char const*, int)'
obj/sdl/sdlmame64/libocore.a(sdlsocket.o): In function `operator delete(void*)':
sdlsocket.c:(.text._ZdlPv[_ZdlPv]+0xe): undefined reference to `free_file_line(void*, char const*, int)'
collect2: error: ld returned 1 exit status
make: *** [romcmp] Error 1
obj/sdl/sdlmame64/libocore.a(sdlsocket.o): In function `operator new(unsigned long)':
sdlsocket.c:(.text._Znwm[_Znwm]+0x9): undefined reference to `malloc_file_line(unsigned long, char const*, int)'
obj/sdl/sdlmame64/libocore.a(sdlsocket.o): In function `operator delete(void*)':
sdlsocket.c:(.text._ZdlPv[_ZdlPv]+0xe): undefined reference to `free_file_line(void*, char const*, int)'
collect2: error: ld returned 1 exit status
make: *** [ldresample] Error 1
emake failed
 * ERROR: games-emulation/sdlmame-0.144::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  93:  Called src_compile
 *   environment, line 2820:  Called die
 * The specific snippet of code:
 *       emake NAME="${PN}" OPT_FLAGS='-DINI_PATH=\"\$$HOME/.'${PN}'\;'"${GAMES_SYSCONFDIR}/${PN}"'\"'" ${CXXFLAGS}" CC="${CXX}" all || die
 * 
 * If you need support, post the output of `emerge --info '=games-emulation/sdlmame-0.144::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=games-emulation/sdlmame-0.144::gentoo'`.
 * The complete build log is located at '/var/log/portage/games-emulation:sdlmame-0.144:20130930-082617.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/games-emulation/sdlmame-0.144/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-emulation/sdlmame-0.144/temp/environment'.
 * Working directory: '/var/tmp/portage/games-emulation/sdlmame-0.144/work'
 * S: '/var/tmp/portage/games-emulation/sdlmame-0.144/work'


# emerge --info
Portage 2.2.1 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.15-r3, 3.7.10-gentoo-r1 x86_64)
=================================================================
System uname: Linux-3.7.10-gentoo-r1-x86_64-Intel-R-_Core-TM-_i5_CPU_750_@_2.67GHz-with-gentoo-2.2
KiB Mem:    12304028 total,    267664 free
KiB Swap:    4112604 total,   4112604 free
Timestamp of tree: Sun, 29 Sep 2013 21:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5-r2, 3.2.5-r2
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
USE="64bit R X a52 aac aalib accessibility acpi additions aio alsa amd64 aspell audio audiofile blksha1 bluray bookmarks bwscheduler bzip2 cairo caps cdda cdio cdr chm chroot client consolekit cpumining cracklib crypt css cups cxx dbus device-mapper dga directfb djvu downloadorder dri dvd dvdnav dvdr ebook egl eigen encode espeak exceptions exif expat fam fbcon ffmpeg flac fluidsynth fontconfig fortran gcj gcrypt gecko ggi gif git glib glibc-omitfp gmp gpg gphoto2 gpm gsm gstreamer gtk handbook hardcoded-tables hddtemp holidays hpn iconv idea imap infowidget inotify iostats ipc ipfilter ipv6 jabber jbig jit joystick jpeg jsbsim kdcraw kde kmod lame lcms less libass libkms libwww live lm_sensors logviewer lzma mad matroska mbox mdns-bundled memlimit midi minizip mmx mmxext mp3 mpeg mta mudflap multilib nas ncurses net netapi network nls no-old-linux nodrm nptl ntfsprogs ntp ocamlopt offlinehelp ofx ogg okular opencl opengl openmedia openmp oscar osdmenu pcre pdf pm-utils png policykit portmon ps qt3support quotes raptor readline real recursion-limit redland rss rtc rtmp savedconfig scanfolder scanner scrypt sdl search secure-delete sensord server shared-glapi shm silc smbclient smtp sndfile sound speex spell sse sse2 sse2_4way sse2check sse4 ssl ssse3 stats subversion svg sysfs tcpd theora threads threadsafe tiff tremor truetype udev udisks unicode upnp upower urandom usb userlocales utils v4l2 vdpau video vorbis wav webdav-neon webinterface win64 wps x264 xcb xinerama xml xpdf-headers xslt xv xvid yahoo zlib zrtp" ABI_X86="64" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_2" PYTHON_TARGETS="python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Julian Ospald 2013-09-30 13:09:39 UTC
did you test ~arch?
Comment 2 ta2002 2013-09-30 15:17:15 UTC
(In reply to Julian Ospald (hasufell) from comment #1)
> did you test ~arch?

No I haven't.

To be a bit flippant, I virtually always use the stable versions, because those are the ones that are supposed to work. :)

More seriously, it is just too much of a pain to use unstable packages. I just spent an hour (after reading your reply) trying to find some combination of flags that would even compile the unstable version (and its dependencies).

I finally came up with this, but I am not understanding what portage is trying to do here at all (re-emerge youtube-dl? WTF? Nothing has changed and that is one of the most independent packages in portage), which makes me extremely reluctant to mess with my stable system.

# USE='-X gallium -opencl' PYTHON_TARGETS='python2_7 python3_2' ACCEPT_KEYWORDS=~amd64 emerge -pt sdlmame

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild  r  U  ] dev-python/numpy-1.7.1 [1.6.2-r2] USE="-doc -lapack {-test}" PYTHON_TARGETS="python2_7 python3_2* -python2_6 -python3_3%" 2,772 kB
[ebuild  rR    ] dev-python/pygobject-2.28.6-r53:2  USE="-examples -libffi {-test}" PYTHON_TARGETS="python2_7 -python2_6" 0 kB
[ebuild  rR    ] net-misc/youtube-dl-2013.09.29  USE="-offensive {-test}" PYTHON_SINGLE_TARGET="python2_7 -python2_6 -python3_3" PYTHON_TARGETS="python2_7 -python2_6 -python3_3" 0 kB
[ebuild  rR    ] virtual/python-argparse-1  PYTHON_TARGETS="python2_7 python3_2 -pypy2_0 -python2_6 -python3_3" 0 kB
[ebuild  rR    ] dev-python/pyxdg-0.25  USE="{-test}" PYTHON_TARGETS="python2_7* python3_2 -pypy2_0 -python2_6 -python3_3" 0 kB
[ebuild     U  ] games-emulation/sdlmame-0.148_p1-r1 [0.144] USE="alsa%* opengl -X% -debug" 36,338 kB
[ebuild  rR    ] dev-python/dbus-python-1.2.0  USE="-doc -examples {-test}" PYTHON_TARGETS="python2_7* python3_2 -python2_6 -python3_3" 0 kB
[ebuild  r  U  ] media-libs/mesa-9.2.0 [9.1.6] USE="egl gallium* nptl vdpau -bindist -classic -debug -gbm -gles1 -gles2 -llvm -opencl% -openvg -osmesa -pax_kernel -pic -r600-llvm-compiler (-selinux) -wayland -xa -xorg -xvmc (-shared-glapi%*)" PYTHON_SINGLE_TARGET="python2_7 -python2_6" PYTHON_TARGETS="python2_7 -python2_6" VIDEO_CARDS="(-freedreno) -i915 -i965 -ilo% -intel -nouveau -r100 -r200 -r300 -r600 -radeon -radeonsi -vmware" 6,488 kB
[ebuild  r  U  ] dev-python/setuptools-1.1.6 [0.8-r1] PYTHON_TARGETS="python2_7 python3_2 -pypy2_0 -python2_6 -python3_3" 666 kB
[ebuild  rR    ] x11-libs/libxcb-1.9.1  USE="-doc (-selinux) -static-libs -xkb" ABI_X86="(64) -32 (-x32)" PYTHON_SINGLE_TARGET="python3_2 -python2_6 -python2_7 -python3_3" PYTHON_TARGETS="python2_7* python3_2 -python2_6 -python3_3" 0 kB
[ebuild   R    ]  x11-proto/xcb-proto-1.8-r3  ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7* python3_2 -python2_6 -python3_3" 0 kB
[ebuild  rR    ]   dev-libs/libxml2-2.9.1-r1:2  USE="ipv6 lzma python readline -debug -examples -icu -static-libs {-test}" PYTHON_TARGETS="python2_7 python3_2 -python2_6 -python3_3" 0 kB

Total: 12 packages (4 upgrades, 8 reinstalls), Size of downloads: 46,263 kB
Comment 3 Julian Ospald 2013-09-30 16:52:00 UTC
I am not sure what you are doing there. sdlmame only needs python at build time. Unmask 0.148_p1-r1 in package.accept_keywords instead of doing command-line hacks.
Comment 4 ta2002 2013-09-30 22:53:29 UTC
sdlmame-0.148_p1-r1 compiled and seems to run correctly (other than the fact that the state files no longer work, so all of my high scores are gone :( ).

I did still have to compile with USE=-X (I wouldn't mind having X support, but gconf is getting installed only over my dead body - is gconf really required for USE=X?).

Anyway, I guess it works, and sdlmame-0.144 should be removed since it appears that in no longer compiles (this occurred in conjunction with the upgrade to gcc-4.7.3-ri).
Comment 5 Julian Ospald 2013-10-01 18:00:57 UTC
I think X is only interesting for the debugger.

makefile description is a bit vague, so I'm not sure what else it does

# uncomment next line to build without X11 support (TARGETOS=unix only)
# this also implies, that no debugger will be builtin.

# NO_X11 = 1
Comment 6 Julian Ospald 2013-11-22 22:20:24 UTC
0.148_p1-r1 is stable