This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: bootstrap broken on powerpc: implicit declaration of function 'pthread_getaffinity_np'
* Andrew Pinski <pinskia@gmail.com> [2007-04-25 18:11]:
> So I don't think that is the issue. Can you look into config.log and
> make sure that the test is not emitting warnings. It is a link time
> test too.
In powerpc-linux-gnu/libgomp config.log shows undefined references
and config.h undefines HAVE_PTHREAD_AFFINITY_NP:
/home/tbm/build/t/8/powerpc-linux-gnu/libgomp/conftest.c:33: undefined reference to `pthread_getaffinity_np'
/home/tbm/build/t/8/powerpc-linux-gnu/libgomp/conftest.c:38: undefined reference to `pthread_setaffinity_np'
/home/tbm/build/t/8/powerpc-linux-gnu/libgomp/conftest.c:40: undefined reference to `pthread_attr_getaffinity_np'
/home/tbm/build/t/8/powerpc-linux-gnu/libgomp/conftest.c:41: undefined reference to `pthread_attr_setaffinity_np'
However, in powerpc-linux-gnu/64/libgomp affinity isn't mention in
config.log at all, and yet config.h defines HAVE_PTHREAD_AFFINITY_NP, thereby
leading to the bootstrap error.
Any ideas what's going on?
--
Martin Michlmayr
http://www.cyrius.com/