Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1306687

Bug#1145848: nlopt: FTBFS: /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/swig/CMakeFiles/nlopt_python.dir/nloptPYTHON_wrap.cxx:5323:9: error: 'PyString_Check' was not declared in this scope; did you mean 'PyMapping_Check'?

From Santiago Vila <sanvila@debian.org>
Newsgroups linux.debian.bugs.dist
Subject Bug#1145848: nlopt: FTBFS: /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/swig/CMakeFiles/nlopt_python.dir/nloptPYTHON_wrap.cxx:5323:9: error: 'PyString_Check' was not declared in this scope; did you mean 'PyMapping_Check'?
Date 2026-08-27 12:00 +0200
Message-ID <NwF3P-dxNp-9@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Package: src:nlopt
Version: 2.7.1-7.1
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202608/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:nlopt, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/swig && /usr/bi [too-long-redacted] python.dir/nloptPYTHON_wrap.cxx
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/swig && /usr/bi [too-long-redacted] t_guile.dir/nloptGUILE_wrap.cxx
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/swig/CMakeFiles/nlopt_python.dir/nloptPYTHON_wrap.cxx: In function ‘const char* pytype_string(PyObject*)’:
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/swig/CMakeFiles/nlopt_python.dir/nloptPYTHON_wrap.cxx:5323:9: error: ‘PyString_Check’ was not declared in this scope; did you mean ‘PyMapping_Check’?
 5323 |     if (PyString_Check(  py_obj)) return "string"      ;
      |         ^~~~~~~~~~~~~~
      |         PyMapping_Check
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/swig/CMakeFiles/nlopt_python.dir/nloptPYTHON_wrap.cxx:5324:9: error: ‘PyInt_Check’ was not declared in this scope; did you mean ‘PySet_Check’?
 5324 |     if (PyInt_Check(     py_obj)) return "int"         ;
      |         ^~~~~~~~~~~
      |         PySet_Check
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/swig/CMakeFiles/nlopt_python.dir/nloptPYTHON_wrap.cxx: In function ‘PyObject* _wrap_opt_optimize__SWIG_1(PyObject*, Py_ssize_t, PyObject**)’:
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/swig/CMakeFiles/nlopt_python.dir/nloptPYTHON_wrap.cxx:8551:16: warning: argument 2 null where non-null expected [-Wnonnull]
 8551 |     std::memcpy(array_data(resultobj), (&result)->empty() ? NULL : &result[0],
      |     ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 8552 |       sizeof(double) * sz);
      |       ~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/features.h:539,
                 from /usr/include/assert.h:35,
                 from /usr/include/python3.14/Python.h:20,
                 from /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/swig/CMakeFiles/nlopt_python.dir/nloptPYTHON_wrap.cxx:206:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:26:1: note: in a call to function ‘void* memcpy(void*, const void*, size_t)’ declared ‘nonnull’
   26 | __NTH (memcpy (void *__restrict __dest, const void *__restrict __src,
      | ^~~~~
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/swig/CMakeFiles/nlopt_python.dir/nloptPYTHON_wrap.cxx: In function ‘PyObject* _wrap_opt_get_lower_bounds__SWIG_1(PyObject*, Py_ssize_t, PyObject**)’:
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/swig/CMakeFiles/nlopt_python.dir/nloptPYTHON_wrap.cxx:10784:16: warning: argument 2 null where non-null expected [-Wnonnull]
10784 |     std::memcpy(array_data(resultobj), (&result)->empty() ? NULL : &result[0],
      |     ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10785 |       sizeof(double) * sz);
      |       ~~~~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:26:1: note: in a call to function ‘void* memcpy(void*, const void*, size_t)’ declared ‘nonnull’
   26 | __NTH (memcpy (void *__restrict __dest, const void *__restrict __src,
      | ^~~~~
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/swig/CMakeFiles/nlopt_python.dir/nloptPYTHON_wrap.cxx: In function ‘PyObject* _wrap_opt_get_upper_bounds__SWIG_1(PyObject*, Py_ssize_t, PyObject**)’:
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/swig/CMakeFiles/nlopt_python.dir/nloptPYTHON_wrap.cxx:11022:16: warning: argument 2 null where non-null expected [-Wnonnull]
11022 |     std::memcpy(array_data(resultobj), (&result)->empty() ? NULL : &result[0],
      |     ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11023 |       sizeof(double) * sz);
      |       ~~~~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:26:1: note: in a call to function ‘void* memcpy(void*, const void*, size_t)’ declared ‘nonnull’
   26 | __NTH (memcpy (void *__restrict __dest, const void *__restrict __src,
      | ^~~~~
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/swig/CMakeFiles/nlopt_python.dir/nloptPYTHON_wrap.cxx: In function ‘PyObject* _wrap_opt_get_xtol_abs__SWIG_1(PyObject*, Py_ssize_t, PyObject**)’:
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/swig/CMakeFiles/nlopt_python.dir/nloptPYTHON_wrap.cxx:11492:16: warning: argument 2 null where non-null expected [-Wnonnull]
11492 |     std::memcpy(array_data(resultobj), (&result)->empty() ? NULL : &result[0],
      |     ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11493 |       sizeof(double) * sz);
      |       ~~~~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:26:1: note: in a call to function ‘void* memcpy(void*, const void*, size_t)’ declared ‘nonnull’
   26 | __NTH (memcpy (void *__restrict __dest, const void *__restrict __src,
      | ^~~~~
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/swig/CMakeFiles/nlopt_python.dir/nloptPYTHON_wrap.cxx: In function ‘PyObject* _wrap_opt_get_x_weights__SWIG_1(PyObject*, Py_ssize_t, PyObject**)’:
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/swig/CMakeFiles/nlopt_python.dir/nloptPYTHON_wrap.cxx:11730:16: warning: argument 2 null where non-null expected [-Wnonnull]
11730 |     std::memcpy(array_data(resultobj), (&result)->empty() ? NULL : &result[0],
      |     ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11731 |       sizeof(double) * sz);
      |       ~~~~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:26:1: note: in a call to function ‘void* memcpy(void*, const void*, size_t)’ declared ‘nonnull’
   26 | __NTH (memcpy (void *__restrict __dest, const void *__restrict __src,
      | ^~~~~
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/swig/CMakeFiles/nlopt_python.dir/nloptPYTHON_wrap.cxx: In function ‘PyObject* _wrap_opt_get_initial_step(PyObject*, PyObject*)’:
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/swig/CMakeFiles/nlopt_python.dir/nloptPYTHON_wrap.cxx:12532:16: warning: argument 2 null where non-null expected [-Wnonnull]
12532 |     std::memcpy(array_data(resultobj), (&result)->empty() ? NULL : &result[0],
      |     ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12533 |       sizeof(double) * sz);
      |       ~~~~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:26:1: note: in a call to function ‘void* memcpy(void*, const void*, size_t)’ declared ‘nonnull’
   26 | __NTH (memcpy (void *__restrict __dest, const void *__restrict __src,
      | ^~~~~
make[3]: *** [src/swig/CMakeFiles/nlopt_python.dir/build.make:82: src/swig/CMakeFiles/nlopt_python.dir/CMakeFiles/nlopt_python.dir/nloptPYTHON_wrap.cxx.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:297: src/swig/CMakeFiles/nlopt_python.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
[ 82%] Linking CXX shared module nlopt_guile.so
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/swig && /usr/bin/cmake -E cmake_link_script CMakeFiles/nlopt_guile.dir/link.txt --verbose=1
/usr/bin/x86_64-linux-gnu-g++ -fPIC -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -shared -Wl,-z,relro -Wl,-z,now -Wl,--dependency-file=CMakeFiles/nlopt_guile.dir/link.d  -o nlopt_guile.so CMakeFiles/nlopt_guile.dir/CMakeFiles/nlopt_guile.dir/nloptGUILE_wrap.cxx.o  -Wl,-rpath,/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu: ../../libnlopt_cxx.so.0.11.1 -lm
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 82%] Built target nlopt_guile
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:169: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j2 INSTALL="install --strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:12: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

Back to linux.debian.bugs.dist | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Bug#1145848: nlopt: FTBFS: /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/swig/CMakeFiles/nlopt_python.dir/nloptPYTHON_wrap.cxx:5323:9: error: 'PyString_Check' was not declared in this scope; did you mean 'PyMapping_Check'? Santiago Vila <sanvila@debian.org> - 2026-08-27 12:00 +0200
  Bug#1145848: Bug #1145848: Patch Rafael Laboissière <rafael@debian.org> - 2026-08-30 13:40 +0200
  Bug#1145848: Debian NEW review of nlopt 2.11.0-1: ACCEPTED <dfsg-team@debian.org> - 2026-09-01 19:40 +0200

csiph-web