public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgomp/26308]  New: libgomp bootstrap failure on Tru64 UNIX V4.0F
@ 2006-02-15 21:03 gcc-bugzilla at gcc dot gnu dot org
  2006-03-18  6:30 ` [Bug libgomp/26308] [4.2 Regression] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2006-02-15 21:03 UTC (permalink / raw)
  To: gcc-bugs


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-07-02 14:41 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-15 21:03 [Bug libgomp/26308] New: libgomp bootstrap failure on Tru64 UNIX V4.0F gcc-bugzilla at gcc dot gnu dot org
2006-03-18  6:30 ` [Bug libgomp/26308] [4.2 Regression] " pinskia at gcc dot gnu dot org
2006-03-18  6:33 ` pinskia at gcc dot gnu dot org
2006-05-10 21:28 ` ro at techfak dot uni-bielefeld dot de
2006-06-04 17:47 ` mmitchel at gcc dot gnu dot org
2007-05-14 21:31 ` [Bug libgomp/26308] [4.2/4.3 " mmitchel at gcc dot gnu dot org
2007-07-02 14:37 ` ro at gcc dot gnu dot org
2007-07-02 14:38 ` ro at gcc dot gnu dot org
2007-07-02 14:41 ` ro at gcc dot gnu dot org
2007-07-02 14:41 ` ro at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).