all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 14.1 Building from Git
@ 2019-03-17 20:50 mikadoZero
  2019-03-18 10:08 ` Giovanni Biscuolo
  2019-03-18 12:37 ` Ricardo Wurmus
  0 siblings, 2 replies; 13+ messages in thread
From: mikadoZero @ 2019-03-17 20:50 UTC (permalink / raw)
  To: Help Guix

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`

Then I run `./bootstrap` and it gives me this error output:

+ exec autoreconf -vfi
autoreconf: Entering directory `.'
autoreconf: running: autopoint --force
Copying file ABOUT-NLS
Copying file build-aux/config.rpath
Copying file m4/codeset.m4
Copying file m4/fcntl-o.m4
Copying file m4/gettext.m4
Copying file m4/glibc2.m4
Copying file m4/glibc21.m4
Copying file m4/iconv.m4
Copying file m4/intdiv0.m4
Copying file m4/intl.m4
Copying file m4/intldir.m4
Copying file m4/intlmacosx.m4
Copying file m4/intmax.m4
Copying file m4/inttypes-pri.m4
Copying file m4/inttypes_h.m4
Copying file m4/lcmessage.m4
Copying file m4/lib-ld.m4
Copying file m4/lib-link.m4
Copying file m4/lib-prefix.m4
Copying file m4/lock.m4
Copying file m4/longlong.m4
Copying file m4/nls.m4
Copying file m4/po.m4
Copying file m4/printf-posix.m4
Copying file m4/progtest.m4
Copying file m4/size_max.m4
Copying file m4/stdint_h.m4
Copying file m4/threadlib.m4
Copying file m4/uintmax_t.m4
Copying file m4/visibility.m4
Copying file m4/wchar_t.m4
Copying file m4/wint_t.m4
Copying file m4/xsize.m4
Copying file po/guix/Makefile.in.in
Copying file po/packages/Makefile.in.in
Copying file po/guix/Makevars.template
Copying file po/packages/Makevars.template
Copying file po/guix/Rules-quot
Copying file po/packages/Rules-quot
Copying file po/guix/boldquot.sed
Copying file po/packages/boldquot.sed
Copying file po/guix/en@boldquot.header
Copying file po/packages/en@boldquot.header
Copying file po/guix/en@quot.header
Copying file po/packages/en@quot.header
Copying file po/guix/insert-header.sin
Copying file po/packages/insert-header.sin
Copying file po/guix/quot.sed
Copying file po/packages/quot.sed
Copying file po/guix/remove-potcdate.sin
Copying file po/packages/remove-potcdate.sin
autoreconf: running: aclocal --force -I m4
configure.ac:251: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
m4/guix.m4:307: GUIX_LIBZ_LIBDIR is expanded from...
configure.ac:251: the top level
configure.ac:251: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
m4/guix.m4:307: GUIX_LIBZ_LIBDIR is expanded from...
configure.ac:251: the top level
autoreconf: configure.ac: tracing
configure.ac:251: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
m4/guix.m4:307: GUIX_LIBZ_LIBDIR is expanded from...
configure.ac:251: the top level
autoreconf: configure.ac: not using Libtool
autoreconf: running: /gnu/store/rfaqi3a9ls7adr4y7bgwvln3iaf69qwj-autoconf-2.69/bin/a
utoconf --force                                                                    
configure.ac:251: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd
m4/guix.m4:307: GUIX_LIBZ_LIBDIR is expanded from...
configure.ac:251: the top level
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
autoreconf: /gnu/store/rfaqi3a9ls7adr4y7bgwvln3iaf69qwj-autoconf-2.69/bin/autoconf f
ailed with exit status: 1

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: 14.1 Building from Git
  2019-03-17 20:50 14.1 Building from Git mikadoZero
@ 2019-03-18 10:08 ` Giovanni Biscuolo
  2019-03-18 19:16   ` mikadoZero
  2019-03-18 12:37 ` Ricardo Wurmus
  1 sibling, 1 reply; 13+ messages in thread
From: Giovanni Biscuolo @ 2019-03-18 10:08 UTC (permalink / raw)
  To: mikadoZero, Help Guix

[-- Attachment #1: Type: text/plain, Size: 3480 bytes --]

Hi mikadoZero,

mikadoZero <mikadozero@yandex.com> 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`.

