Bug#830447: pyresample: FTBFS: pyresample/ewa/_fornav_templates.cpp:275:52: error: non-floating-point argument in call to function ‘__builtin_isnan’

Lucas Nussbaum lucas at debian.org
Fri Jul 8 07:27:07 UTC 2016


Source: pyresample
Version: 1.2.4-1
Severity: serious
Tags: stretch sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20160707 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part (hopefully):
> x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -c pyresample/ewa/_fornav_templates.cpp -o build/temp.linux-x86_64-2.7/pyresample/ewa/_fornav_templates.o -O3 -Wno-unused-function
> cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
> In file included from /usr/include/python2.7/numpy/ndarraytypes.h:1777:0,
>                  from /usr/include/python2.7/numpy/ndarrayobject.h:18,
>                  from /usr/include/python2.7/numpy/arrayobject.h:4,
>                  from pyresample/ewa/_fornav_templates.cpp:4:
> /usr/include/python2.7/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
>  #warning "Using deprecated NumPy API, disable it by " \
>   ^
> pyresample/ewa/_fornav_templates.cpp: In instantiation of ‘int compute_ewa(size_t, int, size_t, size_t, size_t, size_t, CR_TYPE*, CR_TYPE*, IMAGE_TYPE**, IMAGE_TYPE, accum_type**, weight_type**, ewa_weight*, ewa_parameters*) [with CR_TYPE = float; IMAGE_TYPE = float; size_t = long unsigned int; accum_type = float; weight_type = float]’:
> pyresample/ewa/_fornav_templates.cpp:427:210:   required from here
> pyresample/ewa/_fornav_templates.cpp:238:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
>        if (iu2 >= grid_cols) {
>                ^
> pyresample/ewa/_fornav_templates.cpp:244:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
>        if (iv2 >= grid_rows) {
>                ^
> pyresample/ewa/_fornav_templates.cpp:248:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
>        if (iu1 < grid_cols && iu2 >= 0 && iv1 < grid_rows && iv2 >= 0) {
>                ^
> pyresample/ewa/_fornav_templates.cpp:248:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
>        if (iu1 < grid_cols && iu2 >= 0 && iv1 < grid_rows && iv2 >= 0) {
>                                               ^
> pyresample/ewa/_fornav_templates.cpp: In instantiation of ‘int compute_ewa(size_t, int, size_t, size_t, size_t, size_t, CR_TYPE*, CR_TYPE*, IMAGE_TYPE**, IMAGE_TYPE, accum_type**, weight_type**, ewa_weight*, ewa_parameters*) [with CR_TYPE = float; IMAGE_TYPE = double; size_t = long unsigned int; accum_type = float; weight_type = float]’:
> pyresample/ewa/_fornav_templates.cpp:428:210:   required from here
> pyresample/ewa/_fornav_templates.cpp:238:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
>        if (iu2 >= grid_cols) {
>                ^
> pyresample/ewa/_fornav_templates.cpp:244:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
>        if (iv2 >= grid_rows) {
>                ^
> pyresample/ewa/_fornav_templates.cpp:248:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
>        if (iu1 < grid_cols && iu2 >= 0 && iv1 < grid_rows && iv2 >= 0) {
>                ^
> pyresample/ewa/_fornav_templates.cpp:248:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
>        if (iu1 < grid_cols && iu2 >= 0 && iv1 < grid_rows && iv2 >= 0) {
>                                               ^
> pyresample/ewa/_fornav_templates.cpp: In instantiation of ‘int compute_ewa(size_t, int, size_t, size_t, size_t, size_t, CR_TYPE*, CR_TYPE*, IMAGE_TYPE**, IMAGE_TYPE, accum_type**, weight_type**, ewa_weight*, ewa_parameters*) [with CR_TYPE = float; IMAGE_TYPE = signed char; size_t = long unsigned int; accum_type = float; weight_type = float]’:
> pyresample/ewa/_fornav_templates.cpp:429:201:   required from here
> pyresample/ewa/_fornav_templates.cpp:238:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
>        if (iu2 >= grid_cols) {
>                ^
> pyresample/ewa/_fornav_templates.cpp:244:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
>        if (iv2 >= grid_rows) {
>                ^
> pyresample/ewa/_fornav_templates.cpp:248:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
>        if (iu1 < grid_cols && iu2 >= 0 && iv1 < grid_rows && iv2 >= 0) {
>                ^
> pyresample/ewa/_fornav_templates.cpp:248:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
>        if (iu1 < grid_cols && iu2 >= 0 && iv1 < grid_rows && iv2 >= 0) {
>                                               ^
> In file included from /usr/include/python2.7/pyport.h:325:0,
>                  from /usr/include/python2.7/Python.h:58,
>                  from pyresample/ewa/_fornav_templates.cpp:1:
> pyresample/ewa/_fornav_templates.cpp:275:52: error: non-floating-point argument in call to function ‘__builtin_isnan’
>                      if ((this_val == img_fill) || (isnan(this_val))) {
>                                                     ^
> pyresample/ewa/_fornav_templates.cpp:282:51: error: non-floating-point argument in call to function ‘__builtin_isnan’
>                    if ((this_val != img_fill) && !(isnan(this_val))) {
>                                                    ^
> pyresample/ewa/_fornav_templates.cpp: In instantiation of ‘int compute_ewa(size_t, int, size_t, size_t, size_t, size_t, CR_TYPE*, CR_TYPE*, IMAGE_TYPE**, IMAGE_TYPE, accum_type**, weight_type**, ewa_weight*, ewa_parameters*) [with CR_TYPE = double; IMAGE_TYPE = float; size_t = long unsigned int; accum_type = float; weight_type = float]’:
> pyresample/ewa/_fornav_templates.cpp:433:210:   required from here
> pyresample/ewa/_fornav_templates.cpp:238:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
>        if (iu2 >= grid_cols) {
>                ^
> pyresample/ewa/_fornav_templates.cpp:244:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
>        if (iv2 >= grid_rows) {
>                ^
> pyresample/ewa/_fornav_templates.cpp:248:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
>        if (iu1 < grid_cols && iu2 >= 0 && iv1 < grid_rows && iv2 >= 0) {
>                ^
> pyresample/ewa/_fornav_templates.cpp:248:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
>        if (iu1 < grid_cols && iu2 >= 0 && iv1 < grid_rows && iv2 >= 0) {
>                                               ^
> pyresample/ewa/_fornav_templates.cpp: In instantiation of ‘int compute_ewa(size_t, int, size_t, size_t, size_t, size_t, CR_TYPE*, CR_TYPE*, IMAGE_TYPE**, IMAGE_TYPE, accum_type**, weight_type**, ewa_weight*, ewa_parameters*) [with CR_TYPE = double; IMAGE_TYPE = double; size_t = long unsigned int; accum_type = float; weight_type = float]’:
> pyresample/ewa/_fornav_templates.cpp:434:210:   required from here
> pyresample/ewa/_fornav_templates.cpp:238:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
>        if (iu2 >= grid_cols) {
>                ^
> pyresample/ewa/_fornav_templates.cpp:244:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
>        if (iv2 >= grid_rows) {
>                ^
> pyresample/ewa/_fornav_templates.cpp:248:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
>        if (iu1 < grid_cols && iu2 >= 0 && iv1 < grid_rows && iv2 >= 0) {
>                ^
> pyresample/ewa/_fornav_templates.cpp:248:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
>        if (iu1 < grid_cols && iu2 >= 0 && iv1 < grid_rows && iv2 >= 0) {
>                                               ^
> pyresample/ewa/_fornav_templates.cpp: In instantiation of ‘int compute_ewa(size_t, int, size_t, size_t, size_t, size_t, CR_TYPE*, CR_TYPE*, IMAGE_TYPE**, IMAGE_TYPE, accum_type**, weight_type**, ewa_weight*, ewa_parameters*) [with CR_TYPE = double; IMAGE_TYPE = signed char; size_t = long unsigned int; accum_type = float; weight_type = float]’:
> pyresample/ewa/_fornav_templates.cpp:435:201:   required from here
> pyresample/ewa/_fornav_templates.cpp:238:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
>        if (iu2 >= grid_cols) {
>                ^
> pyresample/ewa/_fornav_templates.cpp:244:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
>        if (iv2 >= grid_rows) {
>                ^
> pyresample/ewa/_fornav_templates.cpp:248:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
>        if (iu1 < grid_cols && iu2 >= 0 && iv1 < grid_rows && iv2 >= 0) {
>                ^
> pyresample/ewa/_fornav_templates.cpp:248:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
>        if (iu1 < grid_cols && iu2 >= 0 && iv1 < grid_rows && iv2 >= 0) {
>                                               ^
> In file included from /usr/include/python2.7/pyport.h:325:0,
>                  from /usr/include/python2.7/Python.h:58,
>                  from pyresample/ewa/_fornav_templates.cpp:1:
> pyresample/ewa/_fornav_templates.cpp:275:52: error: non-floating-point argument in call to function ‘__builtin_isnan’
>                      if ((this_val == img_fill) || (isnan(this_val))) {
>                                                     ^
> pyresample/ewa/_fornav_templates.cpp:282:51: error: non-floating-point argument in call to function ‘__builtin_isnan’
>                    if ((this_val != img_fill) && !(isnan(this_val))) {
>                                                    ^
> error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
> E: pybuild pybuild:274: build: plugin distutils failed with: exit code=1: /usr/bin/python setup.py build 
> dh_auto_build: pybuild --build -i python{version} -p 2.7 returned exit code 13
> make[1]: *** [override_dh_auto_build] Error 25

The full build log is available from:
   http://people.debian.org/~lucas/logs/2016/07/07/pyresample_1.2.4-1_unstable_reb.normal.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the Pkg-grass-devel mailing list