Hi, For a while now, I've been occasionally battling to get f2py working on my mac, as per http://www.sagemath.org/doc/numerical_sage/f2py.html . I have 10.6, core 2 duo, 4GB RAM, and am running sage 4.3.
For ages, when I tried to execute the first example on that page, it failed with the error message error: Command "gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/var/folders/LQ/LQFRAKFTGCCurtDiHcxv1k++-5I/- Tmp-/tmpRyqoS4/src.macosx-10.3-i386-2.6 -I/Applications/sage/local/lib/ python2.6/site-packages/numpy/core/include -I/Applications/sage/local/ include/python2.6 -c /var/folders/LQ/LQFRAKFTGCCurtDiHcxv1k++-5I/-Tmp-/ tmpRyqoS4/src.macosx-10.3-i386-2.6/fortranobject.c -o /var/folders/LQ/ LQFRAKFTGCCurtDiHcxv1k++-5I/-Tmp-/tmpRyqoS4/var/folders/LQ/ LQFRAKFTGCCurtDiHcxv1k++-5I/-Tmp-/tmpRyqoS4/src.macosx-10.3-i386-2.6/ fortranobject.o" 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 gcc: error trying to exec 'cc1': execvp: No such file or directory gcc: error trying to exec 'cc1': execvp: No such file or directory This morning I realised that sage was getting confused with another version of gcc I had installed in /usr/local/bin, namely the gcc including gfortran from http://hpc.sourceforge.net/ . After removing / usr/local/bin from the front of my path (and thus preferring the standard XCode gcc version 4.2.1 (Apple Inc. build 5646) (dot 1)), it gives me a much longer error message, which I have posted at http://www.physics.usyd.edu.au/~felix/sage/sage_fortran_error.txt Is there a way to get sage to prefer /usr/bin/gcc to /usr/local/bin/ gcc that is easier than temporarily editing my path globally? Does sage's fortran normally work on macs or has it been neglected over the years? Any ideas how I could get it working? Many thanks, Felix
-- 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-support URL: http://www.sagemath.org
