Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
replace gcc with Intel CC?
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
zend
Tux's lil' helper
Tux's lil' helper


Joined: 10 Apr 2002
Posts: 112
Location: Shanghai,China

PostPosted: Fri Jan 03, 2003 5:23 am    Post subject: replace gcc with Intel CC? Reply with quote

can I replace gcc with Intel CC in Gentoo 1.4RC2? and how to do it?
Back to top
View user's profile Send private message
Lovechild
Advocate
Advocate


Joined: 17 May 2002
Posts: 2858
Location: Århus, Denmark

PostPosted: Fri Jan 03, 2003 11:56 am    Post subject: Reply with quote

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
View user's profile Send private message
zen_guerrilla
Guru
Guru


Joined: 18 Apr 2002
Posts: 343
Location: Greece

PostPosted: Fri Jan 03, 2003 2:56 pm    Post subject: Re: replace gcc with Intel CC? Reply with quote

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
View user's profile Send private message
pilla
Administrator
Administrator


Joined: 07 Aug 2002
Posts: 7214
Location: Pelotas, BR

PostPosted: Fri Jan 03, 2003 3:20 pm    Post subject: Re: replace gcc with Intel CC? Reply with quote

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 8)

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
View user's profile Send private message
duff
Guru
Guru


Joined: 19 Jun 2002
Posts: 466
Location: Clemson, SC

PostPosted: Fri Jan 03, 2003 3:27 pm    Post subject: Re: replace gcc with Intel CC? Reply with quote

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
View user's profile Send private message
zen_guerrilla
Guru
Guru


Joined: 18 Apr 2002
Posts: 343
Location: Greece

PostPosted: Fri Jan 03, 2003 4:47 pm    Post subject: Re: replace gcc with Intel CC? Reply with quote

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 :oops:

.:: zen ::.
Back to top
View user's profile Send private message
dan_aka_jack
Apprentice
Apprentice


Joined: 04 Dec 2004
Posts: 169

PostPosted: Thu Feb 10, 2005 2:43 pm    Post subject: Reply with quote

Does anyone have some up-to-date performance data comparing the newest GCC with the newest ICC?

Thanks,
Jack
Back to top
View user's profile Send private message
thebigslide
l33t
l33t


Joined: 23 Dec 2004
Posts: 787
Location: under a car or on top of a keyboard

PostPosted: Thu Feb 10, 2005 8:49 pm    Post subject: Reply with quote

By newest GCC, do you mean 4.0a?
_________________
/etc/portage/package.c{,xx}flags and package.features!
All posts released under the GPL and the Creative Commons license
Back to top
View user's profile Send private message
Optimus'
Apprentice
Apprentice


Joined: 01 Jul 2004
Posts: 209

PostPosted: Thu Feb 10, 2005 9:10 pm    Post subject: Reply with quote

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... :roll:
Back to top
View user's profile Send private message
thebigslide
l33t
l33t


Joined: 23 Dec 2004
Posts: 787
Location: under a car or on top of a keyboard

PostPosted: Thu Feb 10, 2005 9:17 pm    Post subject: Reply with quote

Unless.....

man icc and see if CFLAGS and CXXFLAGS are supposed to be the same.
_________________
/etc/portage/package.c{,xx}flags and package.features!
All posts released under the GPL and the Creative Commons license
Back to top
View user's profile Send private message
dan_aka_jack
Apprentice
Apprentice


Joined: 04 Dec 2004
Posts: 169

PostPosted: Fri Feb 11, 2005 11:36 am    Post subject: Reply with quote

Um... let's stick with the latest stable versions of the compilers for our comparisons... is that sensible?
Back to top
View user's profile Send private message
thebigslide
l33t
l33t


Joined: 23 Dec 2004
Posts: 787
Location: under a car or on top of a keyboard

PostPosted: Fri Feb 11, 2005 3:35 pm    Post subject: Reply with quote

