Bootstrap binaries

2024-12-21 Thread Stefan
Hi! I'm playing around with the bootstrapping of Guix. I figured out that at the very beginning executables for bash, mkdir, xz, tar, get downloaded into the store, which is done by some Guile, I think it is (default-guile). Then a guile-*.tar.xz file is downloaded and extracted into the sto

Re: help with bootstrap binaries

2020-09-22 Thread Efraim Flashner
rk through some of the options. It looks like a variable was mis-initialized as -1, causing that branch of the code to always fail. I've pushed an update to the glibc-bootstrap-system.patch on core-updates that produces working bootstrap binaries. -- Efraim Flashner אפרים פלשנר GPG k

help with bootstrap binaries

2020-09-22 Thread Efraim Flashner
I have an ongoing project to finish the port of Guix to 32-bit PowerPC and it looks like we're almost there. I ran into a snag with glibc-2.31 since it gave all sorts of problems on PPC but core-updates now has 2.32. Unfortunately the patch glibc-bootstrap-system.patch didn't apply cleanly anymore

Re: Request to verify powerpc64-linux bootstrap binaries

2020-06-03 Thread Efraim Flashner
On Mon, Jun 01, 2020 at 07:56:43PM -0700, Chris Marusich wrote: > Hi everyone! > > Thanks to Léo's help, as of commit > 8159ce1970d91567468cf1bacac313099a009d2a, the master branch now contains > all the changes necessary to cross-compile powerpc64-linux bootstrap > bi

Re: Request to verify powerpc64-linux bootstrap binaries

2020-06-02 Thread Jack Hill
On Tue, 2 Jun 2020, Chris Marusich wrote: I have opened up a bug report for this issue, so we can continue the discussion there: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=41669 I will try on my end to obtain a differing gcc to see if I can analyze the difference. In the meantime, could yo

Re: Request to verify powerpc64-linux bootstrap binaries

2020-06-02 Thread Chris Marusich
Hi Vincent, Jack, and Maxim, Thank you for the quick replies! OK, so gcc differs for each of us: * Chris: 8aca7f332a1ba8e3c2225c161a7545b0a04ddd690d164dc97afee9c9ea067b0c49bc155e9f06d285c22e24cdd16d91e59730af5f1dd9efcda13a26bede5948a2 * Vincent: 87f7583cf483ac3ba0ab978862873e68757bc4ddd10f739a

Re: Request to verify powerpc64-linux bootstrap binaries

2020-06-02 Thread Jack Hill
On Tue, 2 Jun 2020, Vincent Legoll wrote: Hello, On 02/06/2020 04:56, Chris Marusich wrote: Hopefully, you'll get identical results! You don't have to run "guix gc" if you don't want to, but doing so will increase the likelihood of catching nondeterminism issues propagated from dependencies (

Re: Request to verify powerpc64-linux bootstrap binaries

2020-06-02 Thread Maxim Cournoyer
Hi Chris! Chris Marusich writes: > Hi everyone! > > Thanks to Léo's help, as of commit > 8159ce1970d91567468cf1bacac313099a009d2a, the master branch now contains > all the changes necessary to cross-compile powerpc64-linux bootstrap > binaries. I've done this withou

Re: Request to verify powerpc64-linux bootstrap binaries

2020-06-02 Thread Vincent Legoll
Hello, On 02/06/2020 04:56, Chris Marusich wrote: Hopefully, you'll get identical results! You don't have to run "guix gc" if you don't want to, but doing so will increase the likelihood of catching nondeterminism issues propagated from dependencies (which seem unlikely, but you never know). I

Request to verify powerpc64-linux bootstrap binaries

2020-06-01 Thread Chris Marusich
Hi everyone! Thanks to Léo's help, as of commit 8159ce1970d91567468cf1bacac313099a009d2a, the master branch now contains all the changes necessary to cross-compile powerpc64-linux bootstrap binaries. I've done this without substitutes by running the following commands on an x86_64-liin

Re: Why do we not cross-compile bootstrap binaries?

2017-12-07 Thread Chris Marusich
se for all the non-Intel arches and for GNU/Hurd. > > Is that what you meant? My question was more about: why do we check in bootstrap binaries for different architectures, instead of checking in bootstrap binaries for one "base" architecture and then generating the bootstrap binaries

Re: bug#24841: Cross-building bootstrap binaries fail in current master

2017-11-27 Thread Chris Marusich
l...@gnu.org (Ludovic Courtès) writes: >> For efraim and for myself, >> >> guix build --target=mips64el-linux-gnu bootrap-tarballs >> >> got broken with commit >> >> b9bc6e842066b066ebdf9eaf75d41753598d75b5 >> This still fails. The error I see today, using commit 5aa6e0d04a3f9dea06b9d35f04fa709b

Re: Why do we not cross-compile bootstrap binaries?

2017-11-26 Thread Ludovic Courtès
Hello, In practice, apart from x86_64-linux which was bootstrapped on NixOS, we always cross-compile to bootstrap new architectures: https://www.gnu.org/software/guix/manual/html_node/Porting.html That was the case for all the non-Intel arches and for GNU/Hurd. Is that what you meant? Ludo’.

