Debian Bug report logs - #971937
musl-gcc doesn't use musl's stdc-predef.h

version graph

Package: musl-tools; Maintainer for musl-tools is Reiner Herrmann <[email protected]>; Source for musl-tools is src:musl (PTS, buildd, popcon).

Reported by: John Scott <[email protected]>

Date: Sat, 10 Oct 2020 02:39:02 UTC

Severity: normal

Found in version musl/1.2.1-1

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Reiner Herrmann <[email protected]>:
Bug#971937; Package musl-tools. (Sat, 10 Oct 2020 02:39:04 GMT) (full text, mbox, link).


Acknowledgement sent to John Scott <[email protected]>:
New Bug report received and forwarded. Copy sent to Reiner Herrmann <[email protected]>. (Sat, 10 Oct 2020 02:39:04 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: John Scott <[email protected]>
To: Debian Bug Tracking System <[email protected]>
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-----



Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 14:56:28 2025; Machine Name: buxtehude

Debian Bug tracking system

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/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.