From unknown Sat Jun 21 03:09:13 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#40556 <40556@debbugs.gnu.org> To: bug#40556 <40556@debbugs.gnu.org> Subject: Status: [PATCH] gnu: dovecot: Add libunwind input. Reply-To: bug#40556 <40556@debbugs.gnu.org> Date: Sat, 21 Jun 2025 10:09:13 +0000 retitle 40556 [PATCH] gnu: dovecot: Add libunwind input. reassign 40556 guix-patches submitter 40556 Pierre Langlois severity 40556 normal tag 40556 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 11 11:43:08 2020 Received: (at submit) by debbugs.gnu.org; 11 Apr 2020 15:43:08 +0000 Received: from localhost ([127.0.0.1]:56987 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jNIHe-0004Qt-Si for submit@debbugs.gnu.org; Sat, 11 Apr 2020 11:43:08 -0400 Received: from lists.gnu.org ([209.51.188.17]:56210) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jNIHa-0004QS-4j for submit@debbugs.gnu.org; Sat, 11 Apr 2020 11:43:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45580) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jNIHY-0004MI-Ss for guix-patches@gnu.org; Sat, 11 Apr 2020 11:42:57 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: ** X-Spam-Status: No, score=2.1 required=5.0 tests=BAYES_50,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,SPOOFED_FREEMAIL,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jNIHX-0000Yq-Mx for guix-patches@gnu.org; Sat, 11 Apr 2020 11:42:56 -0400 Received: from mout.gmx.net ([212.227.17.21]:38029) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jNIHX-0000YU-8n for guix-patches@gnu.org; Sat, 11 Apr 2020 11:42:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1586619772; bh=kH5lUkaOdHrp9FuMne8QJZ3+I+EI2Bt47iff01je7as=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=Z+hNx7tL1/h9yj4Pjazyb7MAX/YQloHbMvAoCpn4Ccm8ryi69HgtP9diao7rn/hXK Wr5MLNEBIqyTTUynLEN+u80AmbSxie7edZHodj+a4LGveGJclILDRiKZf4eugevF9f /LJcsA/39RV7C5w7tmLFF4dLZe+aLBz+aapUd5Cw= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from e119807-lin ([77.130.233.32]) by mail.gmx.com (mrgmx105 [212.227.17.174]) with ESMTPSA (Nemesis) id 1McY8T-1iqzGT0KPl-00cvcG; Sat, 11 Apr 2020 17:42:52 +0200 User-agent: mu4e 1.2.0; emacs 26.3 From: Pierre Langlois To: guix-patches@gnu.org Subject: [PATCH] gnu: dovecot: Add libunwind input. Date: Sat, 11 Apr 2020 17:42:50 +0200 Message-ID: <87ftdahvut.fsf@gmx.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Provags-ID: V03:K1:v03I2BfW5KzCoM7hEXmKCOLF32u8rzcw7BA6jTckzRwGuKhs61q Xmhrw8/bdCNX8mAeAbO6O2vFLieJMMeNgkSiACuinMDUT9HfEW1GXVbo/kuCiNML80fvQhJ ThcTBYEUzS1xLeAcd5C5K7mHdzF0Clslhh1RHXs2Q5zrEGeR6h/kma0fnxUyFQYXTBQZ5tb voeN7DUgNWWISzgI2Kleg== X-UI-Out-Filterresults: notjunk:1;V03:K0:dJ4seNZDgDI=:TYP6I8h6XdEUZdctDkpZZD mddPKlp9aNgtfRtNcDCuKbtuxfn4ds6lEQ5INJuqEw25FrQhJhGLIGr0+RK7VkO95spH6M7SB nMbi/Tm2Lm+ofaWoKqDLmek0vm4KT5Q1ttYKMssK58os1b1srgiSgZao77xip69M4k5Zg2DpG 190WoXbob7XahUMjRQo2oxuOft091hAPKuAY+ZX1XXEHkXjIJR42wZYp/ZgmgZwCp1Bx6l5pM DOAiqxhdC3Uvd6x2w/ISMZvo1mXSYkKrFXEGPLIMJnKvpVLAJsaqYlLBFEMuUSatPfRShcJ14 4C2sugMrZkH5WG3m75s187HfWPSq2G1CRt0UUtC+9s9g2ct9Dm2/XZ4cQISYqo8V0YEXpBuwc xD5jNjPx5gBasHQC067/2BAX7KjQDp9K5cyQQtyaA7I6O+hPFvOJENrLVlVThTGebLpGLqWzE vg+5rHSdTeFdtR+4lVQ+aH058P1gogOhdE7PIqh7PgASdHJulNvwr1GHVS+XfXLv2Mvij5MJk nVN+bTu+9ldlEngMDxxBWfDQ3NRvG4C+dwuM28xVl7E6XqwYRyHlmvSa7NVegKH/xTmyPmWnK 3wtgtiwXyNPpJc0Sr+i4AJ0A78zaPe75uOQpWhsGkBEbYnenaOicmJEbEZbzhWqxwi0VM3UF5 mZ93IEJujIsH2ZFDLsXQsD+1TGiV/VKotfCnLdsKcvub2F4foPjf82+SKbDQcdrcwp57TsCxQ Afsjz+UE7Julx6tcZUozcJVrrXyqjnXfqK7yW9OIlEt4J1T8ANA14yg3RvXtd8vMyHt8H9hm3 JFLjZfiCF5gT6w1QHrMJ4sMg40RIeg7ogOYF1ty1VBUWSrFg6cl6Z1Rm0EshtT48PnLlA/x2a LW4uMm9SAadB883x8ESDcY3JuBZ0K8BPXoa9v5gNZEQ4AeYK2HLMId4vpB/DhqKCBD0YMoOrq ViH6zcoWLTke4YxxboYeZ6ioibJD3d0G7FNJNWa8IANOgUfaR665h5rfXZcdhC73SE54YZF92 BT3SLEd7EO2dz7JzVJp7xNc3VEevX3UrmqahrGfBYVYDp2Mlnh+heWh+gmLFlRXquzAEXr8xJ 1ACNh0FbyeD7b/Ll3k2JJwQqwaQqbkJfaFGWMY+jFWFs0FNP0zcS4oFQtBzRnFA07epJNJ/QC xER6bqqbXKWdP1gzceo3hmz7z5tzMp7YjTvh8ACneg2g8X7WW6nEBh8XSYsysdBjV+RQEu4LG jLrY/YRUuXJSKB5e3 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.21 X-Spam-Score: 2.2 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi Guix, Julien, I noticed I couldn't build dovecot on either aarch64 or arm :-/. I did a little bit of debugging, and it looks like the backtrace_symbols() function isn't working correctly. Dovecot is able to use lib [...] Content analysis details: (2.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: protonmail.com] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [209.51.188.17 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.9 SPF_FAIL SPF: sender does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=mfrom; id=pierre.langlois%40gmx.com; ip=209.51.188.17; r=debbugs.gnu.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (pierre.langlois[at]gmx.com) 2.0 SPOOFED_FREEMAIL No description available. X-Debbugs-Envelope-To: submit Cc: Julien Lepiller 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: -0.1 (/) --=-=-= Content-Type: text/plain Hi Guix, Julien, I noticed I couldn't build dovecot on either aarch64 or arm :-/. I did a little bit of debugging, and it looks like the backtrace_symbols() function isn't working correctly. Dovecot is able to use libunwind instead, and this appears to work. I then noticed it was reported upstream already, coming to the same conclusion https://markmail.org/message/fjgo7lkuk7tk4iek I wonder what's wrong with backtrace_symbols() in guix, I'm not sure how to investigate that. For now though, what do you think of using libunwind? Thanks, Pierre --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-dovecot-Add-libunwind-input.patch Content-Transfer-Encoding: quoted-printable >From b95b8f4769f5543d196fe7e334a891f8fe276816 Mon Sep 17 00:00:00 2001 From: Pierre Langlois Date: Sat, 11 Apr 2020 16:34:01 +0100 Subject: [PATCH] gnu: dovecot: Add libunwind input. * gnu/packages/mail.scm (dovecot)[inputs]: Add libunwind. --- gnu/packages/mail.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index a6ed776db1..4ea8fb6051 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -24,7 +24,7 @@ ;;; Copyright =C2=A9 2017 Kyle Meyer ;;; Copyright =C2=A9 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice ;;; Copyright =C2=A9 2017, 2018 Rene Saavedra -;;; Copyright =C2=A9 2018, 2019 Pierre Langlois +;;; Copyright =C2=A9 2018, 2019, 2020 Pierre Langlois ;;; Copyright =C2=A9 2018 Alex Vong ;;; Copyright =C2=A9 2018 G=C3=A1bor Boskovits ;;; Copyright =C2=A9 2018, 2019, 2020 Ricardo Wurmus @@ -89,6 +89,7 @@ #:use-module (gnu packages libevent) #:use-module (gnu packages libidn) #:use-module (gnu packages libunistring) + #:use-module (gnu packages libunwind) #:use-module (gnu packages linux) #:use-module (gnu packages lsof) #:use-module (gnu packages lua) @@ -1435,6 +1436,7 @@ facilities for checking incoming mail.") (inputs `(("bzip2" ,bzip2) ("libsodium" ,libsodium) ; extra password algorithms + ("libunwind" ,libunwind) ("linux-pam" ,linux-pam) ("lz4" ,lz4) ("openssl" ,openssl) --=20 2.26.0 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 11 12:17:09 2020 Received: (at 40556) by debbugs.gnu.org; 11 Apr 2020 16:17:09 +0000 Received: from localhost ([127.0.0.1]:57024 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jNIoe-00077u-VT for submit@debbugs.gnu.org; Sat, 11 Apr 2020 12:17:09 -0400 Received: from tobias.gr ([80.241.217.52]:51576) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jNIod-00075X-61 for 40556@debbugs.gnu.org; Sat, 11 Apr 2020 12:17:07 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id 65d5f967; Sat, 11 Apr 2020 16:17:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to :subject:message-id:references:in-reply-to:date:mime-version :content-type; s=2018; i=me@tobias.gr; bh=kwwc7php220vk3EYLargDU dH1BwRjVS+hv2dJe+QB8E=; b=PfYDBqQ/7wRvhARNRWtQ743QYZCv9s99P+1S4E b3BX6uFJDM7qaWgoR+chq+mvFqYJcWez05jhdgtKu8ijxnu9rb1DrkNOJbpdsSbJ sIbYBr3kXgCjMpgRTMDjuSS9iNN3YjHwJEf0d1if7P2FwpqAJgbDjwGQjZNMOLfG XVgWCX8AzzHBBW4XDi/+mj+9m2gJGl0PcBqCzLRSWQem2zOv3um1b/LkFt62WCWB JEGL43xox2+e44urIphaLalVfY04Za6R8GwNizl5D+ghtD0d7GBzZxg0Zu9TA0ts FMDi0vetNPtuTKgM9e2xnj7kxceo7+w1SQlfnL6MHhY8rogA== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 00569d7d (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Sat, 11 Apr 2020 16:17:04 +0000 (UTC) From: Tobias Geerinckx-Rice To: 40556@debbugs.gnu.org, Pierre Langlois Subject: Re: [bug#40556] [PATCH] gnu: dovecot: Add libunwind input. Message-ID: <875ze6ngmg.fsf@nckx> References: <87ftdahvut.fsf@gmx.com> In-reply-to: <87ftdahvut.fsf@gmx.com> Date: Sat, 11 Apr 2020 18:17:09 +0200 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 40556 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: -3.3 (---) --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Pierre, Pierre Langlois =E5=86=99=E9=81=93=EF=BC=9A > I wonder what's wrong with backtrace_symbols() in guix, I'm not=20 > sure how > to investigate that. For now though, what do you think of using > libunwind? OK, but it should only be included on platforms that require it: ;; Untested=E2=80=A6 (inputs `(=E2=80=A6 ,@(match (%current-system) ((or "aarch64-linux" "armhf-linux" =E2=80=A6) `(("libunwind" ,libunwind))) (_ `())) =E2=80=A6)) Could you test that? Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEfo+u0AlEeO9y5k0W2Imw8BjFSTwFAl6R7YUACgkQ2Imw8BjF STx6IQ//WPLh4KGleeZLs1RtOHT96fZ4qvJF/w1Xofg3o8OHroyoHiQ3w4BzeLTR tCM5S0m1QqZjJd/zyEK903a4LMGORUvjHtLyUgZ0IhQCX4vF0f70ckS0CsppXl5e YE+rGhR4hfOdwlpQz5VPz65YDsuT5OkmG8Bv3H2ijVSvTcF/UR9IXIl/64CqnhVH q7/qKOwfMMoRLqbcMeH2fAMogCPLn1m5TZ2R2jWh8NeBr5wRfcfgO2CiORk1+orN YjAPLkQ57N6nsIrIgffvtMDUmWN+qX3ngLgIWPrBBecP8fwNeMKw8KphBRDmjDm4 skWT9Ttnq9Vkoi7YOqwKJ2PnAlNjE0MzjiKEf553VjhWvGfdEknQ64yBcsMeJJpi gHPBEajMTV74ub/CxCeC+eHfAf/nV4XB+LlTfiZ4TCArFa6R6AyGl5ZvxzGtT/U1 TxyEmXA2yHhfyYD434Z3Vn5akMiz8qMs48OyHT3NLzuCP2jrnnlmjSdy4eWgtWfp apXN20GqzA/iyzj2+TJuemH+cDmBgJ7lOB69SikrLqUDMSSZOs0A24NlQWEdrlN5 K9ecySaIzSxqLJsvpWsKefSFVDZmjuBdaTLXMVhGPnNjHJSO7r3y9w6TlI3NQ3s+ OXL14DW2YnpysOKk9KCZjDRUjRVxnbur0aGqP3EOrPsqexrSkNM= =lj1o -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 11 12:53:59 2020 Received: (at 40556) by debbugs.gnu.org; 11 Apr 2020 16:53:59 +0000 Received: from localhost ([127.0.0.1]:57038 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jNJOG-0008DM-1t for submit@debbugs.gnu.org; Sat, 11 Apr 2020 12:53:59 -0400 Received: from mout.gmx.net ([212.227.15.18]:42937) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jNJOD-0008D8-CA for 40556@debbugs.gnu.org; Sat, 11 Apr 2020 12:53:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1586624013; bh=gvXdEe/MrfUGgZQIxd7U9Yx+17Ml4TQHEWFXrehxA68=; h=X-UI-Sender-Class:References:From:To:Cc:Subject:In-reply-to:Date; b=h6cWmW/zb/0t6Q1MgmYrPteyAAJUQxx79UywIurahfBaoy5fGn2dChcpq7eXyqf/+ 7rfmXfL5Mk5Zd6CDrpkngBZr1ZVs/J7q/HrgbRrjKw4VAQOReuTpaHH4BFFICobdp4 B1ajDoOEuDiwATSp3sbLPsJrNurCPK2HxKNXGUO8= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from e119807-lin ([77.130.233.32]) by mail.gmx.com (mrgmx004 [212.227.17.184]) with ESMTPSA (Nemesis) id 1M1poA-1jPWJ23800-002JOs; Sat, 11 Apr 2020 18:53:32 +0200 References: <87ftdahvut.fsf@gmx.com> <875ze6ngmg.fsf@nckx> User-agent: mu4e 1.2.0; emacs 26.3 From: Pierre Langlois To: Tobias Geerinckx-Rice Subject: Re: [bug#40556] [PATCH] gnu: dovecot: Add libunwind input. In-reply-to: <875ze6ngmg.fsf@nckx> Date: Sat, 11 Apr 2020 18:53:29 +0200 Message-ID: <87eesuhsl2.fsf@gmx.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Provags-ID: V03:K1:Yglgail7+W/h7AhN2MgAEWs48csFRpQ/diTVd09bbISPWslJSXb UyFdQLql4wdcLEhRqpEWVZL5hdojZEldhP5PXFxu8LnNmpnY6kS+1YVV0VCFNzvGlMgOD0W H8HCmj/0m+lFaFg36TErtegE2KEyoAVVKe+FZe1v70ldbs/UHcsRxPRp666Nehsik0HpBdb 1hezj0UX/Q2soKnHzQfIA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:94pV5YXrkXk=:C0zR4mvX+Vv3FvVahWLhME Cow14rEIqSamhmfHWzRUWaDnTz0Lb3gfHrhoxShQwLo+KbY3habZ95onHW8kH9KDqf3YU29eV tvczqpOczMf+8Op4hGbNkopQB71kuH7nsFVfiasRF+vYR9Lsh7tlVFC3ygvtDQBZ3YTD7e9H/ CICM64VCnos+/kqkmtmXsyD1AsizzNFgMHlJ+cu7AJ3OyPiVD12Gzh+JSaE5kNwrwZW1Ncur/ H6TvAA0WtRDezH/SDw90t9G8sbXYSsTjn1vHmS2+EW2feqjWKLaqvh8mqfPH16g9EyrXF2W4r Li4rcDCQ+5DFGreH3aNH4MHsfXl1U3FnuTGJ6yvg0mt0Pyzg1vqare1JaQDTWEFNMS1qBFZmW 4PFv9+M5pFhLrXuJ0GMPt/AlRb2O7Z2kR7CP0tByYd+DoftlRaZfb2Ej7S1Hlf50+ZKm/s4em ldh4trAJOk0z2gvk9DOqrFpXD8aP7WZ+bq0ZdhNL+hD3MCGkNmV8asi0UlSZlxreqbSHmMden 7aS622HMa6Ef7xJ7vsJpknNlsgELhNhQkN0bN5MyIonREcLJEX40gjRfknlQpJnE8K3jT8Cwo 8bB+bRg/r4vKnFItnuueuYMG3xTLeKxgMSD8vfAFcHcn81WKUfzRQjd2w+WqDKjW0zuolRih2 iM4vz/4M+iSrwg6OJRQwtj/XkNo3oZe9UmZBG2GadAKragTUqoGP0lyuQh/7FFHiEjXJAMP2P q9eZPe4ECOlHeoiCZke9s5f08PLKoRwIKyYe4qZVzyuWASuEF3rInPr3r/m1/08+xbgEzrFUg AGR2TnPp2ZcUr3KdqJOgZIdnFx4XbhJ7JmtrL42kGsFsMO4oBJW8uOOYavmn+10LJexEOfciF ev5PhiMdREzRD+mJTdiQ3tTW4DcCvkoh2UboiZUUJtpXPtAIrGqxqE/eH0kzc61btMjAQrVGI G4E/vSLEpl9JN0EfKfDUGu+bUdYWLijEjfdzzDVwyQZrgbp5gJGgxFGrwdf93c7ReDDW/rlfv lFBa0XOqaNFgV9MBfN8kmauPXldD8+a0Q8qUfdx1Ey3l1/uR+jlociJ9NZnZUUoW0ZK2pQFRj EV/HAkcUOSuyLjWTI+lmHvnbssLVJocnxhkila7M7ijirGlE3Oew8y2HDHh/hfq9/EpK4Om34 4HNEEImeR0vqcv/F9vAZpQs94JvYVMpe7uxnWcN7Gi3/YwDPaKyaChnFiMRtntm7MwXOqMGm3 EXTjZ2m77r167EcCf X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 40556 Cc: Pierre Langlois , 40556@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: -1.7 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Tobias Geerinckx-Rice writes: > Pierre, > > Pierre Langlois =E5=86=99=E9=81=93=EF=BC=9A >> I wonder what's wrong with backtrace_symbols() in guix, I'm not sure >> how >> to investigate that. For now though, what do you think of using >> libunwind? > > OK, but it should only be included on platforms that require it: Oh sure thing! > > ;; Untested=E2=80=A6 > (inputs > `(=E2=80=A6 > ,@(match (%current-system) > ((or "aarch64-linux" "armhf-linux" =E2=80=A6) > `(("libunwind" ,libunwind))) > (_ `())) > =E2=80=A6)) > > Could you test that? OK, the following patch works for me (tested building for armhf and aarch64 on a rockpro64). I've also added a "FIXME" comment to mention the issue so we can remove/keep it when we have a good understanding of what's going on. --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-dovecot-Add-libunwind-input-for-arm.patch Content-Transfer-Encoding: quoted-printable >From ea4c7a2dec7c81951cf0d27cbb669ef39b07de95 Mon Sep 17 00:00:00 2001 From: Pierre Langlois Date: Sat, 11 Apr 2020 16:34:01 +0100 Subject: [PATCH] gnu: dovecot: Add libunwind input for arm. * gnu/packages/mail.scm (dovecot)[inputs]: Add libunwind if the system is either aarch64-linux or armhf-linux. --- gnu/packages/mail.scm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index a6ed776db1..91577f72b1 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -24,7 +24,7 @@ ;;; Copyright =C2=A9 2017 Kyle Meyer ;;; Copyright =C2=A9 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice ;;; Copyright =C2=A9 2017, 2018 Rene Saavedra -;;; Copyright =C2=A9 2018, 2019 Pierre Langlois +;;; Copyright =C2=A9 2018, 2019, 2020 Pierre Langlois ;;; Copyright =C2=A9 2018 Alex Vong ;;; Copyright =C2=A9 2018 G=C3=A1bor Boskovits ;;; Copyright =C2=A9 2018, 2019, 2020 Ricardo Wurmus @@ -89,6 +89,7 @@ #:use-module (gnu packages libevent) #:use-module (gnu packages libidn) #:use-module (gnu packages libunistring) + #:use-module (gnu packages libunwind) #:use-module (gnu packages linux) #:use-module (gnu packages lsof) #:use-module (gnu packages lua) @@ -1435,6 +1436,12 @@ facilities for checking incoming mail.") (inputs `(("bzip2" ,bzip2) ("libsodium" ,libsodium) ; extra password algorithms + ;; FIXME: The 'test-backtrace' tests fail on arm when using glibc's + ;; backtrace_symbol() function so fallback to using libunwind. + ,@(match (or (%current-target-system) (%current-system)) + ((or "aarch64-linux" "armhf-linux") + `(("libunwind" ,libunwind))) + (_ '())) ("linux-pam" ,linux-pam) ("lz4" ,lz4) ("openssl" ,openssl) --=20 2.26.0 --=-=-= Content-Type: text/plain Thanks, Pierre --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 11 13:57:08 2020 Received: (at 40556) by debbugs.gnu.org; 11 Apr 2020 17:57:08 +0000 Received: from localhost ([127.0.0.1]:57058 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jNKNQ-0001EU-5H for submit@debbugs.gnu.org; Sat, 11 Apr 2020 13:57:08 -0400 Received: from lepiller.eu ([89.234.186.109]:58296) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jNKNN-0001EK-RD for 40556@debbugs.gnu.org; Sat, 11 Apr 2020 13:57:06 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 202c5cdd; Sat, 11 Apr 2020 17:57:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date :in-reply-to:references:mime-version:content-type :content-transfer-encoding:subject:to:cc:from:message-id; s= dkim; bh=NmQ2iBTshZ3xdyS/voAbrKfbCfDuTgz/PXncE9A0nLQ=; b=bcusgzu 285jsLCcozqYTUO6JBQ+UEvjAPNYgFC8RiKHW5/+PjDbDyaV/3CupfS7ksAe7GdB A8mpYQUKRDDl5hfD1YoM3okw7DKR2ubwsU65EtlNYPrVYkqJuTizx+jL0X8QZfjV x328wfqKtjKxWtVpmvhy+ga9MJTBFj5b2Zy9ROzsm9LHCAHDJQcMlZ/OqXq4Jr44 FRzW5qbQpw/AT13UwTrYSpRm+mpHrQtxiE5fzfhbc6MLAhib9H+a7282URKCR1Jo rCGlkBHV3e0uzDowWMMS8n5ho3CkL+1lR13bXP6LqwwDKBmJwoKBg/mao9vfid7F 3LVjo/LuQOA1hbQ== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id c9645e05 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Sat, 11 Apr 2020 17:57:02 +0000 (UTC) Date: Sat, 11 Apr 2020 13:56:42 -0400 User-Agent: K-9 Mail for Android In-Reply-To: <87eesuhsl2.fsf@gmx.com> References: <87ftdahvut.fsf@gmx.com> <875ze6ngmg.fsf@nckx> <87eesuhsl2.fsf@gmx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [bug#40556] [PATCH] gnu: dovecot: Add libunwind input. To: Pierre Langlois , Tobias Geerinckx-Rice From: Julien Lepiller Message-ID: <5AA1CEE8-556B-48A9-BA51-86686EDD0482@lepiller.eu> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 40556 Cc: 40556@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: -1.0 (-) Le 11 avril 2020 12:53:29 GMT-04:00, Pierre Langlois a =C3=A9crit : > >Tobias Geerinckx-Rice writes: > >> Pierre, >> >> Pierre Langlois =E5=86=99=E9=81=93=EF=BC=9A >>> I wonder what's wrong with backtrace_symbols() in guix, I'm not sure >>> how >>> to investigate that=2E For now though, what do you think of using >>> libunwind? >> >> OK, but it should only be included on platforms that require it: > >Oh sure thing! > >> >> ;; Untested=E2=80=A6 >> (inputs >> `(=E2=80=A6 >> ,@(match (%current-system) >> ((or "aarch64-linux" "armhf-linux" =E2=80=A6) >> `(("libunwind" ,libunwind))) >> (_ `())) >> =E2=80=A6)) >> >> Could you test that? > >OK, the following patch works for me (tested building for armhf and >aarch64 on a rockpro64)=2E I've also added a "FIXME" comment to mention >the issue so we can remove/keep it when we have a good understanding of >what's going on=2E Great, thanks for working on it, I had totally forgotten about it, because= I fixed it in my systems by not running tests=2E There's also a bug report= I sent to bug-guix I think=2E Adding libunwind should work=2E I remember t= esting it once, but it was just too long and I forgot about it ^^" From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 16 12:25:06 2020 Received: (at 40556) by debbugs.gnu.org; 16 Apr 2020 16:25:06 +0000 Received: from localhost ([127.0.0.1]:39215 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jP7K5-0004MH-S3 for submit@debbugs.gnu.org; Thu, 16 Apr 2020 12:25:06 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42308) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jP7K4-0004Lf-KH for 40556@debbugs.gnu.org; Thu, 16 Apr 2020 12:25:04 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:35823) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jP7Jy-0000Z3-Jf; Thu, 16 Apr 2020 12:24:58 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=42506 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jP7Jy-0008KK-3Y; Thu, 16 Apr 2020 12:24:58 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Pierre Langlois Subject: Re: [bug#40556] [PATCH] gnu: dovecot: Add libunwind input. References: <87ftdahvut.fsf@gmx.com> <875ze6ngmg.fsf@nckx> <87eesuhsl2.fsf@gmx.com> Date: Thu, 16 Apr 2020 18:24:56 +0200 In-Reply-To: <87eesuhsl2.fsf@gmx.com> (Pierre Langlois's message of "Sat, 11 Apr 2020 18:53:29 +0200") Message-ID: <877dyfgzzb.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -1.5 (-) X-Debbugs-Envelope-To: 40556 Cc: Tobias Geerinckx-Rice , 40556@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.5 (--) Hi, Pierre Langlois skribis: > + ;; FIXME: The 'test-backtrace' tests fail on arm when using glibc= 's > + ;; backtrace_symbol() function so fallback to using libunwind. > + ,@(match (or (%current-target-system) (%current-system)) > + ((or "aarch64-linux" "armhf-linux") > + `(("libunwind" ,libunwind))) > + (_ '())) This isn=E2=80=99t quite correct because =E2=80=98%current-target-system=E2= =80=99 returns a triplet, like =E2=80=9Carm-linux-gnueabihf=E2=80=9D. Use =E2=80=98target-arm?=E2=80=99 instead. TIA! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 16 13:13:52 2020 Received: (at 40556) by debbugs.gnu.org; 16 Apr 2020 17:13:52 +0000 Received: from localhost ([127.0.0.1]:39294 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jP85E-0007fA-Cu for submit@debbugs.gnu.org; Thu, 16 Apr 2020 13:13:52 -0400 Received: from mout.gmx.net ([212.227.17.21]:47223) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jP85A-0007eu-9d for 40556@debbugs.gnu.org; Thu, 16 Apr 2020 13:13:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1587057204; bh=DVVeVCaCOuwDXQ1aghKoX289QluRxgQ5m5s4PyuIeYs=; h=X-UI-Sender-Class:References:From:To:Cc:Subject:In-reply-to:Date; b=J53bknc3jDgQPcJfQnT0SsDwnatBeFtqX87ZqixqVwIAU7KgJZ0+6VUH2HCt7hOUp 3m1ExlyQ5qaCHwD7I/uXgz3KbC7XyVu7IY5R2bnd+eOhjxJEu4hlG3iR7xQfKp2Rsx FOmJviQCL5KEsPbTQ2ANEKJf3wyLtS1IZNyzoFVc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from e119807-lin ([77.133.16.25]) by mail.gmx.com (mrgmx105 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MCbEp-1jYmqO2vHn-009gKI; Thu, 16 Apr 2020 19:13:24 +0200 References: <87ftdahvut.fsf@gmx.com> <875ze6ngmg.fsf@nckx> <87eesuhsl2.fsf@gmx.com> <877dyfgzzb.fsf@gnu.org> User-agent: mu4e 1.2.0; emacs 26.3 From: Pierre Langlois To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#40556] [PATCH] gnu: dovecot: Add libunwind input. Message-ID: <87y2qvs6ar.fsf@gmx.com> In-reply-to: <877dyfgzzb.fsf@gnu.org> Date: Thu, 16 Apr 2020 19:13:21 +0200 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Provags-ID: V03:K1:sVQsEABzh1t7nr/m2ddLKL602EtJ9TAm3y29KQ3zeGR0iYLAmHI hJfuSWrhAkMTRjfBvqLxkGxfTqML2nL+Dp7E64cg09ZEM7fwPTgWiQxCuuWDotYHQk2kS32 NUchU8w8Q8UnAW025GuH0bkKQtGo6IMdNf8n/LZBgTuhNb+lmDPK/3d0VOteXTYmVNZnSme DP2pfKEKJxt4jnxFfTnZg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:oTxZadCuzAM=:PpEhwtiYNf99G/N5ZLg8qt RspShXTQ4cVQRqnLJUEG5rzuqJ0jBbITC5tJzQWehszRe32qV0gPUl1N+ythrWvjg0dzH1jbb h2oZd5liwrV/eU2tswkWy3mKnTr1uNzDFgjnED2yIh4faL3mBr9WMC1Jpzn+EPd/N6rARBBcP nfvUdCa37PJGIvn+y4mYX/b8dwlzUdv+Pk6oQO8lng1EKQ1QT+jrGqAoZanFljjUd/Z5BJeJJ U/toKBJkBdrrhMFtmCUPKalh0PfbDfsk28o1blV7P0ZKaN6pPGQsZw90gz7r+n6oOibMhiypj FWsyURT4EGQqwjLExmIzpgRioRGll4n2cm75EPA6Wza6K4Zyi4BcE9JGmohUAAbLYyjH8tgz/ 5QDo9befbDz0oZYqLb2YcABPKj5Am4jKormBXvg3ZRTtOri9R7dZGo+icomghOxZ9oMeEcaEd dZGbOk+u0e+ePCmu6jTjJSSSADZBKBVuIB3QeqWAkiXo5qIAEganaoTlXplQf+MkusnUVnJTV 7wVIbw3QAEaOxPtnLXpXBI9kUYZJgAixeezWGMsxJ1OtT+smYwjQMa2qlQoGDzntdYDH2OJfN lpiXPrvhYstP2UBroXX1E2KonXpl+kZ/+lbq64B9bBFyhNTxH/YwAgmQQ0pYkNBBwx1Utfpcl mU5iQfRC4D3ZKtCmCHd18I8zTgeSeTiKZVft/o0PP0HMritCtlf2AUyTy061zvr/xS0ETImmu rrApoqbuDBXcnrSM9bdqxPDITG1Bq9T/a0xCuTznRKXOpVjf7Kl4cqmSeHmJIPpcDMjKi6MpX fxH6Eos+ahI9E70viGJVVUhBlbWQ9UUnTV9sqVfRCT15hvq/Ahctsr5u1nq8fuAvbAGlhJZEO W7UjyGqWD0qkjuXfFaDjdFS4p5sFj9p/QjQCVfBCOB0CDYja5RovrCsB8c6d0G+qdcXyIN/zF 5o7br60qTuLKLnSKwe8KGFDP6hK80BjK2OEPLak55LDH177W/V+pmkeg35A29yqNZBKt00m3N HPI8cGRCbNW+DXoDzoSGKW72KCjZ72p0PUQLZoE4BahblQRTblZH870d5BET2ehbPsPxs/ocb hOak9i7QWLE7FlkfbpUF6Ddy6bL+I+xfoZwYfvBdGS0E3tD6zyrs7+6Qo14n85B8PSx+hwnrp XITslSOW5H0RYu39AGy50i2ONCJLeCARdX+Ey+hq0Mgo1lOOQlolNkBY0T2MoVV/PDySag0M3 TYvbThmHz1oXmZAjl X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 40556 Cc: Pierre Langlois , Tobias Geerinckx-Rice , 40556@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: -1.7 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Ludo! Ludovic Court=C3=A8s writes: > Hi, > > Pierre Langlois skribis: > >> + ;; FIXME: The 'test-backtrace' tests fail on arm when using glib= c's >> + ;; backtrace_symbol() function so fallback to using libunwind. >> + ,@(match (or (%current-target-system) (%current-system)) >> + ((or "aarch64-linux" "armhf-linux") >> + `(("libunwind" ,libunwind))) >> + (_ '())) > > This isn=E2=80=99t quite correct because =E2=80=98%current-target-system= =E2=80=99 returns a > triplet, like =E2=80=9Carm-linux-gnueabihf=E2=80=9D. Oups, I didn't realize the cross-compilation target was different. > > Use =E2=80=98target-arm?=E2=80=99 instead. Yep, that works really nicely, it's much clearer. I've tested on x86_64, arm and aarch64 natively. I'll try cross-compiling with --target=3Darm-linux-gnueabihf and --target=3Daarch64-linux-gnu as well but that'll take a little longer. Thanks! Pierre --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-dovecot-Add-libunwind-input-for-arm.patch Content-Transfer-Encoding: quoted-printable >From d56005a2d839e36cd9f718041d8634f34cf2177a Mon Sep 17 00:00:00 2001 From: Pierre Langlois Date: Sat, 11 Apr 2020 16:34:01 +0100 Subject: [PATCH] gnu: dovecot: Add libunwind input for arm. * gnu/packages/mail.scm (dovecot)[inputs]: Add libunwind when targetting ar= m. --- gnu/packages/mail.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index 0a88c20a6e..8d55d157e5 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -24,7 +24,7 @@ ;;; Copyright =C2=A9 2017 Kyle Meyer ;;; Copyright =C2=A9 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice ;;; Copyright =C2=A9 2017, 2018 Rene Saavedra -;;; Copyright =C2=A9 2018, 2019 Pierre Langlois +;;; Copyright =C2=A9 2018, 2019, 2020 Pierre Langlois ;;; Copyright =C2=A9 2018 Alex Vong ;;; Copyright =C2=A9 2018 G=C3=A1bor Boskovits ;;; Copyright =C2=A9 2018, 2019, 2020 Ricardo Wurmus @@ -89,6 +89,7 @@ #:use-module (gnu packages libevent) #:use-module (gnu packages libidn) #:use-module (gnu packages libunistring) + #:use-module (gnu packages libunwind) #:use-module (gnu packages linux) #:use-module (gnu packages lsof) #:use-module (gnu packages lua) @@ -1435,6 +1436,11 @@ facilities for checking incoming mail.") (inputs `(("bzip2" ,bzip2) ("libsodium" ,libsodium) ; extra password algorithms + ;; FIXME: The 'test-backtrace' tests fail on arm when using glibc's + ;; backtrace_symbol() function so fallback to using libunwind. + ,@(if (target-arm?) + `(("libunwind" ,libunwind)) + '()) ("linux-pam" ,linux-pam) ("lz4" ,lz4) ("openssl" ,openssl) --=20 2.26.1 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 16 13:42:01 2020 Received: (at 40556) by debbugs.gnu.org; 16 Apr 2020 17:42:01 +0000 Received: from localhost ([127.0.0.1]:39343 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jP8WW-0008RY-Pj for submit@debbugs.gnu.org; Thu, 16 Apr 2020 13:42:01 -0400 Received: from mout.gmx.net ([212.227.17.20]:37461) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jP8WU-0008RK-Ls for 40556@debbugs.gnu.org; Thu, 16 Apr 2020 13:41:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1587058912; bh=WJseHYwP4IJlEC+ydHc8JUFAXV+eCni7TQ7kiYd4Fb4=; h=X-UI-Sender-Class:References:From:To:Cc:Subject:In-reply-to:Date; b=bALXbJvCJvEd+LAbIyZLjPX29wWiJIIRuo2I6Q0q26482kit+CFhf1InYo2PCNqtf cxGeuJs3TcnoNMse/pDKDroIc+ASv25eVolsdGvlXyzT8gH37/7B/QVd0F5I9xNpe/ q07KtQoWNgENWxN2WHJaDvJx1ztwoqx3gVXJ5T5w= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from e119807-lin ([77.133.16.25]) by mail.gmx.com (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id 1Mnpnm-1isYrN4BRa-00pKFn; Thu, 16 Apr 2020 19:41:52 +0200 References: <87ftdahvut.fsf@gmx.com> <875ze6ngmg.fsf@nckx> <87eesuhsl2.fsf@gmx.com> <877dyfgzzb.fsf@gnu.org> <87y2qvs6ar.fsf@gmx.com> User-agent: mu4e 1.2.0; emacs 26.3 From: Pierre Langlois To: Pierre Langlois Subject: Re: [bug#40556] [PATCH] gnu: dovecot: Add libunwind input. In-reply-to: <87y2qvs6ar.fsf@gmx.com> Date: Thu, 16 Apr 2020 19:41:50 +0200 Message-ID: <87o8rrl44h.fsf@gmx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:tC72i7C8D5r9OZH0h8hH5fRFBx2Gc1iTLKFh0iTBF1N/LgM0r+h aHvzbtiubd7KNB9hLJvdFbToHh3RoxHLap5My2J11Kzh2bg2ePzP/o9fVXU1ezCDqxSTdAA ILnywzf8l99VzhJCTqu/ChHdk09ZOn/PLAlRLNxGGM11CZLHPlL1qBlj7qIy872wTglnpVT eCSK6tH1J+/Qgr7cPhaPw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:0K44/+jMKas=:i6tXQeS3+ahX0Z0+eLmPUD vDxTrleMFoerjcSuAo6jKwhozE5IU0J70WEEruei02NYzsvF4roT7ihSF1qod9RTQkIK1F1uL PPDOghQRns5XNHwGrFZ5mucTlujEYEsE6yH7F0TYtudsPXiN35f64O+LEqfB9ni0K18Pmqq0K imuVqRJbOVQXQEY6nVESmeBfqzAOPnHT8ldhCIjjEEHo70OebPW+15PJ6v+bRUDVG2Si8lIGB zE1jGrFRjYoX9Z/xyRVQns1LlX3LjhfgLaKqx+jzSwwwf5rWTIRTrgoGPnhj/W4wKa6+LSDNQ 5PVlJvMNyomdDy19u8Sllut4GsIiJVJgGYe4aCiyauv0qgHaMGbIP1kVGf//904GNYkoH3req BK4tgh0C85Lw6NCBMaUqBO5NOBsCpAzoZV1YajAFm0nVLmiifLi8ngus/lElsGT0UlPsk0+03 rjK0nbLU+1cEjkpEMFK9KglDzs037CH5/L2RlgbZq/SeGq2x+XPhGVPcNyKAKWeZaYvU2TElq aZPPZBXIvM4+1+bpVEvEDthV7kRmukVI/6hpMbWy1w3BMV1/AnFZdD2b39KsZ7DkzR3ZcGlHI 31UKuUw6/rdSV3y01uzVv4mV6g5MsUVlDmz44WZBRshGQ9HEtRizccC04B3ItNxT0EEZV6MQn mOEnm1Deq1bcxPi9pq7RFODIowrM1L324z3f3yyOGRT/o8HieNEb0hkWmU0d/Mi8Tsos84Yio k6JjmKLsHxiKXAK0WGU0DrIpe42GCPCtKE6OJqSkdgUfgapl7VLqIRYAxATXbCYcIFxVseGey GMMGI79ftjNZLFD8FrRue8aSSM0BxkRV3Lwsxd0QrEX4tclUbe8R0M/chxPPq/1zzVeF/oKNT fxSuewqW0Rh+KGMe2ujrccKrMo0KPdpSEmKIljvlno82XBByNKX7eDSSndvRpRmFdvBfvGDQq bO8TuDcFB8pMYseIRajWfz4QOH7aTVclZJ11DvAXG2J/CpKJIFW8BjUQYBPJvkO2uJ3D7nzs1 MqyxKTZTWKDUB92iV1YEOUAqsBrCeMR2ZB+2TYzrQ//gEM3uHA5Ltqz+Zbr2eYNjW53+9EmuH jpMFXQicCes8G0dsN7DIiNBnxeKmcG/cId6ruC+0PghufbMGcFQSQFQeAIljRQHpti1C0Cw4K Q1AjpCF/XtsKkuNGSkCKSK3PC2FiSqif9tWkIR2H92j0rIVmD4iZZJnFePnn2HVoCyaQRjB7j TTCR/HDXhRpDtPYOa X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 40556 Cc: Ludovic =?utf-8?Q?Court=C3=A8s?= , Tobias Geerinckx-Rice , 40556@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: -1.7 (-) Pierre Langlois writes: > Hi Ludo! > > Ludovic Court=C3=A8s writes: > >> Hi, >> >> Pierre Langlois skribis: >> >>> + ;; FIXME: The 'test-backtrace' tests fail on arm when using gli= bc's >>> + ;; backtrace_symbol() function so fallback to using libunwind. >>> + ,@(match (or (%current-target-system) (%current-system)) >>> + ((or "aarch64-linux" "armhf-linux") >>> + `(("libunwind" ,libunwind))) >>> + (_ '())) >> >> This isn=E2=80=99t quite correct because =E2=80=98%current-target-system= =E2=80=99 returns a >> triplet, like =E2=80=9Carm-linux-gnueabihf=E2=80=9D. > > Oups, I didn't realize the cross-compilation target was different. > >> >> Use =E2=80=98target-arm?=E2=80=99 instead. > > Yep, that works really nicely, it's much clearer. > > I've tested on x86_64, arm and aarch64 natively. I'll try > cross-compiling with --target=3Darm-linux-gnueabihf and > --target=3Daarch64-linux-gnu as well but that'll take a little longer. Right, it seems dovecot isn't yet cross-compilable, but cross-compiling libunwind works just fine. With dovecot I get a failure trying to compile perl natively, as openssl's native-input I believe. ``` $ ./pre-inst-env guix build --target=3Daarch64-linux-gnu openssl ... phase `install' succeeded after 21.6 seconds starting phase `remove-extra-references' Backtrace: 14 (primitive-load "/gnu/store/p51mz7mawiixjly3579bfyfv4hx=E2=80= =A6") In ice-9/eval.scm: 191:35 13 (_ _) In ice-9/boot-9.scm: 829:9 12 (catch _ _ # =E2=80=A6) In srfi/srfi-1.scm: 863:16 11 (every1 # =E2=80=A6) In /gnu/store/w3jlc8pk8416m7h677r5vq92b66h8cqd-module-import/guix/build/gnu= -build-system.scm: 839:30 10 (_ _) In ice-9/eval.scm: 619:8 9 (_ #(#(#(#(#(#(#) =E2=80=A6) = =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6)) In ice-9/boot-9.scm: 841:4 8 (with-throw-handler _ _ _) In ice-9/ports.scm: 445:17 7 (call-with-input-file _ _ #:binary _ #:encoding _ # _) In /gnu/store/w3jlc8pk8416m7h677r5vq92b66h8cqd-module-import/guix/build/uti= ls.scm: 739:26 6 (_ _) 765:26 5 (_ # =E2=80=A6) In srfi/srfi-1.scm: 466:18 4 (fold # =E2=80=A6) In ice-9/eval.scm: 202:51 3 (_ #(#(#(#(#(#(# =E2=80=A6)) = =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6)) 163:9 2 (_ #(#(#(#(#(#(# =E2=80=A6)) = =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6)) In unknown file: 1 (string-append "incpth=3D'" #f "/include'\n") In ice-9/boot-9.scm: 752:25 0 (dispatch-exception _ _ _) ice-9/boot-9.scm:752:25: In procedure dispatch-exception: In procedure string-append: Wrong type (expecting string): #f builder for `/gnu/store/50wrwqkvryprlghiqnx3aq8w7ss8mak6-perl-5.30.0.drv' f= ailed with exit code 1 build of /gnu/store/50wrwqkvryprlghiqnx3aq8w7ss8mak6-perl-5.30.0.drv failed View build log at '/var/log/guix/drvs/50/wrwqkvryprlghiqnx3aq8w7ss8mak6-per= l-5.30.0.drv.bz2'. guix build: error: build of `/gnu/store/50wrwqkvryprlghiqnx3aq8w7ss8mak6-pe= rl-5.30.0.drv' failed ``` But, I think perl has been fixed on core-updates, so we should be good for this! Thanks, Pierre From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 17 04:20:47 2020 Received: (at 40556-done) by debbugs.gnu.org; 17 Apr 2020 08:20:47 +0000 Received: from localhost ([127.0.0.1]:39893 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jPMEx-0006d4-8j for submit@debbugs.gnu.org; Fri, 17 Apr 2020 04:20:47 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33484) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jPMEu-0006ch-UD for 40556-done@debbugs.gnu.org; Fri, 17 Apr 2020 04:20:45 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:47723) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jPMEp-0000kf-91; Fri, 17 Apr 2020 04:20:39 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=43774 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jPMEm-0007hj-7P; Fri, 17 Apr 2020 04:20:38 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Pierre Langlois Subject: Re: [bug#40556] [PATCH] gnu: dovecot: Add libunwind input. References: <87ftdahvut.fsf@gmx.com> <875ze6ngmg.fsf@nckx> <87eesuhsl2.fsf@gmx.com> <877dyfgzzb.fsf@gnu.org> <87y2qvs6ar.fsf@gmx.com> <87o8rrl44h.fsf@gmx.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 29 Germinal an 228 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 17 Apr 2020 10:20:34 +0200 In-Reply-To: <87o8rrl44h.fsf@gmx.com> (Pierre Langlois's message of "Thu, 16 Apr 2020 19:41:50 +0200") Message-ID: <87r1wmcylp.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -1.5 (-) X-Debbugs-Envelope-To: 40556-done Cc: Tobias Geerinckx-Rice , 40556-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.5 (--) Hi Pierre, Pierre Langlois skribis: > Right, it seems dovecot isn't yet cross-compilable, but cross-compiling > libunwind works just fine. With dovecot I get a failure trying to > compile perl natively, as openssl's native-input I believe. Not your fault, and it=E2=80=99s fixed on core-updates as you write. I=E2=80=99ve applied the patch, thank you! Ludo=E2=80=99. From unknown Sat Jun 21 03:09:13 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 15 May 2020 11:24:06 +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