[R-pkg-team] Bug#1135460: r-bioc-chemminer: FTBFS: r_wrap.cc:982:3: error: 'SET_S4_OBJECT' was not declared in this scope; did you mean 'NEW_OBJECT'?

Santiago Vila sanvila at debian.org
Sat May 2 00:14:31 BST 2026


Package: src:r-bioc-chemminer
Version: 3.58.0+dfsg-3
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/202605/

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:r-bioc-chemminer, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --buildsystem R
   dh_auto_clean -O--buildsystem=R
   dh_autoreconf_clean -O--buildsystem=R
   dh_clean -O--buildsystem=R
 debian/rules binary
dh binary --buildsystem R
   dh_update_autotools_config -O--buildsystem=R
   dh_autoreconf -O--buildsystem=R
   dh_auto_configure -O--buildsystem=R
   dh_auto_build -O--buildsystem=R
   dh_auto_test -O--buildsystem=R
   create-stamp debian/debhelper-build-stamp
   dh_testroot -O--buildsystem=R
   dh_prep -O--buildsystem=R
   dh_auto_install --destdir=debian/r-bioc-chemminer/ -O--buildsystem=R
I: R Package: ChemmineR Version: 3.58.0
I: Building using R version 4.6.0-2
I: R API version: r-api-4.0
I: Using built-time from d/changelog: Fri, 13 Mar 2026 12:57:40 +0900
	mkdir -p /<<BUILDDIR>>/r-bioc-chemminer-3.58.0\+dfsg/debian/r-bioc-chemminer/usr/lib/R/site-library
	R CMD INSTALL -l /<<BUILDDIR>>/r-bioc-chemminer-3.58.0\+dfsg/debian/r-bioc-chemminer/usr/lib/R/site-library --clean . --built-timestamp="'Fri, 13 Mar 2026 12:57:40 +0900'"
* installing *source* package ‘ChemmineR’ ...
** this is package ‘ChemmineR’ version ‘3.58.0’
files ‘inst/doc/ChemmineR.html’, ‘vignettes/ChemmineR.Rnw.orig’ are missing
** using staged installation
** libs
using C++ compiler: ‘x86_64-linux-gnu-g++ (Debian 15.2.0-17) 15.2.0’
make[1]: Entering directory '/<<PKGBUILDDIR>>/src'
x86_64-linux-gnu-g++ -std=gnu++20 -I"/usr/share/R/include" -DNDEBUG  -I'/usr/lib/R/site-library/Rcpp/include' -I'/usr/lib/R/site-library/BH/include'    -DNO_MAIN -DNO_DEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP -fpic  -g -O2 -ffile-prefix-map=/build/reproducible-path/r-base-4.6.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2   -c DisjointSets.cpp -o DisjointSets.o
x86_64-linux-gnu-g++ -std=gnu++20 -I"/usr/share/R/include" -DNDEBUG  -I'/usr/lib/R/site-library/Rcpp/include' -I'/usr/lib/R/site-library/BH/include'    -DNO_MAIN -DNO_DEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP -fpic  -g -O2 -ffile-prefix-map=/build/reproducible-path/r-base-4.6.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2   -c cluster.cc -o cluster.o
x86_64-linux-gnu-g++ -std=gnu++20 -I"/usr/share/R/include" -DNDEBUG  -I'/usr/lib/R/site-library/Rcpp/include' -I'/usr/lib/R/site-library/BH/include'    -DNO_MAIN -DNO_DEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP -fpic  -g -O2 -ffile-prefix-map=/build/reproducible-path/r-base-4.6.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2   -c cstrsplit.cc -o cstrsplit.o
x86_64-linux-gnu-g++ -std=gnu++20 -I"/usr/share/R/include" -DNDEBUG  -I'/usr/lib/R/site-library/Rcpp/include' -I'/usr/lib/R/site-library/BH/include'    -DNO_MAIN -DNO_DEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP -fpic  -g -O2 -ffile-prefix-map=/build/reproducible-path/r-base-4.6.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2   -c desc.cc -o desc.o
x86_64-linux-gnu-g++ -std=gnu++20 -I"/usr/share/R/include" -DNDEBUG  -I'/usr/lib/R/site-library/Rcpp/include' -I'/usr/lib/R/site-library/BH/include'    -DNO_MAIN -DNO_DEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP -fpic  -g -O2 -ffile-prefix-map=/build/reproducible-path/r-base-4.6.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2   -c fingerprints.cc -o fingerprints.o
x86_64-linux-gnu-g++ -std=gnu++20 -I"/usr/share/R/include" -DNDEBUG  -I'/usr/lib/R/site-library/Rcpp/include' -I'/usr/lib/R/site-library/BH/include'    -DNO_MAIN -DNO_DEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP -fpic  -g -O2 -ffile-prefix-map=/build/reproducible-path/r-base-4.6.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2   -c formats.cc -o formats.o
x86_64-linux-gnu-g++ -std=gnu++20 -I"/usr/share/R/include" -DNDEBUG  -I'/usr/lib/R/site-library/Rcpp/include' -I'/usr/lib/R/site-library/BH/include'    -DNO_MAIN -DNO_DEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP -fpic  -g -O2 -ffile-prefix-map=/build/reproducible-path/r-base-4.6.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2   -c molecule.cc -o molecule.o
x86_64-linux-gnu-g++ -std=gnu++20 -I"/usr/share/R/include" -DNDEBUG  -I'/usr/lib/R/site-library/Rcpp/include' -I'/usr/lib/R/site-library/BH/include'    -DNO_MAIN -DNO_DEBUG -DSTRICT_R_HEADERS -DR_NO_REMAP -fpic  -g -O2 -ffile-prefix-map=/build/reproducible-path/r-base-4.6.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2   -c r_wrap.cc -o r_wrap.o
r_wrap.cc:758:10: warning: ‘R_NO_REMAP’ redefined
  758 | # define R_NO_REMAP
      |          ^~~~~~~~~~
