unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: "Raphaël Mélotte" <raphael.melotte@gmail.com>
Cc: 32624@debbugs.gnu.org
Subject: [bug#32624] [PATCH] gnu: perl: Add support for cross-compilation
Date: Mon, 03 Sep 2018 23:48:24 +0200	[thread overview]
Message-ID: <878t4iuuaf.fsf@gnu.org> (raw)
In-Reply-To: <87bm9er7rv.fsf@posteo.net> ("Raphaël Mélotte"'s message of "Mon, 03 Sep 2018 16:10:44 +0200")

Hi,

"Raphaël Mélotte" <raphael.melotte@gmail.com> skribis:

> This patch adds support for cross-compilation for perl.
> I only applied the suggestion made by Chris here:
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31221
>
> I tested it by running the following command, which builds perl successfully:
>
> sudo -E ./pre-inst-env guix build --target=i686-pc-linux-gnu perl
>
>
> From 1aa61436c6c85ebfdea9aceeb3949ac97fdbe289 Mon Sep 17 00:00:00 2001
> From: =?UTF-8?q?Rapha=C3=ABl=20M=C3=A9lotte?= <raphael.melotte@posteo.net>
> Date: Mon, 3 Sep 2018 10:20:06 +0200
> Subject: [PATCH] gnu: perl: Add support for cross-compilation
>
> * gnu/packages/perl.scm (perl): use cross-libc when cross-compiling

I tested a variant of this patch with --target=arm-linux-gnueabihf.
During the ‘configure’ phase, I see:

--8<---------------cut here---------------start------------->8---
Checking for cross-compile
No targethost for running compiler tests against defined, running locally
--8<---------------cut here---------------end--------------->8---

Then the build completes but the result is a set of x86_64 (native)
binaries.

So I suppose some more work in needed to really cross-compile.  Maybe we
need to pass specific configure flags?

(BTW, I think I already wrote this but you don’t need to cross-compile
if all you want is 32-bit binaries.  Simply use “-s i686-linux” for
that.)

Thanks,
Ludo’.

  reply	other threads:[~2018-09-03 21:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-03 14:10 [bug#32624] [PATCH] gnu: perl: Add support for cross-compilation Raphaël Mélotte
2018-09-03 21:48 ` Ludovic Courtès [this message]
2018-09-04 10:13   ` Raphaël Mélotte
2018-09-05  9:57     ` Ludovic Courtès
2018-09-07 12:58       ` Raphaël Mélotte
2018-09-07 14:17         ` bug#32624: " Raphaël Mélotte

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=878t4iuuaf.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=32624@debbugs.gnu.org \
    --cc=raphael.melotte@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).