From: ludo@gnu.org (Ludovic Courtès)
To: Manolis Ragkousis <manolis837@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] gnu: cross-libc: Cross build the correct libc for GNU/Hurd systems.
Date: Sun, 26 Jun 2016 23:31:44 +0200 [thread overview]
Message-ID: <87h9cfk56n.fsf@gnu.org> (raw)
In-Reply-To: <6bf591cf-2ea4-01fc-bd13-23ae60864714@gmail.com> (Manolis Ragkousis's message of "Thu, 16 Jun 2016 19:32:01 +0300")
Hi!
Manolis Ragkousis <manolis837@gmail.com> skribis:
> On 06/12/16 19:38, Ludovic Courtès wrote:
>> Could you move this procedure, as well as xgnumach-headers and co., to
>> the top level? That way there’d be less “clutter” in the definition of
>> ‘cross-libc’ itself. WDYT?
>
> I created (guix build cross-base) which exports cross-mig,
> cross-kernel-headers and cross-libc-for-target, which is what we need to
> produce a working cross-libc. Cross-mig is only used when target is
> GNU/Hurd.
The (guix build …) name space is meant for “build-side” code (info
"(guix) G-Expressions"), whereas this is clearly “host” code since it
manipulates packages. So I think it should remain in (gnu packages
cross-base), only moved to the top-level instead of inner definitions.
Sorry if I wasn’t clear!
>> Other than that it LGTM, but if, and only if, you can verify that this
>> does not cause any regression for other cross-compilation targets.
>> Normally this should not change derivations at all so you don’t even
>> need to build them. Just run this:
>>
>> ./pre-inst-env guix build gcc --target=mips64el-linux-gnu -d
>>
>> both before and after the change, and the result should be the same .drv
>> file name.
>
> The derivations are not the same
Bah, I was wrong: it’s expected that derivations are not the same since
there are changes like adding KERNEL/lib to CROSS_LIBRARY_PATH.
Apologies for the confusion.
> so I will have to build it and see if it works. I will report back on
> that.
GCC 6 currently fails to cross build. For a known-good compiler, try
4.9, which currently cross-builds successfully (on master):
--8<---------------cut here---------------start------------->8---
$ ./pre-inst-env guix build gcc@4 --target=mips64el-linux-gnu -n --no-grafts
guix build: warning: ambiguous package specification `gcc@4'
guix build: warning: choosing gcc-4.9.3 from gnu/packages/gcc.scm:334:2
La jenaj derivoj estus elŝutataj:
/gnu/store/v2rglm6dp21c33lhbcvdzqfsxlxya9qp-gcc-4.9.3-debug
/gnu/store/aarlmyjnd5hrd3gvi6qwmlsajvvvfnxw-gcc-4.9.3-lib
/gnu/store/56cl18prjn8rhvjp1y7agwn5gis27h87-gcc-4.9.3
/gnu/store/1j8pbr9xlzkjx93xvv12z2zflnbw86bg-gmp-6.1.0
/gnu/store/3m8pj7dc10a9m6ds6gwn198a3d7zjr2a-zlib-1.2.8
/gnu/store/5cr66jcq6m4qm5nqah6lplby8vli6h2b-isl-0.11.1
/gnu/store/6kkhcyj1i1bg83h8zx7mrvkp1bfnh8l9-gcc-cross-mips64el-linux-gnu-4.9.3
/gnu/store/9szbxfc2pizaznklqmas7r8qghqidci6-mpc-1.0.3
/gnu/store/ac5yx4spq4i78085yy9sxhzr9zrsvhic-glibc-cross-mips64el-linux-gnu-2.22
/gnu/store/mfn9wr2yl3yq02b87zf1b9vg6n7g9bfw-mpfr-3.1.3
/gnu/store/n2pc3fzq1fwpbmb83g7kmsj80fa1nld9-cloog-0.18.0
/gnu/store/7y12yppfwy0ll99faazp2qsank4nmd3j-gcc-cross-sans-libc-mips64el-linux-gnu-4.9.3
$ git describe
v0.10.0-1526-g9dd674d
--8<---------------cut here---------------end--------------->8---
Could you send an updated patch?
Sorry for the delay and all again!
Ludo’.
next prev parent reply other threads:[~2016-06-26 21:31 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-08 14:43 [PATCH] gnu: cross-libc: Cross build the correct libc for GNU/Hurd systems Manolis Ragkousis
2016-06-12 11:48 ` Manolis Ragkousis
2016-06-12 16:38 ` Ludovic Courtès
2016-06-16 16:32 ` Manolis Ragkousis
2016-06-16 18:44 ` Manolis Ragkousis
2016-06-26 21:31 ` Ludovic Courtès [this message]
2016-07-19 16:30 ` Manolis Ragkousis
2016-07-20 7:16 ` Vincent Legoll
2016-07-20 11:39 ` Manolis Ragkousis
2016-07-22 12:55 ` Ludovic Courtès
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=87h9cfk56n.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=guix-devel@gnu.org \
--cc=manolis837@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).