This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [Bug ada/49944] [4.5/4.6/4.7 regression] Bootstrapping on x86_64-pc-kfreebsd-gnu fails with "s-taprop.adb:856:10: "pthread_attr_setaffinity_np" is undefined (more references follow)"
- From: Arnaud Charlet <charlet at adacore dot com>
- To: "ludovic at ludovic-brenta dot org" <gcc-bugzilla at gcc dot gnu dot org>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 2 Aug 2011 19:41:35 +0200
- Subject: Re: [Bug ada/49944] [4.5/4.6/4.7 regression] Bootstrapping on x86_64-pc-kfreebsd-gnu fails with "s-taprop.adb:856:10: "pthread_attr_setaffinity_np" is undefined (more references follow)"
- References: <bug-49944-4@http.gcc.gnu.org/bugzilla/> <bug-49944-4-R6pp25nQSW@http.gcc.gnu.org/bugzilla/>
> I would not be so assertive as Arno.
Really? As the person who wrote this file and as the main tasking expert
of GNAT, I think I can be so assertive on this topic.
> It seems to me (but I may be wrong) that
> s-taprop-linux.adb really only calls glibc and libpthread, not the
> kernel, and
> therefore should be called s-taprop-glibc.adb. It looks like the
> kernel-specific calls are all in
> s-osinte-{linux,freebsd,kfreebsd-gnu}.ads,
No, s-taprop-linux.adb is only meant to be used under Linux and only
guaranteed to work under linux.
Using this file on non linux systems is bound to cause troubles and is not a
good idea.
If you're looking for a file shared among several platforms with a known
API, then as I said, using s-taprop-posix.adb is the way to go. That's what
I would do anyway if I were to port GNAT to kfreebsd properly.
Arno