<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>71937</bug_id>
          
          <creation_ts>2004-11-21 05:36 0000</creation_ts>
          <short_desc>UAE new version</short_desc>
          <delta_ts>2005-07-09 15:57:40 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>cpu@ztpnet.pl</reporter>
          <assigned_to>dholm@gentoo.org</assigned_to>
          <cc>duncan@excelsior-online.org</cc>

      

      
          <long_desc isprivate="0">
            <who>cpu@ztpnet.pl</who>
            <bug_when>2004-11-21 05:36:42 0000</bug_when>
            <thetext>UAE 0.8.23 relased -&gt; ftp://ftp.freiburg.linux.de/pub/uae/sources/develop/ and http://www.freiburg.linux.de/~uae/

Reproducible: Always
Steps to Reproduce:</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dholm@gentoo.org</who>
            <bug_when>2004-11-22 06:16:33 0000</bug_when>
            <thetext>It does not compile. cpuemu.c complains about a missing header file (cpu_prefetch.h).</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cpu@ztpnet.pl</who>
            <bug_when>2004-11-22 10:32:52 0000</bug_when>
            <thetext>I had this problem with gcc 3.4.2 when I&apos;ve switched to 3.3.4-r2 compiled sucesfull</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>sekretarz@gentoo.org</who>
            <bug_when>2005-01-03 11:47:16 0000</bug_when>
            <thetext>I managed to emerge this ebuild using gcc-3.4.3:
&gt;&gt;&gt; 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=&quot;amd64 ~amd64&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-march=athlon64 -O2 -pipe -s -fomit-frame-pointer&quot;
CHOST=&quot;x86_64-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/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&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-march=athlon64 -O2 -pipe -s -fomit-frame-pointer&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs autoconfig autodigest candy ccache cvs distlocks fixpackages nostrip sandbox sign&quot;
GENTOO_MIRRORS=&quot;http://trumpetti.atm.tut.fi/gentoo/ http://ftp.rhnet.is/pub/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ http://gentoo.zie.pg.gda.pl&quot;
LDFLAGS=&quot;&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.europe.gentoo.org/gentoo-portage&quot;
USE=&quot;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&quot;
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>duncan@excelsior-online.org</who>
            <bug_when>2005-02-19 09:21:31 0000</bug_when>
            <thetext>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&apos;
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=&quot;__attribute__((const))&quot; -mpreferred-stack-boundary=2 -fno-exceptions -DUNALIGNED_PROFITABLE -fno-strength-reduce -DREGPARAM=&quot;__attribute__((regparm(3)))&quot; -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&apos;:
main.c:363: warning: passing arg 2 of `parse_cmdline_option&apos; 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=&quot;__attribute__((const))&quot; -mpreferred-stack-boundary=2 -fno-exceptions -DUNALIGNED_PROFITABLE -fno-strength-reduce -DREGPARAM=&quot;__attribute__((regparm(3)))&quot; -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 &apos;op_illg_1&apos;
newcpu.c:101: error: previous declaration of &apos;op_illg_1&apos; was here
newcpu.c:104: error: conflicting types for &apos;op_illg_1&apos;
newcpu.c:101: error: previous declaration of &apos;op_illg_1&apos; was here
newcpu.c: In function `build_cpufunctbl&apos;:
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 &apos;op_illg&apos;
../src/include/newcpu.h:57: error: previous declaration of &apos;op_illg&apos; was here
newcpu.c:1129: error: conflicting types for &apos;op_illg&apos;
../src/include/newcpu.h:57: error: previous declaration of &apos;op_illg&apos; was here
newcpu.c: In function `m68k_go&apos;:
newcpu.c:1429: warning: implicit declaration of function `savestate_restore_finish&apos;
newcpu.c: In function `m68k_verify&apos;:
newcpu.c:1451: warning: comparison of distinct pointer types lacks a cast
newcpu.c: In function `m68k_disasm&apos;:
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&apos;
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=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-O2 -march=pentium3 -msse -mmmx -pipe -fomit-frame-pointer&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/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&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-O2 -march=pentium3 -msse -mmmx -pipe -fomit-frame-pointer&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs autoconfig ccache distlocks sandbox sfperms&quot;
GENTOO_MIRRORS=&quot;http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;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&quot;
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jwalt@garni.ch</who>
            <bug_when>2005-05-18 08:15:16 0000</bug_when>
            <thetext>gcc&apos;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=&quot;$CFLAGS -DUNALIGNED_PROFITABLE -fno-strength-reduce 
-DREGPARAM=\&quot;__attribute__((regparm(3)))\&quot;&quot; 
+  CFLAGS=&quot;$CFLAGS -DUNALIGNED_PROFITABLE -fno-strength-reduce 
-DREGPARAM2=REGPARAM -DREGPARAM=\&quot;__attribute__((regparm(3)))\&quot;&quot; 
 
   CFLAGS=&quot;$CFLAGS -DX86_ASSEMBLY -DOPTIMIZED_FLAGS&quot; 
   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__) &amp;&amp; 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 &amp; AMIGA) */ 
-#define REGPARAM2 
-#endif 
- 
 /* sam: some definitions so that SAS/C can compile UAE */ 
 #if defined(__SASC) &amp;&amp; defined(AMIGA) 
 #define REGPARAM2 
 </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>deppdepp@gmx.net</who>
            <bug_when>2005-07-09 09:08:42 0000</bug_when>
            <thetext>0.8.24 released</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dholm@gentoo.org</who>
            <bug_when>2005-07-09 15:57:40 0000</bug_when>
            <thetext>Version bumped, thanks.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>