I'm also learning to build from git but I never had such problems with
./bootstrap

I'll try to reproduce your bug...

> `guix describe`
> guix 19c0cdb
>     repository URL: https://git.savannah.gnu.org/git/guix.git
>     branch: master
>     commit: 19c0cdb9e6271956015232421ef7f63a1ad001ae

AFAIU it does not matter what Guix version is in your user profile since
following "7.2 Running Guix Before It Is Installed" you will «test the
changes made in your local source tree checkout without actually
installing them. So that you can distinguish between your “end-user” hat
and your “motley” costume.»

so in this case is useful to show your "git describe" and not "guix
describe":

--8<---------------cut here---------------start------------->8---
giovanni@anemone: git describe
v0.16.0-3520-gc0d43f6223
--8<---------------cut here---------------end--------------->8---

AFAIU that means: version 0.16.0 and 3520th commit, current commit
"c0d43f6223" (I miss the meaning of g before c0d43f6223)

that is: my “motley” costume will use c0d43f6223 for development

compare it with my current guix version (used by my end-user costume):

--8<---------------cut here---------------start------------->8---
Generation 5	Mar 16 2019 13:09:52	(current)
  guix 703a095
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 703a095e7ec3c8247deb527f027615e5e34fe753
--8<---------------cut here---------------end--------------->8---

> 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`
>
> Then I run `./bootstrap` and it gives me this error output:

I did it again (it's the third time I run ./bootstrap in my dev
environment) and it succeeded with no errors

[...]

> 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.

this error is documented in "7.1 Building from Git" (where did you get
14.1 numbering in the subject?) and the solution is described there also

anyway I don't understand why this happens in a "environment guix"

I'm in this environment

--8<---------------cut here---------------start------------->8---
giovanni@anemone: env | grep GUIX_ENV
GUIX_ENVIRONMENT=/gnu/store/kjmqpchkfy8rvv19jvd14q40shm9fk2p-profile
--8<---------------cut here---------------end--------------->8---

in this environment ACLOCAL_PATH is defined as

--8<---------------cut here---------------start------------->8---
giovanni@anemone: env | grep AC
ACLOCAL_PATH=/gnu/store/kjmqpchkfy8rvv19jvd14q40shm9fk2p-profile/share/aclocal
--8<---------------cut here---------------end--------------->8---

AFAIU in "environment guix" all needed devel tools should be installed
and related evironment variables set up

are you sure you are running "./bootstrap" in the environment?

[...]

HTH!
Gio

[1] https://www.gnu.org/software/guix/manual/en/html_node/Building-from-Git.html#Building-from-Git

-- 
Giovanni Biscuolo

Xelera IT Infrastructures

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: 14.1 Building from Git
  2019-03-17 20:50 14.1 Building from Git mikadoZero
  2019-03-18 10:08 ` Giovanni Biscuolo
@ 2019-03-18 12:37 ` Ricardo Wurmus
  2019-03-18 19:05   ` mikadoZero
  1 sibling, 1 reply; 13+ messages in thread
From: Ricardo Wurmus @ 2019-03-18 12:37 UTC (permalink / raw)
  To: mikadoZero; +Cc: Help Guix


mikadoZero <mikadozero@yandex.com> 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”?

--
Ricardo

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: 14.1 Building from Git
  2019-03-18 12:37 ` Ricardo Wurmus
@ 2019-03-18 19:05   ` mikadoZero
  2019-03-18 19:28     ` Leo Famulari
  2019-03-18 19:54     ` Ricardo Wurmus
  0 siblings, 2 replies; 13+ messages in thread
From: mikadoZero @ 2019-03-18 19:05 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: Help Guix


Ricardo Wurmus writes:

> mikadoZero <mikadozero@yandex.com> 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:

---

