View previous topic :: View next topic |
Author |
Message |
Heretic Tux's lil' helper
Joined: 03 Jul 2002 Posts: 114 Location: Austin, TX USA
|
Posted: Thu Jan 16, 2003 7:17 pm Post subject: How do you force an ebuild to use ICC? |
|
|
I searched the forums looking for the answer, found lots of ICC related topics, but none exactly answered my question. I can add "icc" to my "USE" variable, but that only makes it used in supported packages. How do I try to force a package to build with ICC? Like, say, mysql-4.0.7? |
|
Back to top |
|
|
pilla Bodhisattva
Joined: 07 Aug 2002 Posts: 7729 Location: Underworld
|
Posted: Thu Jan 16, 2003 8:07 pm Post subject: |
|
|
be prepared to have some troubles. I've tried to compile the entire system, but I had problems with the first package (don't remember exactly which one) because it linked to a .o created by gcc. _________________ "I'm just very selective about the reality I choose to accept." -- Calvin |
|
Back to top |
|
|
Heretic Tux's lil' helper
Joined: 03 Jul 2002 Posts: 114 Location: Austin, TX USA
|
Posted: Thu Jan 16, 2003 9:35 pm Post subject: |
|
|
Bloody Bastard wrote: | be prepared to have some troubles. I've tried to compile the entire system, but I had problems with the first package (don't remember exactly which one) because it linked to a .o created by gcc. |
I'm not looking to do the whole system, just a few select packages. Is the ABI different between ICC7 and GCC 3.2? I thought that was supposedly a standardized thing.
Anyway, exactly how did you compile a package with ICC? I still haven't had that question answered. |
|
Back to top |
|
|
Zadeh Tux's lil' helper
Joined: 31 Oct 2002 Posts: 131
|
Posted: Fri Jan 17, 2003 5:43 am Post subject: |
|
|
ICC 7 can generate code thats compatible with the cross-vendor ABI standard that gcc also uses. However it is only QA'd against glibc 2.2.4 and glibc 2.2.5 so some things might not build (but if they do they should run fine IME).
For packages that don't explicitly support ICC, what I usually do is just unpack it with ebuild, go to the work directory the tree is extracted into, and do something like "CC=icc CXX=icpc configure." |
|
Back to top |
|
|
zhenlin Veteran
Joined: 09 Nov 2002 Posts: 1361
|
Posted: Fri Jan 17, 2003 1:12 pm Post subject: |
|
|
CC="icc" CXX="icpc" CFLAGS="" CXXFLAGS="" emerge package && "This package does not compile with ICC, we told you so!" |
|
Back to top |
|
|
|