Re: Why do we not cross-compile bootstrap binaries?

2017-11-26 Thread Efraim Flashner
On Thu, Nov 23, 2017 at 04:47:51PM -0800, Chris Marusich wrote: > Hi, > > We have bootstrap binaries for various platforms. For example, commit > 3b88f3767d9f3ad2cc64173525cd53d429bfe7e7 adds bootstrap binaries for > aarch64-linux. Judging by the commit message, my gues

Why do we not cross-compile bootstrap binaries?

2017-11-23 Thread Chris Marusich
Hi, We have bootstrap binaries for various platforms. For example, commit 3b88f3767d9f3ad2cc64173525cd53d429bfe7e7 adds bootstrap binaries for aarch64-linux. Judging by the commit message, my guess is that these bootstrap binaries were built (cross-compiled, I presume) using Guix at commit

Re: avoid downloading bootstrap binaries?

2017-11-15 Thread Ricardo Wurmus
Hi Ludo, > Ricardo Wurmus skribis: > >> we have some Makefile rules that download some bootstrap binaries for >> us. Why is this necessary? Could we ship these bootstrap binaries >> instead? > > These makefile rules were here mostly so that the tarball is not too

Re: avoid downloading bootstrap binaries?

2017-11-05 Thread Ludovic Courtès
Hello, Ricardo Wurmus skribis: > we have some Makefile rules that download some bootstrap binaries for > us. Why is this necessary? Could we ship these bootstrap binaries > instead? These makefile rules were here mostly so that the tarball is not too big. They are gone now in ‘cor

avoid downloading bootstrap binaries?

2017-11-05 Thread Ricardo Wurmus
Hi Guix, we have some Makefile rules that download some bootstrap binaries for us. Why is this necessary? Could we ship these bootstrap binaries instead? -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net

Re: [PATCH 4/6] gnu: Add bootstrap-binaries for 'aarch64-linux'.

2017-02-14 Thread Efraim Flashner
4 > (I’m afraid you’ll be mad at me for asking you that ;-)) because it’s > bit-reproducible. > > How does that sound? That actually sounds like a great idea. I started by copying Mark's armhf patch, and I was wondering which commit he used. As far as rebuilding the bootstrap-binaries

Re: [PATCH 4/6] gnu: Add bootstrap-binaries for 'aarch64-linux'.

