From: Maxime Devos <maximedevos@telenet.be>
To: Andrew Patterson <andrewpatt7@gmail.com>, 57127@debbugs.gnu.org
Subject: bug#57127: unzip fails to cross-compile
Date: Thu, 11 Aug 2022 10:48:35 +0200 [thread overview]
Message-ID: <370176aa-d981-bcc1-05bc-70e3bd1b7bcd@telenet.be> (raw)
In-Reply-To: <87y1vvoecx.fsf@gmail.com>
[-- Attachment #1.1.1: Type: text/plain, Size: 1176 bytes --]
On 11-08-2022 00:06, Andrew Patterson wrote:
> unzip fails to build when cross-compiling (at least from x86_64
> linux), complaining that '%output' is unbound.
Change #:make-flags to use a G-exp instead of a S-exp and replace the
undocumented %output by the #$output.
For consistency, you can do the same for #:phases.
For simplicity, I recommend not using ` for argument but 'list':
(arguments (list #:phases #~(modify-phases ...) #:make-flags #~(list ...))).
> 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.
Technically that's cross-compilation from Guix perspective, though maybe
it should just compile natively in that case.
> 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 don't know.
Greetings,
Maxime.
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 929 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
next prev parent reply other threads:[~2022-08-11 8:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-10 22:06 bug#57127: unzip fails to cross-compile Andrew Patterson
2022-08-11 0:45 ` Andrew Patterson
2022-08-11 8:48 ` Maxime Devos [this message]
2022-08-11 10:12 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2022-08-11 10:28 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2022-08-11 18:11 ` Andrew Patterson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=370176aa-d981-bcc1-05bc-70e3bd1b7bcd@telenet.be \
--to=maximedevos@telenet.be \
--cc=57127@debbugs.gnu.org \
--cc=andrewpatt7@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).