On Tue, Nov 08, 2005 at 07:28:45PM +0100, Christian Joensson wrote: > > Before I experiment with that, pls note that the compiler is (default) > > configured for target sparc64-unknown-linux-gnu and with the configure > > option --with-cpu=v7 resulting in default v7 (32-bit) code. May this > > "trick" be the trouble here?
No, I have been using exactly the same when I built it on SPARC a few days ago. > simply deleting the file libgomp_f.h does not work. I get this new > file generated, different: The sparc64-unknown-linux-gnu/libgomp/libgomp_f.h one contains the expected numbers. If that fails the env.c check too, please replace -c on the command line you pasted with -E -dD and mail the result to me. > /usr/local/src/branch/objdir.gomp/./gcc/xgcc > -B/usr/local/src/branch/objdir.gomp/./gcc/ > -B/usr/local/sparc64-unknown-linux-gnu/bin/ > -B/usr/local/sparc64-unknown-linux-gnu/lib/ -isystem > /usr/local/sparc64-unknown-linux-gnu/include -isystem > /usr/local/sparc64-unknown-linux-gnu/sys-include -DHAVE_CONFIG_H -I. > -I../../../../gcc.gomp/libgomp -I. > -I../../../../gcc.gomp/libgomp/config/linux/sparc > -I../../../../gcc.gomp/libgomp/config/linux > -I../../../../gcc.gomp/libgomp/config/posix > -I../../../../gcc.gomp/libgomp -Wall -Werror -pthread > -ftls-model=initial-exec -O2 -g -O2 -m64 -MT env.lo -MD -MP -MF > .deps/env.Tpo -c ../../../../gcc.gomp/libgomp/env.c -fPIC -DPIC -o > .libs/env.o > In file included from ../../../../gcc.gomp/libgomp/env.c:32: > ./libgomp_f.h: In function 'omp_check_defines': > ./libgomp_f.h:71: error: size of array 'test' is negative Jakub