...
configure.ac:23: warning: The 'AM_PROG_MKDIR_P' macro is deprecated, and its use is 
discouraged.                                                                       
configure.ac:23: You should use the Autoconf-provided 'AC_PROG_MKDIR_P' macro instea
d,                                                                                 
configure.ac:23: and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.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=/var/guix/db` it
outputs this:

checking for a BSD-compatible install... /run/current-system/profile/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /run/current-system/profile/bin/mkdir -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... 
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/profile/bin/
grep                                                                               
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: 
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=root
HOME=/root
TERM=eterm-color
LOGNAME=root
PKG_CONFIG_PATH=/gnu/store/kjmqpchkfy8rvv19jvd14q40shm9fk2p-profile/lib/pkgconfig
ACLOCAL_PATH=/root/.guix-profile/share/aclocal:/run/current-system/profile/share/acl
ocal:/gnu/store/kjmqpchkfy8rvv19jvd14q40shm9fk2p-profile/share/aclocal             
INFOPATH=/root/.config/guix/current/share/info:/root/.guix-profile/share/info:/run/c
urrent-system/profile/share/info:/root/.guix-profile/share/info:/run/current-system/
profile/share/info                                                                 
C_INCLUDE_PATH=/gnu/store/kjmqpchkfy8rvv19jvd14q40shm9fk2p-profile/include
CPLUS_INCLUDE_PATH=/gnu/store/kjmqpchkfy8rvv19jvd14q40shm9fk2p-profile/include
LIBRARY_PATH=/root/.guix-profile/lib:/gnu/store/kjmqpchkfy8rvv19jvd14q40shm9fk2p-pro
file/lib                                                                           
GUIX_LOCPATH=/gnu/store/kjmqpchkfy8rvv19jvd14q40shm9fk2p-profile/lib/locale
GUILE_LOAD_PATH=/run/current-system/profile/share/guile/site/2.2:/gnu/store/kjmqpchk
fy8rvv19jvd14q40shm9fk2p-profile/share/guile/site/2.2                              
GUILE_LOAD_COMPILED_PATH=/run/current-system/profile/lib/guile/2.2/site-ccache:/gnu/
store/kjmqpchkfy8rvv19jvd14q40shm9fk2p-profile/lib/guile/2.2/site-ccache           
GUIX_ENVIRONMENT=/gnu/store/kjmqpchkfy8rvv19jvd14q40shm9fk2p-profile
SHLVL=1
PWD=/home/guix/u/guix/guix
OLDPWD=/home/guix/u/guix/guix
MANPATH=/run/current-system/profile/share/man:/root/.guix-profile/share/man:/run/cur
rent-system/profile/share/man                                                      
XDG_DATA_DIRS=/root/.guix-profile/share:/run/current-system/profile/share
XDG_CONFIG_DIRS=/root/.guix-profile/etc/xdg:/run/current-system/profile/etc/xdg
XCURSOR_PATH=/root/.icons:/root/.guix-profile/share/icons:/run/current-system/profil
e/share/icons                                                                      
PATH=/run/setuid-programs:/root/.config/guix/current/bin:/root/.guix-profile/bin:/ro
ot/.guix-profile/sbin:/run/current-system/profile/bin:/run/current-system/profile/sb
in                                                                                 
BASH_LOADABLES_PATH=/run/current-system/profile/lib/bash
CPATH=/root/.guix-profile/include
GHC_PACKAGE_PATH=/root/.guix-profile/lib/ghc-8.4.3/package.conf.d
ASPELL_DICT_DIR=/root/.guix-profile/lib/aspell
GIT_SSL_CAINFO=/root/.guix-profile/etc/ssl/certs/ca-certificates.crt
GIT_EXEC_PATH=/root/.guix-profile/libexec/git-core
SSL_CERT_DIR=/root/.guix-profile/etc/ssl/certs
SSL_CERT_FILE=/root/.guix-profile/etc/ssl/certs/ca-certificates.crt
DICPATH=/root/.guix-profile/share/hunspell:/run/current-system/profile/share/hunspel
l                                                                                  
GST_PLUGIN_PATH=/root/.guix-profile/lib/gstreamer-1.0
_=/runu/current-system/profile/bin/printenv

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: 14.1 Building from Git
  2019-03-18 10:08 ` Giovanni Biscuolo
