GNU bug report logs - #72036
31.0.50; master doesn't build on macOS with clang 18

Previous Next

Package: emacs;

Reported by: Gerd Möllmann <gerd.moellmann <at> gmail.com>

Date: Wed, 10 Jul 2024 14:11:02 UTC

Severity: normal

Found in version 31.0.50

Done: Pip Cet <pipcet <at> protonmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 72036 in the body.
You can then email your comments to 72036 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#72036; Package emacs. (Wed, 10 Jul 2024 14:11:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Gerd Möllmann <gerd.moellmann <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 10 Jul 2024 14:11:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Gerd Möllmann <gerd.moellmann <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 31.0.50; master doesn't build on macOS with clang 18
Date: Wed, 10 Jul 2024 16:09:50 +0200
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))
      |                                                      ^~~






Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#72036; Package emacs. (Wed, 10 Jul 2024 15:40:02 GMT) Full text and rfc822 format available.

Message #8 received at 72036 <at> debbugs.gnu.org (full text, mbox):

From: Pip Cet <pipcet <at> protonmail.com>
To: Gerd Möllmann <gerd.moellmann <at> gmail.com>,
 "eggert <at> cs.ucla.edu" <eggert <at> cs.ucla.edu>,
 "meyering <at> meta.com" <meyering <at> meta.com>
Cc: 72036 <at> debbugs.gnu.org
Subject: Re: bug#72036: 31.0.50; master doesn't build on macOS with clang 18
Date: Wed, 10 Jul 2024 15:38:56 +0000
[Message part 1 (text/plain, inline)]
(CC'ing Paul Eggert and Jim Meyering, the relevant gnulib maintainers).

On Wednesday, July 10th, 2024 at 14:09, Gerd Möllmann <gerd.moellmann <at> gmail.com> 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.

Pip
[0001-timespec-sub-Fix-compilation-error-on-clang.patch (text/x-patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#72036; Package emacs. (Wed, 10 Jul 2024 16:18:02 GMT) Full text and rfc822 format available.

Message #11 received at 72036 <at> debbugs.gnu.org (full text, mbox):

From: Gerd Möllmann <gerd.moellmann <at> gmail.com>
To: Pip Cet <pipcet <at> protonmail.com>
Cc: "eggert <at> cs.ucla.edu" <eggert <at> cs.ucla.edu>,
 "meyering <at> meta.com" <meyering <at> meta.com>, 72036 <at> debbugs.gnu.org
Subject: Re: bug#72036: 31.0.50; master doesn't build on macOS with clang 18
Date: Wed, 10 Jul 2024 18:16:07 +0200
Pip Cet <pipcet <at> protonmail.com> writes:

> (CC'ing Paul Eggert and Jim Meyering, the relevant gnulib maintainers).
>
> On Wednesday, July 10th, 2024 at 14:09, Gerd Möllmann <gerd.moellmann <at> gmail.com> 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!




Reply sent to Pip Cet <pipcet <at> protonmail.com>:
You have taken responsibility. (Wed, 10 Jul 2024 16:30:02 GMT) Full text and rfc822 format available.

Notification sent to Gerd Möllmann <gerd.moellmann <at> gmail.com>:
bug acknowledged by developer. (Wed, 10 Jul 2024 16:30:02 GMT) Full text and rfc822 format available.

Message #16 received at 72036-done <at> debbugs.gnu.org (full text, mbox):

From: Pip Cet <pipcet <at> protonmail.com>
To: Gerd Möllmann <gerd.moellmann <at> gmail.com>
Cc: "eggert <at> cs.ucla.edu" <eggert <at> cs.ucla.edu>,
 "meyering <at> meta.com" <meyering <at> meta.com>,
 "72036-done <at> debbugs.gnu.org" <72036-done <at> debbugs.gnu.org>
Subject: Re: bug#72036: 31.0.50; master doesn't build on macOS with clang 18
Date: Wed, 10 Jul 2024 16:29:30 +0000
On Wednesday, July 10th, 2024 at 16:16, Gerd Möllmann <gerd.moellmann <at> gmail.com> wrote:
> Pip Cet pipcet <at> protonmail.com writes:
> 
> > (CC'ing Paul Eggert and Jim Meyering, the relevant gnulib maintainers).
> > 
> > On Wednesday, July 10th, 2024 at 14:09, Gerd Möllmann gerd.moellmann <at> gmail.com 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




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 08 Aug 2024 11:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 317 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.