Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133709 - xmame-0.105 won't build w/ gcc 4.1
Summary: xmame-0.105 won't build w/ gcc 4.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 117482
  Show dependency tree
 
Reported: 2006-05-18 11:34 UTC by Colin Macdonald
Modified: 2006-06-04 14:58 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 Colin Macdonald 2006-05-18 11:34:48 UTC
When I emerge xmame-1.05, it fails with the following errors.  I'm using gcc 4.1.0 so I'm guessing thats the cause.

Generated 1964 opcode handlers from 515 primitives
In file included from src/cpu/m68000/m68kcpu.c:35:
xmame.obj/cpu/m68000/m68kops.h:1964:12: warning: no newline at end of file
xmame.obj/cpu/m68000/m68kops.h:1:1: error: unterminated #ifndef
Compiling xmame.obj/cpu/m68000/m68kops.c...
In file included from /usr/include/stdio.h:34,
                 from src/cpu/m68000/m68kcpu.h:1,
                 from src/cpu/m68000/m68kcpu.c:36:
/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include/stddef.h:214: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'typedef'
In file included from /usr/include/_G_config.h:44,
                 from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:72,
                 from src/cpu/m68000/m68kcpu.h:1,
                 from src/cpu/m68000/m68kcpu.c:36:
/usr/include/gconv.h:72: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/gconv.h:88: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/gconv.h:97: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/gconv.h:174: error: expected specifier-qualifier-list before 'size_t'
In file included from /usr/include/stdio.h:72,
                 from src/cpu/m68000/m68kcpu.h:1,
                 from src/cpu/m68000/m68kcpu.c:36:
/usr/include/libio.h:328: error: expected specifier-qualifier-list before 'size_t'
/usr/include/libio.h:360: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/libio.h:369: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/libio.h:485: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_IO_sgetn'
In file included from src/cpu/m68000/m68kcpu.h:1,
                 from src/cpu/m68000/m68kcpu.c:36:
/usr/include/stdio.h:312: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdio.h:319: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdio.h:361: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdio.h:363: error: format string argument not a string type
/usr/include/stdio.h:365: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdio.h:614: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fread'
/usr/include/stdio.h:620: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fwrite'
/usr/include/stdio.h:642: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fread_unlocked'
/usr/include/stdio.h:644: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fwrite_unlocked'
In file included from src/mamecore.h:18,
                 from src/driver.h:65,
                 from src/cpu/m68000/m68kmame.h:8,
                 from src/cpu/m68000/m68k.h:363,
                 from src/cpu/m68000/m68kcpu.h:29,
                 from src/cpu/m68000/m68kcpu.c:36:
/usr/include/string.h:39: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:43: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:52: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:59: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:62: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:66: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:88: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:96: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:102: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:109: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strxfrm'
/usr/include/string.h:184: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strcspn'
/usr/include/string.h:188: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strspn'
/usr/include/string.h:242: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strlen'
/usr/include/string.h:270: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:288: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:292: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:296: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:299: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/string.h:329: error: expected declaration specifiers or '...' before 'size_t'
In file included from /usr/include/string.h:417,
                 from src/mamecore.h:18,
                 from src/driver.h:65,
                 from src/cpu/m68000/m68kmame.h:8,
                 from src/cpu/m68000/m68k.h:363,
                 from src/cpu/m68000/m68kcpu.h:29,
                 from src/cpu/m68000/m68kcpu.c:36:
/usr/include/bits/string2.h:969: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__strcspn_c1'
/usr/include/bits/string2.h:971: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__strcspn_c1'
/usr/include/bits/string2.h:979: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__strcspn_c2'
/usr/include/bits/string2.h:982: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__strcspn_c2'
/usr/include/bits/string2.h:991: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__strcspn_c3'
/usr/include/bits/string2.h:994: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__strcspn_c3'
/usr/include/bits/string2.h:1045: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__strspn_c1'
/usr/include/bits/string2.h:1047: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__strspn_c1'
/usr/include/bits/string2.h:1056: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__strspn_c2'
/usr/include/bits/string2.h:1059: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__strspn_c2'
/usr/include/bits/string2.h:1068: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__strspn_c3'
/usr/include/bits/string2.h:1071: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__strspn_c3'
/usr/include/bits/string2.h: In function '__strpbrk_c2':
/usr/include/bits/string2.h:1129: error: 'size_t' undeclared (first use in this function)
/usr/include/bits/string2.h:1129: error: (Each undeclared identifier is reported only once
/usr/include/bits/string2.h:1129: error: for each function it appears in.)
/usr/include/bits/string2.h:1129: error: expected ';' before '__s'
/usr/include/bits/string2.h: In function '__strpbrk_c3':
/usr/include/bits/string2.h:1142: error: 'size_t' undeclared (first use in this function)
/usr/include/bits/string2.h:1142: error: expected ';' before '__s'
In file included from /usr/include/bits/string2.h:1299,
                 from /usr/include/string.h:417,
                 from src/mamecore.h:18,
                 from src/driver.h:65,
                 from src/cpu/m68000/m68kmame.h:8,
                 from src/cpu/m68000/m68k.h:363,
                 from src/cpu/m68000/m68kcpu.h:29,
                 from src/cpu/m68000/m68kcpu.c:36:
