Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Support for HOWTO: Intel C++ Compiler/per-package CFLAGS
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Iesos
n00b
n00b


Joined: 12 Jan 2007
Posts: 56

PostPosted: Fri Feb 27, 2009 1:07 pm    Post subject: Support for HOWTO: Intel C++ Compiler/per-package CFLAGS Reply with quote

[Split from [HOWTO] Intel C++ Compiler and per-package CFLAGS in the Documentation, Tips & Tricks forum. Post support questions about that HOWTO here. Thanks. --timeBandit]

I tried the google cached link that someone posted, which gave me nothing, But I found http://www.gentoo-wiki.info/HOWTO_ICC_and_Portage (notice the .info instead of .com) which looks promising. I'm trying it now too if it works (I do not know if this is the same as the old one).

I also have a question for all of you. Do anyone know of a list or database of which packages are ok with icc? The howto provides a few, is there more? Or should someone (or perhaps even I) start a thread and update the first post for every package that someone has compiled suceccfully (together with version of the package, icc and (icc)cflags). Is it at all a good idea?
Back to top
View user's profile Send private message
tranquilcool
Veteran
Veteran


Joined: 25 Mar 2005
Posts: 1179

PostPosted: Fri Feb 27, 2009 5:38 pm    Post subject: Reply with quote

Iesos wrote:
I tried the google cached link that someone posted, which gave me nothing, But I found http://www.gentoo-wiki.info/HOWTO_ICC_and_Portage (notice the .info instead of .com) which looks promising. I'm trying it now too if it works (I do not know if this is the same as the old one).

I also have a question for all of you. Do anyone know of a list or database of which packages are ok with icc? The howto provides a few, is there more? Or should someone (or perhaps even I) start a thread and update the first post for every package that someone has compiled suceccfully (together with version of the package, icc and (icc)cflags). Is it at all a good idea?


the link is ok apart from the cflags if you are using icc-11.x.x.x.
just do man icc to see the new and the deprecated flags.

as a matter of fact icc has sandbox problems. you can only install if
you use FEATURES="-sandbox" i think it's a bug but so far it hasn't been solved.

for me it's kind of risky to install packages with icc because these packages
wont work(will fuck up your system) if you ever happen to uninstall icc.
i know because it happend to me and it took me a whole day to fix my system and it was
damn hard work.
dunno if it's worth it for now.
_________________
this is a strange strange world.
Back to top
View user's profile Send private message
Iesos
n00b
n00b


Joined: 12 Jan 2007
Posts: 56

PostPosted: Fri Feb 27, 2009 6:06 pm    Post subject: Reply with quote

tranquilcool wrote:


for me it's kind of risky to install packages with icc because these packages
wont work(will fuck up your system) if you ever happen to uninstall icc.
i know because it happend to me and it took me a whole day to fix my system and it was
damn hard work.
dunno if it's worth it for now.


Yeah, sure, it's not recommended to use icc at all. But we could ease the use of icc for those who dare to use it, by supplying info about which packages that are at all buildable.

And when it comes to rescuing ones system if one uninstalls icc, isn't it just to boot with a live, remove the bashrc-script, chroot, and reemerge the packages.icc entries? Where does it fail? Or as the howto hints, one can save the libs of icc in /lib and you might avoid it. Haven't tried it though.
Back to top
View user's profile Send private message
mattst88
Developer
Developer


Joined: 28 Oct 2004
Posts: 422

PostPosted: Fri Feb 27, 2009 6:35 pm    Post subject: Reply with quote

Iesos wrote:
And when it comes to rescuing ones system if one uninstalls icc, isn't it just to boot with a live, remove the bashrc-script, chroot, and reemerge the packages.icc entries? Where does it fail? Or as the howto hints, one can save the libs of icc in /lib and you might avoid it. Haven't tried it though.


Yes, this is the case.
_________________
My Wiki page
Back to top
View user's profile Send private message
tranquilcool
Veteran
Veteran


Joined: 25 Mar 2005
Posts: 1179

PostPosted: Fri Feb 27, 2009 6:48 pm    Post subject: Reply with quote

