[Bug 277280] sysutils/coreutils: fix build with clang 18
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 277280] sysutils/coreutils: fix build with clang 18"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 277280] sysutils/coreutils: fix build with clang 18"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 277280] sysutils/coreutils: fix build with clang 18"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 277280] sysutils/coreutils: fix build with clang 18"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 277280] sysutils/coreutils: fix build with clang 18"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 24 Feb 2024 12:18:04 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277280 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=gnulib.git;a=commit;h=67c298c36f6 Apply the fix to fix the build with clang 18. -- You are receiving this mail because: You are the assignee for the bug.