[Numpy-discussion] [Fwd: Re: [SAGEdev] faster random number generation]

Fernando Perez Fernando.Perez at colorado.edu
Mon Mar 13 11:23:03 CST 2006


Hi all,

I'm wondering if one of our resident experts who is more familiar than me with 
the details of the current build process could help us here a little.  This is 
a message from the SAGE development list, where I am encouraging them to 
integrate more tightly with numpy.

SAGE is a very interesting python-based system for mathematics:

http://modular.ucsd.edu/sage/

After my comment below on numpy NOT needing a fortran compiler, William came 
back with that g77 error message.  Now I'm a little confused, and before I 
confuse him even more, I'd prefere to clarify things with those who actually 
konw what's going on.

Any help will be greatly appreciated.

Cheers,

f

-------- Original Message --------
Subject: Re: [SAGEdev] faster random number generation
Date: Mon, 13 Mar 2006 10:43:01 -0800
From: William Stein <wstein at ucsd.edu>
Reply-To: sage-devel at lists.sourceforge.net
Organization: UC San Diego
To: sage-devel at lists.sourceforge.net
References: <4db014670603111659id0dccb9g5619a930c3ac9b27 at mail.gmail.com> 
<200603130111.00929.wstein at ucsd.edu> <4415B68E.4080207 at colorado.edu>

On Monday 13 March 2006 10:14, Fernando Perez wrote:
> No: numpy requires only standard python + a C compiler to build the
> extensions.  All the code in /numpy/ is pure C.  Scipy, on the other hand,
> /does/ need a Fortran compiler (not necessarily gcc, it's been compiled
> with quite a few others, though it is not always a trivial matter to do
> so).

I'm confused then, because the output when building numpy (e.g.,
from David Joyner's build failure report) includes g77 calls.
Are we building with the wrong options?

building 'numpy.core._dotblas' extension
compiling C sources
gcc options: '-fno-strict-aliasing -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes
-I/home/wdj/sagefiles/sage-1.0.6/local/include/python2.4 -fPIC'
creating build/temp.linux-x86_64-2.4/numpy/core/blasdot
compile options: '-DNO_ATLAS_INFO=1 -Inumpy/core/blasdot
-Inumpy/core/include -Ibuild/src/numpy/core -Inumpy/core/src
-Inumpy/core/include
-I/home/wdj/sagefiles/sage-1.0.6/local/include/python2.4 -c'
gcc: numpy/core/blasdot/_dotblas.c
numpy/core/blasdot/_dotblas.c: In function 'dotblas_matrixproduct':
numpy/core/blasdot/_dotblas.c:166: warning: 'ap1stride' may be used
uninitialized in this function

