View previous topic :: View next topic |
Author |
Message |
zend Tux's lil' helper
Joined: 10 Apr 2002 Posts: 112 Location: Shanghai,China
|
Posted: Fri Jan 03, 2003 5:23 am Post subject: replace gcc with Intel CC? |
|
|
can I replace gcc with Intel CC in Gentoo 1.4RC2? and how to do it? |
|
Back to top |
|
|
Lovechild Advocate
Joined: 17 May 2002 Posts: 2858 Location: Århus, Denmark
|
Posted: Fri Jan 03, 2003 11:56 am Post subject: |
|
|
Short answer... no. The ICC compiler set will probably not be able to compile a full functional system. However I recall some brave soul trying to get Intel to fix the compiler so that we actually could use it as our base compiler should we choose so. This was of course a LONG time ago, and I'm not sure of the progress of this project. |
|
Back to top |
|
|
zen_guerrilla Guru
Joined: 18 Apr 2002 Posts: 343 Location: Greece
|
Posted: Fri Jan 03, 2003 2:56 pm Post subject: Re: replace gcc with Intel CC? |
|
|
zend wrote: | can I replace gcc with Intel CC in Gentoo 1.4RC2? and how to do it? |
There is an icc USE flag to use icc instead of gcc in packages that support it. Check also http://www.gentoo.org/dyn/use-index.xml.
However I never used it myself. If it works please report. But note that gcc is more standard-compliant compiler and though icc is a little bit faster (than gcc-3.2.1), gcc compiled source is definitely more stable.
.:: zen ::. |
|
Back to top |
|
|
pilla Bodhisattva
Joined: 07 Aug 2002 Posts: 7729 Location: Underworld
|
Posted: Fri Jan 03, 2003 3:20 pm Post subject: Re: replace gcc with Intel CC? |
|
|
I'd say that it is more widelly used, but not more standard-compliant. All the changes from gcc 2.95 to gcc 3.xx were because it wasn't compliant with some C++ AFAIK.
I've tried to build a system with icc, but I had problems with the first package (don't rememer which), it won't link to libraries compiled with gcc.
[EDIT] Not all changes, but many
zen_guerrilla wrote: | But note that gcc is more standard-compliant compiler and though icc is a little bit faster (than gcc-3.2.1), gcc compiled source is definitely more stable.
.:: zen ::. |
_________________ "I'm just very selective about the reality I choose to accept." -- Calvin |
|
Back to top |
|
|
duff Guru
Joined: 19 Jun 2002 Posts: 466 Location: Clemson, SC
|
Posted: Fri Jan 03, 2003 3:27 pm Post subject: Re: replace gcc with Intel CC? |
|
|
zen_guerrilla wrote: | But note that gcc is more standard-compliant compiler |
icc uses the EDG frontend...the only fully-compliant C/C++ parser available. The problem is programmers relying on things that are gcc specific. |
|
Back to top |
|
|
zen_guerrilla Guru
Joined: 18 Apr 2002 Posts: 343 Location: Greece
|
Posted: Fri Jan 03, 2003 4:47 pm Post subject: Re: replace gcc with Intel CC? |
|
|
duff wrote: | zen_guerrilla wrote: | But note that gcc is more standard-compliant compiler |
icc uses the EDG frontend...the only fully-compliant C/C++ parser available. The problem is programmers relying on things that are gcc specific. |
I guess I should say more linux-standard-compliant Seriously I read a related article about icc vs. gcc benchmark 2 days ago, but I guess I didn't read it well
.:: zen ::. |
|
Back to top |
|
|
dan_aka_jack Apprentice
Joined: 04 Dec 2004 Posts: 169
|
Posted: Thu Feb 10, 2005 2:43 pm Post subject: |
|
|
Does anyone have some up-to-date performance data comparing the newest GCC with the newest ICC?
Thanks,
Jack |
|
Back to top |
|
|
thebigslide l33t
Joined: 23 Dec 2004 Posts: 792 Location: under a car or on top of a keyboard
|
Posted: Thu Feb 10, 2005 8:49 pm Post subject: |
|
|
By newest GCC, do you mean 4.0a? |
|
Back to top |
|
|
Optimus' Apprentice
Joined: 01 Jul 2004 Posts: 209
|
Posted: Thu Feb 10, 2005 9:10 pm Post subject: |
|
|
Well, I thought I'de try the icc USE flag and the bootstrap is complaining:
"Checking for C compiler default output file name... configure: error: C compiler cannot create executables"
ERROR: sys-devel/gettext-0.14.1 failed
So... I guess it doesn't work... |
|
Back to top |
|
|
thebigslide l33t
Joined: 23 Dec 2004 Posts: 792 Location: under a car or on top of a keyboard
|
Posted: Thu Feb 10, 2005 9:17 pm Post subject: |
|
|
Unless.....
man icc and see if CFLAGS and CXXFLAGS are supposed to be the same. |
|
Back to top |
|
|
dan_aka_jack Apprentice
Joined: 04 Dec 2004 Posts: 169
|
Posted: Fri Feb 11, 2005 11:36 am Post subject: |
|
|
Um... let's stick with the latest stable versions of the compilers for our comparisons... is that sensible? |
|
Back to top |
|
|
thebigslide l33t
Joined: 23 Dec 2004 Posts: 792 Location: under a car or on top of a keyboard
|
Posted: Fri Feb 11, 2005 3:35 pm Post subject: |
|
|
<sarcasm>what's the latest stable version of gcc</sarcasm> |
|
Back to top |
|
|
lnxduk n00b
Joined: 18 Apr 2004 Posts: 12
|
Posted: Sun Feb 13, 2005 5:40 am Post subject: icc |
|
|
I'm doing a stage2 install of gentoo with icc
I have problems with many of the packages.
I edited the source code ... and manually merged it, do you think we can form a team to patch stuff for icc? I'm not any kind of gentoo dev, who do I talk to?
it does work for the majority of the stuff, I'll keep you posted for when I get to the kernel |
|
Back to top |
|
|
gmarcus n00b
Joined: 01 Oct 2004 Posts: 5 Location: Mannheim, Germany
|
Posted: Mon Feb 21, 2005 12:42 pm Post subject: Bootstrapping with icc |
|
|
Hi all,
I tryed this weekend to compile the full system with icc 8.1... I started from an initial bootstrap and after a lot of effort I was able to get to stage3, but the result is highly unstable. I will post all the steps soon, so others can try also. Basically, I tryed to use it for everything, going "back" to gcc 3.4.3 when it fails. I can say in advance that the process involves switching from one compiler to another, hacking ebuilds to remove forced gcc commands, and things like that.
Best Regards,
GM |
|
Back to top |
|
|
thebigslide l33t
Joined: 23 Dec 2004 Posts: 792 Location: under a car or on top of a keyboard
|
Posted: Tue Feb 22, 2005 12:57 pm Post subject: |
|
|
This is cool. I have an AMD system, but I'm drooling for all your Intel boys. |
|
Back to top |
|
|
wishkah Guru
Joined: 09 May 2003 Posts: 441 Location: de
|
Posted: Sun Mar 13, 2005 8:15 am Post subject: |
|
|
It is possible and has been done to compile the linux 2.6.6 kernel with ICC. Somewhere in the depth of the net, there are patches for this, and there also is a wrapper (kicc) that translates gcc parameters to icc parameters. I've played around with it for a few hours, but it didn't work for me... has anyone had success? _________________ if only I could fill my heart with love... |
|
Back to top |
|
|
Deathwing00 Bodhisattva
Joined: 13 Jun 2003 Posts: 4087 Location: Dresden, Germany
|
Posted: Sun Mar 13, 2005 11:48 pm Post subject: |
|
|
Due to the fact that this is not for Installation only, but as a system-wide change: Moved from Installing Gentoo. |
|
Back to top |
|
|
zend Tux's lil' helper
Joined: 10 Apr 2002 Posts: 112 Location: Shanghai,China
|
Posted: Wed Mar 30, 2005 1:35 am Post subject: |
|
|
what I want to know is "how" |
|
Back to top |
|
|
ycUygB1 Apprentice
Joined: 27 Jul 2005 Posts: 276 Location: Portland, Oregon
|
Posted: Tue Aug 02, 2005 8:05 pm Post subject: Before I try this.... |
|
|
I've used ICC 9.0 a bit, and it definitely is a lot faster than GCC. But before I set my use flags to include icc
and emerge --newuse, I'd like to hear some recent commnts from people who have done this, or tried this, or
whatever. |
|
Back to top |
|
|
Patr|ck_ n00b
Joined: 09 Apr 2005 Posts: 69
|
Posted: Mon Aug 08, 2005 9:08 pm Post subject: |
|
|
I am currently trying out the latest version of ICC (9.0) and I'm impressed. I've been able to compile a few things, but not all. ICC is a sweet little compiler. I tested versions of the knights tour problem (coded in C) and the ICC version finished about a second faster. It stinks there isn't wider support for ICC, but hopefully there will be soon. Anyone know when ICC started? Gvie it some time.
EDIT: I'm currently trying to compile (make && make modules_install) the 2.6.12-gentoo-r7 kernel, but get this:
Code: | include/asm-generic/pgtable.h: Assembler messages:
include/asm-generic/pgtable.h:114: Error: no such instruction: `static inline void ptep_mkdirty(pte_t *ptep)'
include/asm-generic/pgtable.h:115: Error: junk at end of line, first unrecognized character is `{'
include/asm-generic/pgtable.h:116: Error: invalid character '_' in mnemonic
include/asm-generic/pgtable.h:117: Error: invalid character '_' in mnemonic
include/asm-generic/pgtable.h:118: Error: junk at end of line, first unrecognized character is `}'
make[1]: *** [arch/i386/kernel/head.o] Error 1
make: *** [arch/i386/kernel] Error 2
|
What does this mean? It happens when I use GCC or ICC. |
|
Back to top |
|
|
ycUygB1 Apprentice
Joined: 27 Jul 2005 Posts: 276 Location: Portland, Oregon
|
Posted: Mon Aug 08, 2005 9:19 pm Post subject: Keep me up to date. |
|
|
So, if you set your use flags to include icc,
does emerge compile the packages that work automatically?
What other environment variables do you have to set?
Do you have to source the Intel scripts in /opt/intel/cc/9.0/bin/iccvars.sh?
What's the setup?
Also, the fora at intel.com are very good. The Intel employees usually get back to you
very quickly. The compiler itself is a star. Just be sure to include -ipo in your options.
That's a key. You can outperform GCC by 100% if you do that. My CFLAGS are set
to -xP -ipo -fp-model fast -03
I've played arount a lot with other options, like -ssp or -parallel, but without much improvement.
The key is -ipo.
And Intel is working hard on compiling the kernel. But the kernel includes a lot of non-ANSI gcc extensions,
and that's a problem.
Also, check out IPP and VTune (after August 23)
Keep posting your progress.
Harold |
|
Back to top |
|
|
Patr|ck_ n00b
Joined: 09 Apr 2005 Posts: 69
|
Posted: Tue Aug 09, 2005 6:56 pm Post subject: |
|
|
Wow! I just successfully compiled gentoo-sources-2.6.12-r7 with ICC 9.0! This is great! I will boot from it and tell you all how it goes. Wish me luck. |
|
Back to top |
|
|
ycUygB1 Apprentice
Joined: 27 Jul 2005 Posts: 276 Location: Portland, Oregon
|
Posted: Tue Aug 09, 2005 7:01 pm Post subject: Wow |
|
|
How much patching did you have to do?
Please run Con Kolivas' Interbench on it, if possible.
Harold |
|
Back to top |
|
|
Patr|ck_ n00b
Joined: 09 Apr 2005 Posts: 69
|
Posted: Tue Aug 09, 2005 7:12 pm Post subject: |
|
|
Amazingly, no patches... at ALL. None, nadda. I'm using ICC 9.0 (latest version). Where can I get this bench? Link, please. I would like to run it. |
|
Back to top |
|
|
ycUygB1 Apprentice
Joined: 27 Jul 2005 Posts: 276 Location: Portland, Oregon
|
|
Back to top |
|
|
|