[Bug 259787] sched.h: unknown type name 'cpu_set_t' after 160b4b922b6021848b6b48afc894d16b879b7af2
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 14 Nov 2021 17:16:40 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259787
--- Comment #12 from tod.jackson@gmail.com ---
wine-devel is also still affected:
gcc10 -m64 -c -o server/timer.o server/timer.c -Iserver -Iinclude -D__WINESRC__
-Wall -pipe -fcf-protection=none \
-fno-stack-protector -fno-strict-aliasing -Wdeclaration-after-statement
-Wempty-body \
-Wignored-qualifiers -Winit-self -Wno-packed-not-aligned -Wshift-overflow=2
-Wstrict-prototypes \
-Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings
-Wpointer-arith -Wlogical-op \
-isystem /usr/local/include -O2 -pipe -fstack-protector-strong
-Wl,-rpath=/usr/local/lib/gcc10 -isystem /usr/local/include
-fno-strict-aliasing
server/thread.c: In function 'set_thread_affinity':
server/thread.c:574:9: error: unknown type name 'cpu_set_t'; did you mean
'cpusetid_t'?
574 | cpu_set_t set;
| ^~~~~~~~~
| cpusetid_t
server/thread.c:578:9: warning: implicit declaration of function 'CPU_ZERO'
[-Wimplicit-function-declaration]
578 | CPU_ZERO( &set );
| ^~~~~~~~
server/thread.c:580:34: warning: implicit declaration of function 'CPU_SET';
did you mean 'L_SET'? [-Wimplicit-function-declaration]
580 | if (affinity & mask) CPU_SET( i, &set );
| ^~~~~~~
| L_SET
server/thread.c:582:15: warning: implicit declaration of function
'sched_setaffinity' [-Wimplicit-function-declaration]
582 | ret = sched_setaffinity( thread->unix_tid, sizeof(set), &set );
| ^~~~~~~~~~~~~~~~~
server/thread.c: In function 'get_thread_affinity':
server/thread.c:595:9: error: unknown type name 'cpu_set_t'; did you mean
'cpusetid_t'?
595 | cpu_set_t set;
| ^~~~~~~~~
| cpusetid_t
server/thread.c:598:14: warning: implicit declaration of function
'sched_getaffinity' [-Wimplicit-function-declaration]
598 | if (!sched_getaffinity( thread->unix_tid, sizeof(set), &set ))
| ^~~~~~~~~~~~~~~~~
server/thread.c:600:21: warning: implicit declaration of function 'CPU_ISSET';
did you mean 'FD_ISSET'? [-Wimplicit-function-declaration]
600 | if (CPU_ISSET( i, &set )) mask |= (affinity_t)1 << i;
| ^~~~~~~~~
| FD_ISSET
gmake[2]: *** [Makefile:177490: server/thread.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
gmake[2]: Leaving directory '/usr/ports/emulators/wine-devel/work/wine-6.21'
===> Compilation failed unexpectedly.
--
You are receiving this mail because:
You are on the CC list for the bug.