unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: "Gábor Stefanik" <netrolller.3d@gmail.com>
To: 74783@debbugs.gnu.org
Subject: bug#74783:
Date: Tue, 7 Jan 2025 03:34:59 +0100	[thread overview]
Message-ID: <CA+XFjiqAK_7h7xVkh_AQmAMEvqKKz6TqfidwfMxqn_muaqgV=w@mail.gmail.com> (raw)
In-Reply-To: <c7d02f649d0509e1450115c88bf69465@disroot.org>

Between 2.35 and 2.38, glibc added the following code to sys/mount.h:

> #ifdef __has_include
> # if __has_include ("linux/mount.h")
> #  include "linux/mount.h"
> # endif
> #endif

This is then used to conditionally define structures that would be in
linux/mount.h, in case linux/mount.h is either unavailable or missing
those structures.

The __has_include directive was added to GCC in v5.0, and didn't
become standard until C++17. Unfortunately, this causes the first
#ifdef to fail, and so linux/mount.h is never checked. Any code trying
to include both sys/mount.h and linux/mount.h will therefore fail when
compiled with GCC < 5.0 and glibc >= 2.38.

Possible solutions:
* Patch sys/mount.h to make it include linux/mount.h unconditionally
on all platforms using the Linux kernel.
* Somehow remove linux/mount.h from GCC 4.9's
sanitizer_platform_limits_posix.cc. Unfortunately it's an indirect
include from linux/fs.h.




      parent reply	other threads:[~2025-01-07  8:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-11 10:01 bug#74783: gcc@4.9.4 fails to build gay--- via Bug reports for GNU Guix
2024-12-26  8:01 ` bug#74783: Gábor Stefanik
2025-01-07  2:34 ` Gábor Stefanik [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+XFjiqAK_7h7xVkh_AQmAMEvqKKz6TqfidwfMxqn_muaqgV=w@mail.gmail.com' \
    --to=netrolller.3d@gmail.com \
    --cc=74783@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).