@ 2019-03-18 19:16   ` mikadoZero
  0 siblings, 0 replies; 13+ messages in thread
From: mikadoZero @ 2019-03-18 19:16 UTC (permalink / raw)
  To: Giovanni Biscuolo; +Cc: Help Guix


Thanks for your help.

Giovanni Biscuolo writes:

> Hi mikadoZero,
>
> mikadoZero <mikadozero@yandex.com> 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`.
>
> I'm also learning to build from git but I never had such problems with
> ./bootstrap
>
> I'll try to reproduce your bug...
>
>> `guix describe`
>> guix 19c0cdb
>>     repository URL: https://git.savannah.gnu.org/git/guix.git
>>     branch: master
>>     commit: 19c0cdb9e6271956015232421ef7f63a1ad001ae
>
> AFAIU it does not matter what Guix version is in your user profile since
> following "7.2 Running Guix Before It Is Installed" you will «test the
> changes made in your local source tree checkout without actually
> installing them. So that you can distinguish between your “end-user” hat
> and your “motley” costume.»
>
> so in this case is useful to show your "git describe" and not "guix
> describe":
>
> --8<---------------cut here---------------start------------->8---
> giovanni@anemone: git describe
> v0.16.0-3520-gc0d43f6223
> --8<---------------cut here---------------end--------------->8---
>
> AFAIU that means: version 0.16.0 and 3520th commit, current commit
> "c0d43f6223" (I miss the meaning of g before c0d43f6223)
>
> that is: my “motley” costume will use c0d43f6223 for development
>
> compare it with my current guix version (used by my end-user costume):
>
> --8<---------------cut here---------------start------------->8---
> Generation 5	Mar 16 2019 13:09:52	(current)
>   guix 703a095
>     repository URL: https://git.savannah.gnu.org/git/guix.git
>     branch: master
>     commit: 703a095e7ec3c8247deb527f027615e5e34fe753
> --8<---------------cut here---------------end--------------->8---
>

`git describe`
v0.16.0-3578-gfa5a25386

>> 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`
>>
>> Then I run `./bootstrap` and it gives me this error output:
>
> I did it again (it's the third time I run ./bootstrap in my dev
> environment) and it succeeded with no errors
>

Did get `./bootstrap` to work thanks to Ricardo Wurmus's suggestion to remove
environment variables from my .zshrc. But I am not getting an error with
configure.  Details are in my reply to Ricardo's message.

> [...]
>
>> 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.
>
> this error is documented in "7.1 Building from Git" (where did you get
> 14.1 numbering in the subject?) and the solution is described there also
>

I am reading the manual in Emacs's info reader and that is the number
that it gives that section of the manual.

> anyway I don't understand why this happens in a "environment guix"
>
> I'm in this environment
>
> --8<---------------cut here---------------start------------->8---
> giovanni@anemone: env | grep GUIX_ENV
> GUIX_ENVIRONMENT=/gnu/store/kjmqpchkfy8rvv19jvd14q40shm9fk2p-profile
> --8<---------------cut here---------------end--------------->8---
>
> in this environment ACLOCAL_PATH is defined as
>
> --8<---------------cut here---------------start------------->8---
> giovanni@anemone: env | grep AC
> ACLOCAL_PATH=/gnu/store/kjmqpchkfy8rvv19jvd14q40shm9fk2p-profile/share/aclocal
> --8<---------------cut here---------------end--------------->8---
>
> AFAIU in "environment guix" all needed devel tools should be installed
> and related evironment variables set up
>
> are you sure you are running "./bootstrap" in the environment?
>

In my reply to Ricardo's message I have included the output of
`printenv`.

> [...]
>
> HTH!
> Gio
>
> [1] https://www.gnu.org/software/guix/manual/en/html_node/Building-from-Git.html#Building-from-Git

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: 14.1 Building from Git
  2019-03-18 19:05   ` mikadoZero
@ 2019-03-18 19:28     ` Leo Famulari
  2019-03-19 15:39       ` mikadoZero
  2019-03-18 19:54     ` Ricardo Wurmus
  1 sibling, 1 reply; 13+ messages in thread
From: Leo Famulari @ 2019-03-18 19:28 UTC (permalink / raw)
  To: mikadoZero; +Cc: Help Guix

[-- Attachment #1: Type: text/plain, Size: 171 bytes --]

On Mon, Mar 18, 2019 at 03:05:05PM -0400, mikadoZero wrote:
> I get an error when I run `./configure --localstatedir=/var/guix/db` it

It should be '--localstatedir=/var'

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: 14.1 Building from Git
  2019-03-18 19:05   ` mikadoZero
  2019-03-18 19:28     ` Leo Famulari
@ 2019-03-18 19:54     ` Ricardo Wurmus
  2019-03-19 15:34       ` mikadoZero
  1 sibling, 1 reply; 13+ messages in thread
From: Ricardo Wurmus @ 2019-03-18 19:54 UTC (permalink / raw)
  To: mikadoZero; +Cc: Help Guix


mikadoZero <mikadozero@yandex.com> writes:

> Ricardo Wurmus writes:
>
>> mikadoZero <mikadozero@yandex.com> 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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: 14.1 Building from Git
  2019-03-18 19:54     ` Ricardo Wurmus
