Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Nov 2021 16:37:23 +0000
From:      bugzilla-noreply@freebsd.org
To:        desktop@FreeBSD.org
Subject:   [Bug 259787] sched.h: unknown type name 'cpu_set_t' after 160b4b922b6021848b6b48afc894d16b879b7af2
Message-ID:  <bug-259787-39348-TDJhhqhXz2@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-259787-39348@https.bugs.freebsd.org/bugzilla/>
References:  <bug-259787-39348@https.bugs.freebsd.org/bugzilla/>

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

--- Comment #30 from Trond.Endrestol@ximalas.info ---
Created attachment 229745
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D229745&action=
=3Dedit
Patch for lang/ghc, for rts/posix/OSThreads.c

Should fix these errors:

rts/posix/OSThreads.c:314:5: error:
     error: unknown type name 'cpu_set_t'; did you mean 'cpuset_t'?
        cpu_set_t cs;
        ^~~~~~~~~
        cpuset_t
    |
314 |     cpu_set_t cs;
    |     ^

/usr/include/sys/_cpuset.h:50:24: error:
     note: 'cpuset_t' declared here
   |
50 | typedef struct _cpuset cpuset_t;
   |                        ^
typedef struct _cpuset cpuset_t;
                       ^

rts/posix/OSThreads.c:322:5: error:
     warning: implicit declaration of function 'sched_setaffinity' is inval=
id
in C99 [-Wimplicit-function-declaration]
        sched_setaffinity(0, sizeof(cpu_set_t), &cs);
        ^
    |
322 |     sched_setaffinity(0, sizeof(cpu_set_t), &cs);
    |     ^

rts/posix/OSThreads.c:322:33: error:
     error: use of undeclared identifier 'cpu_set_t'
        sched_setaffinity(0, sizeof(cpu_set_t), &cs);
                                    ^
    |
322 |     sched_setaffinity(0, sizeof(cpu_set_t), &cs);
    |                                 ^
1 warning and 2 errors generated.
`cc' failed in phase `C Compiler'. (Exit code: 1)
gmake[2]: *** [rts/ghc.mk:325: rts/dist/build/posix/OSThreads.p_o] Error 1

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-259787-39348-TDJhhqhXz2>