From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-3.8 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id D21671F453 for ; Wed, 23 Jan 2019 20:03:02 +0000 (UTC) Received: from localhost ([127.0.0.1]:40928 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmOji-0007DD-2Q for normalperson@yhbt.net; Wed, 23 Jan 2019 15:02:58 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49944) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmOjZ-00079o-C9 for bug-gnulib@gnu.org; Wed, 23 Jan 2019 15:02:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gmOiV-0005cF-Tt for bug-gnulib@gnu.org; Wed, 23 Jan 2019 15:01:45 -0500 Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::4]:27273) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gmOiU-0005S1-07 for bug-gnulib@gnu.org; Wed, 23 Jan 2019 15:01:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1548273686; s=strato-dkim-0002; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=IwaodTNVK4cVygbsUPSDzKoe1kbyXShqhfZqXDlIgAE=; b=nj0q38ZS/sgnk8eww8FxZwx42Kv9u1M1+nIVvYb37Px6P0ssMjDs7Bav05O11Z69uK pu4LrhZe3GbClxCAJi/ysUXuwk+/1eULI837lU5bv7DVfn1Wx0u+q7RODqvh+LiaZ9S4 IDvCNMJoBp85s33quHY97atTASfma24yxCXZxi97YaL/murjNgPB3rKHlgrPpIKwfzZh Ntv9xzfY1CxNGQDgitsVlq4DTgoxzTFrQTcV5bmKkm0LjB/yBXb7IR3NsU2R12ok7gcK WP6NysHkTcIIg6aHSlbCJZJW+7EGDoqPQdC/Ruiel5PWOAA3O7sQq1IpPZKtaQ/R+vD4 sFow== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH+AHjwLuWOGKf2y/s=" X-RZG-CLASS-ID: mo00 Received: from bruno.haible.de by smtp.strato.de (RZmta 44.9 DYNA|AUTH) with ESMTPSA id v0a34ev0NK1JbLR (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Wed, 23 Jan 2019 21:01:19 +0100 (CET) From: Bruno Haible To: bug-gnulib@gnu.org Subject: Re: test-rwlock1 failing on latest Fedora Rawhide Date: Wed, 23 Jan 2019 21:01:19 +0100 Message-ID: <1903559.vGX8tUDGlp@omega> User-Agent: KMail/5.1.3 (Linux/4.4.0-141-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: <20190123193730.GA9768@redhat.com> References: <20190123193730.GA9768@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a01:238:20a:202:5300::4 X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" Hi Rich, > I cannot reproduce this locally, hence my bug report is rather devoid > of details. However, it's 100% reproducible in Koji (the Fedora > Rawhide build system) on *all* architectures except armv7: > > FAIL: test-rwlock1 > ================== > Unexpected outcome 3 > FAIL: test-thread_create As written in [1]: "Unexpected outcome 3" means that the test program could not create a second thread (other than the main thread). On glibc systems, this typically means that the 'test-rwlock1' program has not been linked with '-lpthread'. > The full log is here: > > https://kojipkgs.fedoraproject.org//work/tasks/4382/32214382/build.log The configure command-line looks right. I see LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' A global "-Wl,--as-needed" has the effect of removing libraries like -lpthread from the link. Which would explain the symptom. What do the other elements of LDFLAGS do? Bruno [1] http://lists.gnu.org/archive/html/coreutils/2018-02/msg00020.html