\/\/\/\/\/\/
/usr/bin/g77 build/temp.linux-x86_64-2.4/numpy/core/blasdot/_dotblas.o
-L/usr/lib -lblas -lg2c -o build/lib.linux-x86_64-2.4/numpy/core/_dotblas.so
build/temp.linux-x86_64-2.4/numpy/core/blasdot/_dotblas.o: In function
`dotblas_alterdot':numpy/core/blasdot/_dotblas.c:65: undefined reference
to `PyArg_ParseTuple'
:numpy/core/blasdot/_dotblas.c:89: undefined reference to `_Py_NoneStruct'
build/temp.linux-x86_64-2.4/numpy/core/blasdot/_dotblas.o: In function
`dotblas_restoredot':numpy/core/blasdot/_dotblas.c:100: undefined
reference to `PyArg_ParseTuple'
:numpy/core/blasdot/_dotblas.c:126: undefined reference to `_Py_NoneStruct'
build/temp.linux-x86_64-2.4/numpy/core/blasdot/_dotblas.o: In function
`dotblas_innerproduct':numpy/core/blasdot/_dotblas.c:656: undefined
reference to `PyArg_ParseTuple'
:numpy/core/blasdot/_dotblas.c:717: undefined reference to
`PyExc_ValueError'
:numpy/core/blasdot/_dotblas.c:717: undefined reference to `PyErr_SetString'
:numpy/core/blasdot/_dotblas.c:687: undefined reference to `PyTuple_New'
build/temp.linux-x86_64-2.4/numpy/core/blasdot/_dotblas.o: In function
`dotblas_vdot':numpy/core/blasdot/_dotblas.c:896: undefined reference to
`PyArg_ParseTuple'
:numpy/core/blasdot/_dotblas.c:946: undefined reference to
`PyExc_ValueError'
:numpy/core/blasdot/_dotblas.c:946: undefined reference to `PyErr_SetString'
:numpy/core/blasdot/_dotblas.c:927: undefined reference to `PyTuple_New'
build/temp.linux-x86_64-2.4/numpy/core/blasdot/_dotblas.o: In function
`init_dotblas':numpy/core/blasdot/_dotblas.c:999: undefined reference to
`Py_InitModule4'
build/temp.linux-x86_64-2.4/numpy/core/blasdot/_dotblas.o: In function
`import_array':build/src/numpy/core/__multiarray_api.h:763: undefined
reference to `PyImport_ImportModule'
:build/src/numpy/core/__multiarray_api.h:766: undefined reference to
`PyObject_GetAttrString'
:build/src/numpy/core/__multiarray_api.h:768: undefined reference to
`PyCObject_Type'
:build/src/numpy/core/__multiarray_api.h:776: undefined reference to
`PyExc_RuntimeError'
:build/src/numpy/core/__multiarray_api.h:776: undefined reference to
`PyErr_Format'
build/temp.linux-x86_64-2.4/numpy/core/blasdot/_dotblas.o: In function
`init_dotblas':numpy/core/blasdot/_dotblas.c:1009: undefined reference
to `PyTuple_New'
build/temp.linux-x86_64-2.4/numpy/core/blasdot/_dotblas.o: In function
`init_dotblas':build/src/numpy/core/__multiarray_api.h:769: undefined
reference to `PyCObject_AsVoidPtr'
build/temp.linux-x86_64-2.4/numpy/core/blasdot/_dotblas.o: In function
`dotblas_matrixproduct':numpy/core/blasdot/_dotblas.c:177: undefined
reference to `PyArg_ParseTuple'
:numpy/core/blasdot/_dotblas.c:208: undefined reference to `PyTuple_New'
:numpy/core/blasdot/_dotblas.c:263: undefined reference to
`PyExc_ValueError'
:numpy/core/blasdot/_dotblas.c:263: undefined reference to `PyErr_SetString'
/usr/lib/libfrtbegin.a(frtbegin.o): In function `main': undefined
reference to `MAIN__'
collect2: ld returned 1 exit status
build/temp.linux-x86_64-2.4/numpy/core/blasdot/_dotblas.o: In function
`dotblas_alterdot':numpy/core/blasdot/_dotblas.c:65: undefined reference
to `PyArg_ParseTuple'
:numpy/core/blasdot/_dotblas.c:89: undefined reference to `_Py_NoneStruct'
build/temp.linux-x86_64-2.4/numpy/core/blasdot/_dotblas.o: In function
`dotblas_restoredot':numpy/core/blasdot/_dotblas.c:100: undefined
reference to `PyArg_ParseTuple'
:numpy/core/blasdot/_dotblas.c:126: undefined reference to `_Py_NoneStruct'
build/temp.linux-x86_64-2.4/numpy/core/blasdot/_dotblas.o: In function
`dotblas_innerproduct':numpy/core/blasdot/_dotblas.c:656: undefined
reference to `PyArg_ParseTuple'
:numpy/core/blasdot/_dotblas.c:717: undefined reference to
`PyExc_ValueError'
:numpy/core/blasdot/_dotblas.c:717: undefined reference to `PyErr_SetString'
:numpy/core/blasdot/_dotblas.c:687: undefined reference to `PyTuple_New'
build/temp.linux-x86_64-2.4/numpy/core/blasdot/_dotblas.o: In function
`dotblas_vdot':numpy/core/blasdot/_dotblas.c:896: undefined reference to
`PyArg_ParseTuple'
:numpy/core/blasdot/_dotblas.c:946: undefined reference to
`PyExc_ValueError'
:numpy/core/blasdot/_dotblas.c:946: undefined reference to `PyErr_SetString'
:numpy/core/blasdot/_dotblas.c:927: undefined reference to `PyTuple_New'
build/temp.linux-x86_64-2.4/numpy/core/blasdot/_dotblas.o: In function
`init_dotblas':numpy/core/blasdot/_dotblas.c:999: undefined reference to
`Py_InitModule4'
build/temp.linux-x86_64-2.4/numpy/core/blasdot/_dotblas.o: In function
`import_array':build/src/numpy/core/__multiarray_api.h:763: undefined
reference to `PyImport_ImportModule'
:build/src/numpy/core/__multiarray_api.h:766: undefined reference to
`PyObject_GetAttrString'
:build/src/numpy/core/__multiarray_api.h:768: undefined reference to
`PyCObject_Type'
:build/src/numpy/core/__multiarray_api.h:776: undefined reference to
`PyExc_RuntimeError'
:build/src/numpy/core/__multiarray_api.h:776: undefined reference to
`PyErr_Format'
build/temp.linux-x86_64-2.4/numpy/core/blasdot/_dotblas.o: In function
`init_dotblas':numpy/core/blasdot/_dotblas.c:1009: undefined reference
to `PyTuple_New'
build/temp.linux-x86_64-2.4/numpy/core/blasdot/_dotblas.o: In function
`init_dotblas':build/src/numpy/core/__multiarray_api.h:769: undefined
reference to `PyCObject_AsVoidPtr'
build/temp.linux-x86_64-2.4/numpy/core/blasdot/_dotblas.o: In function
`dotblas_matrixproduct':numpy/core/blasdot/_dotblas.c:177: undefined
reference to `PyArg_ParseTuple'
:numpy/core/blasdot/_dotblas.c:208: undefined reference to `PyTuple_New'
:numpy/core/blasdot/_dotblas.c:263: undefined reference to
`PyExc_ValueError'
:numpy/core/blasdot/_dotblas.c:263: undefined reference to `PyErr_SetString'
/usr/lib/libfrtbegin.a(frtbegin.o): In function `main': undefined
reference to `MAIN__'
collect2: ld returned 1 exit status
error: Command "/usr/bin/g77
build/temp.linux-x86_64-2.4/numpy/core/blasdot/_dotblas.o -L/usr/lib
-lblas -lg2c -o build/lib.linux-x86_64-2.4/numpy/core/_dotblas.so"
failed with exit status 1



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd_______________________________________________
sage-devel mailing list
sage-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sage-devel




More information about the Numpy-discussion mailing list