Re: Cygwin: Implement sched_[gs]etaffinity() commit breaks RTEMS port

Corinna Vinschen <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
On Jun 26 10:24, Sebastian Huber wrote:
> Hello,
> 
> the following commit:
> 
> commit 641ecb07533e85211b6abce334c85967f3f90209
> Author: Mark Geisert <[email protected]>
> Date:   Sun Jun 23 14:51:06 2019 -0700
> 
>     Cygwin: Implement sched_[gs]etaffinity()
> 
>     This patch set implements the Linux syscalls sched_getaffinity,
>     sched_setaffinity, pthread_getaffinity_np, and pthread_setaffinity_np.
>     Linux has a straightforward view of the cpu sets used in affinity masks.
>     They are simply long (1024-bit) bit masks.  This code emulates that view
>     while internally dealing with Windows' distribution of available CPUs
> among
>     processor groups.
> 
> breaks the RTEMS port:
> 
> In file included from /usr/home/user/rtems-source-builder/rtems/build/aarch64-rtems6-gcc-55a600a6ce9-newlib-09e2ec87e-x86_64-freebsd12.0-1/gnu-mirror-gcc-55a600a6ce9/newlib/libc/include/pthread.h:31,
>                  from ./gthr-default.h:31,
>                  from ../../../gnu-mirror-gcc-55a600a6ce9/libgcc/gthr.h:148,
>                  from
> ../../../gnu-mirror-gcc-55a600a6ce9/libgcc/emutls.c:31:
> /usr/home/user/rtems-source-builder/rtems/build/aarch64-rtems6-gcc-55a600a6ce9-newlib-09e2ec87e-x86_64-freebsd12.0-1/gnu-mirror-gcc-55a600a6ce9/newlib/libc/include/sched.h:112:3:
> error: conflicting types for 'cpu_set_t'
>   112 | } cpu_set_t;
>       |   ^~~~~~~~~
> ../../../gnu-mirror-gcc-55a600a6ce9/libgcc/../newlib/libc/sys/rtems/include/sys/cpuset.h:67:18:
> note: previous declaration of 'cpu_set_t' was here
>    67 | typedef cpuset_t cpu_set_t;
>       |                  ^~~~~~~~~

Looks like Cygwin has to define its own sys/cpuset.h included via
sys/_pthreadtypes.h.


Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAl0TPOcACgkQ9TYGna5E
T6CS0g/+N66N1TIukh+NSTYrcc/f1+4YqIF9S/EkVIlHFZtUtUiqxOmsPaA6xdwF
PjX67G9umWlpRLbzU/XSf5f+dXA8FcdpkNvi4FwF7EOcPd50+Z9CSNsOFdXJwBbS
/5MA51YX3VDWS1Qe7NzgLSTqTjyqwclRdfl5r6/PHHgLk6qzLNSKM4zkObqxupGi
jHeG02uLKAN0yHSJwQkqTI4HkFPlGL0q5ucGPI3Qtbjq5KcuaXV5L2XG/5cVyJ6Y
sH3RwULavecUZLxZJ4MW9dy8PEoRXyTGdM+BNABaRSLevrnO6aSeXJZj7WwEf1wp
v2TLPXL7xYMHdUGnm/SUxDmiPCJKpJSMwa8UJQvl0mVZzNvlD3mcqasg4TTLVYCp
IMv4oUYuj9n2vOMKQL5S8nR6lScyxqhPVgmtiLdatjrNwypfSI1JmWnx5RuU3ftK
SDI7oZ5XiBalUM/6KwmLOXlNRmRRvjy6esl7978cdgnIU4QMIYKLm8KVGCMLP0HQ
WVzdd9971L0MclwhRkkHFz3SZo9gt+aL2glojj5BtCAlLLCUBbgHzvl0FhzJxOBL
+YDlK22zW/i3JrE6UUOvSy36BHpH5JnStFtgSFGNK06qnpzBA7TTdC+aq06ejZoE
kPCgjDIaQd3FfagdFOOHkgsIBqGMpPJCdET/knV8uFe3kDtjf10=
=RRUA
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.