This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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: bootstrap broken on powerpc: implicit declaration of function 'pthread_getaffinity_np'


On 4/23/07, Martin Michlmayr <tbm@cyrius.com> wrote:
Since the change listed below, bootstrap on powerpc is broken when you
configure for both powerpc-linux and powerpc64-linux:

2007-04-04 Jakub Jelinek <jakub@redhat.com>

        * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
        decls.
You can reproduce this with:

../src/configure -v --enable-languages=c,c++ --enable-targets=powerpc-linux,powerpc64-linux powerpc-linux-gnu

This works for me on powerpc64-linux-gnu configured as such: --prefix=${HOME}/gcc-mainline --with-mpfr=/usr/local --with-cpu=default32

The only thing I can think of which is causing the issue is that the
check for pthread_setaffinity_np is defining _GNU_SOURCE but
config/linux/affinity.c is not but I just looked into the source and
it does:
#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif


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. The other problem might be that you have an older pthreads.h header file installed and a newer libpthreads.so so the versions are mismatching.

Thanks,
Andrew Pinski


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