Re: Status update+patches:Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-09-21 Thread Svante Signell
On Sat, 2019-09-21 at 13:26 +0200, Svante Signell wrote: > Extracting bash, mkdir, tar, xz and guile and run them with --version shows > that at least xz and guile are corrupt: > > gnu/packages/bootstrap/i586-gnu/xz --version > gnu/packages/bootstrap/i586-gnu/xz: Error creating a pipe: Function n

Re: Status update+patches:Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-09-21 Thread Svante Signell
On Fri, 2019-09-20 at 21:12 +0200, Jonathan Brielmaier wrote: > On 20.09.19 20:48, Svante Signell wrote: > If I got your situation correctly you need to do the following steps. > > 1. Obtain the guix git repo > git clone https://git.savannah.gnu.org/git/guix.git > cd guix/ > patch the files you n

Re: Status update+patches:Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-09-21 Thread Svante Signell
On Sat, 2019-09-21 at 00:18 +0200, Ricardo Wurmus wrote: > Svante Signell writes: > > > ./pre-inst-env guix build --target=i586-pc-gnu bootstrap-tarballs 2>&1 | tee > > ../bootstrap-tarballs-i586-pc-gnu.log > > > > Build took around two days, and the log file is 361MB. > > I guess that’s becaus

Re: Status update+patches:Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-09-20 Thread Ricardo Wurmus
Svante Signell writes: > ./pre-inst-env guix build --target=i586-pc-gnu bootstrap-tarballs 2>&1 | tee > ../bootstrap-tarballs-i586-pc-gnu.log > > Build took around two days, and the log file is 361MB. I guess that’s because you’ve rebuilt the x86_64 bootstrap first and only then built the Hurd

Re: Status update+patches:Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-09-20 Thread Jonathan Brielmaier
On 20.09.19 20:48, Svante Signell wrote: > find /gnu/store -name "make-bootstrap.scm"|grep guix-packages- > source/gnu/packages|wc -l > 12 > Which one to patch?? > There are also .cache files... > > Confusing as ever. Seem like the time to learn will be long! The /gnu/store is read-only, you shoul

Re: Status update+patches:Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-09-20 Thread Svante Signell
On Fri, 2019-09-20 at 19:49 +0200, Svante Signell wrote: > On Fri, 2019-09-20 at 19:03 +0200, Ricardo Wurmus wrote: > > Svante Signell writes: > > > > > On a GNU/Linux amd64 qemu image: > > > > > > > > > dpkg -S /usr/share/guile/site/2.2 > > > guile-sqlite3, guile-gcrypt, guile-bytestructures,

Re: Status update+patches:Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-09-20 Thread Svante Signell
On Fri, 2019-09-20 at 19:03 +0200, Ricardo Wurmus wrote: > Svante Signell writes: > > > On a GNU/Linux amd64 qemu image: > > > > > > dpkg -S /usr/share/guile/site/2.2 > > guile-sqlite3, guile-gcrypt, guile-bytestructures, guile-ssh, guile-json: > > /usr/share/guile/site/2.2 > > You can skip al

Re: Status update+patches:Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-09-20 Thread Ricardo Wurmus
Svante Signell writes: > On a GNU/Linux amd64 qemu image: > […] > apt-get install guile-2.2 guile-gcrypt libgnutls30 guile-sqlite3 guile-json > guile-bytestructures make zlib1g bzip2 libgcrypt20 sqlite3 g++ guile-2.0 > guile- > 2.0-libs guile-2.2-dev libsqlite3

Re: Status update+patches:Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-09-20 Thread Svante Signell
On Tue, 2019-09-10 at 10:10 +0200, Svante Signell wrote: > On Sun, 2019-09-08 at 22:55 +0200, Ludovic Courtès wrote: > > Hi, > > > > Ricardo Wurmus skribis: > > > > > I believe the problem is in Guix, which lets the builds for i586-gnu use > > > Guile 2.2, but generates scripts for Guile 2.0. W

Re: Status update+patches:Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-09-10 Thread Svante Signell
On Sun, 2019-09-08 at 22:55 +0200, Ludovic Courtès wrote: > Hi, > > Ricardo Wurmus skribis: > > > I believe the problem is in Guix, which lets the builds for i586-gnu use > > Guile 2.2, but generates scripts for Guile 2.0. We probably need to > > change it use Guile 2.0 there as it is done for

