Home | Docs | Forums | Lists | Bugs | Planet | Store | GMN | Get Gentoo!
View Bug Activity | Format For Printing | XML | Clone This Bug
UAE 0.8.23 relased -> ftp://ftp.freiburg.linux.de/pub/uae/sources/develop/ and http://www.freiburg.linux.de/~uae/ Reproducible: Always Steps to Reproduce:
It does not compile. cpuemu.c complains about a missing header file (cpu_prefetch.h).
I had this problem with gcc 3.4.2 when I've switched to 3.3.4-r2 compiled sucesfull
I managed to emerge this ebuild using gcc-3.4.3: >>> app-emulation/uae-0.8.22-r1 merged. emerge info: Portage 2.0.51-r8 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r4 x86_64) ================================================================= System uname: 2.6.9-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 2800+ Gentoo Base System version 1.6.8 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Nov 15 2004, 08:43:47)] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.6.3, 1.5, 1.8.5-r2, 1.9.3, 1.7.9, 1.4_p6 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r2 virtual/os-headers: 2.6.8.1-r1 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-march=athlon64 -O2 -pipe -s -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon64 -O2 -pipe -s -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig autodigest candy ccache cvs distlocks fixpackages nostrip sandbox sign" GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ http://ftp.rhnet.is/pub/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ http://gentoo.zie.pg.gda.pl" LDFLAGS="" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="amd64 X acl acpi alsa apache2 avi berkdb bitmap-fonts bzlib cdr crypt cscope cups dga esd f77 fam flac fortran ftp gdbm gif gmp gnome gpm gtk gtk2 imagemagick imap imlib ipv6 java jp2 jpeg libwww lzw lzw-tiff mad maildir mime mng motif mpeg multilib mysql ncurses nls nptl oggvorbis openal opengl oss pam perl png posix python readline ruby samba sasl sdl slang spell ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts usb userlocales wxwindows xml xml2 xmms xpm xrandr xsl xv zlib video_cards_radeon linguas_pl"
it refuses to build on my system... make[1]: Entering directory `/var/tmp/portage/uae-0.8.22-r1/work/uae-0.8.22/src' gcc -I. -I../src/include/ -c -O2 -fomit-frame-pointer -Wall -Wno-unused -Wno-format -W -Wmissing-prototypes -Wstrict-prototypes -I/usr/include/SDL -D_REENTRANT -DUSE_SDL -DGCCCONSTFUNC="__attribute__((const))" -mpreferred-stack-boundary=2 -fno-exceptions -DUNALIGNED_PROFITABLE -fno-strength-reduce -DREGPARAM="__attribute__((regparm(3)))" -DX86_ASSEMBLY -DOPTIMIZED_FLAGS -DUSE_ZFILE -D__inline__=inline -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -DSHM_SUPPORT_LINKS=1 main.c -o main.o main.c: In function `parse_cmdline': main.c:363: warning: passing arg 2 of `parse_cmdline_option' discards qualifiers from pointer target type gcc -I. -I../src/include/ -c -O2 -fomit-frame-pointer -Wall -Wno-unused -Wno-format -W -Wmissing-prototypes -Wstrict-prototypes -I/usr/include/SDL -D_REENTRANT -DUSE_SDL -DGCCCONSTFUNC="__attribute__((const))" -mpreferred-stack-boundary=2 -fno-exceptions -DUNALIGNED_PROFITABLE -fno-strength-reduce -DREGPARAM="__attribute__((regparm(3)))" -DX86_ASSEMBLY -DOPTIMIZED_FLAGS -DUSE_ZFILE -D__inline__=inline -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -DSHM_SUPPORT_LINKS=1 newcpu.c -o newcpu.o newcpu.c:104: error: conflicting types for 'op_illg_1' newcpu.c:101: error: previous declaration of 'op_illg_1' was here newcpu.c:104: error: conflicting types for 'op_illg_1' newcpu.c:101: error: previous declaration of 'op_illg_1' was here newcpu.c: In function `build_cpufunctbl': newcpu.c:124: warning: assignment from incompatible pointer type newcpu.c:137: warning: comparison of distinct pointer types lacks a cast newcpu.c: At top level: newcpu.c:1129: error: conflicting types for 'op_illg' ../src/include/newcpu.h:57: error: previous declaration of 'op_illg' was here newcpu.c:1129: error: conflicting types for 'op_illg' ../src/include/newcpu.h:57: error: previous declaration of 'op_illg' was here newcpu.c: In function `m68k_go': newcpu.c:1429: warning: implicit declaration of function `savestate_restore_finish' newcpu.c: In function `m68k_verify': newcpu.c:1451: warning: comparison of distinct pointer types lacks a cast newcpu.c: In function `m68k_disasm': newcpu.c:1486: warning: comparison of distinct pointer types lacks a cast make[1]: *** [newcpu.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/uae-0.8.22-r1/work/uae-0.8.22/src' make: *** [all] Error 2 !!! ERROR: app-emulation/uae-0.8.22-r1 failed. !!! Function src_compile, Line 57, Exitcode 2 !!! emake failed !!! If you need support, post the topmost build error, NOT this status message. Portage 2.0.51-r15 (default-linux/x86/2004.0, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r0, 2.6.10-gentoo-r6 i686) ================================================================= System uname: 2.6.10-gentoo-r6 i686 Pentium III (Coppermine) Gentoo Base System version 1.6.9 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Feb 18 2005, 18:33:16)] ccache version 2.3 [enabled] dev-lang/python: 2.3.5 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.5, 1.9.4, 1.4_p6, 1.8.5-r3, 1.6.3, 1.7.9-r1 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.4.22-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium3 -msse -mmmx -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium3 -msse -mmmx -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X aalib alsa apm arts avi berkdb bitmap-fonts cdr crypt cups curl dvd dvdread emboss encode esd f77 fam flac font-server foomaticdb fortran freetds gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml imagemagick imlib jpeg kde ldap libg++ libwww mad mikmod mmx motif mozilla mpeg mysql ncurses nls odbc oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime readline samba sdl slang speex spell sqlite sse ssl svga tcltk tcpd tiff truetype truetype-fonts type1-fonts xml2 xmms xv zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
gcc's regparam attribute seems to have become more strict. This patch fixes the compile problem: diff -ru uae-0.8.22/configure.in /root/uae-0.8.22/configure.in --- uae-0.8.22/configure.in 2005-05-18 17:04:09.000000000 +0200 +++ /root/uae-0.8.22/configure.in 2005-05-18 17:07:02.000000000 +0200 @@ -728,7 +728,7 @@ dnl strength-reduce is turned off not because of paranoia, but because it dnl actually makes the code worse in some cases on the i386 (generates too dnl many registers, which all end up on the stack). - CFLAGS="$CFLAGS -DUNALIGNED_PROFITABLE -fno-strength-reduce -DREGPARAM=\"__attribute__((regparm(3)))\"" + CFLAGS="$CFLAGS -DUNALIGNED_PROFITABLE -fno-strength-reduce -DREGPARAM2=REGPARAM -DREGPARAM=\"__attribute__((regparm(3)))\"" CFLAGS="$CFLAGS -DX86_ASSEMBLY -DOPTIMIZED_FLAGS" ASMOBJS=md-X86.o diff -ru uae-0.8.22/src/include/sysdeps.h /root/uae-0.8.22/src/include/sysdeps.h --- uae-0.8.22/src/include/sysdeps.h 2001-11-19 18:58:46.000000000 +0100 +++ /root/uae-0.8.22/src/include/sysdeps.h 2005-05-18 17:06:33.000000000 +0200 @@ -103,15 +103,6 @@ }; #endif -#if defined(__GNUC__) && defined(AMIGA) -/* gcc on the amiga need that __attribute((regparm)) must */ -/* be defined in function prototypes as well as in */ -/* function definitions ! */ -#define REGPARAM2 REGPARAM -#else /* not(GCC & AMIGA) */ -#define REGPARAM2 -#endif - /* sam: some definitions so that SAS/C can compile UAE */ #if defined(__SASC) && defined(AMIGA) #define REGPARAM2
0.8.24 released
Version bumped, thanks.