Iesos wrote:
tranquilcool wrote:


for me it's kind of risky to install packages with icc because these packages
wont work(will fuck up your system) if you ever happen to uninstall icc.
i know because it happend to me and it took me a whole day to fix my system and it was
damn hard work.
dunno if it's worth it for now.


Yeah, sure, it's not recommended to use icc at all. But we could ease the use of icc for those who dare to use it, by supplying info about which packages that are at all buildable.

And when it comes to rescuing ones system if one uninstalls icc, isn't it just to boot with a live, remove the bashrc-script, chroot, and reemerge the packages.icc entries? Where does it fail? Or as the howto hints, one can save the libs of icc in /lib and you might avoid it. Haven't tried it though.


as for packages that install with icc, i used to try each package, modify the flags etc.

if you uninstall icc all the packages installed with icc will complain about libimf.so and libiomp5.so
not found. it's not enough to, for example , install gzip with icc then remove it from package.icc and reinstall with gcc. it
will still complain about those two files missing. you can use a live cd chroot but it'll never reinstall without those libs.
so to avoid that you have to first uninstall it completely, totally then reinstall with gcc.

or let's say you installed links with icc, in the chroot env. you wont be able to have a text browser to download and compile
bzip yourself nor get a bzip..rpm to solve these problems. see what i mean?
above all never compile mpfr with icc this sure is big fat problem unless you chroot, download move it to the chroot env. and install it youself.
could be a problem if it fails to install.

maybe saving the icc libs is the ultimate solution.

i don't say people shouldn't use icc. if that's what you understood, am sorry.
just expressed my opinion then anybody can do whatever he wants.
_________________
this is a strange strange world.


Last edited by tranquilcool on Fri Feb 27, 2009 10:47 pm; edited 1 time in total
Back to top
View user's profile Send private message
Thaidog
Veteran
Veteran


Joined: 19 May 2004
Posts: 1053

PostPosted: Fri Feb 27, 2009 9:40 pm    Post subject: Reply with quote

Iesos wrote:
I tried the google cached link that someone posted, which gave me nothing, But I found http://www.gentoo-wiki.info/HOWTO_ICC_and_Portage (notice the .info instead of .com) which looks promising. I'm trying it now too if it works (I do not know if this is the same as the old one).

I also have a question for all of you. Do anyone know of a list or database of which packages are ok with icc? The howto provides a few, is there more? Or should someone (or perhaps even I) start a thread and update the first post for every package that someone has compiled suceccfully (together with version of the package, icc and (icc)cflags). Is it at all a good idea?


We snagged this cached copy before is was erased:

http://www.linuxdna.com/iccgentoo.html

These packages work good:

dev-lang/python
dev-db/sqlite
dev-libs/libxml2
app-arch/tar
app-arch/bzip2
app-arch/gzip
app-arch/unzip
app-arch/cpio
sys-power/powertop
media-libs/x264-svn
media-sound/lame
media-libs/faac
media-libs/giflib
media-libs/speex
media-libs/libtheora
media-libs/xvid
media-libs/libogg
media-libs/libvorbis
dev-libs/lzo
net-irc/xchat
media-libs/freetype
dev-libs/glib
x11-libs/gtk+
media-libs/libpng
dev-libs/libgpg-error
media-gfx/gimp
_________________
Registered Linux User: 437619
"I'm a big believer in technology over politics" - Linus Torvalds
Back to top
View user's profile Send private message
Thaidog
Veteran
Veteran


Joined: 19 May 2004
Posts: 1053

PostPosted: Fri Feb 27, 2009 9:58 pm    Post subject: Reply with quote

tranquilcool wrote:
Thaidog wrote:
rufnut wrote:
Thaidog wrote:
If anyone wants to compile their kernel with ICC please check out my project:


Thanks :D

I thought you had given up for a while.

This ought to be interesting and may eventually be a good little kick for all those Atom based machines out there.

8)


Down but never out 8)


i have tried to compile the kernel in many ways but it fails
with the pid.o errors.