2017-02-14 Thread Ludovic Courtès
Efraim Flashner skribis: > * gnu/packages/bootstrap/aarch64-linux/bash, > gnu/packages/bootstrap/aarch64-linux/mkdir, > gnu/packages/bootstrap/aarch64-linux/xz, > gnu/packages/bootstrap/aarch64-linux/tar: New files. > > * gnu/local.mk (bootstrap_aarch64_linuxdir) > (dist_bootstrap_aarch64_linux_D

[PATCH 4/6] gnu: Add bootstrap-binaries for 'aarch64-linux'.

2017-02-09 Thread Efraim Flashner
n~%" ;; This is where the initial binaries come from. '("ftp://alpha.gnu.org/gnu/guix/bootstrap"; "http://alpha.gnu.org/gnu/guix/bootstrap"; -"http://www.fdn.fr/~lcourtes/software/guix/packages";)) +"h

Re: [PATCH 07/12] gnu: Add rust bootstrap binaries.

2016-12-13 Thread Ludovic Courtès
ix-system->gnu-triplet’ instead. > +(inputs > + ;; FIXME: Use system gcc:lib. Does gcc "lib" need to be > + ;; added to %final-inputs? > + `(("gcc:lib" ,gcc "lib") Use (canonical-package gcc). > +(define-public rust-boot

[PATCH 07/12] gnu: Add rust bootstrap binaries.

2016-12-11 Thread David Craven
ersion. +(define %rust-bootstrap-binaries-version "1.12.1") + +(define %rust-bootstrap-binaries + (origin +(method url-fetch) +(uri (string-append + "https://static.rust-lang.org/dist/"; + ;; TODO: Maybe use the i686 binary for bootstrapping rustc on i686

Re: Cross-building bootstrap binaries fail in current master

2016-10-31 Thread Ludovic Courtès
Hi Carlos, csanchez...@gmail.com (Carlos Sánchez de La Lama) skribis: >> Regardless, cross-building ‘bootstrap-tarballs’ to one of the supported >> target triplets works on master: >> >> --8<---cut here---start->8--- >> $ ./pre-inst-env guix build bootstrap-tar

Re: Cross-building bootstrap binaries fail in current master

2016-10-21 Thread Carlos Sánchez de La Lama
Hi! > Regardless, cross-building ‘bootstrap-tarballs’ to one of the supported > target triplets works on master: > > --8<---cut here---start->8--- > $ ./pre-inst-env guix build bootstrap-tarballs --target=mips64el-linux-gnu -n > substitute: updating list of subs

Re: Cross-building bootstrap binaries fail in current master

2016-10-20 Thread Ludovic Courtès
Hello! csanchez...@gmail.com (Carlos Sánchez de La Lama) skribis: > with current master (1dc30f92320c5e1b528a7eec2b0a4ce529f70c56), trying > > guix build --target=i686-linux bootstrap-tarballs As discussed on IRC, --target expect a “GNU triplet” such as “i686-linux-gnu”, so the above thing canno

Re: Cross-building bootstrap binaries fail in current master

2016-10-20 Thread Efraim Flashner
On Thu, Oct 20, 2016 at 11:07:14AM +0200, Carlos Sánchez de La Lama wrote: > Hi all, > > with current master (1dc30f92320c5e1b528a7eec2b0a4ce529f70c56), trying > > guix build --target=i686-linux bootstrap-tarballs > > fails with > > --8<---cut here---start->8

Cross-building bootstrap binaries fail in current master

2016-10-20 Thread Carlos Sánchez de La Lama
Hi all, with current master (1dc30f92320c5e1b528a7eec2b0a4ce529f70c56), trying guix build --target=i686-linux bootstrap-tarballs fails with --8<---cut here---start->8--- starting phase `unpack' In execvp of tar: No such file or directory phase `unpack' failed

Re: Bootstrap binaries

2016-02-29 Thread Ludovic Courtès
Jookia <166...@gmail.com> skribis: > On Sun, Feb 28, 2016 at 04:08:00PM +0100, Ludovic Courtès wrote: >> We would have to update them every time we change GCC, Guile, Coreutils, >> etc. or one of their dependencies, which sounds impractical or even >> infeasible to me. > > Perhaps there's some mis

Re: Bootstrap binaries

2016-02-28 Thread Christopher Allan Webber
Jookia writes: > On Sun, Feb 28, 2016 at 04:08:00PM +0100, Ludovic Courtès wrote: >> We would have to update them every time we change GCC, Guile, Coreutils, >> etc. or one of their dependencies, which sounds impractical or even >> infeasible to me. > > Perhaps there's some miscommunication here-

Re: Bootstrap binaries

2016-02-28 Thread Jookia
On Sun, Feb 28, 2016 at 04:08:00PM +0100, Ludovic Courtès wrote: > We would have to update them every time we change GCC, Guile, Coreutils, > etc. or one of their dependencies, which sounds impractical or even > infeasible to me. Perhaps there's some miscommunication here- the problem right now is

Re: Bootstrap binaries

2016-02-28 Thread Ludovic Courtès
s wrt. Ken Thompson attacks. > > I'm not sure about that, if we could establish the binaries could be > reproducibly built using the current bootstrap binaries it sounds like it > could > be fine. Having reproducible bootstrap binaries seems like something > incredibly > use

Re: Bootstrap binaries

2016-02-28 Thread Jookia
t, if we could establish the binaries could be reproducibly built using the current bootstrap binaries it sounds like it could be fine. Having reproducible bootstrap binaries seems like something incredibly useful especially for packagers that for whatever reason want to verify that the binaries can be b

Re: Bootstrap binaries

2016-02-26 Thread Ludovic Courtès
t;>>> process like when we have the core-updates? If we bootstrap away enough >>>> times >>>> would we end up with the bootstrap binaries we have now? >>> >>> From what I understand the bootstrap binaries aren't reproducible yet. >&g

Re: Bootstrap binaries

2016-02-25 Thread Christopher Allan Webber
we bootstrap away enough >>> times >>> would we end up with the bootstrap binaries we have now? >> >> From what I understand the bootstrap binaries aren't reproducible yet. > > Depends on what kind of reproducibility we’re talking about. It’s > simpl

Bootstrap binaries

2016-02-25 Thread Ludovic Courtès
e end up with the bootstrap binaries we have now? > > From what I understand the bootstrap binaries aren't reproducible yet. Depends on what kind of reproducibility we’re talking about. It’s simple to build bootstrap binaries: https://www.gnu.org/software/guix/manual/html_node/Boo

Re: [PATCHES] gnu: bootstrap: Fix egrep and fgrep in bootstrap binaries

2015-01-07 Thread Ludovic Courtès
31 Dec 2014 03:41:50 -0500 > Subject: [PATCH 2/2] gnu: bootstrap: Fix egrep and fgrep after unpacking > bootstrap binaries. > > * gnu/packages/bootstrap.scm (%bootstrap-coreutils&co): Add #:snippet argument > to 'package-from-tarball' that calls 'patch-shebang' on egrep and fgrep > after unpacking. Test 'fgrep' instead of 'true'. OK. Thanks! Ludo’.

[PATCHES] gnu: bootstrap: Fix egrep and fgrep in bootstrap binaries

2015-01-07 Thread Mark H Weaver
,@(if snippet (list snippet) '()) (zero? (system* (string-append "bin/" ,program-to-test) "--version" (inputs -- 2.1.2 >From 34412a7202cabafd25daaa045f70aa567e867d3b Mon Sep 17 00:00:00 2001 From: Mark H Weaver Date: