Bug 194513 - dev-lang/icc-10.0.026 C++ compiler (icpc) does not work
Bug#: 194513 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: major Priority: P2
Resolution: FIXED Assigned To: bug-wranglers@gentoo.org Reported By: cryptooctoploid@gmail.com
Component: Development
URL: 
Summary: dev-lang/icc-10.0.026 C++ compiler (icpc) does not work
Keywords:  
Status Whiteboard: 
Opened: 2007-10-02 14:50 0000
Description:   Opened: 2007-10-02 14:50 0000
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 "Fixing paths and tagging" 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 "__sync_fetch_and_add" 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.

------- Comment #1 From Sébastien Fabbro 2007-10-02 17:33:43 0000 -------
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'ed. 
Also the solution proposed make use of gcc-4.2.1 which is not in the official
tree yet.

Sébastien