@ 2019-03-19 15:34       ` mikadoZero
  2019-03-19 16:08         ` Ricardo Wurmus
  2019-03-19 19:17         ` Tobias Geerinckx-Rice
  0 siblings, 2 replies; 13+ messages in thread
From: mikadoZero @ 2019-03-19 15:34 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: Help Guix


Ricardo Wurmus writes:
> ...
>> 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.

I am using zsh.  I only have .zprofile and .zshrc as zsh configuration
files.  I have already commented out all the export of environment
variables from .zshrc to get `./bootstrap` to finish.

I did copy the suggested exports that were output when I ran `guix
package --manifest=manifest.scm` into .zprofile and they were:

export PATH="/root/.guix-profile/bin:/root/.guix-profile/sbin${PATH:+:}$PATH"
export CPATH="/root/.guix-profile/include${CPATH:+:}$CPATH"
export LIBRARY_PATH="/root/.guix-profile/lib${LIBRARY_PATH:+:}$LIBRARY_PATH"
export GHC_PACKAGE_PATH="/root/.guix-profile/lib/ghc-8.4.3/package.conf.d${GHC_PACKAGE_PATH:+:}$GHC_PACKAGE_PATH"                                                   
export ASPELL_DICT_DIR="/root/.guix-profile/lib/aspell"
export GIT_SSL_CAINFO="/root/.guix-profile/etc/ssl/certs/ca-certificates.crt"
export GIT_EXEC_PATH="/root/.guix-profile/libexec/git-core"
export SSL_CERT_DIR="/root/.guix-profile/etc/ssl/certs"
export SSL_CERT_FILE="/root/.guix-profile/etc/ssl/certs/ca-certificates.crt"
export ACLOCAL_PATH="/root/.guix-profile/share/aclocal${ACLOCAL_PATH:+:}$ACLOCAL_PATH"
export CURL_CA_BUNDLE="/root/.guix-profile/etc/ssl/certs/ca-certificates.crt"


I commented out all of the above export of environment variables in
.zprofile and ran `guix environment --pure guix` then ran `printenv` but
that has not changed the order.  /root/.guix-profile directories are
still first.


Then if I continue with:

`./bootstrap`
`./configure --localstatdir=/var`

I still get the same error message.


I had been using the root user.  I tried with a non root user and got
the same error message after running:

`guix environment --pure guix`
`./bootstrap`
`./configure --localstatdir=/var`

With that non root user `printenv` outputs:

TERM=eterm-color
HOME=/home/guix
USER=guix
LOGNAME=guix
PKG_CONFIG_PATH=/gnu/store/kjmqpchkfy8rvv19jvd14q40shm9fk2p-profile/lib/pkgconfig
ACLOCAL_PATH=/home/guix/.guix-profile/share/aclocal:/gnu/store/kjmqpchkfy8rvv19jvd14
q40shm9fk2p-profile/share/aclocal                                                  
INFOPATH=/home/guix/.config/guix/current/share/info:/home/guix/.guix-profile/share/i
nfo:/run/current-system/profile/share/info:/home/guix/.guix-profile/share/info:/run/
current-system/profile/share/info                                                  
C_INCLUDE_PATH=/gnu/store/kjmqpchkfy8rvv19jvd14q40shm9fk2p-profile/include
CPLUS_INCLUDE_PATH=/gnu/store/kjmqpchkfy8rvv19jvd14q40shm9fk2p-profile/include
LIBRARY_PATH=/home/guix/.guix-profile/lib:/gnu/store/kjmqpchkfy8rvv19jvd14q40shm9fk2
p-profile/lib                                                                      
GUIX_LOCPATH=/gnu/store/kjmqpchkfy8rvv19jvd14q40shm9fk2p-profile/lib/locale
GUILE_LOAD_PATH=/run/current-system/profile/share/guile/site/2.2:/gnu/store/kjmqpchk
fy8rvv19jvd14q40shm9fk2p-profile/share/guile/site/2.2                              
GUILE_LOAD_COMPILED_PATH=/run/current-system/profile/lib/guile/2.2/site-ccache:/gnu/
store/kjmqpchkfy8rvv19jvd14q40shm9fk2p-profile/lib/guile/2.2/site-ccache           
GUIX_ENVIRONMENT=/gnu/store/kjmqpchkfy8rvv19jvd14q40shm9fk2p-profile
SHLVL=1
PWD=/home/guix/u/guix/guix
OLDPWD=/home/guix/u/guix/guix
MANPATH=/run/current-system/profile/share/man:/home/guix/.guix-profile/share/man:/ru
n/current-system/profile/share/man                                                 
XDG_DATA_DIRS=/home/guix/.guix-profile/share:/run/current-system/profile/share
XDG_CONFIG_DIRS=/home/guix/.guix-profile/etc/xdg:/run/current-system/profile/etc/xdg
XCURSOR_PATH=/home/guix/.icons:/home/guix/.guix-profile/share/icons:/run/current-sys
tem/profile/share/icons                                                            
PATH=/run/setuid-programs:/home/guix/.config/guix/current/bin:/home/guix/.guix-profi
le/bin:/home/guix/.guix-profile/sbin:/run/current-system/profile/bin:/run/current-sy
stem/profile/sbin                                                                  
BASH_LOADABLES_PATH=/run/current-system/profile/lib/bash
CPATH=/home/guix/.guix-profile/include
GHC_PACKAGE_PATH=/home/guix/.guix-profile/lib/ghc-8.4.3/package.conf.d
ASPELL_DICT_DIR=/home/guix/.guix-profile/lib/aspell
GIT_SSL_CAINFO=/home/guix/.guix-profile/etc/ssl/certs/ca-certificates.crt
GIT_EXEC_PATH=/home/guix/.guix-profile/libexec/git-core
SSL_CERT_DIR=/home/guix/.guix-profile/etc/ssl/certs
SSL_CERT_FILE=/home/guix/.guix-profile/etc/ssl/certs/ca-certificates.crt
CURL_CA_BUNDLE=/home/guix/.guix-profile/etc/ssl/certs/ca-certificates.crt
DICPATH=/home/guix/.guix-profile/share/hunspell:/run/current-system/profile/share/hu
nspell                                                                             
GST_PLUGIN_PATH=/home/guix/.guix-profile/lib/gstreamer-1.0
_=/run/current-system/profile/bin/printenv

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: 14.1 Building from Git
  2019-03-18 19:28     ` Leo Famulari
