Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 194513 - dev-lang/icc-10.0.026 C++ compiler (icpc) does not work
Summary: dev-lang/icc-10.0.026 C++ compiler (icpc) does not work
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-02 14:50 UTC by octoploid
Modified: 2007-10-02 17:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description octoploid 2007-10-02 14:50:19 UTC
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 Sébastien Fabbro (RETIRED) gentoo-dev 2007-10-02 17:33:43 UTC
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