Date: Sat, 24 Feb 2024 12:18:04 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 277280] sysutils/coreutils: fix build with clang 18 Message-ID: <bug-277280-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277280 Bug ID: 277280 Summary: sysutils/coreutils: fix build with clang 18 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: dim@FreeBSD.org CC: jharris@widomaker.com Flags: maintainer-feedback?(jharris@widomaker.com) CC: jharris@widomaker.com Clang 18 has become more stringent about use of checked integer operations, resulting in errors when building sysutils/coreutils: lib/posixtm.c:194:15: error: operand argument to checked integer operation must be an integer type other than plain 'char', 'bool', bit-precise, or an enumeration ('bool' invalid) 194 | if (ckd_add (&t, t, leapsec)) | ^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/stdckdint.h:16:37: note: expanded from macro 'ckd_add' 16 | (_Bool)__builtin_add_overflow((a), (b), (result)) | ^~~ The actual issue is the gnulib part of coreutils, which is a separate GNU project. That project has already identified and fixed it: https://git.savannah.gnu.org/gitweb/?p=3Dgnulib.git;a=3Dcommit;h=3D67c298c3= 6f6 Apply the fix to fix the build with clang 18. --=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-277280-7788>