On 4/23/07, Martin Michlmayr <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
* 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