From: ludo@gnu.org (Ludovic Courtès)
To: Manolis Ragkousis <manolis837@gmail.com>
Cc: Guix-devel@gnu.org
Subject: Re: Glibc/hurd work till now
Date: Tue, 18 Mar 2014 14:32:02 +0100 [thread overview]
Message-ID: <87y5078wfh.fsf@gnu.org> (raw)
In-Reply-To: <CAFtzXzPFNa4RZohA48y1_voB_evxDxnAe0tvqSfB83jHTNdoHw@mail.gmail.com> (Manolis Ragkousis's message of "Tue, 18 Mar 2014 10:02:34 +0000")
Manolis Ragkousis <manolis837@gmail.com> skribis:
> All the changes till now, work in progress, this is not a final patch.
>
>
> Try building the cross-libc for hurd with
> ./pre-inst-env guix build -e '((@@ (gnu packages cross-base)
> cross-libc/hurd) "i686-pc-gnu")'
>
>
> The building process is getting stuck at xhurd-headers recipe.
I think the issue is that xhurd-headers must have --host=i686-pc-gnu in
its configure flags.
You say that in that case ./configure fails with “gcc cannot produce
executables”. Could you send xhurd-headers’ config.log for that case?
Some additional comments:
> +(define-public glibc/hurd
> + (package (inherit glibc)
This definition basically copies all of the ‘glibc’ definition. This is
fine for now, but eventually this will need to be factorized.
Also, ideally, we’d like to hide the fact that there are two different
glibcs. So I imagine that we would:
1. Rename ‘glibc’ to ‘glibc/linux’.
2. Have ‘glibc/hurd’ inherit from it, just replacing ‘source’,
‘propagated-inputs’, ‘inputs’, and adding the pre-configure phase
that unpacks libpthread.
3. Define ‘glibc’ as a magic macro that chooses between ‘glibc/linux’
and ‘glibc/hurd’ depending on the current system/target (see
‘pkg-config’ for an example.)
In parallel, we’ll have to lobby so our Hurd friends publish tarballs of
glibc and libpthread.
> +(define* (cross-gcc/hurd target
> + #:optional (xbinutils (cross-binutils target)) libc)
Likewise, we shouldn’t need a Hurd-specific variant here.
HTH,
Ludo’.
next prev parent reply other threads:[~2014-03-18 13:32 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-18 10:02 Glibc/hurd work till now Manolis Ragkousis
2014-03-18 10:57 ` Ludovic Courtès
[not found] ` <CAFtzXzNSuz-wx2SDUafTvqtmRUbfOohO2-Nfzy7LYKd-wuWFWQ@mail.gmail.com>
2014-03-18 11:10 ` Fwd: " Manolis Ragkousis
2014-03-18 13:32 ` Ludovic Courtès [this message]
2014-03-18 14:55 ` Andreas Enge
2014-03-18 16:04 ` Ludovic Courtès
2014-03-18 19:06 ` Manolis Ragkousis
2014-03-18 20:34 ` Ludovic Courtès
2014-03-18 20:41 ` Manolis Ragkousis
2014-03-19 19:38 ` Manolis Ragkousis
2014-03-19 20:17 ` Ludovic Courtès
2014-03-19 20:47 ` Manolis Ragkousis
2014-03-19 21:58 ` Ludovic Courtès
2014-03-20 16:02 ` Manolis Ragkousis
2014-03-20 20:42 ` libpthread fails to build as an add-on Ludovic Courtès
2014-03-20 20:58 ` Manolis Ragkousis
2014-03-23 8:28 ` Manolis Ragkousis
2014-03-23 9:17 ` Manolis Ragkousis
2014-03-23 21:38 ` Ludovic Courtès
2014-03-21 23:23 ` Glibc/hurd work till now Manolis Ragkousis
2014-03-22 14:16 ` Ludovic Courtès
2014-03-22 16:13 ` Manolis Ragkousis
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=87y5078wfh.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).