This is the mail archive of the gcc-bugs@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]

[Bug libgomp/29494] New: libgomp build fails with missing pthread_mutexattr_settype


libgomp fails to build on Solaris 2.6 because it lacks
pthread_mutexattr_settype
and PTHREAD_MUTEX_EXCLUSIVE in "@(#)pthread.h  1.16    97/05/05 SMI".
Solaris 2.8 "@(#)pthread.h  1.28    99/11/15 SMI" has the function and define.

/devel/src/gcc-4.2-20060930.obj/./gcc/xgcc
-B/devel/src/gcc-4.2-20060930.obj/./gcc/ -B/usr/local/sparc-sun-solaris2.6/bin/
  -B/usr/local/sparc-sun-solaris2.6/lib/
 -isystem /usr/local/sparc-sun-solaris2.6/include
 -isystem /usr/local/sparc-sun-solaris2.6/sys-include -DHAVE_CONFIG_H
 -I. -I../../../gcc-4.2-20060930/libgomp -I.
-I../../../gcc-4.2-20060930/libgomp/config/posix 
-I../../../gcc-4.2-20060930/libgomp
 -Wall -Werror -O2 -g -O2 -MT 
lock.lo -MD -MP -MF .deps/lock.Tpo -c
../../../gcc-4.2-20060930/libgomp/config/posix/lock.c  -fPIC -DPIC -o
.libs/lock.o
cc1: warnings being treated as errors
../../../gcc-4.2-20060930/libgomp/config/posix/lock.c: In function
'omp_init_nest_lock':
../../../gcc-4.2-20060930/libgomp/config/posix/lock.c:78: warning: implicit
declaration of function 'pthread_mutexattr_settype'
../../../gcc-4.2-20060930/libgomp/config/posix/lock.c:78: error:
'PTHREAD_MUTEX_RECURSIVE' undeclared (first use in this function)
../../../gcc-4.2-20060930/libgomp/config/posix/lock.c:78: error: (Each
undeclared identifier is reported only once
../../../gcc-4.2-20060930/libgomp/config/posix/lock.c:78: error: for each
function it appears in.)
make[4]: *** [lock.lo] Error 1


-- 
           Summary: libgomp build fails with missing
                    pthread_mutexattr_settype
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: trivial
          Priority: P3
         Component: libgomp
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rbrown at bravurasolutions dot com dot au
 GCC build triplet: sparc-sun-solaris2.6
  GCC host triplet: sparc-sun-solaris2.6
GCC target triplet: sparc-sun-solaris2.6


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


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