<?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>18807</bug_id>
          
          <creation_ts>2003-04-05 11:51 0000</creation_ts>
          <short_desc>Ebuild for daphne emulator</short_desc>
          <delta_ts>2004-08-20 21:29:49 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>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <keywords>EBUILD</keywords>
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>is@gentestrana.net</reporter>
          <assigned_to>games@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>is@gentestrana.net</who>
            <bug_when>2003-04-05 11:51:04 0000</bug_when>
            <thetext>I&apos;ve made a new ebuild for the daphne emulator (http://www.daphne-emu.com).
This is my first ebuild, so ... be patient :)
Anyway, it work on my machine.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>is@gentestrana.net</who>
            <bug_when>2003-04-05 11:51:53 0000</bug_when>
            <thetext>Created an attachment (id=10227)
Ebuild

This is the ebuild.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>is@gentestrana.net</who>
            <bug_when>2003-04-05 11:52:14 0000</bug_when>
            <thetext>Created an attachment (id=10228)
Digest.

This is the digest.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2003-07-15 18:35:45 0000</bug_when>
            <thetext>0.99.6 is now in portage ... i heavily modified your ebuild to make it Gentoo 
happy ... please try it out and tell me how it goes :) </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>is@gentestrana.net</who>
            <bug_when>2003-07-23 14:24:55 0000</bug_when>
            <thetext>Not so well... 
g++ -O3 -march=pentium3 -mfpmath=sse -O2 -pipe -fomit-frame-pointer -mmmx -msse 
-falign-functions=4 -fforce-addr -DX86_ASM -DGCC_X86_ASM -fomit-frame-pointer 
-fexpensive-optimizations -funroll-loops `sdl-config --cflags` -DUNIX -DLINUX -DNATIVE_CPU_X86 
-DMMX_RGB2YUV -Wall -Winline -c nes_6502.cpp -o nes_6502.o 
nes_6502.cpp:47: warning: initialization of negative value `-1&apos; to `uint32&apos; 
nes_6502.cpp:47: warning: argument of negative value `-1&apos; to `unsigned int&apos; 
nes_6502.cpp:47: warning: initialization of negative value `-1&apos; to `uint32&apos; 
nes_6502.cpp:47: warning: argument of negative value `-1&apos; to `unsigned int&apos; 
nes_6502.cpp:53: warning: initialization of negative value `-1&apos; to `uint32&apos; 
nes_6502.cpp:53: warning: argument of negative value `-1&apos; to `unsigned int&apos; 
nes_6502.cpp:53: warning: initialization of negative value `-1&apos; to `uint32&apos; 
nes_6502.cpp:53: warning: argument of negative value `-1&apos; to `unsigned int&apos; 
g++ -O3 -march=pentium3 -mfpmath=sse -O2 -pipe -fomit-frame-pointer -mmmx -msse 
-falign-functions=4 -fforce-addr -DX86_ASM -DGCC_X86_ASM -fomit-frame-pointer 
-fexpensive-optimizations -funroll-loops `sdl-config --cflags` -DUNIX -DLINUX -DNATIVE_CPU_X86 
-DMMX_RGB2YUV -Wall -Winline -c cop.cpp -o cop.o 
g++ -O3 -march=pentium3 -mfpmath=sse -O2 -pipe -fomit-frame-pointer -mmmx -msse 
-falign-functions=4 -fforce-addr -DX86_ASM -DGCC_X86_ASM -fomit-frame-pointer 
-fexpensive-optimizations -funroll-loops `sdl-config --cflags` -DUNIX -DLINUX -DNATIVE_CPU_X86 
-DMMX_RGB2YUV -Wall -Winline -c copintf.cpp -o copintf.o 
{standard input}: Assembler messages: 
{standard input}:12890: Error: bad register name `%sil&apos; 
{standard input}:18980: Error: bad register name `%sil&apos; 
{standard input}:19022: Error: bad register name `%sil&apos; 
{standard input}:27370: Error: bad register name `%sil&apos; 
{standard input}:32975: Error: bad register name `%sil&apos; 
make[1]: *** [m80.o] Error 1 
make[1]: Leaving directory `/home/portage/daphne-0.99.6/work/daphne/src/cpu&apos; 
make: *** [sub] Error 2 
 
!!! ERROR: app-emulation/daphne-0.99.6 failed. 
!!! Function src_compile, Line 41, Exitcode 2 
!!! src build failed 
 </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2003-07-23 14:38:28 0000</bug_when>
            <thetext>what?  no posting of emerge info?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>is@gentestrana.net</who>
            <bug_when>2003-07-23 14:41:03 0000</bug_when>
            <thetext>Here it is.

cerrito root # emerge info
Portage 2.0.48-r5 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.21 i686 Intel(R) Pentium(R) III Mobile CPU      1200MHz
GENTOO_MIRRORS=&quot;http://mi.mirror.garr.it/mirrors/gentoo http://212.219.56.162/sites/www.ibiblio.org/gentoo/ http://194.83.57.2/sites/www.ibiblio.org/gentoo/ http://194.83.57.3/sites/www.ibiblio.org/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.flashnet.it/mirror/12/sunsite.unc.edu/Gentoo http://ibiblio.org/pub/Linux/ftp.edisontel.com/pub/Sunsite_Mirror http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo ftp://sunsite.cnlab-switch.ch/mirror/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo http://gentoo.oregonstate.edu &quot;
CONFIG_PROTECT=&quot;/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/env.d&quot;
PORTDIR=&quot;/home/portdir&quot;
DISTDIR=&quot;/home/portdir/distfiles&quot;
PKGDIR=&quot;/home/portdir/packages&quot;
PORTAGE_TMPDIR=&quot;/home&quot;
PORTDIR_OVERLAY=&quot;&quot;
USE=&quot;oss 3dnow foomaticdb gnome mad mikmod aalib tcltk guile ruby sdl perl gtk qt x86 acpi acl alsa apm avi berkdb bonobo cdr crypt cups directfb dga dvd encode gdbm gif gpm fbcon krb4 kerberos imlib java jpeg gtk2 gtkhtml ldap libg++ libwww miknod mmx motif mozilla mpeg ncurses nls oggvorbis opengl pam pdflib png pnp python quicktime radeon readline samba slang spell sse ssl svga tcpd truetype usb X xml2 xmms xv zlib kde arts -esd&quot;
COMPILER=&quot;gcc3&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-march=pentium3 -mfpmath=sse -O2 -pipe -fomit-frame-pointer -mmmx -msse -falign-functions=4 -fforce-addr&quot;
CXXFLAGS=&quot;-march=pentium3 -mfpmath=sse -O2 -pipe -fomit-frame-pointer -mmmx -msse -falign-functions=4 -fforce-addr&quot;
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
MAKEOPTS=&quot;-j2&quot;
AUTOCLEAN=&quot;yes&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
FEATURES=&quot;sandbox ccache&quot;
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2003-07-23 14:50:54 0000</bug_when>
            <thetext>Try it with just 

CFLAGS=&quot;-march=pentium3 -O2 -pipe&quot;
CXXFLAGS=&quot;-march=pentium3 -O2 -pipe&quot;

and see if that works please.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>is@gentestrana.net</who>
            <bug_when>2003-07-23 15:02:24 0000</bug_when>
            <thetext>Same.

