Date: Wed, 17 Jul 2024 08:33:06 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 280324] editors/emacs-devel: build failure on current Message-ID: <bug-280324-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280324 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 vers= ion 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 =3D=3D 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 =3D ckd_sub (&rs, a.tv_sec, b.tv_sec); - if (v =3D=3D ckd_sub (&rs, rs, borrow)) + if (v =3D=3D ckd_sub (&rs, rs, borrow ? 1 : 0)) rns =3D nsdiff + TIMESPEC_HZ * borrow; else { --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-280324-7788>