Ticket #8010 (needs_work defect)
f2py broken on some mac systems
| Reported by: | flawrence | Owned by: | tbd |
|---|---|---|---|
| Priority: | major | Milestone: | sage-4.5.3 |
| Component: | packages | Keywords: | |
| Cc: | GeorgSWeber | Author(s): | Felix Lawrence |
| Report Upstream: | N/A | Reviewer(s): | |
| Merged in: | Work issues: |
Description
Any use of f2py, e.g. following the examples at http://www.sagemath.org/doc/numerical_sage/f2py.html lead to a crash:
error: Command "sage_fortran -Wall -shared /var/folders/LQ/LQFRAKFTGCCurtDiHcxv1k++-5I/-Tmp- /tmpisjCMl/var/folders/LQ/LQFRAKFTGCCurtDiHcxv1k++-5I/-Tmp- /tmpisjCMl/src.macosx-10.6-i386-2.6/fortran_module_0module.o /var/folders/LQ/LQFRAKFTGCCurtDiHcxv1k++-5I/-Tmp- /tmpisjCMl/var/folders/LQ/LQFRAKFTGCCurtDiHcxv1k++-5I/-Tmp- /tmpisjCMl/src.macosx-10.6-i386-2.6/fortranobject.o /var/folders/LQ/LQFRAKFTGCCurtDiHcxv1k++-5I/-Tmp- /tmpisjCMl/Users/felix/.sage/temp/<my domain name>/52076/tmp_0.o -L"Using built-in specs. /Applications/sage-4.3.1.rc1/local/bin/../lib/gcc/i686-apple-darwin8/4.2.3/x86_64" -lgfortran -o ./fortran_module_0.so" failed with exit status 1 i686-apple-darwin8-gfortran-4.2: no input files i686-apple-darwin8-gfortran-4.2: no input files i686-apple-darwin8-gfortran-4.2: unrecognized option '-shared' i686-apple-darwin8-gfortran-4.2: no input files i686-apple-darwin8-gfortran-4.2: unrecognized option '-shared' i686-apple-darwin8-gfortran-4.2: no input files i686-apple-darwin8-gfortran-4.2: no input files i686-apple-darwin8-gfortran-4.2: no input files i686-apple-darwin8-gfortran-4.2: unrecognized option '-shared' i686-apple-darwin8-gfortran-4.2: no input files i686-apple-darwin8-gfortran-4.2: unrecognized option '-shared' i686-apple-darwin8-gfortran-4.2: no input files Using built-in specs. Target: i686-apple-darwin8 Configured with: /Builds/unix/gcc/gcc-4.2/configure --prefix=/usr/local --mandir=/share/man --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --build=i686-apple-darwin8 --host=i686-apple-darwin8 --target=i686-apple- darwin8 --enable-languages=fortran Thread model: posix gcc version 4.2.3 <SNIP>
This is using 4.3.1rc1 on 10.6, 64-bit.
The problem is that local/lib/python2.6/site-packages/numpy/distutils/fcompiler/gnu.py adds a "-shared" flag when linking, even though OS X doesn't support it.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

