rtm-devel4 branch does not compile on zEC12
Dominik Vogt
VOGT@de.ibm.com
Mon Apr 8 20:13:00 GMT 2013
Hi Andi,
we're looking into porting your patches fpr lock elision using Intel's RTM
to the zEC12 processor with IBM's transactional memory stuff. My first
step
was to clone your rtm-devel4 branch and to compile it on a zEC12, but it
seems some of the code specific to lock elision is not properly hidden from
platforms that do not implement it yet. In other words: I get compile
errors. :-)
gcc pthread_mutex_timedlock.c -c -std=gnu99 -fgnu89-inline -O2 -Wall
-Winline -Wwrite-strings -fmerge-all-constants -frounding-math -g
-Wstrict-prototypes -mlong-double-128 -I../include
-I/home/vogt/src/git/rtm-devel4/obj/nptl
-I/home/vogt/src/git/rtm-devel4/obj
-I../nptl/sysdeps/unix/sysv/linux/s390/s390-64
-I../sysdeps/unix/sysv/linux/s390/s390-64/nptl
-I../sysdeps/unix/sysv/linux/s390/s390-64
-I../sysdeps/unix/sysv/linux/wordsize-64
-I../sysdeps/unix/sysv/linux/s390/fpu -I../sysdeps/s390/fpu
-I../nptl/sysdeps/unix/sysv/linux/s390 -I../sysdeps/unix/sysv/linux/s390
-I../sysdeps/ieee754/ldbl-64-128 -I../sysdeps/ieee754/ldbl-opt
-I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread
-I../sysdeps/pthread -I../ports/sysdeps/unix/sysv/linux
-I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/inet
-I../nptl/sysdeps/unix/sysv -I../ports/sysdeps/unix/sysv
-I../sysdeps/unix/sysv -I../nptl/sysdeps/unix -I../ports/sysdeps/unix
-I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/s390/s390-64/multiarch
-I../sysdeps/s390/s390-64 -I../sysdeps/wordsize-64 -I../nptl/sysdeps/s390
-I../sysdeps/s390 -I../sysdeps/ieee754/ldbl-128 -I../sysdeps/ieee754/dbl-64
-I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic
-I../nptl -I../ports -I.. -I../libio -I. -D_LIBC_REENTRANT
-include ../include/libc-symbols.h -DNOT_IN_libc=1 -DIS_IN_libpthread=1
-DIN_LIB=libpthread
-o /home/vogt/src/git/rtm-devel4/obj/nptl/pthread_mutex_timedlock.o -MD -MP
-MF /home/vogt/src/git/rtm-devel4/obj/nptl/pthread_mutex_timedlock.o.dt
-MT /home/vogt/src/git/rtm-devel4/obj/nptl/pthread_mutex_timedlock.o
pthread_mutex_timedlock.c: In function ‘pthread_mutex_timedlock’:
pthread_mutex_timedlock.c:114:4: warning: implicit declaration of function
‘lll_trylock_elision’ [-Wimplicit-function-declaration]
pthread_mutex_timedlock.c:114:64: error: ‘struct __pthread_mutex_s’ has no
member named ‘__elision’
make[2]: ***
[/home/vogt/src/git/rtm-devel4/obj/nptl/pthread_mutex_timedlock.o] Error 1
make[2]: *** Waiting for unfinished jobs....
pthread_mutex_lock.c: In function ‘__pthread_mutex_lock’:
pthread_mutex_lock.c:162:7: warning: implicit declaration of function
‘lll_trylock_elision’ [-Wimplicit-function-declaration]
pthread_mutex_lock.c:162:68: error: ‘struct __pthread_mutex_s’ has no
member named ‘__elision’
make[2]: *** [/home/vogt/src/git/rtm-devel4/obj/nptl/pthread_mutex_lock.o]
Error 1
make[2]: Leaving directory `/home/vogt/src/git/rtm-devel4/nptl'
make[1]: *** [nptl/subdir_lib] Error 2
make[1]: Leaving directory `/home/vogt/src/git/rtm-devel4'
Ciao
Dominik ^_^ ^_^
More information about the Libc-alpha
mailing list