[SciPy-dev] static builds of scipy

Chris Fonnesbeck fonnesbeck at gmail.com
Tue Feb 21 09:09:27 CST 2006


What is the proper way to build scipy statically? I tried the
following syntax (which works for numpy):

LDFLAGS=-L/usr/local/lib python setup.py build

But this does not build with the LDFLAG variable specified:

/usr/local/bin/g77 -L/usr/local/lib
build/temp.darwin-8.5.0-Power_Macintosh-2.4/build/src/Lib/fftpack/_fftpackmodule.o
build/temp.darwin-8.5.0-Power_Macintosh-2.4/Lib/fftpack/src/zfft.o
build/temp.darwin-8.5.0-Power_Macintosh-2.4/Lib/fftpack/src/drfft.o
build/temp.darwin-8.5.0-Power_Macintosh-2.4/Lib/fftpack/src/zrfft.o
build/temp.darwin-8.5.0-Power_Macintosh-2.4/Lib/fftpack/src/zfftnd.o
build/temp.darwin-8.5.0-Power_Macintosh-2.4/build/src/fortranobject.o
-L/usr/local/lib -L/usr/local/lib/gcc/powerpc-apple-darwin7.9.0/3.4.4
-Lbuild/temp.darwin-8.5.0-Power_Macintosh-2.4 -ldfftpack -lfftw3 -lg2c
-lcc_dynamic -o
build/lib.darwin-8.5.0-Power_Macintosh-2.4/scipy/fftpack/_fftpack.so
-lSystemStubs
/usr/bin/ld: Undefined symbols:
_PyArg_ParseTupleAndKeywords
_PyCObject_AsVoidPtr
_PyCObject_Type
_PyComplex_Type
_PyDict_SetItemString
_PyErr_Clear
_PyErr_Format
_PyErr_NewException
_PyErr_Occurred
_PyErr_SetString
_PyExc_RuntimeError
_PyImport_ImportModule
_PyInt_Type
_PyModule_GetDict
_PyNumber_Int
_PyObject_GetAttrString
_PySequence_Check
_PySequence_GetItem
_PyString_FromString
_PyString_Type
_PyType_IsSubtype
_PyType_Type
_Py_BuildValue
_Py_FatalError
_Py_InitModule4
__Py_NoneStruct
_PyCObject_FromVoidPtr
_PyDict_DelItemString
_PyDict_GetItemString
_PyDict_New
_PyExc_AttributeError
_PyExc_TypeError
_PyExc_ValueError
_PyObject_Free
_PyObject_Str
_PyObject_Type
_PyString_AsString
_PyString_ConcatAndDel
_Py_FindMethod
__PyObject_New
_MAIN__
collect2: ld returned 1 exit status
/usr/bin/ld: Undefined symbols:
_PyArg_ParseTupleAndKeywords
_PyCObject_AsVoidPtr
_PyCObject_Type
_PyComplex_Type
_PyDict_SetItemString
_PyErr_Clear
_PyErr_Format
_PyErr_NewException
_PyErr_Occurred
_PyErr_SetString
_PyExc_RuntimeError
_PyImport_ImportModule
_PyInt_Type
_PyModule_GetDict
_PyNumber_Int
_PyObject_GetAttrString
_PySequence_Check
_PySequence_GetItem
_PyString_FromString
_PyString_Type
_PyType_IsSubtype
_PyType_Type
_Py_BuildValue
_Py_FatalError
_Py_InitModule4
__Py_NoneStruct
_PyCObject_FromVoidPtr
_PyDict_DelItemString
_PyDict_GetItemString
_PyDict_New
_PyExc_AttributeError
_PyExc_TypeError
_PyExc_ValueError
_PyObject_Free
_PyObject_Str
_PyObject_Type
_PyString_AsString
_PyString_ConcatAndDel
_Py_FindMethod
__PyObject_New
_MAIN__
collect2: ld returned 1 exit status
error: Command "/usr/local/bin/g77 -L/usr/local/lib
build/temp.darwin-8.5.0-Power_Macintosh-2.4/build/src/Lib/fftpack/_fftpackmodule.o
build/temp.darwin-8.5.0-Power_Macintosh-2.4/Lib/fftpack/src/zfft.o
build/temp.darwin-8.5.0-Power_Macintosh-2.4/Lib/fftpack/src/drfft.o
build/temp.darwin-8.5.0-Power_Macintosh-2.4/Lib/fftpack/src/zrfft.o
build/temp.darwin-8.5.0-Power_Macintosh-2.4/Lib/fftpack/src/zfftnd.o
build/temp.darwin-8.5.0-Power_Macintosh-2.4/build/src/fortranobject.o
-L/usr/local/lib -L/usr/local/lib/gcc/powerpc-apple-darwin7.9.0/3.4.4
-Lbuild/temp.darwin-8.5.0-Power_Macintosh-2.4 -ldfftpack -lfftw3 -lg2c
-lcc_dynamic -o
build/lib.darwin-8.5.0-Power_Macintosh-2.4/scipy/fftpack/_fftpack.so
-lSystemStubs" failed with exit status 1

Any pointers most appreciated.

C.

--
Chris Fonnesbeck + Atlanta, GA + http://trichech.us




More information about the Scipy-dev mailing list