- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
But I canot use it : whenever I try to compile a file I get the following error :
$ icpc foo.cpp
icpc: error #10001: could not find directory in which g++ resides
I can't see where the problem comes from as g++ lies in my PATH.
thanks,
Mat
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
g++ -v -print-search-dirs
and
g++ -m32 -v -print-search-dirs
should work, and give versions in the supported range. Ubuntu probably still presents special obstacles different from the usual distros, so you may want to refer to notes posted by those who have done it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Utilisation des specs internes.
installs: /usr/lib/gcc/x86_64-linux-gnu/4.1.2/
programmes: =/usr/lib/gcc/x86_64-linux-gnu/4.1.2/:/usr/lib/gcc/x86_64-linux-gnu/4.1.2/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.1.2/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/libexec/gcc/x86_64-linux-gnu/4.1.2/:/usr/libexec/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.1.2/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../x86_64-linux-gnu/bin/x86_64-linux-gnu/4.1.2/:/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../x86_64-linux-gnu/bin/
libraries: =/usr/lib/gcc/x86_64-linux-gnu/4.1.2/:/usr/lib/gcc/x86_64-linux-gnu/4.1.2/:/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../x86_64-linux-gnu/lib/x86_64-linux-gnu/4.1.2/:/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../x86_64-linux-gnu/lib/:/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../x86_64-linux-gnu/4.1.2/:/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../../:/lib/x86_64-linux-gnu/4.1.2/:/lib/:/usr/lib/x86_64-linux-gnu/4.1.2/:/usr/lib/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Sorry this isn't working for you yet. On my Ubuntu 7.04 system this worked without problems, and I have g++ configured the same as yours. You can try specifying the location ofg++ like this:
/opt/intel/cc/10.0.023/bin/icpc hi.cpp -cxxlib=/usr/
I'm not sure if this will work for you or not. I wonder if this is somehow a localization problem ? I have LANG set as follows:
export LANG=en_US.UTF-8
Hope this helps, please let us know if either of these work for you so we can investigate how to avoid this problem in the future. By the way, the 1st line of the FAQ points out that the 10.0 compiler patches the scripts for Ubuntu 6.04 & 7.10.
_|ohnO
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The locale problem seems interesting. I'm using LANG=fr_FR.UTF-8, I tried in a completely new session with local set to en_US.UTF-8 and I got this error :
Catastrophic error: could not set locale "" to allow processing of multibyte characters
compilation aborted for foo.cpp (code 4)
while using a pure ascii foo.cpp file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Sorry this didn't help. I'm testing on a 32-bit machine, so can't test the 64-bit compilers. I had the same problem you did when I set LANG=fr_FR.UTF-8.
I found suggestions to workaround this problem at several websites, but I haven't been able to test these yet.
Michael Suess Thinking Parallel site, at http://www.thinkingparallel.com/2006/12/23/installing-the-intel-compiler-on-ubuntu-linux/, discusses this problem:
"First of all, sometimes the compiler complains about missing g++ library versions (or something like that). With the current version of the compiler (9.1.044), this does not happen here anymore, but if it happens to you, try adding a LC_ALL=C in front of your compiler-command, e.g. to compile a simple hello-world program, do this:
"Catastrophic error: could not set locale "" to allow
processing of multibyte characters.
Setting the environment variable LANG=C seemed to fix this."
Let us know if these workarounds help you, and we will continue to investigate this problem.
_|ohnO
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
setting LC_ALL=C in front of the compiler call worked fine.
mathias
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
so it may be more ubuntu than c++ or 64 bits related problem
etienne
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page