problem dlopening libgomp

Iordan Hristov
Thu Sep 14 23:56:00 GMT 2006


I need to use OpenMP from inside Weave/Python. This works fine on my  
mac with the precompiled gcc 4 from
However when I try to run that under Fedora with the latest gcc from  
SVN I get the following message:

[pyweave@sa-hub1 Tests]$ export CFLAGS='-fopenmp'
[pyweave@sa-hub1 Tests]$ python
<weave: compiling>
Traceback (most recent call last):
   File "", line 27, in <module>
= 'gcc')
   File "/usr/local/lib/python2.6/site-packages/weave/", line 339, in inline
   File "/usr/local/lib/python2.6/site-packages/weave/", line 453, in compile_function
     exec 'import ' + module_name
   File "<string>", line 1, in <module>
ImportError: shared object cannot be dlopen()ed

I found one post about a similar problem:

where they suggest removing the XLDFLAGS="${XLDFLAGS} -Wl,- 
z,nodlopen"  from libgomp/configure.tgt but this didn't solve my  

Any suggestions will be greatly appreciated.

Iordan Hristov
University of Calgary

More information about the Gcc-help mailing list