From mboxrd@z Thu Jan 1 00:00:00 1970 From: mikadoZero Subject: Re: 14.1 Building from Git Date: Mon, 18 Mar 2019 15:05:05 -0400 Message-ID: References: <87wokwxssw.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:44894) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h5xfQ-0002KV-1i for help-guix@gnu.org; Mon, 18 Mar 2019 15:11:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h5xZn-0001Mg-EL for help-guix@gnu.org; Mon, 18 Mar 2019 15:05:37 -0400 Received: from forward104j.mail.yandex.net ([5.45.198.247]:35076) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h5xZl-0001LO-MG for help-guix@gnu.org; Mon, 18 Mar 2019 15:05:35 -0400 In-reply-to: <87wokwxssw.fsf@elephly.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Ricardo Wurmus Cc: Help Guix Ricardo Wurmus writes: > mikadoZero 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 =E2=80=9Cguix environme= nt > --pure guix=E2=80=9D? > >> configure.ac:88: error: possibly undefined macro: PKG_CHECK_MODULES >> If this token and others are legitimate, please use m4_pattern_all= ow. >> 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 =E2=80=9Cguix environment=E2=80=9D. > > Could you please show the output of =E2=80=9Cenv=E2=80=9D after you ran = =E2=80=9Cguix > environment guix=E2=80=9D? 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: --- ... configure.ac:23: warning: The 'AM_PROG_MKDIR_P' macro is deprecated, and it= s use is=20 discouraged.=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 configure.ac:23: You should use the Autoconf-provided 'AC_PROG_MKDIR_P' mac= ro instea d,=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20 configure.ac:23: and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefi= le.am fil es. Makefile.am:580: warning: AM_GNU_GETTEXT used but 'po' not in SUBDIRS ... --- I get an error when I run `./configure --localstatedir=3D/var/guix/db` it outputs this: checking for a BSD-compatible install... /run/current-system/profile/bin/in= stall -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /run/current-system/profile/bin/mkdi= r -p checking for gawk... gawk checking whether make sets $(MAKE)... no checking whether make supports nested variables... no checking whether make supports nested variables... (cached) no checking whether make supports the include directive... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables...=20 checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... none checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /run/current-system/pro= file/bin/ grep=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 checking for egrep... /run/current-system/profile/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking whether NLS is requested... yes checking for msgfmt... /root/.guix-profile/bin/msgfmt checking for gmsgfmt... /root/.guix-profile/bin/msgfmt checking for xgettext... /root/.guix-profile/bin/xgettext checking for msgmerge... /root/.guix-profile/bin/msgmerge checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking for ld used by GCC... /root/.guix-profile/bin/ld checking if the linker (/root/.guix-profile/bin/ld) is GNU ld... yes checking for shared library run path origin... done checking for CFPreferencesCopyAppValue... no checking for CFLocaleCopyCurrent... no checking for GNU gettext in libc... yes checking whether to use NLS... yes checking where the gettext function comes from... libc checking for sed... /run/current-system/profile/bin/sed checking for the Guix system type... x86_64-linux checking for the store directory... /gnu/store checking the length of the installed socket file name... 38 checking for unit test root directory... /home/guix/u/guix/guix/test-tmp checking the length of the socket file name used in tests... 63 checking the length of a typical hash bang line... 73 checking the length of a hash bang line used in tests... 100 checking for pkg-config... no configure: checking for guile 2.2 configure: error:=20 No Guile development packages were found. Please verify that you have Guile installed. If you installed Guile from a binary distribution, please verify that you have also installed the development packages. If you installed it yourself, you might need to adjust your PKG_CONFIG_PATH; see the pkg-config man page for more. --- `printenv` USER=3Droot HOME=3D/root TERM=3Determ-color LOGNAME=3Droot PKG_CONFIG_PATH=3D/gnu/store/kjmqpchkfy8rvv19jvd14q40shm9fk2p-profile/lib/p= kgconfig ACLOCAL_PATH=3D/root/.guix-profile/share/aclocal:/run/current-system/profil= e/share/acl ocal:/gnu/store/kjmqpchkfy8rvv19jvd14q40shm9fk2p-profile/share/aclocal=20= =20=20=20=20=20=20=20=20=20=20=20=20 INFOPATH=3D/root/.config/guix/current/share/info:/root/.guix-profile/share/= info:/run/c urrent-system/profile/share/info:/root/.guix-profile/share/info:/run/curren= t-system/ profile/share/info=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 C_INCLUDE_PATH=3D/gnu/store/kjmqpchkfy8rvv19jvd14q40shm9fk2p-profile/include CPLUS_INCLUDE_PATH=3D/gnu/store/kjmqpchkfy8rvv19jvd14q40shm9fk2p-profile/in= clude LIBRARY_PATH=3D/root/.guix-profile/lib:/gnu/store/kjmqpchkfy8rvv19jvd14q40s= hm9fk2p-pro file/lib=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20 GUIX_LOCPATH=3D/gnu/store/kjmqpchkfy8rvv19jvd14q40shm9fk2p-profile/lib/loca= le GUILE_LOAD_PATH=3D/run/current-system/profile/share/guile/site/2.2:/gnu/sto= re/kjmqpchk fy8rvv19jvd14q40shm9fk2p-profile/share/guile/site/2.2=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 GUILE_LOAD_COMPILED_PATH=3D/run/current-system/profile/lib/guile/2.2/site-c= cache:/gnu/ store/kjmqpchkfy8rvv19jvd14q40shm9fk2p-profile/lib/guile/2.2/site-ccache=20= =20=20=20=20=20=20=20=20=20=20 GUIX_ENVIRONMENT=3D/gnu/store/kjmqpchkfy8rvv19jvd14q40shm9fk2p-profile SHLVL=3D1 PWD=3D/home/guix/u/guix/guix OLDPWD=3D/home/guix/u/guix/guix MANPATH=3D/run/current-system/profile/share/man:/root/.guix-profile/share/m= an:/run/cur rent-system/profile/share/man=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 XDG_DATA_DIRS=3D/root/.guix-profile/share:/run/current-system/profile/share XDG_CONFIG_DIRS=3D/root/.guix-profile/etc/xdg:/run/current-system/profile/e= tc/xdg XCURSOR_PATH=3D/root/.icons:/root/.guix-profile/share/icons:/run/current-sy= stem/profil e/share/icons=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 PATH=3D/run/setuid-programs:/root/.config/guix/current/bin:/root/.guix-prof= ile/bin:/ro ot/.guix-profile/sbin:/run/current-system/profile/bin:/run/current-system/p= rofile/sb in=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20 BASH_LOADABLES_PATH=3D/run/current-system/profile/lib/bash CPATH=3D/root/.guix-profile/include GHC_PACKAGE_PATH=3D/root/.guix-profile/lib/ghc-8.4.3/package.conf.d ASPELL_DICT_DIR=3D/root/.guix-profile/lib/aspell GIT_SSL_CAINFO=3D/root/.guix-profile/etc/ssl/certs/ca-certificates.crt GIT_EXEC_PATH=3D/root/.guix-profile/libexec/git-core SSL_CERT_DIR=3D/root/.guix-profile/etc/ssl/certs SSL_CERT_FILE=3D/root/.guix-profile/etc/ssl/certs/ca-certificates.crt DICPATH=3D/root/.guix-profile/share/hunspell:/run/current-system/profile/sh= are/hunspel l=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20 GST_PLUGIN_PATH=3D/root/.guix-profile/lib/gstreamer-1.0 _=3D/runu/current-system/profile/bin/printenv