From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2702 invoked by alias); 23 Jan 2015 22:01:34 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 2627 invoked by uid 48); 23 Jan 2015 22:01:27 -0000 From: "hjl.tools at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug nptl/17870] New: Build failure on x32 Date: Fri, 23 Jan 2015 22:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: nptl X-Bugzilla-Version: 2.21 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-01/txt/msg00177.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D17870 Bug ID: 17870 Summary: Build failure on x32 Product: glibc Version: 2.21 Status: NEW Severity: normal Priority: P2 Component: nptl Assignee: unassigned at sourceware dot org Reporter: hjl.tools at gmail dot com CC: drepper.fsp at gmail dot com With commit 2ec2d7032ff9220da1577c37d41ae85c0721ad66 on x32, I got In file included from sem_timedwait.c:20:0: sem_waitcommon.c: In function =E2=80=98__sem_wait_cleanup=E2=80=99: sem_waitcommon.c:190:3: error: left shift count >=3D width of type [-Werror] atomic_fetch_add_relaxed (&sem->data, -(1UL << SEM_NWAITERS_SHIFT)); ^ sem_waitcommon.c: In function =E2=80=98__new_sem_wait_slow=E2=80=99: sem_waitcommon.c:266:3: error: left shift count >=3D width of type [-Werror] unsigned long d =3D atomic_fetch_add_relaxed (&sem->data, ^ sem_waitcommon.c:306:8: error: left shift count >=3D width of type [-Werror] atomic_fetch_add_relaxed (&sem->data, ^ sem_waitcommon.c:322:4: error: left shift count >=3D width of type [-Werror] if (atomic_compare_exchange_weak_acquire (&sem->data, ^ --=20 You are receiving this mail because: You are on the CC list for the bug. >>From glibc-bugs-return-27153-listarch-glibc-bugs=sources.redhat.com@sourceware.org Fri Jan 23 22:02:41 2015 Return-Path: Delivered-To: listarch-glibc-bugs@sources.redhat.com Received: (qmail 3255 invoked by alias); 23 Jan 2015 22:02:41 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Delivered-To: mailing list glibc-bugs@sourceware.org Received: (qmail 3218 invoked by uid 48); 23 Jan 2015 22:02:37 -0000 From: "hjl.tools at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug nptl/17870] Build failure on x32 Date: Fri, 23 Jan 2015 22:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: nptl X-Bugzilla-Version: 2.21 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-01/txt/msg00178.txt.bz2 Content-length: 938 https://sourceware.org/bugzilla/show_bug.cgi?id=17870 --- Comment #1 from H.J. Lu --- It is caused by commit 042e1521c794a945edc43b5bfa7e69ad70420524 Author: Carlos O'Donell Date: Wed Jan 21 00:46:16 2015 -0500 Fix semaphore destruction (bug 12674). This commit fixes semaphore destruction by either using 64b atomic operations (where available), or by using two separate fields when only 32b atomic operations are available. In the latter case, we keep a conservative estimate of whether there are any waiting threads in one bit of the field that counts the number of available tokens, thus allowing sem_post to atomically both add a token and determine whether it needs to call futex_wake. See: https://sourceware.org/ml/libc-alpha/2014-12/msg00155.html -- You are receiving this mail because: You are on the CC list for the bug.