This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgomp/29494] New: libgomp build fails with missing pthread_mutexattr_settype
- From: "rbrown at bravurasolutions dot com dot au" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Oct 2006 03:01:11 -0000
- Subject: [Bug libgomp/29494] New: libgomp build fails with missing pthread_mutexattr_settype
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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