[SciPy-dev] Build of newcore on macosX and with mingw32

Jörgen Stenarson jorgen.stenarson at bostream.nu
Wed Oct 5 12:45:10 CDT 2005


Hi,

It turned out I had an old version of scipy installed I had forgot about 
. After deleting the old version + rm -Rf build/ the compilation process 
works as it should. But when I try to import scipy I get a bus error. I 
have included a dump with python -v

/Jörgen


$ python -v
...
Python 2.4.1 (#1, Aug 27 2005, 23:10:21)
[GCC 4.0.0 20041026 (Apple Computer, Inc. build 4061)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
import readline # dynamically loaded from 
/opt/local/lib/python2.4/lib-dynload/readline.so
 >>> import scipy
import scipy # directory scipy
# scipy/__init__.pyc matches scipy/__init__.py
import scipy # precompiled from scipy/__init__.pyc
import scipy.base # directory scipy/base
# scipy/base/__init__.pyc matches scipy/base/__init__.py
import scipy.base # precompiled from scipy/base/__init__.pyc
# scipy/base/info_scipy_base.pyc matches scipy/base/info_scipy_base.py
import scipy.base.info_scipy_base # precompiled from 
scipy/base/info_scipy_base.pyc
# scipy/core_version.pyc matches scipy/core_version.py
import scipy.core_version # precompiled from scipy/core_version.pyc
import scipy.base.multiarray # dynamically loaded from 
scipy/base/multiarray.so
import scipy.base.umath # dynamically loaded from scipy/base/umath.so
# scipy/base/numerictypes.pyc matches scipy/base/numerictypes.py
import scipy.base.numerictypes # precompiled from 
scipy/base/numerictypes.pyc
# scipy/base/numeric.pyc matches scipy/base/numeric.py
import scipy.base.numeric # precompiled from scipy/base/numeric.pyc
import math # dynamically loaded from 
/opt/local/lib/python2.4/lib-dynload/math.soimport 
scipy.base._compiled_base # dynamically loaded from 
scipy/base/_compiled_base.so
import scipy.lib # directory scipy/lib
# scipy/lib/__init__.pyc matches scipy/lib/__init__.py
import scipy.lib # precompiled from scipy/lib/__init__.pyc
import scipy.lib._dotblas # dynamically loaded from scipy/lib/_dotblas.so
# scipy/base/arrayprint.pyc matches scipy/base/arrayprint.py
import scipy.base.arrayprint # precompiled from scipy/base/arrayprint.pyc
import cStringIO # dynamically loaded from 
/opt/local/lib/python2.4/lib-dynload/cStringIO.so
import cPickle # dynamically loaded from 
/opt/local/lib/python2.4/lib-dynload/cPickle.so
# scipy/base/oldnumeric.pyc matches scipy/base/oldnumeric.py
import scipy.base.oldnumeric # precompiled from scipy/base/oldnumeric.pyc
# scipy/base/function_base.pyc matches scipy/base/function_base.py
import scipy.base.function_base # precompiled from 
scipy/base/function_base.pyc
import operator # dynamically loaded from 
/opt/local/lib/python2.4/lib-dynload/operator.so
# scipy/base/type_check.pyc matches scipy/base/type_check.py
import scipy.base.type_check # precompiled from scipy/base/type_check.pyc
# scipy/base/ufunclike.pyc matches scipy/base/ufunclike.py
import scipy.base.ufunclike # precompiled from scipy/base/ufunclike.pyc
# scipy/base/shape_base.pyc matches scipy/base/shape_base.py
import scipy.base.shape_base # precompiled from scipy/base/shape_base.pyc
# scipy/base/matrix.pyc matches scipy/base/matrix.py
import scipy.base.matrix # precompiled from scipy/base/matrix.pyc
# 
/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/string.pyc 
matches 
/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/string.py
import string # precompiled from 
/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/string.pyc
# 
/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/re.pyc 
matches 
/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/re.py
import re # precompiled from 
/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/re.pyc
# 
/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sre.pyc 
matches 
/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sre.py
import sre # precompiled from 
/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sre.pyc
# 
/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sre_compile.pyc 
matches 
/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sre_compile.py
import sre_compile # precompiled from 
/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sre_compile.pyc
import _sre # builtin
# 
/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sre_constants.pyc 
matches 
/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sre_constants.py
import sre_constants # precompiled from 
/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sre_constants.pyc
# 
/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sre_parse.pyc 
matches 
/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sre_parse.py
import sre_parse # precompiled from 
/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/sre_parse.pyc
import strop # dynamically loaded from 
/opt/local/lib/python2.4/lib-dynload/strop.so
# scipy/base/index_tricks.pyc matches scipy/base/index_tricks.py
import scipy.base.index_tricks # precompiled from 
scipy/base/index_tricks.pyc
# scipy/base/twodim_base.pyc matches scipy/base/twodim_base.py
import scipy.base.twodim_base # precompiled from scipy/base/twodim_base.pyc
# scipy/base/scimath.pyc matches scipy/base/scimath.py
import scipy.base.scimath # precompiled from scipy/base/scimath.pyc
Bus error

Pearu Peterson wrote:
> 
> 
> On Tue, 4 Oct 2005, Jörgen Stenarson wrote:
> 
>>>> gcc: build/src/scipy/base/src/umathmodule.c
>>>> build/src/scipy/base/src/umathmodule.c:56: error: static declaration 
>>>> of 'acoshf' follows non-static declaration
>>>> build/src/scipy/base/src/umathmodule.c:61: error: static declaration 
>>>> of 'asinhf' follows non-static declaration
>>>> build/src/scipy/base/src/umathmodule.c:66: error: static declaration 
>>>> of 'atanhf' follows non-static declaration
>>>> build/src/scipy/base/src/umathmodule.c:56: error: static declaration 
>>>> of 'acoshf' follows non-static declaration
>>>> build/src/scipy/base/src/umathmodule.c:61: error: static declaration 
>>>> of 'asinhf' follows non-static declaration
>>>> build/src/scipy/base/src/umathmodule.c:66: error: static declaration 
>>>> of 'atanhf' follows non-static declaration
>>>
>>>
>>>
>>> Could you send the contects of build/src/scipy/base/config.h?
>>
>>
>> /* #define SIZEOF_SHORT 2 */
>> /* #define SIZEOF_INT 4 */
>> /* #define SIZEOF_LONG 4 */
>> /* #define SIZEOF_FLOAT 4 */
>> /* #define SIZEOF_DOUBLE 8 */
>> #define SIZEOF_LONG_DOUBLE 16
>> #define SIZEOF_PY_INTPTR_T 4
>> /* #define SIZEOF_LONG_LONG 8 */
>> #define SIZEOF_PY_LONG_LONG 8
>> /* #define CHAR_BIT 8 */
>> #define MATHLIB
>> #define HAVE_LONGDOUBLE_FUNCS
>> #define HAVE_FLOAT_FUNCS
>> #define HAVE_INVERSE_HYPERBOLIC
>> #define HAVE_INVERSE_HYPERBOLIC_FLOAT
>>
>>>
>>> What happens if you add
>>>
>>> #define HAVE_INVERSE_HYPERBOLIC_FLOAT
>>>
>> as you can see above it is already there.
> 
> 
> So, the code that give errors should not be available to the compiler.
> 
>> do you have any other ideas?
> 
> 
> Hmm, may be the building process picks config.h up from some other place.
> Introduce some syntax error to build/src/scipy/base/config.h in order to 
> verify this.
> 
> Try to remove old scipy.core from your system, that includes also header 
> files in include/python2.4/scipy directory, then do `rm -rf build` and
> try to rebuild.
> 
> Pearu
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-dev




More information about the Scipy-dev mailing list