This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: unknown type name 'cpu_set_t' in newlib/libc/include/sched.h


On Mon, Aug 12, 2019 at 12:01 PM Giacomo Tesio <giacomo@tesio.it> wrote:

> On 12/08/2019, Joel Sherrill <joel.sherrill@gmail.com> wrote:
> > On Mon, Aug 12, 2019, 2:52 AM Corinna Vinschen <vinschen@redhat.com>
> wrote:
> > Is this with a test program or building Newlib itself. I have recently
> > built non-rtems targets to spot check some of the fenv work.
>
> Here is the error message:
>
> x86_64-jehanne-gcc -B/newlib/build/x86_64-jehanne/newlib/ -isystem
> /newlib/build/x86_64-jehanne/newlib/targ-include -isystem
> /newlib/src/newlib/libc/include
> -B/newlib/build/x86_64-jehanne/libgloss/x86_64
> -L/newlib/build/x86_64-jehanne/libgloss/libnosys
> -L/newlib/src/libgloss/x86_64
> -I/newlib/src/newlib/libc/sys/jehanne/include
> -DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\"
> -DPACKAGE_VERSION=\"3.1.0\" -DPACKAGE_STRING=\"newlib\ 3.1.0\"
> -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -I.
> -I/newlib//src/newlib/libc/posix -fno-builtin
> -DREENTRANT_SYSCALLS_PROVIDED -DMALLOC_PROVIDED -DSIGNAL_PROVIDED
> -D_NO_GETLOGIN -D_NO_GETCWD -D_NO_GETPASS -D_NO_GETUT -D_NO_PWRITE
> -D_NO_PREAD -DHAVE_FCNTL -fno-omit-frame-pointer -DHAVE_INIT_FINI
> -D_GNU_SOURCE -g -gdwarf-2 -ggdb -O2 -c -o lib_a-posix_spawn.o `test
> -f 'posix_spawn.c' || echo
> '/newlib//src/newlib/libc/posix/'`posix_spawn.c
> In file included from /newlib//src/newlib/libc/posix/posix_spawn.c:99:0:
> /newlib/src/newlib/libc/include/sched.h:96:39: error: unknown type
> name ‘cpu_set_t’
>  int sched_getaffinity (pid_t, size_t, cpu_set_t *);
>                                        ^
> /newlib/src/newlib/libc/include/sched.h:97:48: error: unknown type
> name ‘cpu_set_t’
>  int sched_get_thread_affinity (void *, size_t, cpu_set_t *);
>                                                 ^
> /newlib/src/newlib/libc/include/sched.h:98:45: error: unknown type
> name ‘cpu_set_t’
>  int sched_setaffinity (pid_t, size_t, const cpu_set_t *);
>                                              ^
> /newlib/src/newlib/libc/include/sched.h:99:54: error: unknown type
> name ‘cpu_set_t’
>  int sched_set_thread_affinity (void *, size_t, const cpu_set_t *);
>                                                       ^
> Makefile:594: recipe for target 'lib_a-posix_spawn.o' failed
>
>
> @Corinna: I'll try your patch tonight... sorry for the delay...
>

Corinna's patch looks like it resolve it.

Is it safe to assume all <sys/cpuset.h> implementations will use the same
header guards?

--joel


>
>
> Giacomo
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]