From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 14 21:22:03 2021 Received: (at submit) by debbugs.gnu.org; 15 Dec 2021 02:22:03 +0000 Received: from localhost ([127.0.0.1]:59942 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mxJvf-0002q7-1k for submit@debbugs.gnu.org; Tue, 14 Dec 2021 21:22:03 -0500 Received: from lists.gnu.org ([209.51.188.17]:56006) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mxJve-0002ps-9l for submit@debbugs.gnu.org; Tue, 14 Dec 2021 21:22:02 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48888) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxJvd-0001zK-LA for guix-patches@gnu.org; Tue, 14 Dec 2021 21:22:02 -0500 Received: from smtp.polymtl.ca ([132.207.4.11]:54211) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxJva-0008LG-H9 for guix-patches@gnu.org; Tue, 14 Dec 2021 21:22:01 -0500 Received: from laura.hitronhub.home (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 1BF2Lg48020879 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Tue, 14 Dec 2021 21:21:50 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 1BF2Lg48020879 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polymtl.ca; s=default; t=1639534910; bh=vH70AjoGtSr0Hhp0OwK+p2+wXM95+GEjuATKhtJhl2w=; h=From:To:Cc:Subject:Date:From; b=BEjQVsx9npYd5JI2YDARcb7SPUmfw0DZ6mN68Rfd4tws8pHy/WihyQJKAu/GvUPXq ivN7sHt/seBhMksIduYp8NdM5GnwOHXfNmLXQdZqtQvnll0IAWxZfl+dyiIXgmXoo3 BP1Jf6elE9sOlRd5JN8Q/IITBBVPnePaW1lBOs9A= From: Olivier Dion To: guix-patches@gnu.org Subject: [PATCH] gnu: Fix build error of libpfm4. Date: Tue, 14 Dec 2021 21:21:41 -0500 Message-Id: X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Poly-FromMTA: (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) at Wed, 15 Dec 2021 02:21:42 +0000 Received-SPF: pass client-ip=132.207.4.11; envelope-from=olivier.dion@polymtl.ca; helo=smtp.polymtl.ca X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: Olivier Dion X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) For some reason, the build recently failed with: pfmlib_perf_event_pmu.c:349:36: error: ?%s? directive output may be truncated writing up to 255 bytes into a region of size between 0 and 4095 [-Werror=format-truncation=] 349 | snprintf(d2path, MAXPATHLEN, "%s/%s", debugfs_mnt, d1->d_name); | ^~ pfmlib_perf_event_pmu.c:349:3: note: ?snprintf? output between 2 and 4352 bytes into a destination of size 4096 349 | snprintf(d2path, MAXPATHLEN, "%s/%s", debugfs_mnt, d1->d_name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pfmlib_perf_event_pmu.c:399:58: error: ?%s? directive output may be truncated writing up to 255 bytes into a region of size between 0 and 4095 [-Werror=format-truncation=] 399 | snprintf(idpath, MAXPATHLEN, "%s/%s/id", d2path, d2->d_name); | ^~ pfmlib_perf_event_pmu.c:399:25: note: ?snprintf? output between 5 and 4355 bytes into a destination of size 4096 399 | snprintf(idpath, MAXPATHLEN, "%s/%s/id", d2path, d2->d_name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors * gnu/packages/linux.scm (libpfm4): Fix build. (%standard-phases) Add `-Wno-format-truncation` to CFLAGS in build phase. --- gnu/packages/linux.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index c752df7996..a1c9408e89 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -7632,6 +7632,7 @@ (define-public libpfm4 (lambda* (#:key inputs outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out"))) (setenv "CC" "gcc") + (setenv "CFLAGS" "-Wno-format-truncation") (invoke "make") #t))) (replace 'install -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 15 00:41:22 2021 Received: (at submit) by debbugs.gnu.org; 15 Dec 2021 05:41:23 +0000 Received: from localhost ([127.0.0.1]:60055 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mxN2Y-0007ut-L7 for submit@debbugs.gnu.org; Wed, 15 Dec 2021 00:41:22 -0500 Received: from lists.gnu.org ([209.51.188.17]:39770) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mxN2Y-0007um-1U for submit@debbugs.gnu.org; Wed, 15 Dec 2021 00:41:22 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58536) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxN2X-0007EF-NR for guix-patches@gnu.org; Wed, 15 Dec 2021 00:41:21 -0500 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:34819) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxN2P-0001PB-Du for guix-patches@gnu.org; Wed, 15 Dec 2021 00:41:20 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 710D63200E8E; Wed, 15 Dec 2021 00:41:11 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Wed, 15 Dec 2021 00:41:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=mesmtp; bh=TMbKC6WtddIlhmFw4bvUgODA eAyaq2FjoGHalaL6qfQ=; b=Y7FcMYzyebsnAdc+p0Yk7a+HtzzVXxgmmEseH1LW jPhsXGBgLFHvNa7EsLZUUtZ/ituQ51Wdozuc0CAmKqHZicW5PGJu3OgCAx1d1+uq o9Imusu6qE1oLTAM6ClpYss6UwabF+Ybjnltiv2PD0NaoWWv2rkDS4eBKc/spEbn CRw= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=TMbKC6 WtddIlhmFw4bvUgODAeAyaq2FjoGHalaL6qfQ=; b=YRLEzb+K89I0y7sx6Z/yAf QWvB6BnVB8nd5XeDt8vHt7/Q+ORHW1xZL7gwZrjj77imozMhA6t70qjPer5KJecO 7cJoaKkVKpwcRhKqAEVpkJPtwBpf0duO8XjplNuI2LEA1q9Cqu6rUxAfencUoY1/ LgIhtJJiFFq3jxBXppBAp7TVpnZAN84NUY8e5eEqkMQg2/vlrHkux2WfI8slQS4q mQ5eoZB1Oj2ya2WmoWoDzFj5hT4ZV9++WNbkFGITnFceK6Kxuqk8OnPlIaZwSkKw oPi1KxOgvC4OkkvICEN0UraQ7BOenM3KM01dSL9BAhH6/8OEYAyzz3h8Xx4aq52A == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrledugdektdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepnfgvohcuhfgr mhhulhgrrhhiuceolhgvohesfhgrmhhulhgrrhhirdhnrghmvgeqnecuggftrfgrthhtvg hrnhepueekkedtffdvtddugeejgedtvefhueefiedvjeeitdeigedtveejvdejheffvefg necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheplhgvoh esfhgrmhhulhgrrhhirdhnrghmvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 15 Dec 2021 00:41:10 -0500 (EST) Date: Wed, 15 Dec 2021 00:41:08 -0500 From: Leo Famulari To: Olivier Dion via Guix-patches via Subject: Re: [bug#52499] [PATCH] gnu: Fix build error of libpfm4. Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=64.147.123.24; envelope-from=leo@famulari.name; helo=wout1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: Olivier Dion , 52499-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) On Tue, Dec 14, 2021 at 09:21:41PM -0500, Olivier Dion via Guix-patches via wrote: > For some reason, the build recently failed with: > > pfmlib_perf_event_pmu.c:349:36: error: ?%s? directive output may be truncated writing up to 255 bytes into a region of size between 0 and 4095 [-Werror=format-truncation=] > 349 | snprintf(d2path, MAXPATHLEN, "%s/%s", debugfs_mnt, d1->d_name); > | ^~ > pfmlib_perf_event_pmu.c:349:3: note: ?snprintf? output between 2 and 4352 bytes into a destination of size 4096 > 349 | snprintf(d2path, MAXPATHLEN, "%s/%s", debugfs_mnt, d1->d_name); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > pfmlib_perf_event_pmu.c:399:58: error: ?%s? directive output may be truncated writing up to 255 bytes into a region of size between 0 and 4095 [-Werror=format-truncation=] > 399 | snprintf(idpath, MAXPATHLEN, "%s/%s/id", d2path, d2->d_name); > | ^~ > pfmlib_perf_event_pmu.c:399:25: note: ?snprintf? output between 5 and 4355 bytes into a destination of size 4096 > 399 | snprintf(idpath, MAXPATHLEN, "%s/%s/id", d2path, d2->d_name); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > cc1: all warnings being treated as errors > > * gnu/packages/linux.scm (libpfm4): Fix build. > (%standard-phases) Add `-Wno-format-truncation` to CFLAGS in build phase. Thanks! Pushed as c7795eccaf432beec7366fa901b4bb6fc24cfead From unknown Sat Sep 20 10:51:28 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 12 Jan 2022 12:24:10 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator