Ludovic Courtès writes: Hi! > Janneke Nieuwenhuizen skribis: > >> Similar to the Makefile.am change, this breaks-up packages into 26 chunks >> when building on 32bit. Also force garbage collection. >> >> * guix/self.scm (compiled-modules)[process-directory/32bit]: New inner define. >> Use it when building on a "i586" or "i686" cpu. > > .go files of a Guix built with this new (guix self) would not be found: > > newfstatat(AT_FDCWD, "/gnu/store/pm43nabwng5rm8irmfhw2wk39hip8xr6-guix-module-union/share/guile/site/3.0/guix/ui.scm", {st_mode=S_IFREG|0444, st_size=95284, ...}, 0) = 0 Hmm, how did I miss this? > In fact, guix/*.go is entirely missing, it seems: Right...that makes sense now that I look at the code again. Wait...I probably even experienced this breakage after running `guix pull' on the Hurd but failed to notice its cause, the missing guix/*.go, and ascribed it to "something" being broken on Hurd. So the good news is that we'll most probably have guix pull work on the Hurd after fixing this! --8<---------------cut here---------------start------------->8--- (cute partition <> files) (lambda (regex) (cute string-match regex <>)) (cute string-append "^gnu/packages/" <>) --8<---------------cut here---------------end--------------->8--- it still has the "gnu/packages" directory name hardcoded here. (I even believe this was kind-of intentional, meaning not to split-up builds of other directories...). The result is, of course, that partition always produces an empty result for any '("guix/foo.scm") files! It is fixed by doing --8<---------------cut here---------------start------------->8--- (cute string-append "^" directory "/" <>) --8<---------------cut here---------------end--------------->8--- i.e., also splitting guix/ 26 ways. > I’m reverting for now. Thank you for looking into and taking care of this mess I made, sorry! > Note that (guix self) is very sensitive, so we should test it > thoroughly. Using the attached patch, I ran --8<---------------cut here---------------start------------->8--- $ guix pull --branch=master --url=$PWD [..] 08:11:02 janneke@drakenpad:~/src/guix/master $ guix describe Git checkout: repository: /home/janneke/src/guix/master/ branch: master commit: a639a64d590067d3fe928be3ecc9d2d4cc2e8df3 08:11:04 janneke@drakenpad:~/src/guix/master $ guix build hello /gnu/store/5mqwac3zshjjn1ig82s12rbi7whqm4n8-hello-2.12.1 --8<---------------cut here---------------end--------------->8--- > Here I used ‘make as-derivation’ and ran the resulting > ‘guix’ command. Ah, nice that guix works too for me too now --8<---------------cut here---------------start------------->8--- $ make as-derivation [..] /gnu/store/lqckq8f3c5s8jb5glwk8ancb781fc7km-guix-20230823.06 08:13:15 janneke@drakenpad:~/src/guix/master [env] $ /gnu/store/lqckq8f3c5s8jb5glwk8ancb781fc7km-guix-20230823.06/bin/guix build hello /gnu/store/5mqwac3zshjjn1ig82s12rbi7whqm4n8-hello-2.12.1 --8<---------------cut here---------------end--------------->8--- Greetings, Janneke