mikadoZero <[email protected]> writes:
> Ricardo Wurmus writes: > >> mikadoZero <[email protected]> writes: >> >>> I am trying to follow the instruction in the Contributing section of the >>> manual, as I want to submit some patches. Following "14.1 Building from >>> Git" I am getting an error when running `./bootstrap`. >>> >>> `guix describe` >>> guix 19c0cdb >>> repository URL: https://git.savannah.gnu.org/git/guix.git >>> branch: master >>> commit: 19c0cdb9e6271956015232421ef7f63a1ad001ae >>> >>> Here is what I am doing that leads to the error. >>> >>> `git clone https://git.savannah.gnu.org/git/guix.git` >>> >>> `cd guix` >>> >>> `guix environment guix` >> >> Could you try if you get different behaviour with “guix environment >> --pure guix”? >> >>> configure.ac:88: error: possibly undefined macro: PKG_CHECK_MODULES >>> If this token and others are legitimate, please use m4_pattern_allow. >>> See the Autoconf documentation. >>> configure.ac:89: error: possibly undefined macro: GUILE_MODULE_AVAILABLE >>> configure.ac:96: error: possibly undefined macro: GUILE_PKG >>> configure.ac:97: error: possibly undefined macro: GUILE_PROGS >> >> This looks like some environment variables are not set properly. If you >> set variables in ~/.bashrc, for example, (instead of ~/.bash_profile) >> that could interfere with “guix environment”. >> >> Could you please show the output of “env” after you ran “guix >> environment guix”? > > Thank you for your help. > > Using `guix environment --pure guix` > > Removing all the environment variables from .zhsrc allows `./bootstrap` > to finish. It outputs these warnings: […] > ACLOCAL_PATH=/root/.guix-profile/share/aclocal:/run/current-system/profile/share/acl > ocal:/gnu/store/kjmqpchkfy8rvv19jvd14q40shm9fk2p-profile/share/aclocal Why are /root/.guix-profile directories first? Are setting these variables in some shell initialization files? > GUILE_LOAD_PATH=/run/current-system/profile/share/guile/site/2.2:/gnu/store/kjmqpchk > fy8rvv19jvd14q40shm9fk2p-profile/share/guile/site/2.2 Same here. -- Ricardo
