* [musl] Switch to 64-bit time_t breaks strace build
@ 2020-03-26 13:11 Baruch Siach
2020-03-26 14:49 ` Rich Felker
0 siblings, 1 reply; 2+ messages in thread
From: Baruch Siach @ 2020-03-26 13:11 UTC (permalink / raw)
To: musl
Hi musl list,
Commit 381433396 (switch all existing 32-bit archs to 64-bit time_t)
changed the IPC_STAT value on 32-bit arches from 2 to 0x102. This break
strace build time assertion of IPC_STAT value:
In file included from ./static_assert.h:11,
from xlat/msgctl_flags.h:4,
from ipc_msgctl.c:32:
xlat/msgctl_flags.h:22:1: error: static assertion failed: "IPC_STAT != 2"
static_assert((IPC_STAT) == (2), "IPC_STAT != 2");
I that a strace bug?
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [musl] Switch to 64-bit time_t breaks strace build
2020-03-26 13:11 [musl] Switch to 64-bit time_t breaks strace build Baruch Siach
@ 2020-03-26 14:49 ` Rich Felker
0 siblings, 0 replies; 2+ messages in thread
From: Rich Felker @ 2020-03-26 14:49 UTC (permalink / raw)
To: musl; +Cc: Baruch Siach
On Thu, Mar 26, 2020 at 03:11:12PM +0200, Baruch Siach wrote:
> Hi musl list,
>
> Commit 381433396 (switch all existing 32-bit archs to 64-bit time_t)
> changed the IPC_STAT value on 32-bit arches from 2 to 0x102. This break
> strace build time assertion of IPC_STAT value:
>
> In file included from ./static_assert.h:11,
> from xlat/msgctl_flags.h:4,
> from ipc_msgctl.c:32:
> xlat/msgctl_flags.h:22:1: error: static assertion failed: "IPC_STAT != 2"
> static_assert((IPC_STAT) == (2), "IPC_STAT != 2");
>
> I that a strace bug?
Yes, it's one of the things mentioned in the time64 release notes:
https://musl.libc.org/time64.html
The upstream bug is:
https://github.com/strace/strace/issues/116
and it's fixed in:
https://github.com/strace/strace/commit/ce2c968a614ae2a3cf2354620b3b8200f003e87c
There are also some other non-build-breaking bugs with decoding of
structs, such as:
https://github.com/strace/strace/issues/122
I suspect most if not all are fixed now but I haven't checked lately.
Rich
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-03-26 14:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-26 13:11 [musl] Switch to 64-bit time_t breaks strace build Baruch Siach
2020-03-26 14:49 ` Rich Felker
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
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 NNTP newsgroup(s).