Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Oct 2015 14:48:03 -0700
From:      <soralx@cydem.org>
To:        <python@FreeBSD.org>
Subject:   math/py-numpy compile fails on FreeBSD9
Message-ID:  <20151007144803.1b607641@sol>

next in thread | raw e-mail | index | archive | help

Howdy!

 Cannot update to recent NumPy on FreeBSD9:

[...]
cc: build/src.freebsd-9.3-STABLE-amd64-2.7/numpy/core/src/npymath/npy_math.c
cc: build/src.freebsd-9.3-STABLE-amd64-2.7/numpy/core/src/npymath/ieee754.c
cc: numpy/core/src/npymath/halffloat.c
cc: build/src.freebsd-9.3-STABLE-amd64-2.7/numpy/core/src/npymath/npy_math_complex.c
numpy/core/src/npymath/npy_math_complex.c.src: In function 'npy_ccoshf':
numpy/core/src/npymath/npy_math_complex.c.src:643: error: incompatible types in assignment
numpy/core/src/npymath/npy_math_complex.c.src: In function 'npy_csinhf':
numpy/core/src/npymath/npy_math_complex.c.src:785: error: incompatible types in assignment
numpy/core/src/npymath/npy_math_complex.c.src: In function 'npy_ccosh':
numpy/core/src/npymath/npy_math_complex.c.src:643: error: incompatible types in assignment
numpy/core/src/npymath/npy_math_complex.c.src: In function 'npy_csinh':
numpy/core/src/npymath/npy_math_complex.c.src:785: error: incompatible types in assignment
numpy/core/src/npymath/npy_math_complex.c.src: In function 'npy_ccoshf':
numpy/core/src/npymath/npy_math_complex.c.src:643: error: incompatible types in assignment
numpy/core/src/npymath/npy_math_complex.c.src: In function 'npy_csinhf':
numpy/core/src/npymath/npy_math_complex.c.src:785: error: incompatible types in assignment
numpy/core/src/npymath/npy_math_complex.c.src: In function 'npy_ccosh':
numpy/core/src/npymath/npy_math_complex.c.src:643: error: incompatible types in assignment
numpy/core/src/npymath/npy_math_complex.c.src: In function 'npy_csinh':
numpy/core/src/npymath/npy_math_complex.c.src:785: error: incompatible types in assignment
error: Command "cc -DNDEBUG -O2 -pipe -fno-omit-frame-pointer -march=native -fstack-protector -fno-strict-aliasing -fPIC -Inumpy/core/include -Ibuild/src.freebsd-9.3-STABLE-amd64-2.7/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/local/include/python2.7 -Ibuild/src.freebsd-9.3-STABLE-amd64-2.7/numpy/core/src/private -Ibuild/src.freebsd-9.3-STABLE-amd64-2.7/numpy/core/src/private -Ibuild/src.freebsd-9.3-STABLE-amd64-2.7/numpy/core/src/private -c build/src.freebsd-9.3-STABLE-amd64-2.7/numpy/core/src/npymath/npy_math_complex.c -o build/temp.freebsd-9.3-STABLE-amd64-2.7/build/src.freebsd-9.3-STABLE-amd64-2.7/numpy/core/src/npymath/npy_math_complex.o" failed with exit status 1
*** [do-build] Error code 1

With gcc48:
[...]
gcc48: build/src.freebsd-9.3-STABLE-amd64-2.7/numpy/core/src/npymath/npy_math.c
gcc48: build/src.freebsd-9.3-STABLE-amd64-2.7/numpy/core/src/npymath/ieee754.c
gcc48: numpy/core/src/npymath/halffloat.c
gcc48: build/src.freebsd-9.3-STABLE-amd64-2.7/numpy/core/src/npymath/npy_math_complex.c
numpy/core/src/npymath/npy_math_complex.c.src: In function 'npy_ccoshf':
numpy/core/src/npymath/npy_math_complex.c.src:643:15: error: incompatible types when assigning to type 'npy_cfloat' from type 'int'
             z = _npy_scaled_cexp@c@(absx, y, -1);
               ^
numpy/core/src/npymath/npy_math_complex.c.src: In function 'npy_csinhf':
numpy/core/src/npymath/npy_math_complex.c.src:785:15: error: incompatible types when assigning to type 'npy_cfloat' from type 'int'
             z = _npy_scaled_cexp@c@(absx, y, -1);
               ^
numpy/core/src/npymath/npy_math_complex.c.src: In function 'npy_ccosh':
numpy/core/src/npymath/npy_math_complex.c.src:643:15: error: incompatible types when assigning to type 'npy_cdouble' from type 'int'
             z = _npy_scaled_cexp@c@(absx, y, -1);
               ^
[...]


FreeBSD 9.3-STABLE r288899M amd64 (tried few different machines).

Compiles OK on 10.2-STABLE.

-- 
[SorAlx]  ridin' VN2000 Classic LT



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20151007144803.1b607641>