Subject: bug#72036: closed (Re: bug#72036: 31.0.50; master doesn't build on macOS with clang 18)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 10 Jul 2024 16:30:02 +0000

Your bug report

#72036: 31.0.50; master doesn't build on macOS with clang 18

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
72036: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=72036
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#72036: 31.0.50; master doesn't build on macOS with clang 18
From: Pip Cet <[email-masked]>
To: Gerd Möllmann <[email-masked]>
Cc: "[email-masked]" <[email-masked]>, "[email-masked]" <[email-masked]>, "[email-masked]" <[email-masked]>
Date: Wed, 10 Jul 2024 16:29:30 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

On Wednesday, July 10th, 2024 at 16:16, Gerd Möllmann <[email-masked]> wrote:
> Pip Cet [email-masked] writes:
> 
> > (CC'ing Paul Eggert and Jim Meyering, the relevant gnulib maintainers).
> > 
> > On Wednesday, July 10th, 2024 at 14:09, Gerd Möllmann [email-masked] wrote:
> > 
> > > master, HEAD a29a385ee5ea938ed17d94622c7bfd0a10e84830
> > > 
> > > timespec-sub.c:38:12: error: operand argument to checked integer operation must be an integer type
> > > other than plain 'char', 'bool', bit-precise, or an enumeration ('bool' invalid)
> > > 38 | if (v == ckd_sub (&rs, rs, borrow))
> > > | ^~~~~~~~~~~~~~~~~~~~~~~~~
> > > /opt/homebrew/Cellar/llvm/18.1.8/lib/clang/18/include/stdckdint.h:38:54: note: expanded from macro
> > > 'ckd_sub'
> > > 38 | #define ckd_sub(R, A, B) __builtin_sub_overflow((A), (B), (R))
> > > | ^~~
> > 
> > The attached patch to gnulib helps here. I'm using clang version
> > 18.1.8 and the testdir-all build fails if I ./configure CC=clang.
> 
> 
> Thanks!

Closing this optimistically as Paul pushed a fix.

Pip

Subject: 31.0.50; master doesn't build on macOS with clang 18
From: Gerd Möllmann <[email-masked]>
To: [email-masked]
Date: Wed, 10 Jul 2024 16:09:50 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

master, HEAD a29a385ee5ea938ed17d94622c7bfd0a10e84830

timespec-sub.c:38:12: error: operand argument to checked integer operation must be an integer type
      other than plain 'char', 'bool', bit-precise, or an enumeration ('bool' invalid)
   38 |   if (v == ckd_sub (&rs, rs, borrow))
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/Cellar/llvm/18.1.8/lib/clang/18/include/stdckdint.h:38:54: note: expanded from macro
      'ckd_sub'
   38 | #define ckd_sub(R, A, B) __builtin_sub_overflow((A), (B), (R))
      |                                                      ^~~