@ 2019-03-19 15:39       ` mikadoZero
  0 siblings, 0 replies; 13+ messages in thread
From: mikadoZero @ 2019-03-19 15:39 UTC (permalink / raw)
  To: Leo Famulari; +Cc: Help Guix


Leo Famulari writes:

> On Mon, Mar 18, 2019 at 03:05:05PM -0400, mikadoZero wrote:
>> I get an error when I run `./configure --localstatedir=/var/guix/db` it
>
> It should be '--localstatedir=/var'

Thank you.
I am now using this:

`./configure --localstatedir=/var`

But I am still getting the same error.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: 14.1 Building from Git
  2019-03-19 15:34       ` mikadoZero
@ 2019-03-19 16:08         ` Ricardo Wurmus
  2019-03-20 21:20           ` mikadoZero
  2019-03-19 19:17         ` Tobias Geerinckx-Rice
  1 sibling, 1 reply; 13+ messages in thread
From: Ricardo Wurmus @ 2019-03-19 16:08 UTC (permalink / raw)
  To: mikadoZero; +Cc: Help Guix


mikadoZero <mikadozero@yandex.com> writes:

> I did copy the suggested exports that were output when I ran `guix
> package --manifest=manifest.scm` into .zprofile and they were:

I suggest to not do this and to add this snippet instead:

    export GUIX_PROFILE="$HOME/.guix-profile"
    source $GUIX_PROFILE/etc/profile

> I commented out all of the above export of environment variables in
> .zprofile and ran `guix environment --pure guix` then ran `printenv` but
> that has not changed the order.  /root/.guix-profile directories are
> still first.

“guix environment --pure” spawns a sub-shell.  You need to ensure that
for sub-shells the variables are not set — this is currently not the
case as evidenced by printenv.  I don’t know about what files zsh reads
under what conditions, so I cannot recommend a way around this.

You could also try to use Bash instead.

--
Ricardo

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: 14.1 Building from Git
  2019-03-19 15:34       ` mikadoZero
  2019-03-19 16:08         ` Ricardo Wurmus
@ 2019-03-19 19:17         ` Tobias Geerinckx-Rice
  2019-03-20 21:25           ` mikadoZero
  1 sibling, 1 reply; 13+ messages in thread
From: Tobias Geerinckx-Rice @ 2019-03-19 19:17 UTC (permalink / raw)
  To: mikadoZero; +Cc: Help Guix

mikadoZero,

(Probably) not a solution to your problem, I'm afraid, but:

mikadoZero wrote:
> I did copy the suggested exports that were output when I ran 
> `guix
> package --manifest=manifest.scm` into .zprofile and they were:

Guix does *not* suggest copying these into shell initialisation 
files, and you should remove the ones you've added.

Kind regards,

T G-R

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: 14.1 Building from Git
  2019-03-19 16:08         ` Ricardo Wurmus
