[Numpy-discussion] f2py - undefined symbol: _intel_fast_memset [SEC=UNCLASSIFIED]
Tue Aug 16 21:16:41 CDT 2011
Thank you for your reply. It turned out that I was using Intel C/C++ compiler (icc) as my environment was set up for that compiler. I changed my compile environment to gcc and f2py worked.
BTW for the '--fcompiler' switch both 'gnu95' and 'gfortran' seem to work fine.
Many thanks for your prompt reply.
> -----Original Message-----
> From: email@example.com
> [mailto:firstname.lastname@example.org] On Behalf Of
> Pearu Peterson
> Sent: Tuesday, 16 August 2011 21:45
> To: Discussion of Numerical Python
> Subject: Re: [Numpy-discussion] f2py - undefined symbol:
> _intel_fast_memset [SEC=UNCLASSIFIED]
> On 08/16/2011 02:32 PM, Jin Lee wrote:
> > Hello,
> > This is my very first attempt at using f2py but I have come
> across a problem. If anyone can assist me I would appreciate
> it very much.
> > I have a very simple test Fortran source, sub.f90 which is:
> > subroutine sub1(x,y)
> > implicit none
> > integer, intent(in) :: x
> > integer, intent(out) :: y
> > ! start
> > y = x
> > end subroutine sub1
> > I then used f2py to produce an object file, sub.so:
> > f2py -c -m sub sub.f90 --fcompiler='gfortran'
> > After starting a Python interactive session I tried to
> import the Fortran-derived Python module but I get an error message:
> >>>> import sub
> > Traceback (most recent call last):
> > File "<stdin>", line 1, in<module>
> > ImportError: ./sub.so: undefined symbol: _intel_fast_memset
> > Can anyone suggest what this error message means and how I
> can overcome it, please?
> f2py -c -m sub sub.f90 --fcompiler=gnu95
> NumPy-Discussion mailing list
More information about the NumPy-Discussion