<?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>26657</bug_id>
          
          <creation_ts>2003-08-14 20:16 0000</creation_ts>
          <short_desc>psemu-peopsspu-1.0.7-r1 fails building because of bad Makefile</short_desc>
          <delta_ts>2003-08-21 17:27:42 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>Games</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>langhamm@in.tum.de</reporter>
          <assigned_to>games@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>langhamm@in.tum.de</who>
            <bug_when>2003-08-14 20:16:33 0000</bug_when>
            <thetext>DESCRIPTION:
------------
psemu-peopsspu can fail from building because the Makefile adds the deprecated
option &quot;-mpentium&quot; to CFLAGS


REASON:
-------
The option &quot;-mpentium&quot; is deprecated and can break the build on other processors
than pentium.
The bug is reproducable by setting CFLAGS=&quot;-march=athlon-tbird
-fprefetch-loop-arrays&quot;.


SOLUTION:
--------- 
Remove the &quot;-mpentium&quot; from the Makefile.
This breaks nothing and owners of pentiums have their &quot;-march=pentium&quot; in
/etc/make.conf.


ERROR-LOG:
----------

gcc -march=athlon-tbird -fprefetch-loop-arrays  -fPIC -c -Wall -mpentium -O3
-ffast-math -fomit-frame-pointer -DUSEALSA  dma.c
`-mpentium&apos; is deprecated. Use `-march=pentium&apos; or `-mcpu=pentium&apos; instead.
dma.c: In function `SPUreadDMAMem&apos;:
dma.c:64: internal error: Floating point exception
Please submit a full bug report,
with preprocessed source if appropriate.
See &lt;URL:http://bugs.gentoo.org/&gt; for instructions.
make: *** [dma.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from spu.c:198:
adsr.c: In function `InitADSR&apos;:
adsr.c:65: internal error: Floating point exception
Please submit a full bug report,
with preprocessed source if appropriate.
See &lt;URL:http://bugs.gentoo.org/&gt; for instructions.
make: *** [spu.o] Error 1

!!! ERROR: app-emulation/psemu-peopsspu-1.0.7-r1 failed.
!!! Function src_compile, Line 43, Exitcode 2
!!! (no error message)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>langhamm@in.tum.de</who>
            <bug_when>2003-08-14 20:44:08 0000</bug_when>
            <thetext>Created an attachment (id=16123)
patch to fix compiling on other processors than pentium

apply patch with:

cd /usr/portage/app-emulation/psemu-peopsspu
patch &lt; psemu-peopsspu-1.0.7-r1.ebuild.diff
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2003-08-15 05:37:56 0000</bug_when>
            <thetext>This is your error:

dma.c:64: internal error: Floating point exception

This has nothing to do with the -mpentium being in the source, at least at first glance.  Have you tried removing the -mpentium from the Makefile and compiling it by hand to see if it fails?  If removing the flag solves the problem, then I&apos;ll modify the ebuild to fix the Makefile.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>langhamm@in.tum.de</who>
            <bug_when>2003-08-15 06:00:23 0000</bug_when>
            <thetext>Yes, I tried it.
Removing the &quot;-mpentium&quot; from the Makefile fixes the build on my &quot;-march=athlon-tbird&quot;.

Seems that gcc gets confused how to optimize the code if there is &quot;-march=athlon-tbird -mpentium&quot; together.

The modified sed-expression in my .diff removes the -mpentium from the Makefile. This will have no bad sideeffects to anybody, because every normal gentoo-user with a pentium processor has his &quot;-mpentium&quot; or better &quot;-march=pentium&quot; in his CFLAGS.

Please remove the flag from the Makefile. I think there are many people without pentium processor out there ;-)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2003-08-15 06:31:26 0000</bug_when>
            <thetext>Fixed in CVS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2003-08-21 17:27:42 0000</bug_when>
            <thetext>http://bugs.gentoo.org/show_bug.cgi?id=25461#c6 explains the issue better :) </thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>16123</attachid>
            <date>2003-08-14 20:44 0000</date>
            <desc>patch to fix compiling on other processors than pentium</desc>
            <filename>psemu-peopsspu-1.0.7-r1.ebuild.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHBzZW11LXBlb3Bzc3B1LTEuMC43LXIxLmVidWlsZAkyMDAzLTA4LTE1IDA0OjQ0OjI4LjAw
MDAwMDAwMCArMDIwMAorKysgcHNlbXUtcGVvcHNzcHUtMS4wLjctcjEuZWJ1aWxkCTIwMDMtMDgt
MTUgMDU6MTg6MTIuMDAwMDAwMDAwICswMjAwCkBAIC0zMiw3ICszMiw3IEBACiAKIHNyY19jb21w
aWxlKCkgewogCWNkIHNyYwotCXNlZCAtaSAiL15DQ0ZMQUdTMy9zOj06PSAke0NGTEFHU30gOiIg
TWFrZWZpbGUKKwlzZWQgLWkgLWUgInMvLW1wZW50aXVtLy8iIC1lICIvXkNDRkxBR1MzL3M6PTo9
ICR7Q0ZMQUdTfSA6IiBNYWtlZmlsZQogCWlmIFsgYHVzZSBvc3NgIF0gfHwgWyAteiAiYHVzZSBv
c3NgYHVzZSBhbHNhYCIgXSA7IHRoZW4KIAkJZW1ha2UgY2xlYW4gfHwgZGllCiAJCWVtYWtlIFVT
RUFMU0E9RkFMU0UgfHwgZGllCg==
</data>        

          </attachment>
    </bug>

</bugzilla>