Source: swiglpk
Version: 4.65.0-2
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20201226 ftbfs-bullseye

Hi,

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

Relevant part (hopefully):
>  debian/rules build
> dh build --with python3 --buildsystem=pybuild
>    dh_update_autotools_config -O--buildsystem=pybuild
>    dh_autoreconf -O--buildsystem=pybuild
>    dh_auto_configure -O--buildsystem=pybuild
> I: pybuild base:232: python3.9 setup.py config 
> /usr/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution 
> option: 'test_suite'
>   warnings.warn(msg)
> /usr/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution 
> option: 'include_package_data'
>   warnings.warn(msg)
> Trying to determine glpk.h location
> glpk.h found at /usr/include/glpk.h
> running config
>    dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:232: /usr/bin/python3 setup.py build 
> /usr/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution 
> option: 'test_suite'
>   warnings.warn(msg)
> /usr/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution 
> option: 'include_package_data'
>   warnings.warn(msg)
> Trying to determine glpk.h location
> glpk.h found at /usr/include/glpk.h
> running build
> running build_ext
> building 'swiglpk._swiglpk' extension
> swigging swiglpk/glpk.i to swiglpk/glpk_wrap.c
> swig -python -o swiglpk/glpk_wrap.c swiglpk/glpk.i
> swiglpk/glpk_clean.h:1000: Warning 314: 'in' is a python keyword, renaming to 
> '_in'
> swiglpk/glpk_clean.h:201: Warning 451: Setting a const char * variable may 
> leak memory.
> creating build
> creating build/temp.linux-x86_64-3.9
> creating build/temp.linux-x86_64-3.9/swiglpk
> x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g 
> -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat 
> -Werror=format-security -g -fwrapv -O2 -g -O2 
> -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
> -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC 
> -I/usr/include/python3.9 -c swiglpk/glpk_wrap.c -o 
> build/temp.linux-x86_64-3.9/swiglpk/glpk_wrap.o
> In file included from /usr/include/python3.9/pytime.h:6,
>                  from /usr/include/python3.9/Python.h:85,
>                  from swiglpk/glpk_wrap.c:154:
> swiglpk/glpk_wrap.c: In function ‘wrap_glp_term_hook_cb’:
> /usr/include/python3.9/object.h:422:13: warning: ‘r’ may be used 
> uninitialized in this function [-Wmaybe-uninitialized]
>   422 |     if (--op->ob_refcnt != 0) {
>       |           ~~^~~~~~~~~~~
> swiglpk/glpk_wrap.c:2732:31: note: ‘r’ was declared here
>  2732 |   PyObject *callback, *args, *r;
>       |                               ^
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_swiglpk/build/swiglpk
> x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions 
> -Wl,-z,relro -g -fwrapv -O2 -Wl,-z,relro -g -O2 
> -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
> -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 
> build/temp.linux-x86_64-3.9/swiglpk/glpk_wrap.o -lglpk -o 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_swiglpk/build/swiglpk/_swiglpk.cpython-39-x86_64-linux-gnu.so
> running build_py
> copying swiglpk/__init__.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_swiglpk/build/swiglpk
> copying swiglpk/swiglpk.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_swiglpk/build/swiglpk
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:232: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_swiglpk/build; 
> python3.9 -m nose -v 
> Failure: ImportError 
> (/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_swiglpk/build/swiglpk/_swiglpk.cpython-39-x86_64-linux-gnu.so:
>  undefined symbol: glp_netgen_prob) ... ERROR
> 
> ======================================================================
> ERROR: Failure: ImportError 
> (/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_swiglpk/build/swiglpk/_swiglpk.cpython-39-x86_64-linux-gnu.so:
>  undefined symbol: glp_netgen_prob)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
>     raise self.exc_val.with_traceback(self.tb)
>   File "/usr/lib/python3/dist-packages/nose/loader.py", line 416, in 
> loadTestsFromName
>     module = self.importer.importFromPath(
>   File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in 
> importFromPath
>     return self.importFromDir(dir_path, fqname)
>   File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in 
> importFromDir
>     mod = load_module(part_fqname, fh, filename, desc)
>   File "/usr/lib/python3.9/imp.py", line 244, in load_module
>     return load_package(name, filename)
>   File "/usr/lib/python3.9/imp.py", line 216, in load_package
>     return _load(spec)
>   File "<frozen importlib._bootstrap>", line 711, in _load
>   File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
>   File "<frozen importlib._bootstrap_external>", line 790, in exec_module
>   File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_swiglpk/build/swiglpk/__init__.py", 
> line 1, in <module>
>     from .swiglpk import *
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_swiglpk/build/swiglpk/swiglpk.py", 
> line 13, in <module>
>     from . import _swiglpk
> ImportError: 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_swiglpk/build/swiglpk/_swiglpk.cpython-39-x86_64-linux-gnu.so:
>  undefined symbol: glp_netgen_prob
> 
> ----------------------------------------------------------------------
> Ran 1 test in 0.010s
> 
> FAILED (errors=1)
> E: pybuild pybuild:353: test: plugin distutils failed with: exit code=1: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_swiglpk/build; python3.9 -m nose -v 
> dh_auto_test: error: pybuild --test --test-nose -i python{version} -p 3.9 
> returned exit code 13

The full build log is available from:
   http://qa-logs.debian.net/2020/12/26/swiglpk_4.65.0-2_unstable.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!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with me
so that we can identify if something relevant changed in the meantime.

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.

Reply via email to