g++ -O3 -march=pentium3 -O2 -pipe -DX86_ASM -DGCC_X86_ASM -fomit-frame-pointer -fexpensive-optimizations -funroll-loops `sdl-config --cflags` -DUNIX -DLINUX -DNATIVE_CPU_X86 -DMMX_RGB2YUV -Wall -Winline -c nes_6502.cpp -o nes_6502.o
nes_6502.cpp:47: warning: initialization of negative value `-1&apos; to `uint32&apos;
nes_6502.cpp:47: warning: argument of negative value `-1&apos; to `unsigned int&apos;
nes_6502.cpp:47: warning: initialization of negative value `-1&apos; to `uint32&apos;
nes_6502.cpp:47: warning: argument of negative value `-1&apos; to `unsigned int&apos;
nes_6502.cpp:53: warning: initialization of negative value `-1&apos; to `uint32&apos;
nes_6502.cpp:53: warning: argument of negative value `-1&apos; to `unsigned int&apos;
nes_6502.cpp:53: warning: initialization of negative value `-1&apos; to `uint32&apos;
nes_6502.cpp:53: warning: argument of negative value `-1&apos; to `unsigned int&apos;
g++ -O3 -march=pentium3 -O2 -pipe -DX86_ASM -DGCC_X86_ASM -fomit-frame-pointer -fexpensive-optimizations -funroll-loops `sdl-config --cflags` -DUNIX -DLINUX -DNATIVE_CPU_X86 -DMMX_RGB2YUV -Wall -Winline -c cop.cpp -o cop.o
g++ -O3 -march=pentium3 -O2 -pipe -DX86_ASM -DGCC_X86_ASM -fomit-frame-pointer -fexpensive-optimizations -funroll-loops `sdl-config --cflags` -DUNIX -DLINUX -DNATIVE_CPU_X86 -DMMX_RGB2YUV -Wall -Winline -c copintf.cpp -o copintf.o
{standard input}: Assembler messages:
{standard input}:12940: Error: bad register name `%sil&apos;
{standard input}:19036: Error: bad register name `%sil&apos;
{standard input}:19079: Error: bad register name `%sil&apos;
{standard input}:27969: Error: bad register name `%sil&apos;
{standard input}:33635: Error: bad register name `%sil&apos;
{standard input}:33680: Error: bad register name `%sil&apos;
make[1]: *** [m80.o] Error 1
make[1]: Leaving directory `/home/portage/daphne-0.99.6/work/daphne/src/cpu&apos;
make: *** [sub] Error 2

!!! ERROR: app-emulation/daphne-0.99.6 failed.
!!! Function src_compile, Line 41, Exitcode 2
!!! src build failed
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2003-07-23 15:42:18 0000</bug_when>
            <thetext>do it with just CFLAGS=-pipe and CXXFLAGS=-pipe </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2003-07-23 15:58:11 0000</bug_when>
            <thetext>it appears to be a bug with march=p3 ... it works just fine with march=p4 and 
march=i686, but failed on my box with p3 :/ 
 
ill replace flags in the ebuild to change the p3 into a i686 </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2003-07-23 16:10:35 0000</bug_when>
            <thetext>i guess march=i686 fails too ! 
 
i586 and pentium4 work fine, so ill filter p3/686 down to 586 :/ </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2003-07-23 16:41:15 0000</bug_when>
            <thetext>ok, those flags are now filtered </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>montag@mompracem.org</who>
            <bug_when>2004-08-07 12:34:37 0000</bug_when>
            <thetext>The ebuild in portage (daphne-0.99.6-r2) doesn&apos;t filter i686/pentium3 flags.
You have to manually add the following to it:
replace-flags -march=i686 -march=i586
replace-flags -march=pentium3 -march=i586</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2004-08-20 21:29:49 0000</bug_when>
            <thetext>fixed in cvs</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>10227</attachid>
            <date>2003-04-05 11:51 0000</date>
            <desc>Ebuild</desc>
            <filename>daphne-0.99.5.ebuild</filename>
            <type>text/plain</type>
            <data encoding="base64">IyBDb3B5cmlnaHQgMTk5OS0yMDAzIEdlbnRvbyBUZWNobm9sb2dpZXMsIEluYy4KIyBEaXN0cmli
dXRlZCB1bmRlciB0aGUgdGVybXMgb2YgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbn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30KCWNkICR7U30KICAg
IHVucGFjayAke0F9CgljZCAke1N9L3NyYwoJY3AgLWYgTWFrZWZpbGUgTWFrZWZpbGUucGF0Y2hl
ZAoKCSMgVGhlIGNoYW5nZSAiczpERkxBR1MgPTojREZMQUdTID06ZyIgaXMgbmVlZGVkIGJlY2F1
c2Ugd2l0aG91dCBpdCBkYXBobmUgd29uJ3QgY29tcGlsZS4KCSMgQnV0IGRvbid0IGFzayBtZSB3
aHkgOikKCgkjIFRoZSB2YXIgQ0ZMQUdTMiBpcyBzZXQgYmVjYXVzZSBkYXBobmUgdHJ5IHRvIHVz
ZSBhIHByb3ByaWV0YXJ5IENGTEFHUwoKCXNlZCAtZSAnczpnKystMy4wOmdjYzpnJyBcCgkJLWUg
J3M6JHtERkxBR1N9OiR7Q0ZMQUdTMn06ZycgXAoJICAgIC1lICdzOkRGTEFHUyA9OiNERkxBR1Mg
PTpnJyBNYWtlZmlsZS5wYXRjaGVkID4gTWFrZWZpbGUKCXJtIC1mIE1ha2VmaWxlLnBhdGNoZWQK
CWNkICR7U30vc3JjL3ZsZHAKCXNlZCAtZSAnczpnY2MtMy4wOmdjYzpnJyBNYWtlZmlsZS5saW51
eCA+IE1ha2VmaWxlCgp9CgpzcmNfY29tcGlsZSgpIHsKCWxvY2FsIG15Y29uZj0iIgoJCglleHBv
cnQgQ0ZMQUdTMj0kQ0ZMQUdTCgljZCAke1N9L3NyYwoJZW1ha2UgfHwgZGllCgljZCAke1N9L3Ny
Yy92bGRwCgllbWFrZSB8fCBkaWUKfQoKc3JjX2luc3RhbGwoKSB7CgkjIFRoZSBpbnN0YWxsIHNj
cmlwdCBkbyBub3QgY3JlYXRlIHRoaXMgb25lCglkb2RpciAvdXNyL2JpbgoJY2QgJHtTfQoJZG9i
aW4gZGFwaG5lCglkb2xpYiBsaWJ2bGRwLnNvCgp9Cgo=
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>10228</attachid>
            <date>2003-04-05 11:52 0000</date>
            <desc>Digest.</desc>
            <filename>digest-daphne-0.99.5</filename>
            <type>text/plain</type>
            <data encoding="base64">TUQ1IDNjYTQ1MDhmOWUyZjIzNmY2ODFhMjE1MTU1YTg1ZTBlIGRhcGhuZS0wLjk5LjUtc3JjLnpp
cCA1NjE1MzYK
</data>        

          </attachment>
    </bug>

</bugzilla>