Not sure what is causing your errors but maybe you would like to try our virtual machine:

http://www.linuxdna.com/icc_dev_vm_closed.tar.lzma

root password: password

[Mod edit: Added a link to the original post in the HOWTO thread. --timeBandit]
_________________
Registered Linux User: 437619
"I'm a big believer in technology over politics" - Linus Torvalds
Back to top
View user's profile Send private message
tranquilcool
Veteran
Veteran


Joined: 25 Mar 2005
Posts: 1179

PostPosted: Fri Feb 27, 2009 10:46 pm    Post subject: Reply with quote

Thaidog wrote:
Iesos wrote:
I tried the google cached link that someone posted, which gave me nothing, But I found http://www.gentoo-wiki.info/HOWTO_ICC_and_Portage (notice the .info instead of .com) which looks promising. I'm trying it now too if it works (I do not know if this is the same as the old one).

I also have a question for all of you. Do anyone know of a list or database of which packages are ok with icc? The howto provides a few, is there more? Or should someone (or perhaps even I) start a thread and update the first post for every package that someone has compiled suceccfully (together with version of the package, icc and (icc)cflags). Is it at all a good idea?


We snagged this cached copy before is was erased:

http://www.linuxdna.com/iccgentoo.html

These packages work good:

dev-lang/python
dev-db/sqlite
dev-libs/libxml2
app-arch/tar
app-arch/bzip2
app-arch/gzip
app-arch/unzip
app-arch/cpio
sys-power/powertop
media-libs/x264-svn
media-sound/lame
media-libs/faac
media-libs/giflib
media-libs/speex
media-libs/libtheora
media-libs/xvid
media-libs/libogg
media-libs/libvorbis
dev-libs/lzo
net-irc/xchat
media-libs/freetype
dev-libs/glib
x11-libs/gtk+
media-libs/libpng
dev-libs/libgpg-error
media-gfx/gimp


from my personal experience dependencies on most of those media packages will
fail if you happen to need to compile them(the dependencies) with gcc.
_________________
this is a strange strange world.
Back to top
View user's profile Send private message
Thaidog
Veteran
Veteran


Joined: 19 May 2004
Posts: 1053

PostPosted: Fri Feb 27, 2009 11:08 pm    Post subject: Reply with quote

tranquilcool wrote:
Thaidog wrote:
Iesos wrote:
I tried the google cached link that someone posted, which gave me nothing, But I found http://www.gentoo-wiki.info/HOWTO_ICC_and_Portage (notice the .info instead of .com) which looks promising. I'm trying it now too if it works (I do not know if this is the same as the old one).

I also have a question for all of you. Do anyone know of a list or database of which packages are ok with icc? The howto provides a few, is there more? Or should someone (or perhaps even I) start a thread and update the first post for every package that someone has compiled suceccfully (together with version of the package, icc and (icc)cflags). Is it at all a good idea?


We snagged this cached copy before is was erased:

http://www.linuxdna.com/iccgentoo.html

These packages work good:

dev-lang/python
dev-db/sqlite
dev-libs/libxml2
app-arch/tar
app-arch/bzip2
app-arch/gzip
app-arch/unzip
app-arch/cpio
sys-power/powertop
media-libs/x264-svn
media-sound/lame
media-libs/faac
media-libs/giflib
media-libs/speex
media-libs/libtheora
media-libs/xvid
media-libs/libogg
media-libs/libvorbis
dev-libs/lzo
net-irc/xchat
media-libs/freetype
dev-libs/glib
x11-libs/gtk+
media-libs/libpng
dev-libs/libgpg-error
media-gfx/gimp


from my personal experience dependencies on most of those media packages will
fail if you happen to need to compile them(the dependencies) with gcc.


What flags were you using? If you try to over optimize they will indeed fail.
_________________
Registered Linux User: 437619
"I'm a big believer in technology over politics" - Linus Torvalds
Back to top
View user's profile Send private message
tranquilcool
Veteran
Veteran


Joined: 25 Mar 2005
Posts: 1179

PostPosted: Sat Feb 28, 2009 12:18 am    Post subject: Reply with quote

