all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: John Darrington <john@darrington.wattle.id.au>
Cc: guix-devel@gnu.org
Subject: Re: Cross compiling libxml2
Date: Thu, 12 Dec 2013 22:46:02 +0100	[thread overview]
Message-ID: <8738lxagkl.fsf@gnu.org> (raw)
In-Reply-To: <20131212180550.GA4062@intra> (John Darrington's message of "Thu, 12 Dec 2013 19:05:52 +0100")

John Darrington <john@darrington.wattle.id.au> skribis:

> But another problem which I'm not sure how to fix is that (assoc-ref inputs "libc")
> returns false.  Hence the build fails:

Actually, when cross-compiling, the phase procedures are passed #:inputs
and #:native-inputs.  So “libc” is in the #:native-inputs alist, while
“cross-libc” is in the #:inputs alist.

So you’d have to do something like that:

  (assoc-ref inputs ,(if (%current-target-system) "cross-libc" "libc"))

This is not great, and we should probably fix that in the next
‘core-updates’.  In the meantime, that’s what we have.

The packages needed to cross-build ‘bootstrap-tarballs’ (as Hydra does)
either do not refer explicitly to libc, or have a special case that
removes the need to refer to it (as for ncurses), which is why we never
came across that before.

Thanks,
Ludo’.

      reply	other threads:[~2013-12-12 21:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-12 18:05 Cross compiling libxml2 John Darrington
2013-12-12 21:46 ` Ludovic Courtès [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8738lxagkl.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=john@darrington.wattle.id.au \
    /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 external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.