Mainline as of 20060206 fails to bootstrap on alpha-dec-osf4.0f while
building libgomp:

/vol/gcc/obj/gcc-4.2.0-20060206/4.0f-gcc/./gcc/xgcc
-B/vol/gcc/obj/gcc-4.2.0-20060206/4.0f-gcc/./gcc/
-B/vol/gcc/share/alpha-dec-osf4.0f/bin/ -B/vol/gcc/share/alpha-dec-osf4.0f/lib/
-isystem /vol/gcc/share/alpha-dec-osf4.0f/include -isystem
/vol/gcc/share/alpha-dec-osf4.0f/sys-include -DHAVE_CONFIG_H -I.
-I/vol/gcc/src/gcc-dist/libgomp -I.
-I/vol/gcc/src/gcc-dist/libgomp/config/posix -I/vol/gcc/src/gcc-dist/libgomp
-Wall -pthread -Werror -O2 -g -O2 -mieee -MT lock.lo -MD -MP -MF .deps/lock.Tpo
-c /vol/gcc/src/gcc-dist/libgomp/config/posix/lock.c   -DPIC -o .libs/lock.o
In file included from /vol/gcc/src/gcc-dist/libgomp/libgomp.h:43,
                 from /vol/gcc/src/gcc-dist/libgomp/config/posix/lock.c:39:
/vol/gcc/obj/gcc-4.2.0-20060206/4.0f-gcc/./gcc/include/pthread.h:877: error:
field '_Pfield' declared as a function

and many more similar errors.  The problem is ultimately due to the fact
that libgomp/posix/lock.c has

/* We need Unix98 extensions to get recursive locks.  */
#define _XOPEN_SOURCE 500

#include "libgomp.h"

Unfortunately, the following trivial program

#include <pthread.h>

fails in the same way when compiled with gcc -pthread -D_XOPEN_SOURCE=500.

Since <pthread.h> has PTHREAD_MUTEX_RECURSIVE even without _XOPEN_SOURCE
defined, one can probably simply omit that definition on Tru64 UNIX (at
least V4.0F, but probably on V5.1B as well).

Environment:
System: OSF1 rimsky V4.0 1229 alpha
Machine: alpha

host: alpha-dec-osf4.0f
build: alpha-dec-osf4.0f
target: alpha-dec-osf4.0f
configured with: /vol/gcc/src/gcc-dist/configure --prefix=/vol/gcc
--with-local-prefix=/vol/gcc --disable-nls --host alpha-dec-osf4.0f --build
alpha-dec-osf4.0f --target alpha-dec-osf4.0f
--with-gmp-dir=/vol/gnu/obj/gmp-4.1.3
--with-mpfr-dir=/vol/gnu/obj/gmp-4.1.3/mpfr
--enable-languages=c,c++,fortran,java,objc,ada --disable-libmudflap

How-To-Repeat:
Bootstrap mainline as above.


-- 
           Summary: libgomp bootstrap failure on Tru64 UNIX V4.0F
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgomp
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ro at techfak dot uni-bielefeld dot de
 GCC build triplet: alpha-dec-osf4.0f
  GCC host triplet: alpha-dec-osf4.0f
GCC target triplet: alpha-dec-osf4.0f


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26308

Reply via email to