<?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>35607</bug_id>
          
          <creation_ts>2003-12-11 08:17 0000</creation_ts>
          <short_desc>xmame 0.77.1 fails to compile with USE=&quot;icc&quot;</short_desc>
          <delta_ts>2003-12-31 07:42:17 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>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>gentoo@nephros.org</reporter>
          <assigned_to>games@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>gentoo@nephros.org</who>
            <bug_when>2003-12-11 08:17:09 0000</bug_when>
            <thetext>When trying to compile xmame with icc-7.1.006, it throws the following error:

Compiling src/unix/video-drivers/x11_window.c ...
/usr/include/bits/ipctypes.h(33): error: &quot;__ipc_pid_t&quot; has already been declared in the current scope
  typedef int __ipc_pid_t;
              ^
compilation aborted for video-drivers/x11_window.c (code 2)


Reproducible: Always
Steps to Reproduce:
1. USE=&quot;icc&quot; emerge xmame
2. watch it fail
3. USE=&quot;-icc&quot; emerge xmame
4. compiles fine




etcat -u glibc

U I [ Found these USE variables in : sys-libs/glibc-2.3.2-r9 ]
 - - nls   : unknown
 + + pic   : If you want prelink support built into glibc
 - - build : !!internal use only!! DO NOT SET THIS FLAG YOURSELF!, used for 
creating build images and the first half of bootstrapping.
 + + nptl  : If you want the Native POSIX Threading Library built into glibc.

versions used:
icc-7.1.006
linux-headers-2.4.21-r1

CFLAGS=&quot;-w -march=athlon-mp -O3 -pipe -fomit-frame-pointer -ffast-math 
-mfpmath=sse,387 -m3dnow -frename-registers&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>svein.brostigen@oracle.com</who>
            <bug_when>2003-12-17 07:22:19 0000</bug_when>
            <thetext>Upgrade icc to version 8 and xmame will compile succesfully after making the following changes to the Makefile:

make.diff:
--- Makefile.org        2003-12-17 10:01:34.566956786 -0500
+++ Makefile    2003-12-17 10:02:04.087798412 -0500
@@ -266,7 +266,7 @@
 ifeq ($(CC),icc)

   # Optimizations for the Intel compiler.
-  CFLAGS    = -O3 -rcd -Xa -ipo -ipo_obj
+  CFLAGS    = -O3 -rcd -ipo -ipo_obj -w

 else
 ifeq ($(CC),sun-forte)

And the following change to one header file:

header.diff:
--- src/unix/osinline.h.org     2003-12-17 10:12:15.652914937 -0500
+++ src/unix/osinline.h 2003-12-17 10:12:34.010705964 -0500
@@ -20,6 +20,7 @@
 #define osd_mark_vector_dirty(x,y)
 #endif

+#undef X86_ASM
 #ifdef X86_ASM
 #define vec_mult _vec_mult
 INLINE int _vec_mult(int x, int y)

Write these changes to 2 different files and do the following steps:

1. ebuild /usr/portage/games-emulation/xmame/xmame-0.77.1.ebuild unpack
2. cd /var/tmp/portage/xmame-0.77.1/work/xmame-0.77.1
3. patch -p0 &lt; make.diff
4. patch -p0 &lt; header.diff
5. ebuild /usr/portage/games-emulation/xmame/xmame-0.77.1.ebuild compile
6. ebuild /usr/portage/games-emulation/xmame/xmame-0.77.1.ebuild install qmerge

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>svein.brostigen@oracle.com</who>
            <bug_when>2003-12-17 07:26:17 0000</bug_when>
            <thetext>Created an attachment (id=22348)
DIff for Makefile
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>svein.brostigen@oracle.com</who>
            <bug_when>2003-12-17 07:27:12 0000</bug_when>
            <thetext>Created an attachment (id=22349)
Diff fro src/unix/osinline.h
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2003-12-31 07:42:17 0000</bug_when>
            <thetext>i dont personally use icc (cause i cant seem to get the sob to work at all) so
i added your fixes on blind faith

thanks ;)</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>22348</attachid>
            <date>2003-12-17 07:26 0000</date>
            <desc>DIff for Makefile</desc>
            <filename>make.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIE1ha2VmaWxlLm9yZyAgICAgICAgMjAwMy0xMi0xNyAxMDowMTozNC41NjY5NTY3ODYgLTA1
MDAKKysrIE1ha2VmaWxlICAgIDIwMDMtMTItMTcgMTA6MDI6MDQuMDg3Nzk4NDEyIC0wNTAwCkBA
IC0yNjYsNyArMjY2LDcgQEAKIGlmZXEgKCQoQ0MpLGljYykKCiAgICMgT3B0aW1pemF0aW9ucyBm
b3IgdGhlIEludGVsIGNvbXBpbGVyLgotICBDRkxBR1MgICAgPSAtTzMgLXJjZCAtWGEgLWlwbyAt
aXBvX29iagorICBDRkxBR1MgICAgPSAtTzMgLXJjZCAtaXBvIC1pcG9fb2JqIC13CgogZWxzZQog
aWZlcSAoJChDQyksc3VuLWZvcnRlKQoK
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>22349</attachid>
            <date>2003-12-17 07:27 0000</date>
            <desc>Diff for src/unix/osinline.h</desc>
            <filename>header.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHNyYy91bml4L29zaW5saW5lLmgub3JnICAgICAyMDAzLTEyLTE3IDEwOjEyOjE1LjY1Mjkx
NDkzNyAtMDUwMAorKysgc3JjL3VuaXgvb3NpbmxpbmUuaCAyMDAzLTEyLTE3IDEwOjEyOjM0LjAx
MDcwNTk2NCAtMDUwMApAQCAtMjAsNiArMjAsNyBAQAogI2RlZmluZSBvc2RfbWFya192ZWN0b3Jf
ZGlydHkoeCx5KQogI2VuZGlmCgorI3VuZGVmIFg4Nl9BU00KICNpZmRlZiBYODZfQVNNCiAjZGVm
aW5lIHZlY19tdWx0IF92ZWNfbXVsdAogSU5MSU5FIGludCBfdmVjX211bHQoaW50IHgsIGludCB5
KQoK
</data>        

          </attachment>
    </bug>

</bugzilla>