From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com [68.232.137.252]) by sourceware.org (Postfix) with ESMTPS id DCC823858D1E for ; Wed, 16 Mar 2022 14:55:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DCC823858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="5.90,186,1643702400"; d="scan'208";a="73202106" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa4.mentor.iphmx.com with ESMTP; 16 Mar 2022 06:55:29 -0800 IronPort-SDR: C4bpw8SGrah4KfTANlTRK7KyBIcN4mUItlG/CCEOzWywnGzsT3ocLxbN33h1wgPyDsh8VTmbsH brBZxvuGsAkQrC0sIVTxxipnXIzN+kVK4wcH6ciYV/nHgWzCfbWWNYk+FP2ezYqGPevsID/Db9 v4QDjeH0fVCn+PtIIkar8sZsSzcYTB4EZ4FeCwbcsvcdpwsuea65xl60FOSmH7YQMLtlt4gwAA yHS+WIejD7N8eg7BZW+yyu+eZrzGtscaj6NoEpqJHzq32te9keMoWMnLsg8aBT1SIvFDNJVQF0 PN8= Message-ID: <35f693ef-3006-bece-21ab-2e6e46255a11@codesourcery.com> Date: Wed, 16 Mar 2022 15:55:22 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: =?UTF-8?Q?Re=3a_Build_issues_due_to_patch_=22gprofng=3a_a_new_GNU_p?= =?UTF-8?Q?rofiler=22_=e2=80=93_CLOCK=5fMONOTONIC=5fRAW_not_defined?= Content-Language: en-US To: Nick Clifton , Binutils , Vladimir Mezentsev References: <14359283-a893-7208-c87d-c42aad214c67@redhat.com> <0d4bbabb-c123-f77e-ccf0-45a611acc4f1@codesourcery.com> <2dd3d4ad-3912-6935-064a-524af339125a@redhat.com> From: Tobias Burnus In-Reply-To: <2dd3d4ad-3912-6935-064a-524af339125a@redhat.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: SVR-IES-MBX-08.mgc.mentorg.com (139.181.222.8) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, NICE_REPLY_A, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Mar 2022 14:55:38 -0000 Hi Nick, On 16.03.22 13:29, Nick Clifton wrote: >> Thanks for the commit =E2=80=93 but it fails for >> .../bin/ld: ./.libs/libgprofng.a(gethrtime.o): in function `gethrvtime': >> obj/binutils-src-mainline-0-x86_64-none-linux-gnu-x86_64-linux-gnu/gprof= ng/src/gethrtime.c:131: >> undefined reference to `clock_gettime' > > Hmm, it looks like I missed a few places where the -lrt library is > needed. > > Please could you try out the attached patch and let me know if these > changes > (on top of the ones that have already been checked in) are enough to > solve > your build problems ? Works =E2=80=93 I had some patch-apply fails due to HJ's commits, but fixin= g the .rej was trivial. (One line removed, two #line number changes, and two changes in makefiles (.in, .mk) in two files which were already there.) After doing so, your patch did build with the two x86-64 Linux build servers (both require -lrt, but only one has CLOCK_MONOTONIC_RAW). Thus: :-) Thanks, Tobias ----------------- Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstra=C3=9Fe 201= , 80634 M=C3=BCnchen; Gesellschaft mit beschr=C3=A4nkter Haftung; Gesch=C3= =A4ftsf=C3=BChrer: Thomas Heurung, Frank Th=C3=BCrauf; Sitz der Gesellschaf= t: M=C3=BCnchen; Registergericht M=C3=BCnchen, HRB 106955