[Bug 280324] editors/emacs-devel: build failure on current
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 17 Jul 2024 08:33:06 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280324 Bug ID: 280324 Summary: editors/emacs-devel: build failure on current Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: emacs@FreeBSD.org Reporter: freebsd@dev.thsi.be Flags: maintainer-feedback?(emacs@FreeBSD.org) Assignee: emacs@FreeBSD.org Hello, Without NATIVECOMP, emacs-devel@nox fails to build on a poudriere jail version 15.0-CURRENT 1500020, with this error: 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)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdckdint.h:24:37: note: expanded from macro 'ckd_sub' 24 | (_Bool)__builtin_sub_overflow((a), (b), (result)) | ^~~ 1 error generated. This simple patch allows the build to succeed. --- lib/timespec-sub.c.orig 2024-07-17 08:05:02 UTC +++ lib/timespec-sub.c @@ -35,7 +35,7 @@ timespec_sub (struct timespec a, struct timespec b) time_t rs; int rns; bool v = ckd_sub (&rs, a.tv_sec, b.tv_sec); - if (v == ckd_sub (&rs, rs, borrow)) + if (v == ckd_sub (&rs, rs, borrow ? 1 : 0)) rns = nsdiff + TIMESPEC_HZ * borrow; else { -- You are receiving this mail because: You are the assignee for the bug.