From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id MJjRM5ZC9GJ1WAAAbAwnHQ (envelope-from ) for ; Thu, 11 Aug 2022 01:43:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 8GQEM5ZC9GJWLQAAG6o9tA (envelope-from ) for ; Thu, 11 Aug 2022 01:43:18 +0200 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 8C5F21689C for ; Thu, 11 Aug 2022 01:43:18 +0200 (CEST) Received: from localhost ([::1]:35534 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oLvM5-0005tR-Nw for larch@yhetil.org; Wed, 10 Aug 2022 19:43:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40928) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLvLq-0005t0-Gm for bug-guix@gnu.org; Wed, 10 Aug 2022 19:43:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:32973) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oLvLq-0002Ra-8E for bug-guix@gnu.org; Wed, 10 Aug 2022 19:43:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oLvLq-0002wz-3W for bug-guix@gnu.org; Wed, 10 Aug 2022 19:43:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#57127: unzip fails to cross-compile Resent-From: Andrew Patterson Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 10 Aug 2022 23:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57127 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 57127@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166017493911290 (code B ref -1); Wed, 10 Aug 2022 23:43:01 +0000 Received: (at submit) by debbugs.gnu.org; 10 Aug 2022 23:42:19 +0000 Received: from localhost ([127.0.0.1]:50954 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLvL8-0002w2-Rs for submit@debbugs.gnu.org; Wed, 10 Aug 2022 19:42:19 -0400 Received: from lists.gnu.org ([209.51.188.17]:51076) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLvL2-0002vq-JZ for submit@debbugs.gnu.org; Wed, 10 Aug 2022 19:42:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40806) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLvL1-0005qo-Of for bug-guix@gnu.org; Wed, 10 Aug 2022 19:42:12 -0400 Received: from mail-qt1-x835.google.com ([2607:f8b0:4864:20::835]:40770) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oLvL0-0002J9-3M for bug-guix@gnu.org; Wed, 10 Aug 2022 19:42:11 -0400 Received: by mail-qt1-x835.google.com with SMTP id w28so4238946qtc.7 for ; Wed, 10 Aug 2022 16:42:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:subject:to:from:user-agent:from:to:cc; bh=FSKxpl6tekEVnHItHGT107IzisD/jH4nklbrQmmeRyw=; b=Thn+FS2W+AR7UP4AP96BaV7Ho9O9rBno8wBvCfMZ7TlQPfYSKoFsEz9Cvctj6l+/LU JwCflyWtKTGCnJOlI+pSil0HGD0HP/SVmzUxAKJsh/anqrAPmYwKc69CjSEaO4YnEKp6 M7/gurzS3iXcf46F2lkkFQ4nQFx6WmtLuadBkcY76R7Rf029T7HYctI/FqHSHzp/8lPG Y7nP27tmlAFbU8+kVZoaVmJEdC9TGLSMR80wGX6/VFOnmEcohbSEHdIJk+2xoquJEdcR wdlogFyc1a8kIX3xWoFLGt3zxaadQ18UAoyqCW9SVVkQNfi0Ey8MP+67td5VMUcOjfvU ZDbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:subject:to:from:user-agent :x-gm-message-state:from:to:cc; bh=FSKxpl6tekEVnHItHGT107IzisD/jH4nklbrQmmeRyw=; b=DPfzCUaJjbFNeFXi2ACPGB7N+7znk8i1PKChe3ZC2sn3cQrTXeHYtWTP7syyStuQfp PO9LjEHHq/oIvu7qyeB99nhOQtc9TYf4zCQe1hXieWjPUm+U+sd2VA8jK+pBcYQPMMVU 7hKX++g/9151HH8E4FSZWNhSsWxBaRU3NysqAYeoOaIar1q6pSz/Ik+B8ZWOvrPziipI vob+VsOy6M4j0E7D3OLBecDfrxTwxRvDFRfcRNr4/lgjBKU1hqBmeTHR9xCPdiV0gnfD i8C2bK+DszIegLCG36f9ld4hlKx33XHtFylFlLDbx6lT2aGH5ERJ9vpHnCCIDMtp2eeP Ir2w== X-Gm-Message-State: ACgBeo3ucT3rv3kQfjvtCtG4JM3hBEg7w40KGOgeLl/jskEO2Oc3nySY hWRkiyAhEytnARDmDmojddsY9FnwGBg= X-Google-Smtp-Source: AA6agR7J7kqwjyp4jP3T6yRMstAYU9ggAClTBj1im51GT7fMtR1Wudb8imbLtdlwtQmFnt41HdT+vw== X-Received: by 2002:ac8:5a43:0:b0:343:623f:defa with SMTP id o3-20020ac85a43000000b00343623fdefamr2017455qta.10.1660174928789; Wed, 10 Aug 2022 16:42:08 -0700 (PDT) Received: from kalantha ([204.111.132.134]) by smtp.gmail.com with ESMTPSA id s25-20020ae9f719000000b006b93ff541dasm830464qkg.8.2022.08.10.16.42.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Aug 2022 16:42:07 -0700 (PDT) User-agent: mu4e 1.8.7; emacs 28.1.90 From: Andrew Patterson Date: Wed, 10 Aug 2022 18:06:35 -0400 Message-ID: <87y1vvoecx.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::835; envelope-from=andrewpatt7@gmail.com; helo=mail-qt1-x835.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1660174998; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=FSKxpl6tekEVnHItHGT107IzisD/jH4nklbrQmmeRyw=; b=D0fWcZ5BDVcaymEcY7lEahzhnS4jU/tUT95SM+JYXC+0FRdA8eAiLrWeXvPlknCA/M+NJJ Rot0gtvb31hvKde2TqzEgnpLWGhDpRZo20ja66125QXICnivJqrYQqxfx9M6JjmrMg9IQm +yxSqYW6ulH8x+fsmm+s9J7k04ePwhsc4olx2FN8YyoxBaj/GqQfkJZA0qvuClU8G7wGqp /CCruxcr/AcQMM0yDoW0fbpkzmdQ4VvIkCuQI/dvuNFSR9rRhy7VD/N837UCJR8Ee8jHQa l5lUlVNkfjT/HGrsqcSGEvz0dm3UjvOS8iwxf1kfCUYQoCjtdGRy2Ql3mJVVBQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660174998; a=rsa-sha256; cv=none; b=QG8LLPxwBwzRIJ7Wb9Qjd1WZ+W+ngG2w1tbkNEWUuaPGClMadt7L9jnIK6NjH80L+BSlja cnZ9glMyNt8KgGhNM6dh8SUibMmbiY1zqjKHG9DKTg5YaZkq4RCaXo9TLhqCz7/S/aRTbr nByu+VZHrMSBvOMFyABc1NOhLDH5Jb7lbXx10VYN3ijPMUciFlHr0oFQKmVq3I9K/GUhAV KCuD5t8C8ndiQnKEoyCnljsEmE0jChSua9Y0LKn7Qo2617LzUkAdBhK+lZOASHy0nMppJa e3ppRTw8PQfQqzjb60N64teCtcx6w046rh/ouBp0zNddOUDqIHtV/iD69xFlLA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Thn+FS2W; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 6.62 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Thn+FS2W; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 8C5F21689C X-Spam-Score: 6.62 X-Migadu-Scanner: scn0.migadu.com X-TUID: I1rgPYGFul3p --=-=-= Content-Type: text/plain; format=flowed unzip fails to build when cross-compiling (at least from x86_64 linux), complaining that '%output' is unbound. It gives identical errors when compiling for aarch64, riscv64, and arm. Interestingly, it gives the same errors when explicitly building for x86_64 on an x86_64 machine, even though I would expect doing so to compile as normal. When not cross-compiling, unzip successfully builds as normal on both x86_64 and aarch64. On my x86_64 machines, 'guix show unzip' does only have x86_64-linux and i686-linux in the 'systems' list, but that's also true of htop, which does cross-compile. (Also, why does it do that? The same command on my aarch64 machine shows many more system types.) I'm working on testing if cross-compiling from aarch64 does the same thing, but building a cross-compilation toolchain on pinebook pro is very slow. Steps to reproduce: run 'guix build unzip --target=$TARGET' Here's the build log from 'guix build unzip --target=aarch64-linux-gnu': --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=aa5q0nf3jklqj2f1ql18whrvlmm6k2-unzip-6.0.drv Content-Description: build log WARNING: (guile-user): imported module (guix build utils) overrides core binding `delete' Backtrace: In ice-9/eval.scm: 217:50 19 (lp (# ?)) 217:50 18 (lp (# ?)) 217:50 17 (lp (# ?)) 217:50 16 (lp (# ?)) 217:50 15 (lp (# ?)) 217:50 14 (lp (# ?)) 217:50 13 (lp (# ?)) 217:50 12 (lp (# ?)) 217:50 11 (lp (# ?)) 217:50 10 (lp (# ?)) 217:50 9 (lp (# ?)) 217:50 8 (lp (# ?)) 217:50 7 (lp (# ?)) 217:50 6 (lp (# ?)) 217:50 5 (lp (# ?)) 217:33 4 (lp (# ?)) 213:45 3 (_ #f) 196:43 2 (_ #f) 223:20 1 (proc #) In unknown file: 0 (%resolve-variable (7 . %output) #) ERROR: In procedure %resolve-variable: Unbound variable: %output --=-=-= Content-Type: text/plain; format=flowed -- Andrew Patterson --=-=-=--