From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: bug#37403: Cannot 'guix guix build --target=x86_64-w64-mingw32 perl' Date: Sat, 14 Sep 2019 14:23:38 +0200 Message-ID: <20190914142338.41be36cb@scratchpost.org> References: <87a7b7l3f3.fsf@planete-kraus.eu> <20190914135953.6adaef8b@scratchpost.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/kQII25YxNtb7.f/HbyrBi1b"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:60257) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i975v-0001C1-5R for bug-guix@gnu.org; Sat, 14 Sep 2019 08:24:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i975u-0002B6-4L for bug-guix@gnu.org; Sat, 14 Sep 2019 08:24:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37157) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i975u-0002Az-1E for bug-guix@gnu.org; Sat, 14 Sep 2019 08:24:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i975t-0001Y4-R0 for bug-guix@gnu.org; Sat, 14 Sep 2019 08:24:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20190914135953.6adaef8b@scratchpost.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Vivien Kraus Cc: 37403@debbugs.gnu.org --Sig_/kQII25YxNtb7.f/HbyrBi1b Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Further information: According to gnu/packages/cross-base.scm, cross-gcc contains either "libc" = or "mingw-source" in the mingw case--I don't know why, but that's what it says. The purpose of "remove-extra-references" seems to be to shrink the number of recorded dependencies, so maybe compare it with the unshrinked list of dependencies by printing the latter out (apparently it should be inside Config_heavy.pl and Config.pm in the temporary build directory--could you post those?). I tried it myself (with mingw target) and I got: loclibpth=3D'/gnu/store/h90vnqw0nwd0hhm1l5dgxsdrigddfmq4-glibc-2.28/lib' Hmm. Also, perl seems to fetch libc from the %build-inputs just fine earlier. So try putting (assoc-ref native-inputs "libc") instead of (assoc-ref inputs "libc") in the perl package definition (make sure to accept native-inputs in the function in the first place) in order to debug the problem (or maybe (assoc-ref inputs "mingw-source")). When cross compiling it's important to get right which parts you get from the host libs and which from the target libs, maybe that's messed up there. Also possible would be not to do that shrinking if libc is unavailable, but not sure whether we want that. --Sig_/kQII25YxNtb7.f/HbyrBi1b Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl1828oACgkQ5xo1VCww uqXy/Af+NzKn64Jry3qM5Agm+Bh5JaViJ/MXRxXqN3FCs689N+YCAhZuk2o+UgPb AqUrCjzwAp5QcVMY874nycjJsiSIwFFcCVpOuyOVJtMiTgTBfr9KHhBcOJ7PvGsS +/vDvSlOPByxBcOxeOQ0Qqaoue5UMZOIQGWlWFH7eNeZcC4Xu8t4ALBVvZCEZeyo dERLP9CsahglyIUtaFl5SE0Rk4oIePzioxg7dYzfvRoKEsI7aHjDvXkjcDI9ikms F4c7cHHhrZnc4VQfAefChJYR5iDE/uIUqpHujHkIMZz7NVrAq7dEw4fjp6GeJpcE FESeK1y3HulyfpZjnwN7mz+B+L//kw== =dqiB -----END PGP SIGNATURE----- --Sig_/kQII25YxNtb7.f/HbyrBi1b--