public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jakub at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug libgomp/42519] bootstrap fails on powerpc64-linux because of libgomp Date: Mon, 28 Dec 2009 17:33:00 -0000 [thread overview] Message-ID: <20091228173308.4644.qmail@sourceware.org> (raw) In-Reply-To: <bug-42519-7210@http.gcc.gnu.org/bugzilla/> ------- Comment #1 from jakub at gcc dot gnu dot org 2009-12-28 17:33 ------- So, your pthread.h doesn't contain prototype for pthread_getaffinity_np, yet libpthread.so.0 exports it? Otherwise: # Check for pthread_{,attr_}[sg]etaffinity_np. AC_LINK_IFELSE( [AC_LANG_PROGRAM( [#define _GNU_SOURCE #include <pthread.h>], [cpu_set_t cpuset; pthread_attr_t attr; pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset); if (CPU_ISSET (0, &cpuset)) CPU_SET (1, &cpuset); else CPU_ZERO (&cpuset); pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset); pthread_attr_init (&attr); pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset); pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);])], AC_DEFINE(HAVE_PTHREAD_AFFINITY_NP, 1, [ Define if pthread_{,attr_}{g,s}etaffinity_np is supported.])) would fail... pthread_getaffinity_np has been added to both pthread.h and libpthread.so.0 at the same time, 2003-05-09. libgomp/config/linux/proc.c starts with #ifndef _GNU_SOURCE #define _GNU_SOURCE 1 #endif, so the right CPU feature test macro is certainly defined. -- jakub at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42519
next prev parent reply other threads:[~2009-12-28 17:33 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-12-28 15:16 [Bug libgomp/42519] New: " laurent at guerby dot net 2009-12-28 17:33 ` jakub at gcc dot gnu dot org [this message] 2009-12-28 17:45 ` [Bug libgomp/42519] " amonakov at gcc dot gnu dot org 2009-12-28 17:47 ` laurent at guerby dot net 2009-12-28 17:50 ` jakub at gcc dot gnu dot org 2009-12-28 17:55 ` laurent at guerby dot net [not found] <bug-42519-4@http.gcc.gnu.org/bugzilla/> 2013-12-26 23:30 ` steven at gcc dot gnu.org 2013-12-27 8:23 ` laurent at guerby dot net 2013-12-27 14:05 ` steven at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20091228173308.4644.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).