From unknown Tue Jun 24 20:56:25 2025 X-Loop: help-debbugs@gnu.org Subject: bug#31221: Cross compiling perl with guix pack fails Resent-From: =?UTF-8?Q?Rapha=C3=ABl_?= =?UTF-8?Q?M=C3=A9lotte?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 19 Apr 2018 21:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 31221 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 31221@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.152417205525456 (code B ref -1); Thu, 19 Apr 2018 21:08:01 +0000 Received: (at submit) by debbugs.gnu.org; 19 Apr 2018 21:07:35 +0000 Received: from localhost ([127.0.0.1]:33308 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f9GmD-0006cV-Hq for submit@debbugs.gnu.org; Thu, 19 Apr 2018 17:07:34 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47415) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f9GeQ-0006QP-SA for submit@debbugs.gnu.org; Thu, 19 Apr 2018 16:59:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f9GeK-0004Fl-0y for submit@debbugs.gnu.org; Thu, 19 Apr 2018 16:59:25 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, FROM_EXCESS_BASE64,HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:59079) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f9GeJ-0004Fh-TK for submit@debbugs.gnu.org; Thu, 19 Apr 2018 16:59:23 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f9GeI-0003Gm-Ao for bug-guix@gnu.org; Thu, 19 Apr 2018 16:59:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f9GeH-0004F0-1K for bug-guix@gnu.org; Thu, 19 Apr 2018 16:59:22 -0400 Received: from mail-ua0-x22d.google.com ([2607:f8b0:400c:c08::22d]:41278) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f9GeG-0004Dx-Qt for bug-guix@gnu.org; Thu, 19 Apr 2018 16:59:20 -0400 Received: by mail-ua0-x22d.google.com with SMTP id l3so2804703uak.8 for ; Thu, 19 Apr 2018 13:59:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=pWuRN5FgPZVsmQsMUC5sBho2TqOj4UI/F26Vj0DJJRM=; b=Idj9IIb2EQxucB76MSVgHFUNv65JRalPr2CzOLzuwDFvvAeI6UJO/Iqn6dp2O8pJIR xpthKs/1r9bpI2+DQQOgfALi9WfMPDaXm1cbo6nZH9wl63An6NXwQMPZIc8xmhOWbXLU Enukx6kpURUl39SAEJ3ROGWsuPxORb0rTrJg/4OA2ZM1XXrc9xNc/TAJmzihwy1b/ZNP WGc3Jv65KHszQn9wUlf2PYPE9U+dHG7SPYO5tvzcWdapv+2hiMdJL7McKDFybyqqR6jT hC1NSXDFVWXFnCKbCEO2m0TXEMRKKbjr4G9xVxzArZH0j4toUu9rUoMBTrjVbPmF9LET 9sNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=pWuRN5FgPZVsmQsMUC5sBho2TqOj4UI/F26Vj0DJJRM=; b=np7jtuX6xKUhMfUV7fTjyOQnRRztdatoKayxvgvp+HAIjzigeRtfyTz9YeZemlOnsR 79MQ4pckdg/rBCoibgPiqqbAelc9hHz+f6WzAR1pLNUCUj3Lxao1O+fonO2B4cGiCEbc tNoJ7io4Lw+oWtjWMVeZ/oYlo2Y2YOgQ/szvu+doT5C9RKpFyIcee4yiM22CGmVB+0c5 zZjZ2n/WCNFDLpngwzd8HVsgIdwMRL2JUYRPraikRPzrfKiPavUhnxhiIK/obvirjCPs nubDBqPG8w2RUTOHGiMNxaPCmY5GYLCCicXxsBRcqoYhIqcm+Jh5CLDwdikKTZlulNB5 UBjQ== X-Gm-Message-State: ALQs6tDSUXZxihKXoxWghlInD+WlRJmYtCpn9RxgV7m76dva8VqLH1PP Csy68eo1rNPHz/XXiI6nQZCvCJbuaioTxGbTpvDpMA== X-Google-Smtp-Source: AIpwx4/VuUT4+s3WTtKQjy+ocIzaFLjGthkkRPWhze6/j8xcHcf925+Dvxed1O8gQKZvQIM2HTQHa6g9B8eNVdRBiho= X-Received: by 10.176.83.91 with SMTP id y27mr3019305uay.146.1524171559359; Thu, 19 Apr 2018 13:59:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.136.193 with HTTP; Thu, 19 Apr 2018 13:58:49 -0700 (PDT) From: =?UTF-8?Q?Rapha=C3=ABl_?= =?UTF-8?Q?M=C3=A9lotte?= Date: Thu, 19 Apr 2018 22:58:49 +0200 Message-ID: Content-Type: multipart/alternative; boundary="94eb2c1926645f5b2b056a39d8eb" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.9 (---) X-Mailman-Approved-At: Thu, 19 Apr 2018 17:07:31 -0400 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: -4.9 (----) --94eb2c1926645f5b2b056a39d8eb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, I'm trying to make a wireshark package for an old 32bit system where I cannot install guix but it always fails with the same error. This is the command I'm using: guix pack -S /opt/gnu/bin=3Dbin --target=3Di686-pc-linux-gnu wireshark And this is the error I get: starting phase `remove-extra-references' Backtrace: 13 (primitive-load "/gnu/store/304qy7gcwfsfsfxi9x98j5kw7i2=E2=80= =A6") In ice-9/eval.scm: 191:35 12 (_ _) In srfi/srfi-1.scm: 863:16 11 (every1 # =E2=80=A6) In /gnu/store/71d3rwa514j7vy5l4vfivf68g5yxibvl-module-import/guix/build/gnu-bu= ild-system.scm: 711:27 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: 444:17 7 (call-with-input-file _ _ #:binary _ #:encoding _ # _) In /gnu/store/71d3rwa514j7vy5l4vfivf68g5yxibvl-module-import/guix/build/utils.= scm: 610:26 6 (_ _) 636: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/szkpdjdxalwb793kkbfjibvhxki33x8l-perl-5.26.2.drv' failed with exit code 1 guix pack: error: build failed: build of `/gnu/store/szkpdjdxalwb793kkbfjibvhxki33x8l-perl-5.26.2.drv' failed Since it seems related to perl, I tried running the same guix pack command for perl only, and it fails with the same error. I found a reference in the IRC logs about the same kind of error with another package, but I can't tell if it's really related or not. I'll still paste that reference here just in case: https://gnunet.org/bot/log/guix/2015-07-14#T699278 Any clue on how I could debug that ? Thanks --94eb2c1926645f5b2b056a39d8eb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

I'm trying to make a wir= eshark package for an old 32bit system where I cannot install guix but it a= lways fails with the same error. This is the command I'm using:
guix= pack -S /opt/gnu/bin=3Dbin --target=3Di686-pc-linux-gnu wireshark

<= /div>And this is the error I get:

starting phase `remove-extra-= references'
Backtrace:
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 13 (primitive-load "/gnu/store/304qy7gcwfsfsfxi9x98j5kw7i= 2=E2=80=A6")
In ice-9/eval.scm:
=C2=A0=C2=A0 191:35 12 (_ _)
= In srfi/srfi-1.scm:
=C2=A0=C2=A0 863:16 11 (every1 #<procedure a40380= at /gnu/store/71d3rwa514j7v=E2=80=A6> =E2=80=A6)
In /gnu/store/71d3r= wa514j7vy5l4vfivf68g5yxibvl-module-import/guix/build/gnu-build-system.scm:<= br>=C2=A0=C2=A0 711:27 10 (_ _)
In ice-9/eval.scm:
=C2=A0=C2=A0=C2=A0= 619:8=C2=A0 9 (_ #(#(#(#(#(#(#<directory (guile-user)=E2=80=A6>) =E2= =80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6))
In ice-9/boot-9.scm= :
=C2=A0=C2=A0=C2=A0 841:4=C2=A0 8 (with-throw-handler _ _ _)
In ice-= 9/ports.scm:
=C2=A0=C2=A0 444:17=C2=A0 7 (call-with-input-file _ _ #:bin= ary _ #:encoding _ # _)
In /gnu/store/71d3rwa514j7vy5l4vfivf68g5yxibvl-m= odule-import/guix/build/utils.scm:
=C2=A0=C2=A0 610:26=C2=A0 6 (_ _)
= =C2=A0=C2=A0 636:26=C2=A0 5 (_ #<input: /gnu/store/fvlb30v6gvm5k8hdmqz7c= 4g8vaaqvxr=E2=80=A6> =E2=80=A6)
In srfi/srfi-1.scm:
=C2=A0=C2=A0 4= 66:18=C2=A0 4 (fold #<procedure 7ffff4385530 at /gnu/store/71d3rwa51=E2= =80=A6> =E2=80=A6)
In ice-9/eval.scm:
=C2=A0=C2=A0 202:51=C2=A0 3 = (_ #(#(#(#(#(#(#<directory (guile-user)=E2=80=A6> =E2=80=A6)) =E2=80= =A6) =E2=80=A6) =E2=80=A6) =E2=80=A6))
=C2=A0=C2=A0=C2=A0 163:9=C2=A0 2 = (_ #(#(#(#(#(#(#<directory (guile-user)=E2=80=A6> =E2=80=A6)) =E2=80= =A6) =E2=80=A6) =E2=80=A6) =E2=80=A6))
In unknown file:
=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 1 (string-append "inc= pth=3D'" #f "/include'\n")
In ice-9/boot-9.scm:=C2=A0=C2=A0 752:25=C2=A0 0 (dispatch-exception _ _ _)

ice-9/boot-= 9.scm:752:25: In procedure dispatch-exception:
In procedure string-appen= d: Wrong type (expecting string): #f
builder for `/gnu/store/szkpdjdxalw= b793kkbfjibvhxki33x8l-perl-5.26.2.drv' failed with exit code 1
guix = pack: error: build failed: build of `/gnu/store/szkpdjdxalwb793kkbfjibvhxki= 33x8l-perl-5.26.2.drv' failed

Since it seems related = to perl, I tried running the same guix pack command for perl only, and it f= ails with the same error.

I found a reference in the IRC = logs about the same kind of error with another package, but I can't tel= l if it's really related or not. I'll still paste that reference he= re just in case:
https://gnunet.org/bot/log/guix/2015-07-14#T699278

Any clue on how I could debug that ?

Thanks

--94eb2c1926645f5b2b056a39d8eb-- From unknown Tue Jun 24 20:56:25 2025 X-Loop: help-debbugs@gnu.org Subject: bug#31221: Cross compiling perl with guix pack fails Resent-From: Chris Marusich Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 21 Apr 2018 21:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31221 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: =?UTF-8?Q?Rapha=C3=ABl_?= =?UTF-8?Q?M=C3=A9lotte?= Cc: 31221@debbugs.gnu.org Received: via spool by 31221-submit@debbugs.gnu.org id=B31221.15243458129174 (code B ref 31221); Sat, 21 Apr 2018 21:24:01 +0000 Received: (at 31221) by debbugs.gnu.org; 21 Apr 2018 21:23:32 +0000 Received: from localhost ([127.0.0.1]:35213 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f9zyl-0002Nu-LS for submit@debbugs.gnu.org; Sat, 21 Apr 2018 17:23:31 -0400 Received: from mail-pg0-f43.google.com ([74.125.83.43]:34970) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f9zyk-0002Nc-5N for 31221@debbugs.gnu.org; Sat, 21 Apr 2018 17:23:30 -0400 Received: by mail-pg0-f43.google.com with SMTP id j11so5712809pgf.2 for <31221@debbugs.gnu.org>; Sat, 21 Apr 2018 14:23:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=t0jyz51ksBm5jpPYJ0QuSpzMwmeil4Nejj8rYxeGNdw=; b=jsn9U/L0dX7lvxj9TVha1l6nJxKGTiY6NDJXFcfxllQ741lFJIZhOMfDapgsGbJU5Y oLMXGUsIAoL73kTdNxkkud8U6LtnXDRazSzdW3eAU5V6bvsFwhsqKmblTh61l9eafduY XJ52xhh7bUeEvH6e8Kh/iVJ/4oAdp1EzIeaxs12GRO7wHB+lZasVOf0i++aYhqW5M9Dj YKvwBn9XJ7GMHszX+Puwg5ehpORrbV4vMBaqDJ3C/fR7GM8fzNO8VHC9B9ZinMAIUBCS Gp6J6dHMSPIgimXJk4ETJMN+PjCgXCI7c6vzvVAjZHDLGWmEizqMcnFx6jdWjx4mN10u IfVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=t0jyz51ksBm5jpPYJ0QuSpzMwmeil4Nejj8rYxeGNdw=; b=J7aTzup4lsPmSs+3N6pt4XjjBcahw0+JrYawj+9GZNGUHtRXkY4IfAuVinJ2pxtltL iFDhHo/PrmsXoyElRYfzkT0bS1V6ALGt3NTPgiuNK1/aHIzJSufILSKXIw0+/YnGtczT tomS5ML8uV1D7/rqk81fxA7iQoB6nhCELbOwF5TFP/4M5C4YrVUq6dltsXg7WT9F4vbZ q8CEwfmIUfM+VdIVEbJtIUT5HU824j6Srq8xepwjbw4wkXw/7JCtmEpGJgTxmZ+hR/06 T0FRnk5CDITV/sTQtkQKY7tkNc7ZFET4pnyxy3Cbmcl/WAamqbmmZqH3KWEokLOjuTCP UuuQ== X-Gm-Message-State: ALQs6tDqqA9IwAP5gVBhl/vlQGvVTPqu940RRcycMTVSLRMR8pIzwUzS 6PicL5fMdGc1WC5XasZjJfvrLg== X-Google-Smtp-Source: AIpwx4+nqSVYowIW+SHl/oaCOcOkqCdnlbMkidCy0g3si6I/EZYuH9jp1jVza+IAZ7izt4Qd55Th0g== X-Received: by 10.99.111.202 with SMTP id k193mr12196876pgc.147.1524345803654; Sat, 21 Apr 2018 14:23:23 -0700 (PDT) Received: from garuda.local (c-24-18-253-84.hsd1.wa.comcast.net. [24.18.253.84]) by smtp.gmail.com with ESMTPSA id n8sm16913481pfj.24.2018.04.21.14.23.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 21 Apr 2018 14:23:22 -0700 (PDT) From: Chris Marusich References: Date: Sat, 21 Apr 2018 14:23:18 -0700 In-Reply-To: ("=?UTF-8?Q?Rapha=C3=ABl_?= =?UTF-8?Q?M=C3=A9lotte?="'s message of "Thu, 19 Apr 2018 22:58:49 +0200") Message-ID: <8736zouud5.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) 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 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Rapha=C3=ABl, Thank you for the information! Rapha=C3=ABl M=C3=A9lotte writes: > starting phase `remove-extra-references' > ... > In unknown file: > 1 (string-append "incpth=3D'" #f "/include'\n") > ... > In procedure string-append: Wrong type (expecting string): #f The Perl package definition contains the following: (add-after 'install 'remove-extra-references (lambda* (#:key inputs outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) (libc (assoc-ref inputs "libc")) (config1 (car (find-files (string-append out "/lib/perl5") "^Config_heavy\\.pl$"))) (config2 (find-files (string-append out "/lib/perl5") "^Config\\.pm$"))) ;; Force the library search path to contain only libc because ;; it is recorded in Config.pm and Config_heavy.pl; we don't ;; want to keep a reference to everything that's in ;; $LIBRARY_PATH at build time (GCC, Binutils, bzip2, file, ;; etc.) (substitute* config1 (("^incpth=3D.*$") (string-append "incpth=3D'" libc "/include'\n")) (("^(libpth|plibpth|libspath)=3D.*$" _ variable) (string-append variable "=3D'" libc "/lib'\n"))) (for-each (lambda (file) (substitute* config2 (("libpth =3D> .*$") (string-append "libpth =3D> '" libc "/lib',\n")))) config2) #t))) It seems likely that (assoc-ref inputs "libc") is evaluating to #f during the build. You can check if this is the case by using Guile's undocumented "pk" procedure ("pk" is short for "peek stuff"). For example, change this line (libc (assoc-ref inputs "libc")) to this: (libc (pk (assoc-ref inputs "libc"))) Assuming that's the problem, the next question is: why is it happening? Probably, something about the cross-compilation is causing "libc" to be removed from the inputs. After looking around in places like guix/packages.scm, guix/build-system/gnu.scm, and guix/build/gnu-build-system.scm, it looks like maybe what we need to do is check to see if we're cross-compiling, and then try to get "cross-libc" instead of "libc" from the inputs. It turns out that we already do this for some packages, like the shadow package. We probably just need to do the same kind of thing shadow is doing in its "set-nscd-file-name" phase, which looks like this: (add-before 'build 'set-nscd-file-name (lambda* (#:key inputs #:allow-other-keys) ;; Use the right file name for nscd. (let ((libc (assoc-ref inputs ,(if (%current-target-system) "cross-libc" "libc")))) (substitute* "lib/nscd.c" (("/usr/sbin/nscd") (string-append libc "/sbin/nscd")))))) I would make a patch and test this myself for Perl, but I recently ran Guix pull, so it's taking me hours to build anything. I'll have to get back to you later with a fix because of that delay. Please feel free to try making the change yourself in the meantime! =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAlrbq8YACgkQ3UCaFdgi Rp0v7RAAi2E8l8h+D+JLvI9LRDQGa5zllfyNwtBQMa1ts5v6n15jNRo3VkNL6giG DeKt8UDQ3TYN/qfBG71MfMoxSkSUsNRqWc7T+KrpvW6TEOG9m5q5jFegEgkYwC6k QCxjktI2QEpsfXMa4JLKzN5aZfL7NZqCOI1RCK12hEP8q67jCZ9ce5c45hcHiW3s HFqViIuZj7UvUFn7ixgfuLd6pxXKOMuquP3nP4VK034amNKSM56w04uFeoeP74T7 fRqDtLHbMmE/5MRIjFF15rod6005IkjVy1dZGgmvTKWNNxWOkYOTuqZO4JM4j5oA 0Ru2I3RNojFLlhKeVV//uE1DMP1/vjUrV24WF6/xu15th6mHLfq2H681Mj8YQ6mX kfLMJd+3wJfughKTl+TPmfkYRQcavwJVJUUBP+yqXQiQ3mpsSz8/KjpOPjCZDHK8 0v6F6ConFSE2Ja6cXD14xJppgvbjuu59v3JiS5356qI+6PNkrzJb9E8c3aHC1pU6 fTYBZtly2umeaGX+yxh1qexs+PTTKds/utgCNJRlwyy2TG57XOh+lguKqzO9ARYB sVuedUJi5Gc/4AbGBf/CKxDqc/e+rBt1MktYK0qRxk9nd622oWIfrUIxl6cqfDIi gfUAos2PftnZ8KJHzEnWaH89c5N73b3eBqZWvPY9F881pbS/a6s= =0/6h -----END PGP SIGNATURE----- --=-=-=-- From unknown Tue Jun 24 20:56:25 2025 X-Loop: help-debbugs@gnu.org Subject: bug#31221: Cross compiling perl with guix pack fails Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 22 Apr 2018 19:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31221 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: =?UTF-8?Q?Rapha=C3=ABl_?= =?UTF-8?Q?M=C3=A9lotte?= Cc: 31221@debbugs.gnu.org Received: via spool by 31221-submit@debbugs.gnu.org id=B31221.152442683615959 (code B ref 31221); Sun, 22 Apr 2018 19:54:01 +0000 Received: (at 31221) by debbugs.gnu.org; 22 Apr 2018 19:53:56 +0000 Received: from localhost ([127.0.0.1]:36143 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fAL3c-00049L-NI for submit@debbugs.gnu.org; Sun, 22 Apr 2018 15:53:56 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:49850) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fAL3a-00049C-NI for 31221@debbugs.gnu.org; Sun, 22 Apr 2018 15:53:55 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id A961012035; Sun, 22 Apr 2018 21:53:53 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qWQuU6HBy1SS; Sun, 22 Apr 2018 21:53:53 +0200 (CEST) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id C408E1202B; Sun, 22 Apr 2018 21:53:52 +0200 (CEST) From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 3 =?UTF-8?Q?Flor=C3=A9al?= an 226 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: Sun, 22 Apr 2018 21:53:51 +0200 In-Reply-To: ("=?UTF-8?Q?Rapha=C3=ABl_?= =?UTF-8?Q?M=C3=A9lotte?="'s message of "Thu, 19 Apr 2018 22:58:49 +0200") Message-ID: <87604jhvao.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) 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.0 (/) Hello, Rapha=C3=ABl M=C3=A9lotte skribis: > I'm trying to make a wireshark package for an old 32bit system where I > cannot install guix but it always fails with the same error. This is the > command I'm using: > guix pack -S /opt/gnu/bin=3Dbin --target=3Di686-pc-linux-gnu wireshark The analysis of Chris looks correct. In the meantime, note that if you=E2=80=99re on x86_64, you do not need to cross-compile to produce i686 binaries. Instead, you can simply run: guix pack =E2=80=A6 -s i686-linux wireshark This is because x86_64 can run i686 code just fine, and so guix-daemon will arrange to make an i686 container. HTH, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 23 03:52:44 2018 Received: (at control) by debbugs.gnu.org; 23 Apr 2018 07:52:44 +0000 Received: from localhost ([127.0.0.1]:36446 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fAWHE-00061B-GE for submit@debbugs.gnu.org; Mon, 23 Apr 2018 03:52:44 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21092) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fAWHD-000613-87 for control@debbugs.gnu.org; Mon, 23 Apr 2018 03:52:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1524283459; s=zoho; d=elephly.net; i=rekado@elephly.net; h=Date:To:From:Subject; l=19; bh=aFx2ZnvRfA2XDU4bZDtEqIRYTWvhdUbWLgFMBufaHUw=; b=U3m2Bzz5Cnb4ByM4i058auYM5aXukD8r+40QiW5He36c48hp6kUnPZ6KHQpR+JXD lErJW+E9Y0mM/quWSh7lElT/1Vb0tnNBOv4OvoogEAEkqtHVOuNBmCrbI4ahLFqcgK+ ZK2c5K4Bg2gqNFnWSibgYZKu7ecvgStIkGhLOU8M= Received: from localhost (port-92-200-91-155.dynamic.qsc.de [92.200.91.155]) by mx.zohomail.com with SMTPS id 1524283458986180.07299345997114; Fri, 20 Apr 2018 21:04:18 -0700 (PDT) Date: Sat, 21 Apr 2018 06:04:16 +0200 To: control@debbugs.gnu.org From: Ricardo Wurmus Subject: control message for bug #31221 X-ZohoMailClient: External X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: control 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" Message-Id: X-Spam-Score: -1.0 (-) merge 31221 27149 From unknown Tue Jun 24 20:56:25 2025 X-Loop: help-debbugs@gnu.org Subject: bug#31221: Cross compiling perl with guix pack fails References: In-Reply-To: Resent-From: =?UTF-8?Q?Rapha=C3=ABl_?= =?UTF-8?Q?M=C3=A9lotte?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 20 Jun 2018 08:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31221 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 31221@debbugs.gnu.org Received: via spool by 31221-submit@debbugs.gnu.org id=B31221.15294843766750 (code B ref 31221); Wed, 20 Jun 2018 08:47:01 +0000 Received: (at 31221) by debbugs.gnu.org; 20 Jun 2018 08:46:16 +0000 Received: from localhost ([127.0.0.1]:56918 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fVYkq-0001ko-0v for submit@debbugs.gnu.org; Wed, 20 Jun 2018 04:46:16 -0400 Received: from mail-vk0-f47.google.com ([209.85.213.47]:38869) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fVYko-0001kb-3J for 31221@debbugs.gnu.org; Wed, 20 Jun 2018 04:46:14 -0400 Received: by mail-vk0-f47.google.com with SMTP id b77-v6so1479774vkb.5 for <31221@debbugs.gnu.org>; Wed, 20 Jun 2018 01:46:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=3li/oNxlASapjBuJ2OWybwr9+cEcWaSHWMoHFSYNO64=; b=XXX5iTOGYulR+eEPl1pDYn8NWgcstXNTdNlEqQ4qO0kQWHQqF/ckQjG+xnA00mzrw7 1tqffFnOTv8PEtA7qn7bEwxoUjS33EIJyo7uRPDX3DaQMK7SDNPJDb6E5P74YzRtaykz nNk62TqnN3xVLWJF7BaZcbb3YK0y+PUzr+dcup0p2KNSaAfPuy0MgVWkevQ5h1Pq56pI hZE71g/CAU1nMMKY3x4YHEda2GZto4W1lNzlXvIyRzRFmjkOV9hhd24YCzR1pXO0QWpk PLss/k/NXUXIj0A7gr2hmfyv0X9o0tEOn9Qme92+Ed0tWHOJij+3ctvJ76OeJt6gVVRc cDOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=3li/oNxlASapjBuJ2OWybwr9+cEcWaSHWMoHFSYNO64=; b=PqW2vBAsjR6jBU9cULgNkV+vLKYz7dqkR0bgCzThhR3YIyaeuXpXjF0Naj/P578BoA HXewzUVAq5LTlZRVlOAUqdCFDLK4r7v0xBQDNH/tTvotCwD7sIZaqt63aT+dskEBw8e0 ExIWKpmZL64QSVRmB2PIZxygpSIoEt1IXt/vCn5VbdLlzk7N5goF215f/z+cFJ1wNjF8 kgqL3Xy9U1D+35TVWhiozT6NavB/PTS5ko3kdYYunDltwITETz6JMPfIgSua/ji34XNK dVmj2XYeRyd+DacPtARB+Upmqp1eek5Kbn9NXnOh/GjX3g+lhBlmNulfaJjTsHaydgW2 bd8g== X-Gm-Message-State: APt69E06ZD1Q7dYzNB08aYDWYOeoKjxrGSnp6S4kkrsSwLJfcqUMKCOb UIxO1QTIzRJn2dGZuslnFbuLjv1r4rA2Ja9eqBXhfw== X-Google-Smtp-Source: ADUXVKKkmaj8gLcg7gL9FwbKZYbtje+uG9c8/fO+fXBvMLITuBj4OBrJQExW5vdqBSITeQeHtZKvFpm3Ih+97RxOWwc= X-Received: by 2002:a1f:ac0e:: with SMTP id v14-v6mr10464458vke.32.1529484368132; Wed, 20 Jun 2018 01:46:08 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a67:1047:0:0:0:0:0 with HTTP; Wed, 20 Jun 2018 01:45:37 -0700 (PDT) From: =?UTF-8?Q?Rapha=C3=ABl_?= =?UTF-8?Q?M=C3=A9lotte?= Date: Wed, 20 Jun 2018 10:45:37 +0200 Message-ID: Content-Type: multipart/alternative; boundary="00000000000073be5f056f0ed405" X-Spam-Score: 0.1 (/) 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.9 (/) --00000000000073be5f056f0ed405 Content-Type: text/plain; charset="UTF-8" Many thanks to both of you to have answered so quickly. (Sorry I didn't give any news, I have been busy with exams for almost two month and I didn't even take the time to reply back, but your answers have been valuable to me.) It seems you where right: when trying to build with "(pk ...)", I had the following output: ;;; (#f) As suggested, I tried using the exact same procedure as in the shadow package, and the build was successful ! However, I could not really "test" the resulting build, as I only tried with perl and it took a really long time to cross-compile. Do you want me to send a patch with the modifications ? I'm not really sure which branch it should go to. --00000000000073be5f056f0ed405 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Many thanks to both of you to have answered= so quickly.

(Sorry I didn't give any news, I have b= een busy with exams for almost two month and I didn't even take the tim= e to reply back, but your answers have been valuable to me.)
=
It seems you where right: when trying to build with "(p= k ...)", I had the following output: ;;; (#f)

As sug= gested, I tried using the exact same procedure as in the shadow package, an= d the build was successful !

However, I could not really = "test" the resulting build, as I only tried with perl and it took= a really long time to cross-compile.

Do you = want me to send a patch with the modifications ? I'm not really sure wh= ich branch it should go to.
--00000000000073be5f056f0ed405--