Subject: musl-gcc doesn't use musl's stdc-predef.h
Date: Fri, 09 Oct 2020 22:34:45 -0400
Package: musl-tools
Version: 1.2.1-1
Severity: normal
X-Debbugs-Cc:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
I suspect this is a quirk in musl-gcc at build time. Normally with
gcc it pulls in stdc-predef.h even if the standard library is excluded,
which basically just sets __STDC_IEC_559__ and __STDC_ISO_10646__ in
glibc and musl both:
$ true | gcc -x c -nostdlib -E -
# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command-line>"
# 31 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 32 "<command-line>" 2
# 1 "<stdin>"
musl-gcc does nothing so these macros are left unset:
$ true | musl-gcc -x c -nostdlib -E -
# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "<stdin>"
See https://git.musl-libc.org/cgit/musl/tree/include/stdc-predef.h
- -- System Information:
Debian Release: bullseye/sid
APT prefers testing
APT policy: (500, 'testing'), (2, 'unstable'), (1, 'testing-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.8.0-2-amd64 (SMP w/2 CPU threads)
Kernel taint flags: TAINT_USER, TAINT_WARN, TAINT_FIRMWARE_WORKAROUND
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages musl-tools depends on:
ii gcc 4:10.2.0-1
ii musl-dev 1.2.1-1
musl-tools recommends no packages.
musl-tools suggests no packages.
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
iHUEARYIAB0WIQT287WtmxUhmhucNnhyvHFIwKstpwUCX4EdwQAKCRByvHFIwKst
pzq2AQDywuBnvN/QKE3UXLYOZ5zabYJu/pgzHnPYkbiAE/VHrgEAjmPQ1VEocBB3
ywcJ+MYoMY/0yFNWzbwVF6ltAhN8SgY=
=X4ZW
-----END PGP SIGNATURE-----
Debbugs is free software and licensed under the terms of the GNU General
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.