Re: Status update+patches:Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-09-08 Thread Ludovic Courtès
Hi, Ricardo Wurmus skribis: > I believe the problem is in Guix, which lets the builds for i586-gnu use > Guile 2.2, but generates scripts for Guile 2.0. We probably need to > change it use Guile 2.0 there as it is done for other architectures > (which is why the generated scripts refer to 2.0).

Re: Status update+patches:Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-09-04 Thread Ricardo Wurmus
Svante Signell writes: > On Wed, 2019-09-04 at 09:52 +0200, Ricardo Wurmus wrote: >> Svante Signell writes: >> >> > On Wed, 2019-09-04 at 06:31 +0200, Svante Signell wrote: >> > > unpacking bootstrap Guile to >> > > '/gnu/store/ncp3yhr6c38kqvgb8c967vnhly59yf1m- >> > > guile-bootstrap-2.0'...

Re: Status update+patches:Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-09-04 Thread Svante Signell
On Wed, 2019-09-04 at 09:52 +0200, Ricardo Wurmus wrote: > Svante Signell writes: > > > On Wed, 2019-09-04 at 06:31 +0200, Svante Signell wrote: > > > unpacking bootstrap Guile to '/gnu/store/ncp3yhr6c38kqvgb8c967vnhly59yf1m- > > > guile-bootstrap-2.0'... > > > > export GUILE_SYSTEM_PATH=~a/shar

Re: Status update+patches:Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-09-04 Thread Ricardo Wurmus
Svante Signell writes: > On Wed, 2019-09-04 at 06:31 +0200, Svante Signell wrote: >> >> unpacking bootstrap Guile to '/gnu/store/ncp3yhr6c38kqvgb8c967vnhly59yf1m- >> guile-bootstrap-2.0'... > > This stuff comes from gnu/packages/bootstrap.scm > #!~a > export GUILE_SYSTEM_PATH=~a/share/guile/2.

Re: Status update+patches:Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-09-03 Thread Svante Signell
On Wed, 2019-09-04 at 06:31 +0200, Svante Signell wrote: > > unpacking bootstrap Guile to '/gnu/store/ncp3yhr6c38kqvgb8c967vnhly59yf1m- > guile-bootstrap-2.0'... This stuff comes from gnu/packages/bootstrap.scm #!~a export GUILE_SYSTEM_PATH=~a/share/guile/2.0 export GUILE_SYSTEM_COMPILED_PATH=~a/

Re: Status update+patches:Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-09-03 Thread Svante Signell
On Wed, 2019-09-04 at 00:01 +0200, Ricardo Wurmus wrote: > Svante Signell writes: > > Did you copy this from Debian and moved it into the store? That’s a > very bad idea. Sorry, my fault. I was tired and worked on different boxes and Linux+Hurd VMs. The status is now that ...: Starting downloa

Re: Status update+patches:Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-09-03 Thread Ricardo Wurmus
Svante Signell writes: > On Tue, 2019-09-03 at 23:26 +0200, Ricardo Wurmus wrote: >> >> What are the contents of /gnu/store/alzim8hg6zqvs9s33frh7m9z211lryk3- >> bootstrap-binaries-0/bin/tar? > > Something strange: > > # ls -l /gnu/store/alzim8hg6zqvs9s33frh7m9z211lryk3-bootstrap-binaries- > 0

Re: Status update+patches:Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-09-03 Thread Ricardo Wurmus
Svante Signell writes: > On Tue, 2019-09-03 at 16:34 +0200, Svante Signell wrote: >> >> > How can I rebuild from scratch to watch the output on the console? > > Seems to be to wipe out /gnu/store and /var/{guix,log} > >> This time bash crashed... Took a screen shot of the qemu console. I have

Re: Status update+patches:Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-09-03 Thread Svante Signell
On Tue, 2019-09-03 at 23:26 +0200, Ricardo Wurmus wrote: > > What are the contents of /gnu/store/alzim8hg6zqvs9s33frh7m9z211lryk3- > bootstrap-binaries-0/bin/tar? Something strange: # ls -l /gnu/store/alzim8hg6zqvs9s33frh7m9z211lryk3-bootstrap-binaries- 0/bin/tar -r-xr-xr-x 2 root root 445560 J

Re: Status update+patches:Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-09-03 Thread Svante Signell
On Tue, 2019-09-03 at 16:34 +0200, Svante Signell wrote: > > > How can I rebuild from scratch to watch the output on the console? Seems to be to wipe out /gnu/store and /var/{guix,log} > This time bash crashed... Took a screen shot of the qemu console. I have to > replace all four: bash mkdir

