From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aKgwCk6AuWGgZAAAgWs5BA (envelope-from ) for ; Wed, 15 Dec 2021 06:42:38 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id WJ/GBU6AuWHGYgAAbx9fmQ (envelope-from ) for ; Wed, 15 Dec 2021 05:42:38 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7EE2318130 for ; Wed, 15 Dec 2021 06:42:36 +0100 (CET) Received: from localhost ([::1]:38152 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mxN3j-0007Ij-9J for larch@yhetil.org; Wed, 15 Dec 2021 00:42:35 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58934) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxN3H-0007HY-Pw for guix-patches@gnu.org; Wed, 15 Dec 2021 00:42:08 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:48510) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mxN3B-0002iO-W8 for guix-patches@gnu.org; Wed, 15 Dec 2021 00:42:07 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mxN3B-0007vo-Lk for guix-patches@gnu.org; Wed, 15 Dec 2021 00:42:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52499] [PATCH] gnu: Fix build error of libpfm4. Resent-From: Leo Famulari Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 15 Dec 2021 05:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52499 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52499@debbugs.gnu.org Cc: Olivier Dion , 52499-done@debbugs.gnu.org X-Debbugs-Original-To: Olivier Dion via Guix-patches via Received: via spool by submit@debbugs.gnu.org id=B.163954688330439 (code B ref -1); Wed, 15 Dec 2021 05:42:01 +0000 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 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1639546956; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=TMbKC6WtddIlhmFw4bvUgODAeAyaq2FjoGHalaL6qfQ=; b=nl/WJZY0WomPgCBcAiPcIdbqcY727DMV+PO0nRGp5gz+nHfXRHjjV40Jahh8r4W3gMEcM6 xicvWBmWNpY+I1iMgstnUdXPLJUSvvmLW91Ff1kK9vl3kEF7/2Aw7vLHuz9tlrd/ElxZMm prU7ltzlTF26sjqt0jfpUNyQMnrkCA6grsCok3F4Bq7Cv6E5XuBwbCjEh9NL1Tr3TzdC1t qcO0cFLu5aRVLP+phHBTq2ru9Iicz5GDHY3iioMruaskKcB5v64S2xCcdNgkotVKQPzhkl 4RQOxOUtEfLg9+Nj5ozSB4CSJ6j7/wkFyxzgzHlXF3U3gJET7oyLAHjTrBvl+g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639546956; a=rsa-sha256; cv=none; b=qIP6JF7m7jjOyCD7UMpwImowbA9omQalLzmLoO929LHXNXcmhQ1dL3dcLvuHEGeOTl9NC8 D+CK8oJZX4M7c3HrYRoQxWQ5TU1xyF/qdJ/D5C4Orpg3EeywVVDzF2maiK4jMk4t0D/P0f kOuJHkUT2j3YaPsFAtTPMgjuGDUgkx9kqqeoCPcQaAhyE5m1tky9WFEzG9zhswbFLHzTgE J8W9X6zClqOn5aTC3hVFDxLXxjbGb1B/fblbuNDVcPsbTKvPGWpefYaQyio1TJ9IoeZq2c p8ZuoPI6ia7Sg6x/Q+eljDbNmF/ppHNGPZfQxAJ10DflzskeD56rrNAjcDkB6A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=famulari.name header.s=mesmtp header.b=Y7FcMYzy; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b=YRLEzb+K; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.67 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=famulari.name header.s=mesmtp header.b=Y7FcMYzy; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b=YRLEzb+K; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 7EE2318130 X-Spam-Score: -2.67 X-Migadu-Scanner: scn0.migadu.com X-TUID: 4evrP4YlZqwD 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