Opened 12 years ago

Closed 10 years ago

#10437 closed defect (worksforme)

f2py and sage : impossible to create a .so lib ?

Reported by: Christyves Owned by: jason, jkantor
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: numerical Keywords: f2py compilation lib
Cc: Merged in:
Authors: Reviewers: Jeroen Demeyer
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

GitHub link to the corresponding issue


I'm trying to install a module which uses fortran code. The installation of that module perfectly works with python install

But the fortran compilation with sage fails : sage install with the error :

undefined reference to `MAIN'

In fact, a "" 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 :

PS : I succeed to install mrcwa in sage by first compiling the fortran with the python line which creates the file. And then, the compilation of the program with sage sees this and copies it in the sage tree.

Attachments (1)

compilation_msg (10.0 KB) - added by Christyves 12 years ago.

Download all attachments as: .zip

Change History (2)

Changed 12 years ago by Christyves

Attachment: compilation_msg added

comment:1 Changed 10 years ago by jdemeyer

Milestone: sage-5.3sage-duplicate/invalid/wontfix
Resolution: worksforme
Reviewers: Jeroen Demeyer
Status: newclosed

I think this problem has been solved, but since the error report is very unclear I cannot tell for sure, so I'm going to close this anyway.

Note: See TracTickets for help on using tickets.