/usr/include/stdlib.h: At top level:
/usr/include/stdlib.h:589: error: expected ')' before '__size'
/usr/include/stdlib.h:591: error: expected ')' before '__nmemb'
In file included from /usr/include/string.h:417,
                 from src/mamecore.h:18,
                 from src/driver.h:65,
                 from src/cpu/m68000/m68kmame.h:8,
                 from src/cpu/m68000/m68k.h:363,
                 from src/cpu/m68000/m68kcpu.h:29,
                 from src/cpu/m68000/m68kcpu.c:36:
/usr/include/bits/string2.h:1323: error: expected declaration specifiers or '...' before 'size_t'
In file included from src/mamecore.h:19,
                 from src/driver.h:65,
                 from src/cpu/m68000/m68kmame.h:8,
                 from src/cpu/m68000/m68k.h:363,
                 from src/cpu/m68000/m68kcpu.h:29,
                 from src/cpu/m68000/m68kcpu.c:36:
/usr/include/stdlib.h:140: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__ctype_get_mb_cur_max'
In file included from src/mamecore.h:19,
                 from src/driver.h:65,
                 from src/cpu/m68000/m68kmame.h:8,
                 from src/cpu/m68000/m68k.h:363,
                 from src/cpu/m68000/m68kcpu.h:29,
                 from src/cpu/m68000/m68kcpu.c:36:
/usr/include/stdlib.h:455: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:485: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:487: error: nonnull argument with out-of-range operand number (argument 1, operand 4)
/usr/include/stdlib.h:600: error: expected declaration specifiers or '...' before 'size_t'
In file included from /usr/include/stdlib.h:612,
                 from src/mamecore.h:19,
                 from src/driver.h:65,
                 from src/cpu/m68000/m68kmame.h:8,
                 from src/cpu/m68000/m68k.h:363,
                 from src/cpu/m68000/m68kcpu.h:29,
                 from src/cpu/m68000/m68kcpu.c:36:
/usr/include/alloca.h:33: error: expected ')' before '__size'
In file included from src/mamecore.h:19,
                 from src/driver.h:65,
                 from src/cpu/m68000/m68kmame.h:8,
                 from src/cpu/m68000/m68k.h:363,
                 from src/cpu/m68000/m68kcpu.h:29,
                 from src/cpu/m68000/m68kcpu.c:36:
/usr/include/stdlib.h:617: error: expected ')' before '__size'
/usr/include/stdlib.h:622: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:622: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:776: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:776: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:777: error: nonnull argument with out-of-range operand number (argument 1, operand 5)
/usr/include/stdlib.h:781: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:781: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:782: error: nonnull argument with out-of-range operand number (argument 1, operand 4)
/usr/include/stdlib.h:854: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:857: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:861: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:865: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:874: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:878: error: expected declaration specifiers or '...' before 'size_t'
/usr/include/stdlib.h:885: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'mbstowcs'
/usr/include/stdlib.h:888: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'wcstombs'
In file included from src/unix/osd_cpu.h:27,
                 from src/mamecore.h:20,
                 from src/driver.h:65,
                 from src/cpu/m68000/m68kmame.h:8,
                 from src/cpu/m68000/m68k.h:363,
                 from src/cpu/m68000/m68kcpu.h:29,
                 from src/cpu/m68000/m68kcpu.c:36:
/usr/include/time.h:200: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strftime'
In file included from src/driver.h:65,
                 from src/cpu/m68000/m68kmame.h:8,
                 from src/cpu/m68000/m68k.h:363,
                 from src/cpu/m68000/m68kcpu.h:29,
                 from src/cpu/m68000/m68kcpu.c:36:
src/mamecore.h:360: error: expected declaration specifiers or '...' before 'size_t'
In file included from src/driver.h:66,
                 from src/cpu/m68000/m68kmame.h:8,
                 from src/cpu/m68000/m68k.h:363,
                 from src/cpu/m68000/m68kcpu.h:29,
                 from src/cpu/m68000/m68kcpu.c:36:
src/memory.h:590: error: expected specifier-qualifier-list before 'size_t'
In file included from src/driver.h:67,
                 from src/cpu/m68000/m68kmame.h:8,
                 from src/cpu/m68000/m68k.h:363,
                 from src/cpu/m68000/m68kcpu.h:29,
                 from src/cpu/m68000/m68kcpu.c:36:
src/mame.h:313: error: expected declaration specifiers or '...' before 'size_t'
src/mame.h:322: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'memory_region_length'
src/mame.h:349: error: expected ')' before 'size'
src/mame.h:353: error: expected ')' before 'size'
In file included from src/driver.h:72,
                 from src/cpu/m68000/m68kmame.h:8,
                 from src/cpu/m68000/m68k.h:363,
                 from src/cpu/m68000/m68kcpu.h:29,
                 from src/cpu/m68000/m68kcpu.c:36:
src/cpuintrf.h:423: error: expected specifier-qualifier-list before 'size_t'
In file included from src/driver.h:81,
                 from src/cpu/m68000/m68kmame.h:8,
                 from src/cpu/m68000/m68k.h:363,
                 from src/cpu/m68000/m68kcpu.h:29,
                 from src/cpu/m68000/m68kcpu.c:36:
src/machine/generic.h:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'generic_nvram_size'
In file included from src/driver.h:83,
                 from src/cpu/m68000/m68kmame.h:8,
                 from src/cpu/m68000/m68k.h:363,
                 from src/cpu/m68000/m68kcpu.h:29,
                 from src/cpu/m68000/m68kcpu.c:36:
src/vidhrdw/generic.h:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'videoram_size'
src/vidhrdw/generic.h:54: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'spriteram_size'
src/vidhrdw/generic.h:55: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'spriteram_2_size'
src/vidhrdw/generic.h:56: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'spriteram_3_size'
src/cpu/m68000/m68kcpu.c: In function 'm68k_set_cpu_type':
src/cpu/m68000/m68kcpu.c:673: error: 'm68ki_cycles' undeclared (first use in this function)
src/cpu/m68000/m68kcpu.c: In function 'm68k_execute':
src/cpu/m68000/m68kcpu.c:803: error: 'm68ki_instruction_jump_table' undeclared (first use in this function)
distcc[2257] ERROR: compile src/cpu/m68000/m68kcpu.c on localhost failed
make: *** [xmame.obj/cpu/m68000/m68kcpu.o] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: games-emulation/xmame-0.105 failed.
Call stack:
  ebuild.sh, line 1527:   Called dyn_compile
  ebuild.sh, line 931:   Called src_compile
  xmame-0.105.ebuild, line 157:   Called die

!!! emake failed (SDL)
!!! If you need support, post the topmost build error, and the call stack if relevant.

emerge --info
Portage 2.1_rc1-r2 (default-linux/x86/2005.0, gcc-4.1.0, glibc-2.4-r2, 2.6.16.9 i686)
=================================================================
System uname: 2.6.16.9 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.12.0_pre19
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-lang/python:     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.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-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=i686 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/globus-2.4/etc /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=i686 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig collision-protection distcc distlocks metadata-transfer sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.mirrors.easynews.com/linux/gentoo/ http://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.mirrors.tds.net/gentoo ftp://194.117.143.71/mirrors/gentoo"
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 /usr/local/ag-portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X Xaw3d a52 aac aalib acpi alsa apache2 apm arts audiofile avahi avi berkdb bitmap-fonts bzip2 cairo cdr cjk cli crypt cups curl dbus dga dri dts dv dvb dvd dvdr eds emacs emboss encode esd exif expat f77 faad fbcon ffmpeg fftw flac fortran gcj gd gdbm gif gimpprint ginac gmp gnome gnustep gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal idn imagemagick imlib isdnlog jack java jpeg lcms leim libcaca libg++ libwww lirc live mad matroska mikmod mmx mng mono motif mozilla mp3 mpeg mysql nas ncurses nls nptl offensive ogg oggvorbis openal opengl oss pam pcre pdf pdflib perl plotutils png ppds pppd python qhull qt quicktime radeon readline reflection rtc samba scanner sdk sdl session slang speex spell spl sqlite sse ssl svg tcltk tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vcd vorbis wmf wxwindows xinerama xml xml2 xmms xorg xosd xprint xv xvid zlib elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_i810 video_cards_radeon video_cards_mach64 video_cards_vesa video_cards_vga video_cards_fbdev video_cards_v4l"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2006-05-18 14:38:06 UTC
Does it build for you with gcc 3?
Comment 2 Colin Macdonald 2006-05-18 17:14:53 UTC
Ok it does build with gcc 3.4.5.  So I have confirmed it is a problem with gcc 4.1.
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2006-06-03 18:08:16 UTC
Same problem with xmame-0.106?
Comment 4 Colin Macdonald 2006-06-04 14:58:06 UTC
It works with xmame-0.106.  Closing, marking fixed.  Thanks.