#10437: f2py and sage : impossible to create a .so lib ?
--------------------------+-------------------------------------------------
Reporter: Christyves | Owner: jason, jkantor
Type: defect | Status: new
Priority: major | Milestone: sage-4.6.1
Component: numerical | Keywords: f2py compilation lib
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
--------------------------+-------------------------------------------------
I'm trying to install a module which uses fortran code. The installation
of that module perfectly works with
python setup.py install
But the fortran compilation with sage fails :
sage setup.py install
with the error :
undefined reference to `MAIN__'
In fact, a "mrcwaf.so" file should be created, which is a lib file
containing the Fortran code, but with the sage line code the compilation
runs as if it wasn't a lib and searches for a MAIN.
I think the gcc compilation line made by sage hasn't the correct options.
I attach the messages from the classic python compiling and the sage
compilations errors.
I'm using python2.6, sage 4.5.2, gcc 4.4.4, f2py 2 and numpy 1.3.0 with
fedora 12
Here is the program I want to install :
http://sourceforge.net/projects/mrcwa/
PS : I succeed to install mrcwa in sage by first compiling the fortran
with the python line which creates the mrcwaf.so file. And then, the
compilation of the program with sage sees this mrcwaf.so and copies it in
the sage tree.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10437>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.