@Thaidog

over optimize? maybe. but i want to get the best out of it otherwise it's
gcc everyday.

ICCCFLAGS="-O3 -xSSE2 -ip -parallel -gcc" somtimes -ipo.
ICCCXXFLAGS="-fstack-security-check -fstack-protector -fvisibility=hidden -fvisibility-inlines-hidden"

of course the sandbox problem is still there.
anyway let me say icc is there to give a
try and am always living on the edge.
_________________
this is a strange strange world.
Back to top
View user's profile Send private message
Thaidog
Veteran
Veteran


Joined: 19 May 2004
Posts: 1053

PostPosted: Sat Feb 28, 2009 3:51 am    Post subject: Reply with quote

tranquilcool wrote:
@Thaidog

over optimize? maybe. but i want to get the best out of it otherwise it's
gcc everyday.

ICCCFLAGS="-O3 -xSSE2 -ip -parallel -gcc" somtimes -ipo.
ICCCXXFLAGS="-fstack-security-check -fstack-protector -fvisibility=hidden -fvisibility-inlines-hidden"

of course the sandbox problem is still there.
anyway let me say icc is there to give a
try and am always living on the edge.


You might want to try to remove -ip and -parallel - but it depends on the package really.
_________________
Registered Linux User: 437619
"I'm a big believer in technology over politics" - Linus Torvalds
Back to top
View user's profile Send private message
jowr
n00b
n00b


Joined: 27 Dec 2008
Posts: 52

PostPosted: Wed Mar 04, 2009 8:43 am    Post subject: Reply with quote

Has anyone managed to make mplayer compile with icc yet?

I'm using icc with things that run all the time [xorg and such] as well as anything math-intensive [bzip2, tar, xvid, etc]. But mplayer fails to compile for un-obvious reasons, and Google isn't suggestive of a solution...
Back to top
View user's profile Send private message
Iesos
n00b
n00b


Joined: 12 Jan 2007
Posts: 56

PostPosted: Fri Mar 06, 2009 9:40 am    Post subject: Reply with quote

jowr wrote:
Has anyone managed to make mplayer compile with icc yet?


I have successfully compiled mplayer (1.0_rc2_p28450) with icc (10.1.018) toghether with the following c(xx)-flags: ICCCFLAGS="-O2 -xT -gcc" ICCCXXFLAGS="${ICCCFLAGS}". Will try to increase the optimization if thats why yours is failing and see what happens.
Back to top
View user's profile Send private message
Iesos
n00b
n00b


Joined: 12 Jan 2007
Posts: 56

PostPosted: Fri Mar 06, 2009 10:02 am    Post subject: Reply with quote

hmmm... strike what I said. Somehow when I compile mplayer, icc is used but with what seems as my gcc-cflags (and I have specified special icc-cflags in packages.icc-cflags which I know work on other programs). I know most packages does not do this, so I do not know whats wrong.

After a closer look I seem to have some problems...

Even if I use a "-gcc-version=410" gcc-cflag, icc seems to default to gcc-3.3.6 compatibility. I also tried to change my gcc from 4.3.* to 4.1.* (in gcc-config) but icc still wants 3.3.6. How do I change this?
(this is also somewhat odd, in the mplayer case for example, if it uses my gcc-cflags for mplayer with gcc-3.3.6 it gets a -march=core2 flag, and gcc-3.3.6 doesn't support that. And I guess I'm missing some optimization.)

and my icc seems just to have 410 gcc-compatibility support and I would like 430. Anyone who knows which icc version that has such support, if any. And would an upgrade of icc ruin the all the packages I have compiled with the old icc?
Back to top
View user's profile Send private message
jowr
n00b
n00b


Joined: 27 Dec 2008
Posts: 52

PostPosted: Fri Mar 06, 2009 1:11 pm    Post subject: Reply with quote

Nope, mplayer continues to fail to build even with updated icc.

With media-video/mplayer-20090226.28734 :

Quote:

