Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105361 - dev-lang/icc-9.0.021 uses gcc's C++ include files instead of its own
Summary: dev-lang/icc-9.0.021 uses gcc's C++ include files instead of its own
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Karl Trygve Kalleberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-09 04:16 UTC by Peter Simons
Modified: 2007-04-01 22:12 UTC (History)
0 users

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 Peter Simons 2005-09-09 04:16:07 UTC
The default search path for ICC's header files as installed by Gentoo is:

 /opt/intel/compiler90/substitute_headers/c++
 /usr/lib/gcc-lib/PLATFORM/include/g++-v3
 /usr/lib/gcc-lib/PLATFORM/include/g++-v3/PLATFORM
 /usr/lib/gcc-lib/PLATFORM/include/g++-v3/backward
 /opt/intel/compiler90/include
 /opt/intel/compiler90/substitute_headers
 /usr/include

This means, that including a C++ header like <cstdio> will get the file
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/include/g++-v3/cstdio instead
of /opt/intel/compiler90/include/c++/cstdio, like it should. This causes
compilation to fail.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Peter Simons 2005-09-12 05:36:59 UTC
A very simple (albeit somewhat unsatisfying) fix is:

 # cd /opt/intel/compiler90/substitute_headers
 # ln -s ../include/c++
Comment 2 Peter Simons 2005-09-15 08:11:47 UTC
Another option to solve this problem is to use ICC with the following flags:

  CFLAGS="-no-gcc"
  CXXFLAGS="-no-gcc -cxxlib-icc"
  LDFLAGS="-cxxlib-icc"

ICC's -help output claims "-cxxlib-icc" would be a _linker_ flag, but in fact it
changes the definition of the include search path too.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-04-01 22:12:46 UTC
The only version left in the tree is 9.1.045; reopen if it's still a problem there.