math/py-numpy compile fails on FreeBSD9

Olivier Duchateau olivierd at freebsd.org
Mon Oct 12 14:23:08 UTC 2015


On Wed, 7 Oct 2015 14:48:03 -0700
<soralx at cydem.org> wrote:

> 
> Howdy!

Hi,

> 
>  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 at 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 at 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 at c@(absx, y, -1);
>                ^
> [...]
> 
> 
> FreeBSD 9.3-STABLE r288899M amd64 (tried few different machines).
> 
> Compiles OK on 10.2-STABLE.

Please, update your ports tree, I've just committed a fix (revision r399131).

> 
> -- 
> [SorAlx]  ridin' VN2000 Classic LT
> _______________________________________________
> freebsd-python at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-python
> To unsubscribe, send any mail to "freebsd-python-unsubscribe at freebsd.org"


-- 
Olivier Duchateau <olivierd at freebsd.org>


More information about the freebsd-python mailing list