Re: Status update+patches:Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-09-03 Thread Svante Signell
On Tue, 2019-09-03 at 15:56 +0200, Svante Signell wrote: > I did not look at the console, but found out similar crashes there. How did > you get the output to the client terminal instead of the qemu console (not > possible to cut and paste from that)? I have now tested both the statically > built t

Re: Status update+patches:Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-09-03 Thread Svante Signell
On Tue, 2019-09-03 at 14:58 +0200, Ricardo Wurmus wrote: > Hi Svante, > > This looks very much like the tar segfault I encountered when I last > played with the Hurd port. > > My notes say this: > > --8<---cut here---start->8--- > - tar fails to run when build

Re: Status update+patches:Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-09-03 Thread Ricardo Wurmus
Hi Svante, > Then I continued with as Richardo wrote: > ./pre-inst-env guix build -e '(@@ (gnu packages commencement) > gnu-make-boot0))' > 2>&1 | tee ../pre-inst-env_guix-build-e-no-chroot_new-hash.log > The build went a lot further, but failed here: > > successfully built /gnu/store/6sybp

Status update+patches:Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-09-03 Thread Svante Signell
On Sun, 2019-09-01 at 20:01 +0200, Svante Signell wrote: ... I think it is time to wrap up a little now on the Hurd port. Attached are patches I made. Save for some indentation misses. gnu_local.mk.diffguix_scripts_perform-download.scm.diff gnu_packages_bootstrap.scm.diff nix_libs

Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-09-01 Thread Svante Signell
On Sun, 2019-09-01 at 15:28 +0200, Svante Signell wrote: > On Sun, 2019-09-01 at 11:11 +0200, Svante Signell wrote: > And btw: info guix speaks Spanish as default :( Must be a bug! I've come a little further: Extracting the files from the cross-built files "bash mkdir tar xz" from static- binarie

Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-09-01 Thread Svante Signell
On Sun, 2019-09-01 at 11:11 +0200, Svante Signell wrote: > On Sat, 2019-08-31 at 19:27 +0200, Svante Signell wrote: > > I have some further guix/guile questions when building and running guix on > GHU/Hurd natively > > On the GNU/Hurd image: > download and unpack guix-1.0.1.tar.gz > cd guix-1.0.1

Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-09-01 Thread Efraim Flashner
On Sun, Sep 01, 2019 at 11:11:56AM +0200, Svante Signell wrote: > On Sat, 2019-08-31 at 19:27 +0200, Svante Signell wrote: > > I have some further guix/guile questions when building and running guix on > GHU/Hurd natively > > On the GNU/Hurd image: > download and unpack guix-1.0.1.tar.gz > cd gui

Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-09-01 Thread Svante Signell
On Sat, 2019-08-31 at 19:27 +0200, Svante Signell wrote: I have some further guix/guile questions when building and running guix on GHU/Hurd natively On the GNU/Hurd image: download and unpack guix-1.0.1.tar.gz cd guix-1.0.1 1) When building guix from source ./configure --with-courage --prefix=/

Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-08-31 Thread Svante Signell
On Sat, 2019-08-31 at 14:12 +0200, Ricardo Wurmus wrote: > Svante Signell writes: > > > > > 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 insta

Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-08-31 Thread Ricardo Wurmus
Svante Signell writes: > On Sat, 2019-08-31 at 00:17 +0200, Ricardo Wurmus wrote: >> Svante Signell writes: >> >> > On Fri, 2019-08-30 at 23:30 +0200, Ricardo Wurmus wrote: >> > > Svante Signell writes: >> > > >> > > > Where to install the bootstrap-binaries: Natively in GNU/Hurd, which >>

Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-08-31 Thread Julien Lepiller
Le 31 août 2019 11:24:18 GMT+02:00, Svante Signell a écrit : >On Sat, 2019-08-31 at 10:13 +0200, Julien Lepiller wrote: >> > On Sat, 2019-08-31 at 00:17 +0200, Ricardo Wurmus wrote: >> > > Svante Signell writes: >> > > >> > > > Sorry but the tarballs have files like ./bin/tar Where to >unpack >

Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-08-31 Thread Svante Signell
On Sat, 2019-08-31 at 10:13 +0200, Julien Lepiller wrote: > > On Sat, 2019-08-31 at 00:17 +0200, Ricardo Wurmus wrote: > > > Svante Signell writes: > > > > > > > Sorry but the tarballs have files like ./bin/tar Where to unpack > > them, on the native Hurd image or the guix one? > > > > > > The g

Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-08-31 Thread Julien Lepiller
Le 31 août 2019 10:06:15 GMT+02:00, Svante Signell a écrit : >On Sat, 2019-08-31 at 00:17 +0200, Ricardo Wurmus wrote: >> Svante Signell writes: >> >> > On Fri, 2019-08-30 at 23:30 +0200, Ricardo Wurmus wrote: >> > > Svante Signell writes: >> > > >> > > > Where to install the bootstrap-binari

Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-08-31 Thread Svante Signell
On Sat, 2019-08-31 at 00:17 +0200, Ricardo Wurmus wrote: > Svante Signell writes: > > > On Fri, 2019-08-30 at 23:30 +0200, Ricardo Wurmus wrote: > > > Svante Signell writes: > > > > > > > Where to install the bootstrap-binaries: Natively in GNU/Hurd, which > > > > already > > > > hase.g. /bin/t

Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-08-30 Thread Ricardo Wurmus
Svante Signell writes: > On Fri, 2019-08-30 at 23:30 +0200, Ricardo Wurmus wrote: >> Svante Signell 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 >> > ta

Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-08-30 Thread Julien Lepiller
Le Fri, 30 Aug 2019 20:25:24 +0200, Svante Signell a écrit : > On Fri, 2019-08-30 at 19:14 +0200, Julien Lepiller wrote: > > > a écrit : > > > > > Thanks I'll try to install them. It seems like gcc is a little old, > > do > > > you have > > > notes somewhere on how these cross-built packages

Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-08-30 Thread Svante Signell
On Fri, 2019-08-30 at 23:30 +0200, Ricardo Wurmus wrote: > Svante Signell 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

Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-08-30 Thread Ricardo Wurmus
Svante Signell writes: >> Yes, but guix build bootstrap-tarballs --system=i586-gnu on GNU/Linux amd64 >> results in: >> guix build: error: could not find bootstrap binary 'tar' for system >> 'i586-gnu' > > Where to install the bootstrap-binaries: Natively in GNU/Hurd, which already > hase.g. /

Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-08-30 Thread Svante Signell
On Fri, 2019-08-30 at 20:25 +0200, Svante Signell wrote: > On Fri, 2019-08-30 at 19:14 +0200, Julien Lepiller wrote: > > > a écrit : > > > > > Thanks I'll try to install them. It seems like gcc is a little old, do > > > you have > > > notes somewhere on how these cross-built packages were created?

Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-08-30 Thread Svante Signell
On Fri, 2019-08-30 at 19:14 +0200, Julien Lepiller wrote: > > a écrit : > > > Thanks I'll try to install them. It seems like gcc is a little old, do > > you have > > notes somewhere on how these cross-built packages were created? > > > I assume they can be built them within guix e.g. on GNU/Linux

Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-08-30 Thread Julien Lepiller
Le 30 août 2019 14:00:29 GMT+02:00, Svante Signell a écrit : >On Fri, 2019-08-30 at 01:36 +0200, Ricardo Wurmus wrote: >> Hi Svante, >> >> Here’s what I wrote about this on IRC: >> >> --8<---cut here---start->8--- >> [12:36:12] gnu_srs: get a Debian GNU/Hurd

Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-08-30 Thread Svante Signell
On Fri, 2019-08-30 at 01:36 +0200, Ricardo Wurmus wrote: > Hi Svante, > > Here’s what I wrote about this on IRC: > > --8<---cut here---start->8--- > [12:36:12] gnu_srs: get a Debian GNU/Hurd, then build the Guix > dependencies from source. > [12:36:2

Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-08-29 Thread Ricardo Wurmus
Hi Svante, > On Thu, 2019-08-29 at 21:25 +0200, Svante Signell wrote: >> Hello, >> >> After a lot of quirks I managed to get guix built natively on Debian >> GNU/Hurd. What to do next? > > I managed to start the guix-daemon. Next seems to be the bootstrap > binaries: > guix build hello > guix b

Re: I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-08-29 Thread Svante Signell
On Thu, 2019-08-29 at 21:25 +0200, Svante Signell wrote: > Hello, > > After a lot of quirks I managed to get guix built natively on Debian > GNU/Hurd. What to do next? I managed to start the guix-daemon. Next seems to be the bootstrap binaries: guix build hello guix build: error: could not find b

I managed to build guix natively on Debian GNU/Hurd , what's next?

2019-08-29 Thread Svante Signell
Hello, After a lot of quirks I managed to get guix built natively on Debian GNU/Hurd. What to do next? Thanks!