<?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>194513</bug_id>
          
          <creation_ts>2007-10-02 14:50 0000</creation_ts>
          <short_desc>dev-lang/icc-10.0.026 C++ compiler (icpc) does not work</short_desc>
          <delta_ts>2007-10-02 17:33:43 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>Development</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>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>cryptooctoploid@gmail.com</reporter>
          <assigned_to>bug-wranglers@gentoo.org</assigned_to>
          <cc>bicatali@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>cryptooctoploid@gmail.com</who>
            <bug_when>2007-10-02 14:50:19 0000</bug_when>
            <thetext>The Intel C++ compiler »icpc« does not work after installing dev-lang/icc-10.0.026.
In the ebuild only »icc« is patched in the &quot;Fixing paths and tagging&quot; part.
Running icpc results in this error:
/opt/intel/cce/10.0.026/bin/icpc: line 40: INSTALLDIR: No such file or directory

The solution is simple: Just update the ebuild to also handle icpc...

The second problem is that icc-10.0.026 does not work out of the box with gcc 4.2.
This is the error I get:
icpc -O2 bench.cpp
/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.1/include/g++-v4/ext/atomicity.h(51): error: identifier &quot;__sync_fetch_and_add&quot; is undefined
    { return __sync_fetch_and_add(__mem, __val); }

The solution is to commend out the line:
#define _GLIBCXX_ATOMIC_BUILTINS 1
in /usr/lib64/gcc/x86_64-pc-linux-gnu/4.2.1/include/g++-v4/x86_64-pc-linux-gnu/bits/c++config.h
.

 

Reproducible: Always

Steps to Reproduce:
1. run icpc

Actual Results:  
opt/intel/cce/10.0.026/bin/icpc: line 40: INSTALLDIR: No such file or directory

Expected Results:  
Compile the C++ program.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bicatali@gentoo.org</who>
            <bug_when>2007-10-02 17:33:43 0000</bug_when>
            <thetext>Hi,

Thanks for reporting. Just fixed the icpc issue in cvs.
 
Concerning compatibility with gcc-4.2, it is better to file another bug, and probably toolchain will need to be CC&apos;ed. 
Also the solution proposed make use of gcc-4.2.1 which is not in the official tree yet.

Sébastien</thetext>
          </long_desc>
      
    </bug>

</bugzilla>