[Bug 259841] graphics/mesa-devel: build regressed with 14-CURRENT 90fa9705d

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 15 Nov 2021 05:28:31 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259841

            Bug ID: 259841
           Summary: graphics/mesa-devel: build regressed with 14-CURRENT
                    90fa9705d
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: jbeich@FreeBSD.org
          Reporter: evgeniy@khramtsov.org
                CC: jbeich@FreeBSD.org
          Assignee: jbeich@FreeBSD.org
             Flags: maintainer-feedback?(jbeich@FreeBSD.org)
                CC: jbeich@FreeBSD.org
             Flags: maintainer-feedback?(jbeich@FreeBSD.org)

[...]
src/util/libmesa_util.a.p/u_cpu_detect.c.o -MF
src/util/libmesa_util.a.p/u_cpu_detect.c.o.d -o
src/util/libmesa_util.a.p/u_cpu_detect.c.o -c ../src/util/u_cpu_detect.c
../src/util/u_cpu_detect.c:613:11: error: implicit declaration of function
'sched_getaffinity' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
      if (sched_getaffinity(getpid(), sizeof(affin), &affin) == 0)
          ^
../src/util/u_cpu_detect.c:613:11: note: did you mean 'cpuset_getaffinity'?
/usr/include/sys/cpuset.h:159:5: note: 'cpuset_getaffinity' declared here
int     cpuset_getaffinity(cpulevel_t, cpuwhich_t, id_t, size_t, cpuset_t *);
        ^

Defining _WITH_CPU_SET_T by passing it in Makefile CFLAGS unbreaks it here.
I don't have time to check if this is the right thing to do.

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