- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
This is with regards to using some modules of python which were compiled with icc but python itself was compiled with gcc 4.8.2. When I tried to import this module into python I get this linking error below. Do I need to rebuild python with icc if I have python modules built with icc ?
Regards,
Ashwin.
Python 2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pygrib.pyx", line 212, in init pygrib (pygrib.c:29700)
ctypedef extern class numpy.ndarray [object PyArrayObject]:
File "/usr/local/lib/python2.7/
from . import add_newdocs
File "/usr/local/lib/python2.7/
from numpy.lib import add_newdoc
File "/usr/local/lib/python2.7/
from .type_check import *
File "/usr/local/lib/python2.7/
import numpy.core.numeric as _nx
File "/usr/local/lib/python2.7/
from . import multiarray
ImportError: /usr/local/lib/python2.7/dist-
>>>
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Ashwin,
__intel_sse2_strrchr is defined in libirc.so. Please check if multiarray.so has a dependency on libirc.so with the following command.
$ ldd /usr/local/lib/python2.7/dist-packages/numpy/core/multiarray.so
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When I run that command ldd I get this output. Please help me to interpret what that means.
linux-vdso.so.1 => (0x00007fff331fe000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fc5a9186000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fc5a8dbf000)
/lib64/ld-linux-x86-64.so.2 (0x00007fc5a9821000)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When I recompiled python with icc the original problem went away.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We are happy to learn that it is resolved.
Om

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page