unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: svante.signell@gmail.com
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: I managed to build guix natively on Debian GNU/Hurd , what's next?
Date: Sat, 31 Aug 2019 14:12:25 +0200	[thread overview]
Message-ID: <87ef11fs9i.fsf@elephly.net> (raw)
In-Reply-To: <32d67ecf3f8e43cd8d4607287d4c4b57380f47ef.camel@gmail.com>


Svante Signell <svante.signell@gmail.com> writes:

> On Sat, 2019-08-31 at 00:17 +0200, Ricardo Wurmus wrote:
>> Svante Signell <svante.signell@gmail.com> writes:
>> 
>> > On Fri, 2019-08-30 at 23:30 +0200, Ricardo Wurmus wrote:
>> > > Svante Signell <svante.signell@gmail.com> writes:
>> > > 
>> > > > Where to install the bootstrap-binaries: Natively in GNU/Hurd, which
>> > > > already
>> > > > hase.g. /bin/tar from the tar package or within Guix on amd64? But
>> > > > installing
>> > > > tar to /bin does not find that file, even with setting PATH??
>> > > 
>> > > That’s expected.  Guix will not use arbitrary binaries that happen to be
>> > > on PATH.  That’s by design.  The bootstrap binaries are at the roots of
>> > > the package graph – changes to them would result in the complete graph
>> > > to be rebuilt from scratch.
>> > 
>> > Sorry but the tarballs have files like ./bin/tar Where to unpack them, on
>> > the
>> > native Hurd image or the guix one?
>> 
>> The generated archives are to be placed in the Guix source tree under
>> gnu/packages/bootstrap/…/.
>
> Here:
> /gnu/store/2b48z82a5bjfkcqhr8d80zq1agiglyx8-guix-1ec29df/gnu/packages/bootstrap 
>
> or here:
> /usr/share/guile/site/2.2/gnu/packages/bootstrap/
>
> I assume the first is correct.
>
>> > How is that cross-build done? Within the Linux guix image or a Linux amd64
>> > image? And cross package build order?
>> 
>> The order doesn’t matter, because in Guix the order is fixed anyway.
>> You just build the bootstrap binaries as a single target on your
>> GNU/Linux host and you’ll end up with all the archives you’ll need to
>> copy to the Hurd target machine.
>
> I issued guix build --target=i586-pc-gnu bootstrap-tarballs in my GNU/Linux Guix
> image (thanks Julien): uname -a
> Linux gnu 5.1.2-gnu #1 SMP 1 x86_64 GNU/Linux
>
> Everything looked fine until:
> g++   -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -fno-exceptions -fno-rtti
> -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual 
> -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-
> variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -DGENERATOR_FILE
> -static-libstdc++ -static-libgcc  -o build/genattrtab \
>     build/genattrtab.o build/rtl.o build/read-rtl.o build/ggc-none.o build/vec.o
> build/min-insn-modes.o build/gensupport.o build/print-rtl.o build/read-md.o
> build/errors.o ../build-x86_64-unknown-linux-gnu/libiberty/libiberty.a
> build/genattrtab ../../gcc-5.5.0/gcc/common.md ../../gcc-
> 5.5.0/gcc/config/i386/i386.md insn-conditions.md \
> 	-Atmp-attrtab.c -Dtmp-dfatab.c -Ltmp-latencytab.c
> make[2]: *** [Makefile:2156: s-attrtab] Killed
[…]
> which g++
> /home/guest/.guix-profile/bin/g++

This is not the GCC that’s used by Guix to build things.  See also that
during the build GCC 5.5.0 is used, not version 9.x.

What you have installed has no impact on the build environment that Guix
uses.  This is by design.

-- 
Ricardo

  parent reply	other threads:[~2019-08-31 12:12 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-29 19:25 I managed to build guix natively on Debian GNU/Hurd , what's next? Svante Signell
2019-08-29 22:51 ` Svante Signell
2019-08-29 23:36   ` Ricardo Wurmus
2019-08-30 12:00     ` Svante Signell
2019-08-30 17:14       ` Julien Lepiller
2019-08-30 18:25         ` Svante Signell
2019-08-30 21:07           ` Svante Signell
2019-08-30 21:30             ` Ricardo Wurmus
2019-08-30 21:52               ` Svante Signell
2019-08-30 22:17                 ` Ricardo Wurmus
2019-08-31  8:06                   ` Svante Signell
2019-08-31  8:13                     ` Julien Lepiller
2019-08-31  9:24                       ` Svante Signell
2019-08-31  9:41                         ` Julien Lepiller
2019-08-31 12:12                     ` Ricardo Wurmus [this message]
2019-08-31 17:27                       ` Svante Signell
2019-09-01  9:11                         ` Svante Signell
2019-09-01  9:32                           ` Efraim Flashner
2019-09-01 13:28                           ` Svante Signell
2019-09-01 18:01                             ` Svante Signell
2019-09-03 12:07                               ` Status update+patches:Re: " Svante Signell
2019-09-03 12:58                                 ` Ricardo Wurmus
2019-09-03 13:56                                   ` Svante Signell
2019-09-03 14:34                                     ` Svante Signell
2019-09-03 21:13                                       ` Svante Signell
2019-09-03 21:26                                         ` Ricardo Wurmus
2019-09-03 21:46                                           ` Svante Signell
2019-09-03 22:01                                             ` Ricardo Wurmus
2019-09-04  4:31                                               ` Svante Signell
2019-09-04  6:25                                                 ` Svante Signell
2019-09-04  7:52                                                   ` Ricardo Wurmus
2019-09-04 18:24                                                     ` Svante Signell
2019-09-04 21:44                                                       ` Ricardo Wurmus
2019-09-08 20:55                                                         ` Ludovic Courtès
2019-09-10  8:10                                                           ` Svante Signell
2019-09-20 15:59                                                             ` Svante Signell
2019-09-20 17:03                                                               ` Ricardo Wurmus
2019-09-20 17:49                                                                 ` Svante Signell
2019-09-20 18:48                                                                   ` Svante Signell
2019-09-20 19:12                                                                     ` Jonathan Brielmaier
2019-09-21 11:26                                                                       ` Svante Signell
2019-09-21 16:47                                                                         ` Svante Signell
2019-09-22  8:45                                                                           ` Need help: Re: Status update+patches:Re: I managed to ... GNU/Hurd Svante Signell
2019-09-24 13:06                                                                             ` Summary Re: Need help: " Svante Signell
2019-09-20 22:18                                                               ` Status update+patches:Re: I managed to build guix natively on Debian GNU/Hurd , what's next? Ricardo Wurmus
2019-09-21  8:10                                                                 ` Svante Signell
2019-08-30 21:56           ` Julien Lepiller

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=87ef11fs9i.fsf@elephly.net \
    --to=rekado@elephly.net \
    --cc=guix-devel@gnu.org \
    --cc=svante.signell@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).