<command-line>: note: this is the location of the previous definition
r_wrap.cc:761:10: warning: ‘STRICT_R_HEADERS’ redefined
  761 | # define STRICT_R_HEADERS
      |          ^~~~~~~~~~~~~~~~
<command-line>: note: this is the location of the previous definition
r_wrap.cc: In function ‘SEXPREC* SWIG_MakePtr(void*, const char*, int)’:
r_wrap.cc:982:3: error: ‘SET_S4_OBJECT’ was not declared in this scope; did you mean ‘NEW_OBJECT’?
  982 |   SET_S4_OBJECT(r_obj);
      |   ^~~~~~~~~~~~~
      |   NEW_OBJECT
r_wrap.cc: In function ‘SEXPREC* R_SWIG_create_SWIG_R_Array(const char*, SEXP, int)’:
r_wrap.cc:1000:4: error: ‘SET_S4_OBJECT’ was not declared in this scope; did you mean ‘NEW_OBJECT’?
 1000 |    SET_S4_OBJECT(arr);
      |    ^~~~~~~~~~~~~
      |    NEW_OBJECT
r_wrap.cc: In function ‘SEXPREC* SWIG_R_NewPointerObj(void*, swig_type_info*, int)’:
r_wrap.cc:1023:3: error: ‘SET_S4_OBJECT’ was not declared in this scope; did you mean ‘NEW_OBJECT’?
 1023 |   SET_S4_OBJECT(rptr);
      |   ^~~~~~~~~~~~~
      |   NEW_OBJECT
make[1]: *** [/usr/lib/R/etc/Makeconf:197: r_wrap.o] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[1]: Entering directory '/<<PKGBUILDDIR>>/src'
make[1]: Leaving directory '/<<PKGBUILDDIR>>/src'
ERROR: compilation failed for package ‘ChemmineR’
* removing ‘/<<PKGBUILDDIR>>/debian/r-bioc-chemminer/usr/lib/R/site-library/ChemmineR’
dh_auto_install: error: R CMD INSTALL -l /<<BUILDDIR>>/r-bioc-chemminer-3.58.0\+dfsg/debian/r-bioc-chemminer/usr/lib/R/site-library --clean . --built-timestamp="'Fri, 13 Mar 2026 12:57:40 +0900'" returned exit code 1
make: *** [debian/rules:4: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------



More information about the R-pkg-team mailing list