[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Creating a reliable bootstrap for building from source
From: |
Pjotr Prins |
Subject: |
Re: Creating a reliable bootstrap for building from source |
Date: |
Wed, 17 May 2017 09:52:42 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Sun, May 14, 2017 at 11:32:06PM +0200, Ludovic Court??s wrote:
> For Guix developers, I think it???s reasonable to have a traditional GNU
> build system. After all, Guix is also a regular software package that
> people can build from source with ???./configure && make && make install???.
This is the procedure I have now for creating a reliable bootstrap
from source:
The safest route is by using guix environment after starting
a clean shell
screen -S guix-build # I tend to build in screen
env -i /bin/bash --login --noprofile --norc
~/.guix-profile/bin/guix environment guix --ad-hoc help2man git strace \
pkg-config less vim binutils coreutils grep --no-grafts
bash # you may want this shell
In fact pick the most recent guix you have got, see 'ls
/gnu/store/*guix*/bin/guix' and run that command. Use the --no-grafts
switch if you have built packages that way before.
Note that you can start guix by installing the binary tar ball, or
copying it from another machine using the rather useful guix archive
or
[[https://www.gnu.org/software/guix/news/creating-bundles-with-guix-pack.html][guix
pack]] commands.
You may want to take a note of these running versions
gcc --version
guile --version
Next in the source tree
rm -rf autom4te.cache/ # to be sure
make clean
./bootstrap
./configure --localstatedir=/var
make clean # to be really sure
time make
It works reliably on all my setups :). Note that typically gcc is v4 or v5 and
guile 2.0.x,
but never the same.
I am pleased with this until it stops working ... I think it should go in the
manual and
we should have an automated test on this procedure.
Pj.
--
- Re: Heads-up: transition to Guile 2.2, (continued)
- Re: Heads-up: transition to Guile 2.2, Jan Nieuwenhuizen, 2017/05/14
- Re: Heads-up: transition to Guile 2.2, pjotr . public12, 2017/05/14
- Creating a reliable bootstrap for building from source, Pjotr Prins, 2017/05/14
- Re: Creating a reliable bootstrap for building from source, Ludovic Courtès, 2017/05/14
- Re: Creating a reliable bootstrap for building from source, David Pirotte, 2017/05/14
- Re: Creating a reliable bootstrap for building from source, Ludovic Courtès, 2017/05/15
- Re: Creating a reliable bootstrap for building from source, Pjotr Prins, 2017/05/15
- Re: Creating a reliable bootstrap for building from source, Ludovic Courtès, 2017/05/15
- Re: Creating a reliable bootstrap for building from source, Pjotr Prins, 2017/05/17
- Re: Creating a reliable bootstrap for building from source, Ludovic Courtès, 2017/05/19
- Re: Creating a reliable bootstrap for building from source,
Pjotr Prins <=
Re: Heads-up: transition to Guile 2.2, Ludovic Courtès, 2017/05/14
- Re: Heads-up: transition to Guile 2.2, Pjotr Prins, 2017/05/15
- Re: Heads-up: transition to Guile 2.2, Ludovic Courtès, 2017/05/15
- Rethinking guix pull [was Re: Heads-up: transition to Guile 2.2], myglc2, 2017/05/15
- Re: Rethinking guix pull [was Re: Heads-up: transition to Guile 2.2], Ricardo Wurmus, 2017/05/16
- Re: Rethinking guix pull [was Re: Heads-up: transition to Guile 2.2], Maxim Cournoyer, 2017/05/16
- Re: Rethinking guix pull [was Re: Heads-up: transition to Guile 2.2], Katherine Cox-Buday, 2017/05/18
- Re: Rethinking guix pull [was Re: Heads-up: transition to Guile 2.2], Ludovic Courtès, 2017/05/18
Re: Rethinking guix pull [was Re: Heads-up: transition to Guile 2.2], Ludovic Courtès, 2017/05/17
Re: Rethinking guix pull [was Re: Heads-up: transition to Guile 2.2], myglc2, 2017/05/17