Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 239313 - dev-lang/icc: limits.h inclusion breaks compilation
Summary: dev-lang/icc: limits.h inclusion breaks compilation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Sébastien Fabbro (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-02 10:43 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2008-10-07 09:13 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 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-10-02 10:43:08 UTC
I've confirmed with Luca that this is not limited to my box, so I'm opening a bug because icc for me is just unusable this way.

The attached testcase produces this output:

flame@yamato mytmpfs % icc test-icc.c 
/usr/include/limits.h(125): catastrophic error: could not open source file "limits.h"
  # include_next <limits.h>
                           ^

compilation aborted for test-icc.c (code 4)

the next limits.h that it should find is probably linux/limits.h (standing to what gcc -E produces), and indeed if I add -I/usr/include/linux to the command line it seems to work just fine.

For what might help, I'm running ~amd64 with these packages:

sys-devel/gcc-4.2.4
sys-devel/gcc-4.3.1-r1
sys-devel/gcc-config-1.4.0-r4
sys-kernel/linux-headers-2.6.26
sys-libs/glibc-2.8_p20080602

If you have any idea how we can get to solve this, I'd be very happy :)

Thanks,
Diego
Comment 1 Sébastien Fabbro (RETIRED) gentoo-dev 2008-10-04 11:22:56 UTC
Hi 

Yes it seems it is a known bug: 
http://software.intel.com/en-us/forums/intel-c-compiler/topic/59886
However I don't have a proper solution yet.
Comment 2 Sébastien Fabbro (RETIRED) gentoo-dev 2008-10-04 11:52:25 UTC
Ok, I looked around in man and was able to run stuff by adding:

echo "-idirafter /usr/include/linux" >> /opt/intel/cc*/10.1*/bin/icpc.cfg
echo "-idirafter /usr/include/linux" >> /opt/intel/cc*/10.1*/bin/icc.cfg

I'm testing it now also on x86 and also checking if it breaks other compilations. Let me know if that works with the toolchains you have installed. thanks.
Comment 3 Luca Barbato gentoo-dev 2008-10-04 13:45:47 UTC
works for me 
Comment 4 Sébastien Fabbro (RETIRED) gentoo-dev 2008-10-07 09:13:53 UTC
fixed in cvs.
thanks.