r/GUIX•
edstrange

All guix commands end up in something like 'make world'

I'm just installing guix and playing around with it the first time. Last night I did a `guix pull` not realizing it was going to download and build *everything* including X libraries I didn't ask for. After several hours it failed on a hash match. Today I re-installed the system and just ran `guix environment` and it's downloading, building (looking like a bootstrap), and finally adding these things to the store.

Is there a way to avoid all that building? Is there a way to keep it from building 3-4 different versions of gcc? Like right now it's in the build phase for `balhblahhash-gcc-cross-boot0-5.5.0.drv` and top shows several instances of the compiler running. If it's going to do the same thing as yesterday I'll see a version 4 and a version 7 get built before this is done. I don't want to do this--especially if it's going to fail again--I would rather download the binaries and install them. Guix has that, right? I'm on a very standard x86_64 architecture. With Nix I ran a shell instance with gcc almost immediately. I was hoping to get the same experience here.

​

Thanks.

Later: So far every attempt to use guix ends in failure after a long set of builds. The point of failure is libelf and it seems that the domain you get that source from is suffering a site-wide redirect to nowhere. This package seems to be a requirement to everything I'm interested in trying out.

Posted Sep 17, 2019, 5:00 PM UTC · edited

88
czan•

Have you enabled substitutes? [The manual says]9https://guix.gnu.org/manual/en/html_node/Official-Substitute-Server.html#Official-Substitute-Server):

Substitutes from the official build farm are enabled by default when using Guix System (see GNU Distribution). However, they are disabled by default when using Guix on a foreign distribution, unless you have explicitly enabled them via one of the recommended installation steps (see Installation).

Step 7 of the Binary Installation instructions details how to authorize the official substitute server.

3
edstrangeOP•

LOL! I literally just found this. Thank you for pointing out how to do it manually though. I modified the installer script to let me install on my funky setup. I must have missed that step the first time.

2
edstrangeOP•

Solved my own problem it seems. I'm not on GuixSD so the default is to NOT use "substitutes". I wasn't able to immediately find how to enable that so instead of following the more manual steps I use the install script. I had to modify it to let me put `/gnu` in its own partition. After that I'm using `guix environment gcc-toolchain` and it's pulling from the ci server.

2
ebriose•

I had to modify it to let me put `/gnu` in its own partition

Can I just add I find this incredibly irritating? The installer checks for /gnu rather than /gnu/store and, if /gnu exists currently (say, as a mountpoint) bails out. This is silly.

2
edstrangeOP•

It actually brings up some interesting questions, that. In a normal *nix install you can put things in /bin, /usr/bin, and /usr/local/bin among any number of others you come up with. These can all be distinct partitions on distinct drives.

I don't see a way to do something like that with the store. So when your store drive--which will be the same as / in most cases due to how the script works--starts running out of space (legitimately, so gc doesn't help) what do you do? Hopefully you have put it on a logical volume distinct from / so you can add drives and resize the volume...because that's about the only way I can think of that would save you.

2
ebriose•

My specific problem is I have an NVME drive as / and I'd rather not write every single transient environment I use to it because of its lifecycle.

Also, at least on Guix SD, the installer doesn't have LVM tools.

2
edstrangeOP•

I have basically the same problem. Root is on an old SD drive that's only 60G. These DevOps (docker, nix, guix) systems fill that sucker up fast. I couldn't get a docker build with clang for avr to finish due to space issues. So I've altered my system to but their stores in separate logical volumes...especially since I'm playing around with so many :p

2