* bug#74783: gcc@4.9.4 fails to build
@ 2024-12-11 10:01 gay--- via Bug reports for GNU Guix
2024-12-26 8:01 ` bug#74783: Gábor Stefanik
2025-01-07 2:34 ` bug#74783: Gábor Stefanik
0 siblings, 2 replies; 3+ messages in thread
From: gay--- via Bug reports for GNU Guix @ 2024-12-11 10:01 UTC (permalink / raw)
To: 74783
[-- Attachment #1: Type: text/plain, Size: 118 bytes --]
Hi, trying to run "guix shell hugs" results in error as its dependency
fails to build.
Attached gzip compressed log.
[-- Attachment #2: 64hky1gk2l54im9wa7j2r55a3xyhi8-gcc-4.9.4.drv.gz --]
[-- Type: application/gzip, Size: 824717 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#74783:
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 ` Gábor Stefanik
2025-01-07 2:34 ` bug#74783: Gábor Stefanik
1 sibling, 0 replies; 3+ messages in thread
From: Gábor Stefanik @ 2024-12-26 8:01 UTC (permalink / raw)
To: 74783
[-- Attachment #1: Type: text/plain, Size: 388 bytes --]
Currently bisecting this issue, the range I have right now is
3db653a2c235207b347849200eeb3f89bb4ba51 ..
9dbaa10aa755f33f8050082bb443d1f9eabf6e21
That's a 3 minute commit time difference, but containing 216 commits.
Nothing immediately obvious to my eyes. Many (most?) of the intermediate
commits die well before they would start building gcc-4.9.4, making
bisection incredibly tedious.
[-- Attachment #2: Type: text/html, Size: 461 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#74783:
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
1 sibling, 0 replies; 3+ messages in thread
From: Gábor Stefanik @ 2025-01-07 2:34 UTC (permalink / raw)
To: 74783
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-01-07 8:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` bug#74783: Gábor Stefanik
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).