#1145694 mit-scheme: FTBFS: chacha.i:32:9: error: '_POSIX_C_SOURCE' redefined [-Werror]

#1145694#5
Date:
2026-08-26 18:05:02 UTC
From:
To:
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:mit-scheme, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -DMIT_SCHEME -DDEFAULT_LIBRARY_PATH=\"/usr/lib/x86_64-linux-gnu/mit-scheme\" -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I. -O3 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -frounding-math -fno-builtin-floor -Wall -Wclobbered -Wempty-body -Wignored-qualifiers -Wimplicit-fallthrough -Wmissing-field-initializers -Wmissing-parameter-type -Wnested-externs -Wold-style-declaration -Woverride-init -Wpointer-arith -Wredundant-decls -Wshift-negative-value -Wstrict-prototypes -Wtype-limits -Wundef -Wuninitialized -Wwrite-strings -Wno-error=stringop-truncation -Werror -o bitstr.o -c bitstr.c
x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -DMIT_SCHEME -DDEFAULT_LIBRARY_PATH=\"/usr/lib/x86_64-linux-gnu/mit-scheme\" -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I. -O3 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -frounding-math -fno-builtin-floor -Wall -Wclobbered -Wempty-body -Wignored-qualifiers -Wimplicit-fallthrough -Wmissing-field-initializers -Wmissing-parameter-type -Wnested-externs -Wold-style-declaration -Woverride-init -Wpointer-arith -Wredundant-decls -Wshift-negative-value -Wstrict-prototypes -Wtype-limits -Wundef -Wuninitialized -Wwrite-strings -Wno-error=stringop-truncation -Werror -o boot.o -c boot.c
x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -DMIT_SCHEME -DDEFAULT_LIBRARY_PATH=\"/usr/lib/x86_64-linux-gnu/mit-scheme\" -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I. -O3 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -frounding-math -fno-builtin-floor -Wall -Wclobbered -Wempty-body -Wignored-qualifiers -Wimplicit-fallthrough -Wmissing-field-initializers -Wmissing-parameter-type -Wnested-externs -Wold-style-declaration -Woverride-init -Wpointer-arith -Wredundant-decls -Wshift-negative-value -Wstrict-prototypes -Wtype-limits -Wundef -Wuninitialized -Wwrite-strings -Wno-error=stringop-truncation -Werror -o bytevector.o -c bytevector.c
x86_64-linux-gnu-gcc -DHAVE_CONFIG_H -DMIT_SCHEME -DDEFAULT_LIBRARY_PATH=\"/usr/lib/x86_64-linux-gnu/mit-scheme\" -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I. -O3 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -frounding-math -fno-builtin-floor -Wall -Wclobbered -Wempty-body -Wignored-qualifiers -Wimplicit-fallthrough -Wmissing-field-initializers -Wmissing-parameter-type -Wnested-externs -Wold-style-declaration -Woverride-init -Wpointer-arith -Wredundant-decls -Wshift-negative-value -Wstrict-prototypes -Wtype-limits -Wundef -Wuninitialized -Wwrite-strings -Wno-error=stringop-truncation -Werror -o chacha12.o -c chacha12.c
In file included from chacha12.c:49:
chacha.i:32:9: error: ‘_POSIX_C_SOURCE’ redefined [-Werror]
   32 | #define _POSIX_C_SOURCE 200809L
      |         ^~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdint.h:26,
                 from /usr/lib/gcc/x86_64-linux-gnu/16/include/stdint.h:11,
                 from chacha12.c:30:
/usr/include/features.h:319:10: note: this is the location of the previous definition
  319 | # define _POSIX_C_SOURCE        202405L
      |          ^~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[4]: *** [Makefile:182: chacha12.o] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/src/microcode'
