This is the mail archive of the libc-help@sourceware.org mailing list for the glibc 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]

Re: [PowerPC] private futex build error


> Thanks for posting to libc-help.  I deal with build for PowerPC all the time
> so I should be able to take a look in the morning  (i.e. about 12 hours).

Thanks for quick reply!

With the below patch, I was able to build with --enable-kernel=2.6.22 or 
higher. The patch was mimiced from i386/x86_64/sh which also had private 
futex feature.


Best Regards,
(Hiroki Kaminaga)
t

---
 nptl/sysdeps/powerpc/tcb-offsets.sym |    2 	2 +	0 -	0 !
 nptl/sysdeps/powerpc/tls.h           |    3 	3 +	0 -	0 !
 2 files changed, 5 insertions(+)

Index: b/nptl/sysdeps/powerpc/tls.h
===================================================================
--- a/nptl/sysdeps/powerpc/tls.h
+++ b/nptl/sysdeps/powerpc/tls.h
@@ -70,6 +70,9 @@ typedef struct
   uintptr_t pointer_guard;
   uintptr_t stack_guard;
   dtv_t *dtv;
+#ifndef __ASSUME_PRIVATE_FUTEX
+  int private_futex;
+#endif
 } tcbhead_t;
 
 /* This is the size of the initial TCB.  */
Index: b/nptl/sysdeps/powerpc/tcb-offsets.sym
===================================================================
--- a/nptl/sysdeps/powerpc/tcb-offsets.sym
+++ b/nptl/sysdeps/powerpc/tcb-offsets.sym
@@ -15,4 +15,6 @@ MULTIPLE_THREADS_OFFSET		thread_offsetof
 PID				thread_offsetof (pid)
 TID				thread_offsetof (tid)
 POINTER_GUARD			(offsetof (tcbhead_t, pointer_guard) - TLS_TCB_OFFSET - sizeof (tcbhead_t))
+#ifndef __ASSUME_PRIVATE_FUTEX
 PRIVATE_FUTEX_OFFSET		thread_offsetof (header.private_futex)
+#endif


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