<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi everybody<br>
<br>
I've succesfully built Numpy-1.0b4 on HP-UX 11.11 with<br>
all tests passed succesfully (gcc 4.1.1) on Python 2.4.2<br>
<br>
I try to import 2 basic Fortran modules compiled with numpy/f2py<br>
(fcompiler = gfortran (gcc 4.1.1))<br>
<br>
The modules hello1 and hello2 are almost identical:<br>
<br>
C File hello1.f<br>
subroutine foo1 (a)<br>
integer a<br>
print*, "Hello from Fortran(foo1)!"<br>
print*, "a=",a<br>
end<br>
<br>
C File hello2.f<br>
subroutine foo2 (a)<br>
integer a<br>
print*, "Hello from Fortran(foo2)!"<br>
print*, "a=",a<br>
end<br>
<br>
Then run: python -c 'import hello1; import hello2' which<br>
ends with a beautifull segfault !<br>
I also tried the old f2py version (based on Numeric) and everything <br>
goes well<br>
Note that the importation of only ONE f2py module is OK.<br>
<br>
Investigating a little bit further, I deleted the call to import_array()<br>
in "hello1module.c" and "hello2module.c" and the segfault dissapear ...<br>
It turns out that something goes wrong this the importation of
"numpy.core.multiarray"<br>
on my system.<br>
The same thing happends if I import multiarray by hand in the Python
session:<br>
>>> import numpy.core.multiarray<br>
>>> import hello1 (with import_array() deleted)<br>
>>> import hello2 (with import_array() deleted)<br>
---> segfault<br>
<br>
Unfortunately thats prevents me from using Scipy because modules based
on Fortran<br>
and compiled with numpy/f2py during the building phase also segfault.<br>
<br>
If anyone has some help, I will greatly appreciate<br>
Thanks<br>
Christophe<br>
<br>
<div class="moz-signature">-- <br>
<meta content="text/html;" http-equiv="Content-Type">
<title></title>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<br>
</div>
</body>
</html>
|