coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Build failure with CFLAGS=-g


From: Mingye Wang
Subject: Re: Build failure with CFLAGS=-g
Date: Mon, 6 Feb 2023 11:49:16 +0800

Did I forget to reply all again? Phones! Ah well, here’s the missing CC.
Sorry for the HTML mail.

On Mon, 6 Feb 2023 at 02:06, Glenn Golden wrote:

> Mingye Wang [2023-02-06 01:56:18 +0800]:


> >
> > Some quick observations I can do on a phone:
> > * Errors occur in gnulib, specifically
> > https://github.com/coreutils/gnulib/blob/master/lib/nstrftime.c — we can
> > get a smaller test case out of that.
> > * Errors are memset calls, which might be turned into a builtin in
> > optimized builds. Maybe -fbuiltin-memset hid the issue?
> > * The size in the memset call is calculated by macro width_add as `if
> > (_n<_w){size_t _delta=_w -_n;}`. The error’s "size" seem to indicate the
> > compile-time evaluation somehow underflowed and got -1.
> >
>
> Thanks.
>
> I would suggest posting the above to the coreutils list; your legwork in
> tracing the issue may be of use and interest to them. (I am not a coreutils
> developer; I just happened to have stumbled upon the issue, and posted it
> as a heads-up to the developers.)
>
> Glenn
>
-- 
--
Mingye Wang (Artoria2e5)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]