This is sources Bugzilla
Bugzilla Version 2.17.5
Bugzilla Bug 6740
  Build failiure on powerpc when using --enable-kernel=2.6.22 or higher Last modified: 2008-07-26 16:26
     Query page      Enter new bug
Bug#: 6740   Hardware:   Reporter: Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
Host: Target: Build:
Product:     Add CC:
Component:   Version:   CC:
Remove selected CCs
Status: RESOLVED   Priority:  
Resolution: FIXED   Severity:  
Assigned To: Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>   Target Milestone:  
Flags: Requestee:
  backport ()
  examined ()
  testsuite ()
Summary:
Keywords:

Attachment Description Type Created Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 6740 depends on: Show dependency tree
Show dependency graph
Bug 6740 blocks:

Additional Comments:


Leave as RESOLVED FIXED
Reopen bug
Mark bug as VERIFIED

View Bug Activity   |   Format For Printing


Description:   Last confirmed: 0000-00-00 00:00 Opened: 2008-07-11 20:31
Recently, Hiroki Kaminaga reported a build failure on powerpc  on libc-help:

http://sourceware.org/ml/libc-help/2008-04/msg00002.html

This happens when building using the option '--enable-kernel=<version>', where
<version> is 2.6.22 or higher. Investigation shows that this happens because a
missing __ASSUME_PRIVATE_FUTEX guard around the usage of struct pthread's struct
header, private_futex member.

------- Additional Comment #1 From Ryan S. Arnold 2008-07-11 20:40 -------
The following patch is part of a patch that was submitted by Hiroki Kaminaga to
libc-help on April 28, 2008.

Here's a summary of the analysis I performed upon his original patch which
excludes the necessity of adding tcbhead_t.private_futex in
nptl/sysdeps/powerpc/tls.h

http://sourceware.org/ml/libc-help/2008-07/msg00042.html

I've attached a ChangeLog.

2008-04-28  Hiroki Kaminaga  <kaminaga@sm.sony.co.jp>

	[BZ 6740]
	nptl/sysdeps/powerpc/tcb-offsets.sym (PRIVATE_FUTEX_OFFSET):
	Guard sym definition with #ifndef __ASSUME_PRIVATE_FUTEX.

--- 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

------- Additional Comment #2 From Carlos Eduardo Seo 2008-07-11 20:52 -------
Build completed successfully with '--enable-kernel=2.6.22' using the previously
attached patch.

------- Additional Comment #3 From Ryan S. Arnold 2008-07-14 15:09 -------
link to libc-alpha posting where this is submitted:

http://www.sourceware.org/ml/libc-alpha/2008-07/msg00021.html

------- Additional Comment #4 From Ulrich Drepper 2008-07-26 16:26 -------
Fixed in cvs.

     Query page      Enter new bug
Actions: New | Query | bug # | Reports | Requests   New Account | Log In