Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

libstdc++.so.5 and Fedora 10 issues

ptb
Beginner
840 Views

Hello all,

Although Fedora 10 isn't officially supported both 9 and 10 are based on the gcc4.3 series so I tried to install icpc on my x86_64 machine. I installed libstdc++.so.5 and the install process for icpc went smoothly (aside from the 'using unsupported kernel' and such). However, when I tried to compile a test program it says:

/opt/intel/Compiler/11.0/074/bin/intel64/mcpcom: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
compilation aborted for hello.cpp (code 127)

also:

ldd /opt/intel/Compiler/11.0/074/bin/intel64/mcpcom
linux-vdso.so.1 => (0x00007fff319ff000)
libm.so.6 => /lib64/libm.so.6 (0x00000000052a9000)
libstdc++.so.5 => not found
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000000004a11000)
libc.so.6 => /lib64/libc.so.6 (0x000000000652d000)
libdl.so.2 => /lib64/libdl.so.2 (0x0000000002ce7000)
/lib64/ld-linux-x86-64.so.2 (0x0000000000110000)

however when I also get: locate libstdc++.so.5
/home/peter/various_libs/intel/l_cproc_p_11.0.074_intel64/pset/32/gcc-3.2/libstdc++.so.5
/home/peter/various_libs/intel/l_cproc_p_11.0.074_intel64/pset/32e/gcc-3.2/libstdc++.so.5
/home/peter/various_libs/intel/l_cproc_p_11.0.074_intel64/pset/64/gcc-3.2/libstdc++.so.5
/home/peter/various_libs/intel/l_cprof_p_11.0.074_intel64/pset/32/gcc-3.2/libstdc++.so.5
/home/peter/various_libs/intel/l_cprof_p_11.0.074_intel64/pset/32e/gcc-3.2/libstdc++.so.5
/home/peter/various_libs/intel/l_cprof_p_11.0.074_intel64/pset/64/gcc-3.2/libstdc++.so.5
/usr/lib/libstdc++.so.5
/usr/lib/libstdc++.so.5.0.7

So, libstdc++.so.5 is installed on my system but mcpcom doesn't see it? Any help would be greatly appreciated.

Thanks,

Peter

0 Kudos
1 Solution
TimP
Honored Contributor III
840 Views

icc 11.0 for intel64 would depend on the 64-bit g++ installation. If you can build and run something in g++ which depends on libstdc++, you have the right one. icc should be looking for gnu libraries via

g++ -print-search-dirs

The 32-bit compat-libstdc++ which was required by 64-bit icc 10.1 should no longer be relevant.

View solution in original post

0 Kudos
4 Replies
TimP
Honored Contributor III
841 Views

icc 11.0 for intel64 would depend on the 64-bit g++ installation. If you can build and run something in g++ which depends on libstdc++, you have the right one. icc should be looking for gnu libraries via

g++ -print-search-dirs

The 32-bit compat-libstdc++ which was required by 64-bit icc 10.1 should no longer be relevant.

0 Kudos
ptb
Beginner
840 Views
Quoting - tim18

icc 11.0 for intel64 would depend on the 64-bit g++ installation. If you can build and run something in g++ which depends on libstdc++, you have the right one. icc should be looking for gnu libraries via

g++ -print-search-dirs

The 32-bit compat-libstdc++ which was required by 64-bit icc 10.1 should no longer be relevant.

I see now that I only had the 32 libstdc++.so.5 and not the 64 bit version installed. After taking care of that everything seems to work fine.

0 Kudos
Derek_Woodman
Beginner
840 Views
Quoting - ptb

I see now that I only had the 32 libstdc++.so.5 and not the 64 bit version installed. After taking care of that everything seems to work fine.


How do you install the 64bit version? I am having the same problem....
0 Kudos
KitturGanesh
Employee
840 Views

Hi,
Refer to the following link that has info on this (but the paper needs some updates and is work-in-progress, just FYI)

http://software.intel.com/en-us/articles/using-intelr-compilers-for-linux-under-fedora/

Try "yum install compat-libstdc++-33" and it should install the necessary libstdc++.so.5 but do check the Linux distro for more info as mentioned in the above link....

-Cheers,
Kittur

0 Kudos
Reply