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 8A4613857C48 for ; Tue, 15 Mar 2022 16:24:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8A4613857C48 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,184,1643702400"; d="scan'208";a="73156893" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa4.mentor.iphmx.com with ESMTP; 15 Mar 2022 08:24:18 -0800 IronPort-SDR: jU//UdInD7LAa5AfW+zdymyKjZ5r8I1XpubNdUddi6Ay4olNt3JbW1cK/sCPR0YNlsn4W8J4O3 OGr0IZ5En8U3k82ZlkMT6Yz8Mqq39MYQ82pdnIldco3U5FHX0vq5CFg2Ak7xHb8TcQ/Mm0mdDi pxfTErJzT2sQ/CS7qs2Z7hNlgfptItEccbgMAhRhCCtJLpg7IdM7A6Im6rKMtgCc2pYjbJUlOc OwdlBPu37r0UzBRZTqzzdlIDilfRcimOaKGYAsNO1wF76/m0Jq1HtLt+lJmIA3qZStUHqoCqRZ 7gY= Message-ID: <0d4bbabb-c123-f77e-ccf0-45a611acc4f1@codesourcery.com> Date: Tue, 15 Mar 2022 17:24:11 +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 , Vladimir Mezentsev , Binutils References: <14359283-a893-7208-c87d-c42aad214c67@redhat.com> From: Tobias Burnus In-Reply-To: <14359283-a893-7208-c87d-c42aad214c67@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-15.mgc.mentorg.com (139.181.222.15) 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: Tue, 15 Mar 2022 16:24:26 -0000 Hi Nick, On 15.03.22 16:24, Nick Clifton wrote: > To save time I have gone ahead and applied a patch myself (attached). > Please let me know if I missed anything or made a mistake... Thanks for the commit =E2=80=93 but it fails for libtool: link: x86_64-linux-gnu-g++ -Wall -pthread -Wno-switch -Wno-format-= truncation -g -O2 -static-libstdc++ -static-libgcc -o gp-display-text gp-display-text.o ipc.o ipcio.o -L... ./.libs/libgprofng.a .../bfd/.libs/libbfd.a -lz -liberty -ldl -pthrea= d with .../bin/ld: ./.libs/libgprofng.a(gethrtime.o): in function `gethrvtime': obj/binutils-src-mainline-0-x86_64-none-linux-gnu-x86_64-linux-gnu/gprofng/= src/gethrtime.c:131: undefined reference to `clock_gettime' .../bin/ld: ./.libs/libgprofng.a(gethrtime.o): in function `gethrtime': obj/binutils-src-mainline-0-x86_64-none-linux-gnu-x86_64-linux-gnu/gprofng/= src/gethrtime.c:162: undefined reference to `clock_gettime' collect2: error: ld returned 1 exit status Thus, it works for libcollector =E2=80=93 but not for libgprofng / gp-displ= ay-text. From the build dir: libcollector/Makefile:CLOCK_GETTIME_LINK =3D -lrt libcollector/Makefile:libgp_collector_la_LIBADD =3D $(CLOCK_GETTIME_LINK) libcollector/config.log:CLOCK_GETTIME_LINK=3D'-lrt' libcollector/config.status:S["CLOCK_GETTIME_LINK"]=3D"-lrt" Thanks for looking into build issue, 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