@ 2019-03-20 21:20           ` mikadoZero
  0 siblings, 0 replies; 13+ messages in thread
From: mikadoZero @ 2019-03-20 21:20 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: Help Guix


Ricardo Wurmus writes:

> mikadoZero <mikadozero@yandex.com> writes:
>
>> I did copy the suggested exports that were output when I ran `guix
>> package --manifest=manifest.scm` into .zprofile and they were:
>
> I suggest to not do this and to add this snippet instead:
>
>     export GUIX_PROFILE="$HOME/.guix-profile"
>     source $GUIX_PROFILE/etc/profile
>

It is now in my .bash_profile.

>> I commented out all of the above export of environment variables in
>> .zprofile and ran `guix environment --pure guix` then ran `printenv` but
>> that has not changed the order.  /root/.guix-profile directories are
>> still first.
>
> “guix environment --pure” spawns a sub-shell.  You need to ensure that
> for sub-shells the variables are not set — this is currently not the
> case as evidenced by printenv.  I don’t know about what files zsh reads
> under what conditions, so I cannot recommend a way around this.
>
> You could also try to use Bash instead.

Thank you

I have been able to switch my non root users shell from zsh to bash.
Now with a user that has a bash shell I am able to continue on using the
contributing section of the manual as a guide and can do: bootstrap,
configure, `./pre-inst-env guix lint package-name` and `./pre-inst-env
guix build --rounds=4 package-name`.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: 14.1 Building from Git
  2019-03-19 19:17         ` Tobias Geerinckx-Rice
@ 2019-03-20 21:25           ` mikadoZero
  0 siblings, 0 replies; 13+ messages in thread
From: mikadoZero @ 2019-03-20 21:25 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: Help Guix


Tobias Geerinckx-Rice writes:

> ...
> mikadoZero wrote:
>> I did copy the suggested exports that were output when I ran `guix
>> package --manifest=manifest.scm` into .zprofile and they were:
>
> Guix does *not* suggest copying these into shell initialisation files,
> and you should remove the ones you've added.
> ...

Thank you for the suggestion.

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2019-03-20 21:36 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-17 20:50 14.1 Building from Git mikadoZero
2019-03-18 10:08 ` Giovanni Biscuolo
2019-03-18 19:16   ` mikadoZero
2019-03-18 12:37 ` Ricardo Wurmus
2019-03-18 19:05   ` mikadoZero
2019-03-18 19:28     ` Leo Famulari
2019-03-19 15:39       ` mikadoZero
2019-03-18 19:54     ` Ricardo Wurmus
2019-03-19 15:34       ` mikadoZero
2019-03-19 16:08         ` Ricardo Wurmus
2019-03-20 21:20           ` mikadoZero
2019-03-19 19:17         ` Tobias Geerinckx-Rice
2019-03-20 21:25           ` mikadoZero

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.