/usr/X11R6/include/dvdread/dvd_reader.h(199): warning #147: declaration is incompatible with "dvd_file_t *DVDOpenFile(dvd_reader_t *, int, dvd_read_domain_t={enum <unnamed>})" (declared at line 132 of "libdvdread4/dvdread/dvd_reader.h")
dvd_file_t *DVDOpenFile( dvd_reader_t *, int, dvd_read_domain_t );

compilation aborted for libdvdread4/dvd_udf.c (code 2)
make: *** [libdvdread4/dvd_udf.o] Error 2


I'm using the -exact- same icc flags as you with the -exact- same version.

Does it actually compile for you?
Back to top
View user's profile Send private message
Iesos
n00b
n00b


Joined: 12 Jan 2007
Posts: 56

PostPosted: Fri Mar 06, 2009 2:10 pm    Post subject: Reply with quote

Yes, it does compile.

The issue might be that you are using a newer version of mplayer than me. But also, as I said in my post before I'm having some trouble with mplayer and icc since it doesnt react to what icccflags I assign it. I always get:

Code:
icc -MM -D_ISOC99_SOURCE -D_BSD_SOURCE -O2 -march=core2 -mcpu=core2 -pipe -fomit-frame-pointer


but it is obviously using icc, and it does compile.

And to anyone who dare to take on my problems, this might help or may also be a problem:

Code:
 /opt/intel/cce/10.1.018/bin/mcpcom: /usr/lib32/libstdc++.so.5: no version information available (required by /opt/intel/cce/10.1.018/bin/mcpcom)
Back to top
View user's profile Send private message
jowr
n00b
n00b


Joined: 27 Dec 2008
Posts: 52

PostPosted: Sun Mar 08, 2009 9:44 am    Post subject: Reply with quote

I set -dvd in the package.use and mplayer compiled.

The binary grew by 4mb, but seems to play more smoothly so whatever.
Back to top
View user's profile Send private message
jowr
n00b
n00b


Joined: 27 Dec 2008
Posts: 52

PostPosted: Tue Mar 10, 2009 11:16 pm    Post subject: Reply with quote

....and certain videos have corrupted sound and chunky video play, all of which goes away if you move back to gcc. I'll keep mplayer under gcc's rule.
Back to top
View user's profile Send private message
Iesos
n00b
n00b


Joined: 12 Jan 2007
Posts: 56

PostPosted: Wed Mar 11, 2009 10:55 am    Post subject: Reply with quote

If anyone could help me with this I would be grateful.

I have installed icc with the ~amd64 keyword, and it seems to install itself that way also, it prompts something like "unpacking i64em-icc-stuff", But for some reason icc still prefers the 32bit libstdc++ over the 64bit, and complains that it is the wrong one.

Code:

/opt/intel/cce/10.1.018/bin/mcpcom: /usr/lib32/libstdc++.so.5: no version information available (required by /opt/intel/cce/10.1.018/bin/mcpcom)


Doing a revdep-rebuild this problem seems to be detected:
Code:

* Checking dynamic linking consistency
[ 100% ]
*   broken /opt/intel/cce/10.1.018/bin/codecov (no version information available)
*   broken /opt/intel/cce/10.1.018/bin/mcpcom (no version information available)
*   broken /opt/intel/cce/10.1.018/bin/prelink (no version information available)
*   broken /opt/intel/cce/10.1.018/bin/profrun.bin (no version information available)
*   broken /opt/intel/cce/10.1.018/bin/pronto_tool (no version information available)
*   broken /opt/intel/cce/10.1.018/bin/tselect (no version information available)

but not corrected.

Does anyone have any ideas of how to correct this?
Back to top
View user's profile Send private message
Master Shake
l33t
l33t


Joined: 10 Apr 2005
Posts: 755
Location: Wilmington, Delaware

PostPosted: Sat Mar 14, 2009 1:01 am    Post subject: Reply with quote

Alright I'm sorry for this question already, but I've followed the steps on the wiki and I can't seem to get any package to compile with icc, they'll just compile with gcc. I've added packages to /etc/portage/package.icc and set their cflags in the other file. Do I need to modify the bashrc script to be executable then run that? Thanks.

