[Bug 272235] devel/llvm-devel: Build error on CURRENT due to cpuset size change

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 26 Jun 2023 21:30:21 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272235

            Bug ID: 272235
           Summary: devel/llvm-devel: Build error on CURRENT due to cpuset
                    size change
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: brooks@FreeBSD.org
          Reporter: jfc@mit.edu
          Assignee: brooks@FreeBSD.org
             Flags: maintainer-feedback?(brooks@FreeBSD.org)

Created attachment 243022
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=243022&action=edit
cpuset is 1024 rather than 256 since FreeBSD version 1400090

The sanitizer libraries in llvm-devel fail to build on CURRENT because of the
recent change to the size of cpuset.  See LLVM bug
https://github.com/llvm/llvm-project/issues/63485


The build error looks like

/wrkdirs/usr/ports/devel/llvm-devel/work-default/llvm-project-9d1bcb70ec8830ad85c0756a03022d3811537284/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_freebsd.cpp:569:1:
error: static assertion failed due to requirement
'sizeof(__sanitizer::__sanitizer_cpuset) >= sizeof(_cpuset)': 
COMPILER_CHECK(sizeof(__sanitizer_cpuset_t) >= sizeof(cpuset_t));
^              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I attached a fix to make it build.  I have not tested the sanitizer libraries
built with this patch.

In the context of the llvm sanitizer libraries it does not seem to be possible
to include the correct header files to get the cpuset size definition.  The
sanitizer libraries wrap library calls and the wrappers definitions conflict.

-- 
You are receiving this mail because:
You are the assignee for the bug.