<sarcasm>what's the latest stable version of gcc</sarcasm>
_________________
/etc/portage/package.c{,xx}flags and package.features!
All posts released under the GPL and the Creative Commons license
Back to top
View user's profile Send private message
lnxduk
n00b
n00b


Joined: 18 Apr 2004
Posts: 12

PostPosted: Sun Feb 13, 2005 5:40 am    Post subject: icc Reply with quote

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 :-P
Back to top
View user's profile Send private message
gmarcus
n00b
n00b


Joined: 01 Oct 2004
Posts: 5
Location: Mannheim, Germany

PostPosted: Mon Feb 21, 2005 12:42 pm    Post subject: Bootstrapping with icc Reply with quote

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
View user's profile Send private message
thebigslide
l33t
l33t


Joined: 23 Dec 2004
Posts: 787
Location: under a car or on top of a keyboard

PostPosted: Tue Feb 22, 2005 12:57 pm    Post subject: Reply with quote

This is cool. I have an AMD system, but I'm drooling for all your Intel boys.
_________________
/etc/portage/package.c{,xx}flags and package.features!
All posts released under the GPL and the Creative Commons license
Back to top
View user's profile Send private message
wishkah
Guru
Guru


Joined: 09 May 2003
Posts: 441
Location: de

PostPosted: Sun Mar 13, 2005 8:15 am    Post subject: Reply with quote

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
View user's profile Send private message
Deathwing00
Moderator
Moderator


Joined: 13 Jun 2003
Posts: 4078
Location: Barcelona, Spain

PostPosted: Sun Mar 13, 2005 11:48 pm    Post subject: Reply with quote

Due to the fact that this is not for Installation only, but as a system-wide change: Moved from Installing Gentoo.
Back to top
View user's profile Send private message
zend
Tux's lil' helper
Tux's lil' helper


Joined: 10 Apr 2002
Posts: 112
Location: Shanghai,China

PostPosted: Wed Mar 30, 2005 1:35 am    Post subject: Reply with quote

what I want to know is "how"
Back to top
View user's profile Send private message
hnaparst
Apprentice
Apprentice


Joined: 27 Jul 2005
Posts: 219
Location: Norrköping, Sweden

PostPosted: Tue Aug 02, 2005 8:05 pm    Post subject: Before I try this.... Reply with quote

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.
_________________
Harold Naparst
Back to top
View user's profile Send private message
Patr|ck_
n00b
n00b


Joined: 09 Apr 2005
Posts: 69

PostPosted: Mon Aug 08, 2005 9:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
hnaparst
Apprentice
Apprentice


Joined: 27 Jul 2005
Posts: 219
Location: Norrköping, Sweden

PostPosted: Mon Aug 08, 2005 9:19 pm    Post subject: Keep me up to date. Reply with quote

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
_________________
Harold Naparst
Back to top
View user's profile Send private message
Patr|ck_
n00b
n00b


Joined: 09 Apr 2005
Posts: 69

PostPosted: Tue Aug 09, 2005 6:56 pm    Post subject: Reply with quote

Wow! I just successfully compiled gentoo-sources-2.6.12-r7 with ICC 9.0! This is great! :D I will boot from it and tell you all how it goes. Wish me luck.
Back to top
View user's profile Send private message
hnaparst
Apprentice
Apprentice


Joined: 27 Jul 2005
Posts: 219
Location: Norrköping, Sweden

PostPosted: Tue Aug 09, 2005 7:01 pm    Post subject: Wow Reply with quote

How much patching did you have to do?
Please run Con Kolivas' Interbench on it, if possible.

Harold
_________________
Harold Naparst
Back to top
View user's profile Send private message
Patr|ck_
n00b
n00b


Joined: 09 Apr 2005
Posts: 69

PostPosted: Tue Aug 09, 2005 7:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
hnaparst
Apprentice
Apprentice


Joined: 27 Jul 2005
Posts: 219
Location: Norrköping, Sweden

PostPosted: Tue Aug 09, 2005 7:24 pm    Post subject: Reply with quote

http://members.optusnet.com.au/ckolivas/interbench/
_________________
Harold Naparst
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum