From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:39126) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jP8Wc-000895-WA for guix-patches@gnu.org; Thu, 16 Apr 2020 13:42:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jP8Wb-0007z9-2A for guix-patches@gnu.org; Thu, 16 Apr 2020 13:42:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56030) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jP8WY-0007xm-4m for guix-patches@gnu.org; Thu, 16 Apr 2020 13:42:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jP8WY-0008Rn-1m for guix-patches@gnu.org; Thu, 16 Apr 2020 13:42:02 -0400 Subject: [bug#40556] [PATCH] gnu: dovecot: Add libunwind input. Resent-Message-ID: References: <87ftdahvut.fsf@gmx.com> <875ze6ngmg.fsf@nckx> <87eesuhsl2.fsf@gmx.com> <877dyfgzzb.fsf@gnu.org> <87y2qvs6ar.fsf@gmx.com> From: Pierre Langlois 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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Pierre Langlois Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Tobias Geerinckx-Rice , 40556@debbugs.gnu.org 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