EDIT: OK sorry the script works with bzip2, can't get it to work with wine. Will report my findings in a bit.

EDIT: Sorry guys, fixed the problem. You have to hit enter after the last line or it doesn't read it in correctly. (last line in /etc/portage/package.icc)
_________________
System Specs:
64-bit gentoo linux
Q6600 @ 3.2Ghz
P35 Chipset
4 Gigs 800mhz 4-4-4-12
Nvidia GeForce 8800 GTX @ 630mhz
Back to top
View user's profile Send private message
shgadwa
Guru
Guru


Joined: 12 Mar 2009
Posts: 327

PostPosted: Wed Mar 18, 2009 12:10 pm    Post subject: Reply with quote

I do not get it... is the ICC compiler faster than gcc?? Like, at compiling, using the software, or both???

Then, if I installed it according the the wiki, how can I use it??? I did not find anything on that? Like, I would want to reinstall xorg, xfce, firefox, openoffice, etc, etc... How do I do that without using gcc?

Also, some people say to build a kernel with ICC, is that better?
Back to top
View user's profile Send private message
shgadwa
Guru
Guru


Joined: 12 Mar 2009
Posts: 327

PostPosted: Wed Mar 18, 2009 2:53 pm    Post subject: Reply with quote

Your link you posted was broken... Gentoo has been having SERIOUS wiki problems.

Is this the link that you wanted to post:

http://en.gentoo-wiki.com/wiki/Intel_C%2B%2B_Compiler

???

EDIT: I read this thread and also that wiki page I posted. It answered most of my questions. Except, I just do not know why I would have a ICC compiler if I do not use it... is there any way I can set it to recompile most of my packages with the ICC compiler?
Back to top
View user's profile Send private message
rufnut
Apprentice
Apprentice


Joined: 16 May 2005
Posts: 247

PostPosted: Wed Apr 22, 2009 9:53 am    Post subject: Reply with quote

belikeyeshua wrote:
I do not get it... is the ICC compiler faster than gcc?? Like, at compiling, using the software, or both???

Also, some people say to build a kernel with ICC, is that better?


ICC is better optimized for Intel CPU's , ie faster at using and running programs.
Compile time is not really a concern, seems similar in compile time to me.

If you can build a kernel with ICC that would be impressive , a few have done it.

https://forums.gentoo.org/viewtopic-t-748751-highlight-icc+kernel.html

Although ICC is probably quicker its generally less compatible. I am impressed with the massive amount of work going into GCC 4.3.X , 4.4.X lately.

:)
Back to top
View user's profile Send private message
Thaidog
Veteran
Veteran


Joined: 19 May 2004
Posts: 1053

PostPosted: Thu Apr 23, 2009 12:04 am    Post subject: Reply with quote

rufnut wrote:
belikeyeshua wrote:
I do not get it... is the ICC compiler faster than gcc?? Like, at compiling, using the software, or both???

Also, some people say to build a kernel with ICC, is that better?


ICC is better optimized for Intel CPU's , ie faster at using and running programs.
Compile time is not really a concern, seems similar in compile time to me.

If you can build a kernel with ICC that would be impressive , a few have done it.

https://forums.gentoo.org/viewtopic-t-748751-highlight-icc+kernel.html

Although ICC is probably quicker its generally less compatible. I am impressed with the massive amount of work going into GCC 4.3.X , 4.4.X lately.

:)


My linuxDNA.com project has a kernel source to compile the kernel with icc fyi.
_________________
Registered Linux User: 437619
"I'm a big believer in technology over politics" - Linus Torvalds
Back to top
View user's profile Send private message
squeegee
n00b
n00b


Joined: 04 Nov 2005
Posts: 10

PostPosted: Mon Apr 27, 2009 9:52 pm    Post subject: Reply with quote

I'm surprised mysql isn't in the list, as they recommend and provide icc-compiled binaries.

When I compiled mysql with icc on x86_64, I got a lot of these errors: "no version information available" but there's a workaround/fix for that... https://bugs.gentoo.org/show_bug.cgi?id=259403#c6.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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