This is while trying to compile xmame 0.106 ...8<... Archiving xmame.obj/toaplan.a ... Archiving xmame.obj/tong.a ... Archiving xmame.obj/unico.a ... Archiving xmame.obj/univers.a ... Archiving xmame.obj/upl.a ... Archiving xmame.obj/valadon.a ... Archiving xmame.obj/veltmjr.a ... Archiving xmame.obj/venture.a ... Archiving xmame.obj/vsystem.a ... Archiving xmame.obj/yunsung.a ... Archiving xmame.obj/zaccaria.a ... Archiving xmame.obj/misc.a ... Archiving xmame.obj/shared.a ... [OSDEPEND] Archiving xmame.obj/unix.SDL/osdepend.a ... Linking romcmp... Linking chdman... Linking xml2info... Linking jedutil... Generating M68K source files... Generating M68K source files... xmame.obj/cpu/m68000/m68kmake xmame.obj/cpu/m68000 src/cpu/m68000/m68k_in.c xmame.obj/cpu/m68000/m68kmake xmame.obj/cpu/m68000 src/cpu/m68000/m68k_in.c Musashi v3.3 68000, 68008, 68010, 68EC020, 68020 emulator Copyright 1998-2000 Karl Stenerud (karl@mame.net) Generated 1966 opcode handlers from 517 primitives Musashi v3.3 68000, 68008, 68010, 68EC020, 68020 emulator Copyright 1998-2000 Karl Stenerud (karl@mame.net) Generated 1966 opcode handlers from 517 primitives Generating M68K source files... xmame.obj/cpu/m68000/m68kmake xmame.obj/cpu/m68000 src/cpu/m68000/m68k_in.c Generating M68K source files... xmame.obj/cpu/m68000/m68kmake xmame.obj/cpu/m68000 src/cpu/m68000/m68k_in.c Musashi v3.3 68000, 68008, 68010, 68EC020, 68020 emulator Copyright 1998-2000 Karl Stenerud (karl@mame.net) Generated 1966 opcode handlers from 517 primitives Musashi v3.3 68000, 68008, 68010, 68EC020, 68020 emulator Copyright 1998-2000 Karl Stenerud (karl@mame.net) Generated 1966 opcode handlers from 517 primitives Generating M68K source files... xmame.obj/cpu/m68000/m68kmake xmame.obj/cpu/m68000 src/cpu/m68000/m68k_in.c Compiling src/cpu/m68000/m68kcpu.c... Musashi v3.3 68000, 68008, 68010, 68EC020, 68020 emulator Copyright 1998-2000 Karl Stenerud (karl@mame.net) Generated 1966 opcode handlers from 517 primitives Compiling xmame.obj/cpu/m68000/m68kops.c... In file included from src/cpu/m68000/m68kcpu.c:38: xmame.obj/cpu/m68000/m68kops.h:1964:12: warning: no newline at end of file xmame.obj/cpu/m68000/m68kops.h:1:1: unterminated #ifndef In file included from /usr/include/stdio.h:34, from src/cpu/m68000/m68kcpu.h:1, from src/cpu/m68000/m68kcpu.c:39: /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/stddef.h:213: error: syntax error before "typedef" src/cpu/m68000/m68kcpu.c: In function `m68k_set_cpu_type': src/cpu/m68000/m68kcpu.c:677: error: `m68ki_cycles' undeclared (first use in this function) src/cpu/m68000/m68kcpu.c:677: error: (Each undeclared identifier is reported only once src/cpu/m68000/m68kcpu.c:677: error: for each function it appears in.) src/cpu/m68000/m68kcpu.c: In function `m68k_execute': src/cpu/m68000/m68kcpu.c:807: error: `m68ki_instruction_jump_table' undeclared (first use in this function) Compiling xmame.obj/cpu/m68000/m68kopac.c... make: *** [xmame.obj/cpu/m68000/m68kcpu.o] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: games-emulation/xmame-0.106 failed. Call stack: ebuild.sh, line 1545: Called dyn_compile ebuild.sh, line 940: Called src_compile xmame-0.106.ebuild, line 158: Called die !!! emake failed (SDL) ...8<... my system: Portage 2.1.1_pre3 (default-linux/x86/2005.1, gcc-3.4.6, glibc-2.4-r3, 2.6.17-gentoo-r1 i686) ================================================================= System uname: 2.6.17-gentoo-r1 i686 Intel(R) Pentium(R) III CPU - S 1400MHz Gentoo Base System version 1.12.1 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] app-admin/eselect-compiler: [Not Present] dev-lang/python: 2.2.3-r5, 2.3.5, 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r2 sys-devel/gcc-config: 1.3.13-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -O3 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-march=pentium3 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache digest distlocks fixpackages metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/" LANG="en_US.utf8" LC_ALL="en_US.utf8" LINGUAS="fr" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 7zip X alsa apache2 apm arts avi bash-completion berkdb bitmap-fonts blender-game bluetooth browserplugin bzip2 canvas cjk cli crypt cups curl dba dbus dlloader dri dvd dvdr dvdread eds effects emboss encode exif extras fam ffmpeg firefox foomaticdb fortran gd gdbm gif gimp gmp gpm gtk gtk2 hal iconv imagemagick imlib ipv6 irmc isdnlog java jpeg kde kqemu lcms ldap libg++ libwww mad mbox mhash mikmod mmx mmx2 mmxext mng mono motif mozsvg mp3 mpeg mpeg4 mplayer musicbrainz mysql ncurses nls nptl nptlonly nvidia ogg oggvorbis opengl pam pcre pdf pdflib perl php plugin png pppd python qt qt3 qt4 quicktime readline reflection samba sdl session slang smp sockets spell spl sse sse2 ssl svg svga svgz tcltk tcpd tiff truetype truetype-fonts type1-fonts unicode userlocales v4l v4l2 vorbis win32codecs winbind wma wmf wxwindows xine xinerama xml xml2 xorg xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_fr userland_GNU video_cards_vesa video_cards_fbdev video_cards_nvidia video_cards_v4l video_cards_vmware" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Same as bug #138684 I recommend not running with ~x86 in ACCEPT_KEYWORDS your system will be unstable like that. Instead, use all x86 packages and add any you really need to be bleeding edge to the files in /etc/portage/. Kick off a emerge -ev xmame before heading to bed. That might fix it up.
can you post xmame.obj/cpu/m68000/m68kops.h as an attachment please
Created attachment 93109 [details] /var/tmp/portage/xmame-0.106/work/xmame-0.106/xmame.obj/cpu/m68000/m68kops.h
That's the same file as I have so no help there. I wonder if it's perhaps due to a parallel make issue. Can you try it with MAKEOPTS=-j1 and see if that helps? Still builds fine for me here so it's hard to tell what's going on.
yeah, i think Mr Bones is correct here ... generally when i see funky errors like that it's because another file included the header before it was done being generated
I had the same problem as described in this bug; it was resolved for me after reducing MAKEOPTS to "-j1" as first suggested in Mr. Bones' comment #4. joe@becky16 ~ $ emerge --info Portage 2.1.1-r1 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.16.19 x86_64) ================================================================= System uname: 2.6.16.19 x86_64 Intel(R) Pentium(R) D CPU 3.20GHz Gentoo Base System version 1.12.5 Last Sync: Fri, 20 Oct 2006 06:50:01 +0000 app-admin/eselect-compiler: [Not Present] dev-java/java-config: [Not Present] dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r4 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=nocona" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -pipe -march=nocona" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/ http://mirror.datapipe.net/gentoo http://mirrors.tds.net/gentoo " MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://gentoo-rsync.halibutdepot.org/gentoo-portage" USE="amd64 X a52 aac alsa arts berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus dlloader dri dvd dvdr dvdread eds elibc_glibc emboss encode esd fam fame firefox flac fortran gcj gdbm gif gnome gpm gstreamer gtk gtk2 hal imagemagick input_devices_keyboard input_devices_mouse isdnlog jpeg kde kernel_linux libg++ mad mikmod mp3 mpeg ncurses nls nptl nptlonly ogg opengl oss pam pcre perl png ppds pppd python qt3 qt4 quicktime readline reflection sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts udev unicode userland_GNU video_cards_fbdev video_cards_i810 video_cards_vesa video_cards_vga vorbis xml xorg xscreensaver xv xvid zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
added -j1