From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 60531 invoked by alias); 16 Aug 2017 08:09:38 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 60514 invoked by uid 89); 16 Aug 2017 08:09:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com D0F809014C Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=fweimer@redhat.com Subject: Re: [PATCH] Test for profiling support (_mcount/gprof) To: Andreas Schwab Cc: GNU C Library References: <4d15086e-9e54-014b-1a50-16534f287e24@redhat.com> <539fb6f1-9d96-01d5-0f35-f3c312c0ecbb@redhat.com> <87b76487-16d3-78b4-9651-f6d375b9b137@redhat.com> <36b6ab73-342d-0886-8767-ff7fd6dd4d79@redhat.com> From: Florian Weimer Message-ID: <907f751a-3916-64c9-f650-df182fb3cdce@redhat.com> Date: Wed, 16 Aug 2017 08:09:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="------------C1C5BE19E5424FCF4C2B13A1" X-SW-Source: 2017-08/txt/msg00626.txt.bz2 This is a multi-part message in MIME format. --------------C1C5BE19E5424FCF4C2B13A1 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-length: 361 On 08/16/2017 09:43 AM, Andreas Schwab wrote: > https://build.opensuse.org/package/live_build_log/home:Andreas_Schwab:glibc/glibc-testsuite/f/i586 One has to download the whole log file to find this: [ 2374s] gcc: error: -pg and -fomit-frame-pointer are incompatible This looks like a GCC deficiency. Anyway, please try the attached patch. Thanks, Florian --------------C1C5BE19E5424FCF4C2B13A1 Content-Type: text/x-patch; name="gmon-4.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="gmon-4.patch" Content-length: 851 tst-gmon: Build with -fno-omit-frame-pointer If glibc is built with -fomit-frame-pointer to undo the effect of configuring GCC with --enable-frame-pointer, using -pg by itself results in a build failure: gcc: error: -pg and -fomit-frame-pointer are incompatible 2017-08-16 Florian Weimer * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer. diff --git a/gmon/Makefile b/gmon/Makefile index 39f11acec2..62d96543ff 100644 --- a/gmon/Makefile +++ b/gmon/Makefile @@ -38,7 +38,7 @@ endif # The mcount code won't work without a frame pointer. CFLAGS-mcount.c :=3D -fno-omit-frame-pointer =20 -CFLAGS-tst-gmon.c :=3D -pg +CFLAGS-tst-gmon.c :=3D -fno-omit-frame-pointer -pg LDFLAGS-tst-gmon :=3D $(no-pie-ldflag) CRT-tst-gmon :=3D $(csu-objpfx)gcrt1.o tst-gmon-ENV :=3D GMON_OUT_PREFIX=3D$(objpfx)tst-gmon.data --------------C1C5BE19E5424FCF4C2B13A1--