Hello,
I just compiled sage-5.0.beta3 from source on OS X 10.6.7 with:
> export MAKE="make -j8"
> make
After building successfully I run the tests with:
> make ptest
All tests passed.
The problem appeared when I tried the example on inline_fortran, see
traceback down below. Similar error shows up on the notebook for the
%fortran magic...
There is a linking against -L"Using built-in specs. ??
Further, inline_fortran is not being tested?
I'm reading the code... but some of you probably now better/faster how
to patch it.
Regards,
Guilherme
+++++++++++++++++++++++++++++++++++++++++++
guilherme$ ./sage
----------------------------------------------------------------------
| Sage Version 5.0.beta3, Release Date: 2012-02-08 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
**********************************************************************
* *
* Warning: this is a prerelease version, and it may be unstable. *
* *
**********************************************************************
sage:
sage:
sage:
sage: from sage.misc.inline_fortran import InlineFortran, _example
sage: test_fortran = InlineFortran(globals()) # optional -- fortran
sage: test_fortran(_example) # optional -- fortran
error: Command
"/Users/guilherme/sage-5.0.beta3/local/bin/sage-g77_shared -Wall
/var/folders/AX/AXoHUn3AHvCJCKkhpow70++++TI/-Tmp-/tmpj22lR5/var/folders/AX/AXoHUn3AHvCJCKkhpow70++++TI/-Tmp-/tmpj22lR5/src.macosx-10.6-x86_64-2.7/fortran_module_0module.o
/var/folders/AX/AXoHUn3AHvCJCKkhpow70++++TI/-Tmp-/tmpj22lR5/var/folders/AX/AXoHUn3AHvCJCKkhpow70++++TI/-Tmp-/tmpj22lR5/src.macosx-10.6-x86_64-2.7/fortranobject.o
/var/folders/AX/AXoHUn3AHvCJCKkhpow70++++TI/-Tmp-/tmpj22lR5/Users/guilherme/.sage/temp/Guilherme_Brondani_Torris_MacBook_Pro.local/62029/tmp_0.o
-L"Using built-in specs.
/Users/guilherme/sage-5.0.beta3/local/bin/../lib/gcc/i686-apple-darwin8/4.2.3/x86_64"
-lgfortran -o ./fortran_module_0.so" failed with exit status 1
Found executable /Users/guilherme/sage-5.0.beta3/local/bin/sage-g77_shared
Found executable /usr/bin/ar
Found executable /usr/bin/ranlib
Could not locate executable xlf95
gnu: no Fortran 90 compiler found
Found executable /usr/bin/ld
gnu: no Fortran 90 compiler found
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
/Users/guilherme/sage-5.0.beta3/local/bin/../libexec/gcc/i686-apple-darwin8/4.2.3/f951
/Users/guilherme/.sage//temp/Guilherme_Brondani_Torris_MacBook_Pro.local/62029//tmp_0.f
-ffixed-form -fPIC -quiet -dumpbase tmp_0.f -m64 -mtune=generic
-march=nocona -auxbase-strip
/var/folders/AX/AXoHUn3AHvCJCKkhpow70++++TI/-Tmp-/tmpj22lR5/Users/guilherme/.sage/temp/Guilherme_Brondani_Torris_MacBook_Pro.local/62029/tmp_0.o
-O3 -Wall -version -ffixed-form -fno-second-underscore -fPIC
-funroll-loops
-I/var/folders/AX/AXoHUn3AHvCJCKkhpow70++++TI/-Tmp-/tmpj22lR5/src.macosx-10.6-x86_64-2.7
-I/Users/guilherme/sage-5.0.beta3/local/lib/python2.7/site-packages/numpy/core/include
-I/Users/guilherme/sage-5.0.beta3/local/include/python2.7 -I
/Users/guilherme/sage-5.0.beta3/local/bin/../lib/gcc/i686-apple-darwin8/4.2.3/finclude
-o /var/folders/AX/AXoHUn3AHvCJCKkhpow70++++TI/-Tmp-//ccbL7qHL.s
GNU F95 version 4.2.3 (i686-apple-darwin8)
compiled by GNU C version 4.2.3.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
as -arch x86_64 -force_cpusubtype_ALL -o
/var/folders/AX/AXoHUn3AHvCJCKkhpow70++++TI/-Tmp-/tmpj22lR5/Users/guilherme/.sage/temp/Guilherme_Brondani_Torris_MacBook_Pro.local/62029/tmp_0.o
/var/folders/AX/AXoHUn3AHvCJCKkhpow70++++TI/-Tmp-//ccbL7qHL.s
Driving:
/Users/guilherme/sage-5.0.beta3/local/bin/i686-apple-darwin8-gfortran-4.2 -m64
-v -Zbundle -undefined dynamic_lookup -Wall
/var/folders/AX/AXoHUn3AHvCJCKkhpow70++++TI/-Tmp-/tmpj22lR5/var/folders/AX/AXoHUn3AHvCJCKkhpow70++++TI/-Tmp-/tmpj22lR5/src.macosx-10.6-x86_64-2.7/fortran_module_0module.o
/var/folders/AX/AXoHUn3AHvCJCKkhpow70++++TI/-Tmp-/tmpj22lR5/var/folders/AX/AXoHUn3AHvCJCKkhpow70++++TI/-Tmp-/tmpj22lR5/src.macosx-10.6-x86_64-2.7/fortranobject.o
/var/folders/AX/AXoHUn3AHvCJCKkhpow70++++TI/-Tmp-/tmpj22lR5/Users/guilherme/.sage/temp/Guilherme_Brondani_Torris_MacBook_Pro.local/62029/tmp_0.o
-LUsing built-in specs.
/Users/guilherme/sage-5.0.beta3/local/bin/../lib/gcc/i686-apple-darwin8/4.2.3/x86_64
-lgfortran -o ./fortran_module_0.so -lgfortranbegin -lgfortran
-shared-libgcc
i686-apple-darwin8-gfortran-4.2: built-in: No such file or directory
i686-apple-darwin8-gfortran-4.2: specs.: No such file or directory
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
Driving:
/Users/guilherme/sage-5.0.beta3/local/bin/i686-apple-darwin8-gfortran-4.2 -m64
-v -Zbundle -undefined dynamic_lookup -Wall
/var/folders/AX/AXoHUn3AHvCJCKkhpow70++++TI/-Tmp-/tmpj22lR5/var/folders/AX/AXoHUn3AHvCJCKkhpow70++++TI/-Tmp-/tmpj22lR5/src.macosx-10.6-x86_64-2.7/fortran_module_0module.o
/var/folders/AX/AXoHUn3AHvCJCKkhpow70++++TI/-Tmp-/tmpj22lR5/var/folders/AX/AXoHUn3AHvCJCKkhpow70++++TI/-Tmp-/tmpj22lR5/src.macosx-10.6-x86_64-2.7/fortranobject.o
/var/folders/AX/AXoHUn3AHvCJCKkhpow70++++TI/-Tmp-/tmpj22lR5/Users/guilherme/.sage/temp/Guilherme_Brondani_Torris_MacBook_Pro.local/62029/tmp_0.o
-LUsing built-in specs.
/Users/guilherme/sage-5.0.beta3/local/bin/../lib/gcc/i686-apple-darwin8/4.2.3/x86_64
-lgfortran -o ./fortran_module_0.so -lgfortranbegin -lgfortran
-shared-libgcc
i686-apple-darwin8-gfortran-4.2: built-in: No such file or directory
i686-apple-darwin8-gfortran-4.2: specs.: No such file or directory
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
---------------------------------------------------------------------------
OSError Traceback (most recent call last)
/Users/guilherme/sage-5.0.beta3/<ipython console> in <module>()
/Users/guilherme/sage-5.0.beta3/local/lib/python2.7/site-packages/sage/misc/inline_fortran.pyc
in __call__(self, *args, **kwds)
18
19 def __call__(self, *args, **kwds):
---> 20 return self.eval(*args, **kwds)
21
22 def eval(self,x,globals=None, locals=None):
/Users/guilherme/sage-5.0.beta3/local/lib/python2.7/site-packages/sage/misc/inline_fortran.pyc
in eval(self, x, globals, locals)
89 finally:
90 os.sys.path=old_import_path
---> 91 os.unlink(name + '.so')
92
93 for k, x in m.__dict__.iteritems():
OSError: [Errno 2] No such file or directory: 'fortran_module_0.so'
sage:
--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org