all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Errors encountered in building guix from source.
@ 2018-01-20 20:16 Fis Trivial
  2018-01-20 20:45 ` Pjotr Prins
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Fis Trivial @ 2018-01-20 20:16 UTC (permalink / raw)
  To: guix-devel@gnu.org

I am currently running guix on top of Fedora 26. This is a mix of several
problems, and possibly contains bugs in guix, I am not sure if I have done
anything wrong. So I will try to describe them in order. If you believe I
should make separate threads or fill a bug report, just tell me to.


I tried to build guix from git repo according to this menu:
https://www.gnu.org/software/guix/manual/guix.html#Building-from-Git

* Do as the menu said
So I ran the following command in sequence:
$ guix environment guix --ad-hoc help2man git strace
$ ./bootstrap
$ ./configure --localstatedir=/var

The last configure command resulted in error, here is the last part from output:
--8<---------------cut here---------------start------------->8---
configure: checking for guile 2.2
configure: found guile 2.2
checking for guile-2.2... no
checking for guile2.2... no
checking for guile-2... no
checking for guile2... /usr/bin/guile2
configure: error: found development files for Guile 2.2, but /usr/bin/guile2 has effective version 2.0
--8<---------------cut here---------------end--------------->8---

It seems configure script tried to use the guile provided by Fedora.


* Add --pure option to `guix environment`
Then I tried again the added --pure option to `guix environment`:
$ guix environment  guix --ad-hoc help2man git strace --pure

During the process, following questions were emitted by command-not-found
facility provided by Fedora:
--8<---------------cut here---------------start------------->8---
Install package 'cargo' to provide command 'cargo'? [N/y] n

Install package 'procps-ng' to provide command 'pidof'? [N/y] n

Install package 'cargo' to provide command 'cargo'? [N/y] n

Install package 'procps-ng' to provide command 'pidof'? [N/y] n
--8<---------------cut here---------------end--------------->8---
Even if I answer 'y', those packages won't be successfully installed by Fedora
since I already have them.

Aside from this, The bootstrap and configure ran successfully. But `make check`
failed, here is the last part of the output:
--8<---------------cut here---------------start------------->8---
  LOAD     guix/scripts/gc.scm
  LOAD     guix/scripts/hash.scm
  LOAD     guix/scripts/pack.scm
Backtrace:
In ice-9/boot-9.scm:
    142:2 19 (dynamic-wind _ _ #<procedure 1ced4c0 at ice-9/eval.scm…>)
    142:2 18 (dynamic-wind _ _ #<procedure 1ced060 at ice-9/eval.scm…>)
In ice-9/eval.scm:
    619:8 17 (_ #(#(#<directory (guix build compile) 16c28c0> #<…> …)))
    619:8 16 (_ #(#(#(#(#(#(#(#<directory (guix b…> …)) …) …) …) …) …))
In ice-9/boot-9.scm:
    152:2 15 (with-fluid* _ _ _)
  2792:17 14 (resolve-interface (guix scripts pack) #:select _ #:hide …)
  2718:10 13 (_ (guix scripts pack) _ _ #:ensure _)
  2986:16 12 (try-module-autoload _ _)
   2316:4 11 (save-module-excursion #<procedure 9a615d0 at ice-9/boo…>)
  3006:22 10 (_)
In unknown file:
           9 (primitive-load-path "guix/scripts/pack" #<procedure 1b…>)
In ice-9/eval.scm:
   626:19  8 (_ #<directory (guix scripts pack) 90b26e0>)
   173:39  7 (_ #<directory (guix scripts pack) 90b26e0>)
   202:51  6 (_ #<directory (guix scripts pack) 90b26e0>)
   202:35  5 (_ #<directory (guix scripts pack) 90b26e0>)
    155:9  4 (_ #<directory (guix scripts pack) 90b26e0>)
   202:35  3 (_ #<directory (guix scripts pack) 90b26e0>)
    159:9  2 (_ #<directory (guix scripts pack) 90b26e0>)
   223:20  1 (proc #<directory (guix scripts pack) 90b26e0>)
In unknown file:
           0 (%resolve-variable (7 . gzip) #<directory (guix scripts…>)

ERROR: In procedure %resolve-variable:
ERROR: gzip: unbound variable

Some deprecated features have been used.  Set the environment
variable GUILE_WARN_DEPRECATED to "detailed" and rerun the
program to get more information.  Set it to "no" to suppress
this message.
make[2]: *** [Makefile:5361: make-go] Error 1
make[2]: Leaving directory '/home/fis/Workspace/guix'
make[1]: *** [Makefile:4490: check-recursive] Error 1
make[1]: Leaving directory '/home/fis/Workspace/guix'
make: *** [Makefile:4955: check] Error 2
--8<---------------cut here---------------end--------------->8---

If I ignore the failure and then try:
$ sudo ./pre-inst-env guix-daemon --build-users-group=guixbuild

I will be told that sudo command is not availabile.
Adding sudo as a dependency in environment will not work, due to this error:
--8<---------------cut here---------------start------------->8---
sudo: /gnu/store/p1fgwswygbw0fgbnpajdhxb0ylmqa20i-profile/bin/sudo must be owned by uid 0 and have the setuid bit set
--8<---------------cut here---------------end--------------->8---

* Platform
Fedora 26 x86_64

* Version
The version of guix I'm running:
guix (GNU Guix) d77f2bd81f20a312032d6a7357e4f6f52047bf9c

The version of guix I'm trying to build:
commit ede75282b86ee9cd3b9066c4ce7b00387878709b

* Summary
So, as a summary, I encountered the following errors:
1. configure failed if I don't add --pure option to `guix environment`.
2. If I add --pure option to `guix environment`:
   1. Fedora will ask me whether should it install some packages.
   2. `make check` failed
   3. sudo is missing.

Is there anything I did wrong? Or is it a bug in guix? If so, should I report
them in one or multiple bug reports?

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

end of thread, other threads:[~2018-01-29 22:35 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-20 20:16 Errors encountered in building guix from source Fis Trivial
2018-01-20 20:45 ` Pjotr Prins
2018-01-21  9:13   ` Fis Trivial
2018-01-21 10:50     ` Pjotr Prins
2018-01-24 14:32 ` Ludovic Courtès
2018-01-25 15:12 ` Oleg Pykhalov
2018-01-25 20:58   ` Fis Trivial
2018-01-26 15:25     ` Oleg Pykhalov
2018-01-27 15:12       ` Fis Trivial
2018-01-29 19:20         ` Oleg Pykhalov
2018-01-29 22:35           ` Fis Trivial
2018-01-28  3:16     ` Chris Marusich

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.