public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/27042] New: [alpha] anonymous union in struct stat confuses detection logic
@ 2020-12-09 16:18 mattst88 at gmail dot com
2020-12-09 16:18 ` [Bug libc/27042] " mattst88 at gmail dot com
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: mattst88 at gmail dot com @ 2020-12-09 16:18 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=27042
Bug ID: 27042
Summary: [alpha] anonymous union in struct stat confuses
detection logic
Product: glibc
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: mattst88 at gmail dot com
CC: drepper.fsp at gmail dot com
Target Milestone: ---
Created attachment 13030
--> https://sourceware.org/bugzilla/attachment.cgi?id=13030&action=edit
dev-libs/glib-2.66.3 build failure
glibc's bits/stat.h header tricks the configure feature detection in at least
dev-libs/glib and app-arch/zstd (see bug 735818).
The issue is
# define __ST_TIME(X) \
__extension__ union { \
struct timespec st_##X##tim; \
struct { \
__time_t st_##X##time; \
unsigned long st_##X##timensec; \
}; \
}
... a neat trick using an anonymous union to provide st_mtimensec, et al.
glib's configuration results look like this on amd64:
Checking if "statx() test" compiles: YES
Header <locale.h> has symbol "LC_MESSAGES" : YES
Checking whether type "struct stat" has member "st_mtimensec" : NO
Checking whether type "struct stat" has member "st_mtim.tv_nsec" : YES
Checking whether type "struct stat" has member "st_atimensec" : NO
Checking whether type "struct stat" has member "st_atim.tv_nsec" : YES
Checking whether type "struct stat" has member "st_ctimensec" : NO
Checking whether type "struct stat" has member "st_ctim.tv_nsec" : YES
but like this on alpha:
Checking if "statx() test" compiles: YES
Header <locale.h> has symbol "LC_MESSAGES" : YES
Checking whether type "struct stat" has member "st_mtimensec" : YES
Checking whether type "struct stat" has member "st_mtim.tv_nsec" : YES
Checking whether type "struct stat" has member "st_atimensec" : YES
Checking whether type "struct stat" has member "st_atim.tv_nsec" : YES
Checking whether type "struct stat" has member "st_ctimensec" : YES
Checking whether type "struct stat" has member "st_ctim.tv_nsec" : YES
which ultimately causes the build to compile a path that doesn't work.
(Attached is the build failure snippet)
See downstream bug reports
https://bugs.gentoo.org/759001
https://bugs.gentoo.org/735818
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libc/27042] [alpha] anonymous union in struct stat confuses detection logic
2020-12-09 16:18 [Bug libc/27042] New: [alpha] anonymous union in struct stat confuses detection logic mattst88 at gmail dot com
@ 2020-12-09 16:18 ` mattst88 at gmail dot com
2020-12-09 16:21 ` mattst88 at gmail dot com
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: mattst88 at gmail dot com @ 2020-12-09 16:18 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=27042
Matt Turner <mattst88 at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Host| |alpha*-*-linux*
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libc/27042] [alpha] anonymous union in struct stat confuses detection logic
2020-12-09 16:18 [Bug libc/27042] New: [alpha] anonymous union in struct stat confuses detection logic mattst88 at gmail dot com
2020-12-09 16:18 ` [Bug libc/27042] " mattst88 at gmail dot com
@ 2020-12-09 16:21 ` mattst88 at gmail dot com
2020-12-09 16:52 ` schwab@linux-m68k.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: mattst88 at gmail dot com @ 2020-12-09 16:21 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=27042
Matt Turner <mattst88 at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
URL| |https://sourceware.org/pipe
| |rmail/libc-alpha/2020-Decem
| |ber/120573.html
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libc/27042] [alpha] anonymous union in struct stat confuses detection logic
2020-12-09 16:18 [Bug libc/27042] New: [alpha] anonymous union in struct stat confuses detection logic mattst88 at gmail dot com
2020-12-09 16:18 ` [Bug libc/27042] " mattst88 at gmail dot com
2020-12-09 16:21 ` mattst88 at gmail dot com
@ 2020-12-09 16:52 ` schwab@linux-m68k.org
2020-12-09 17:53 ` mattst88 at gmail dot com
2020-12-21 12:20 ` adhemerval.zanella at linaro dot org
4 siblings, 0 replies; 6+ messages in thread
From: schwab@linux-m68k.org @ 2020-12-09 16:52 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=27042
Andreas Schwab <schwab@linux-m68k.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |NOTABUG
Status|UNCONFIRMED |RESOLVED
--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> ---
The existence of the st_?time macros is an implementation detail.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libc/27042] [alpha] anonymous union in struct stat confuses detection logic
2020-12-09 16:18 [Bug libc/27042] New: [alpha] anonymous union in struct stat confuses detection logic mattst88 at gmail dot com
` (2 preceding siblings ...)
2020-12-09 16:52 ` schwab@linux-m68k.org
@ 2020-12-09 17:53 ` mattst88 at gmail dot com
2020-12-21 12:20 ` adhemerval.zanella at linaro dot org
4 siblings, 0 replies; 6+ messages in thread
From: mattst88 at gmail dot com @ 2020-12-09 17:53 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=27042
Matt Turner <mattst88 at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|NOTABUG |---
Status|RESOLVED |UNCONFIRMED
--- Comment #2 from Matt Turner <mattst88 at gmail dot com> ---
Please don't do that.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libc/27042] [alpha] anonymous union in struct stat confuses detection logic
2020-12-09 16:18 [Bug libc/27042] New: [alpha] anonymous union in struct stat confuses detection logic mattst88 at gmail dot com
` (3 preceding siblings ...)
2020-12-09 17:53 ` mattst88 at gmail dot com
@ 2020-12-21 12:20 ` adhemerval.zanella at linaro dot org
4 siblings, 0 replies; 6+ messages in thread
From: adhemerval.zanella at linaro dot org @ 2020-12-21 12:20 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=27042
Adhemerval Zanella <adhemerval.zanella at linaro dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |adhemerval.zanella at linaro dot o
| |rg
Resolution|--- |FIXED
Target Milestone|--- |2.33
Status|UNCONFIRMED |RESOLVED
--- Comment #3 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
Fixed on 2.33.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-12-21 12:20 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-09 16:18 [Bug libc/27042] New: [alpha] anonymous union in struct stat confuses detection logic mattst88 at gmail dot com
2020-12-09 16:18 ` [Bug libc/27042] " mattst88 at gmail dot com
2020-12-09 16:21 ` mattst88 at gmail dot com
2020-12-09 16:52 ` schwab@linux-m68k.org
2020-12-09 17:53 ` mattst88 at gmail dot com
2020-12-21 12:20 ` adhemerval.zanella at linaro dot org
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).