Alex Sassmannshausen <[email protected]> skribis:

> All works as expected (substituting the required binaries etc.) until
> the 'module-import' build stage, where I get the following error:
> -----
> @ build-started /gnu/store/byc1s5m1zfyxjhkwcj7j6226i459zbwa-module-import.drv 
> - i686-linux 
> /usr/local/var/log/guix/drvs/by//c1s5m1zfyxjhkwcj7j6226i459zbwa-module-import.drv.bz2
> guix package: error: build failed: failed to set up the build environment for 
> `/gnu/store/byc1s5m1zfyxjhkwcj7j6226i459zbwa-module-import.drv'
> -----

Never seen that.  My reading of the code is that this can happen if
initChild (in build.cc) fails (see the occurrences of SysError there.)
Do you see one of these error messages before?  Could it be that the
daemon is not running as root, and so chroot(2) fails?

> In the log refreference, you can see '/gnu/store/byc1s5…' and
> '…/drvs/by//c1s5….'.  In the error message you can then see
> `/gnu/store/byc1s5m…'.
>
> It looks as though some path truncation takes place here.

No, that’s expected: the log file for byc1s… is called by/c1s….

HTH,
Ludo’.

Reply via email to