make[3]: *** [Makefile:753: microcode/scheme] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: *** [Makefile:659: all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/src'
dh_auto_build: error: cd src && make -j1 returned exit code 2
make[1]: *** [debian/rules:61: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:19: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1145694#10
Date:
2026-09-05 18:51:53 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
mit-scheme, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1145694@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Barak A. Pearlmutter <bap@debian.org> (supplier of updated mit-scheme package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sat, 05 Sep 2026 14:25:13 +0100
Source: mit-scheme
Architecture: source
Version: 12.1-5
Distribution: unstable
Urgency: medium
Maintainer: Barak A. Pearlmutter <bap@debian.org>
Changed-By: Barak A. Pearlmutter <bap@debian.org>
Closes: 115450 1145694
Changes:
 mit-scheme (12.1-5) unstable; urgency=medium
 .
   * Remove redundant build dependency.
   * bump to debhelper 14
   * bump watch file to v5
   * Add patch to drop the ineffective (and now conflicting with glibc)
     late definition of _POSIX_C_SOURCE in src/microcode/chacha.i, which
     broke the -Werror microcode build. (Closes: #1145694)
   * Put the Info manuals in the "The Algorithmic Language Scheme"
     section, alongside the other Scheme systems, instead of in
     "Programming Languages" on their own. (Closes: #115450)
   * Patch blowfish_selftest to copy only the 8 bytes the Blowfish IV
     actually has; it was copying 16, overrunning both source and
     destination on the stack (gcc -Warray-bounds catches it).
   * Drop the redundant update-alternatives --remove calls from the
     postrm; the prerm already withdraws them, and by postrm time the
     binary is gone, so those calls could leave /etc/alternatives
     dangling.
   * Build-depend on libncurses-dev rather than the obsolete libncurses5-
     dev.
   * Stop spelling out ${shlibs:Depends} and ${misc:Depends}; debhelper
     compat 14 fills the dependency fields in on its own, and naming them
     made dpkg-gencontrol warn.
   * Also install the man page under the version-qualified name of the
     real binary.
   * Refer to the FSF licence page in debian/copyright instead of the old
     postal address.
   * Record the upstream bug tracker in debian/upstream/metadata.
   * Add DEP-3 Forwarded: fields to the patches that lacked them.
   * Override two lintian tags that do not apply: the interpreter's file
     name is architecture-qualified, and the desktop entry's command
     comes from update-alternatives.
   * Patch sos.texinfo to drop a stray menu that claimed six sibling
     chapters as children of the Introduction.
Checksums-Sha1:
 5d34e03ba4886a73bdd520a0a6f8f9d5a3117ec0 1601 mit-scheme_12.1-5.dsc
 f2478ee2bdd14549ec3c736d0ca4a03d45079d07 41900 mit-scheme_12.1-5.debian.tar.xz
 e588d9cae89f891310265bdb2eb453e4462d85da 10141 mit-scheme_12.1-5_source.buildinfo
Checksums-Sha256:
 e2009ec56b963f84a8bba0b86434fb8631020c965ced6934161dfb26ef20f518 1601 mit-scheme_12.1-5.dsc
 5af17f236a00afa9f29e02421a4afe22c344a1cfc463c842399e8f821e1354f6 41900 mit-scheme_12.1-5.debian.tar.xz
 bc5d7041def8e51e89cc361dfc055c73d8a00fa42a3cd4575aecb7c6cc402a25 10141 mit-scheme_12.1-5_source.buildinfo
Files:
 a734c8ca4463b6c0fdfe866485f41fb4 1601 lisp optional mit-scheme_12.1-5.dsc
 6fc4af8ec5410da4324fd18fadbe0518 41900 lisp optional mit-scheme_12.1-5.debian.tar.xz
 a4890886fefbaa6a8634e167b3b41af4 10141 lisp optional mit-scheme_12.1-5_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iIUEARYKAC0WIQQt5L8FQhB2xHrSA2fGrySQ08pyuQUCapxeyQ8cYmFwQGRlYmlh
bi5vcmcACgkQxq8kkNPKcrmVvAEAptWBg6YIcbVYr4KvnaaHS0PlDH512Mk1f0Hm
NAmIdl8BAN/Kt0hDMuW7SMU82U24WSHYsZsKHu6G2t+CW58pNE0G
=SUZi
-----END PGP SIGNATURE-----