Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jun 2023 21:30:21 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 272235] devel/llvm-devel: Build error on CURRENT due to cpuset size change
Message-ID:  <bug-272235-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272235

            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=3D243022&action=
=3Dedit
cpuset is 1024 rather than 256 since FreeBSD version 1400090

The sanitizer libraries in llvm-devel fail to build on CURRENT because of t=
he
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-9d1bcb70ec883=
0ad85c0756a03022d3811537284/compiler-rt/lib/sanitizer_common/sanitizer_plat=
form_limits_freebsd.cpp:569:1:
error: static assertion failed due to requirement
'sizeof(__sanitizer::__sanitizer_cpuset) >=3D sizeof(_cpuset)':=20
COMPILER_CHECK(sizeof(__sanitizer_cpuset_t) >=3D sizeof(cpuset_t));
^              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

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

--=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-272235-7788>