unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#21925: "make check" fails: "guix package: error: socket: Protocol not supported"
@ 2015-11-14 20:42 Chris Marusich
  2015-11-15 10:19 ` bug#21925: Additional information for bug report: 21925 Chris Marusich
  0 siblings, 1 reply; 6+ messages in thread
From: Chris Marusich @ 2015-11-14 20:42 UTC (permalink / raw)
  To: 21925

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

Hi all,

Sorry about that last email. I fat-fingered the send button before I
had finished writing it.

I wanted to let you know that when I ran the following command from
the guix git repository root, the tests during "make check" failed:

guix environment guix -- bash -c './bootstrap && ./configure
--localstatedir=/var && make && make check'

The tests which failed were:

tests/guix-package
tests/guix-package-net

They both failed with the following error message:

"guix package: error: socket: Protocol not supported"

The commit that I was using was 2abcc93. The system I am using is
GuixSD, specifically a 0.9.0 installation of it on a bare metal
laptop. I've attached the test suite log for your reference.

Any idea why these tests failed, and how I can make these tests pass?

Thank you,
Chris Marusich

[-- Attachment #2: test-suite.log --]
[-- Type: application/octet-stream, Size: 16343 bytes --]

======================================
   GNU Guix 0.9.0: ./test-suite.log
======================================

# TOTAL: 54
# PASS:  52
# SKIP:  0
# XFAIL: 0
# FAIL:  2
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: tests/guix-package
========================

+ guix package --version
guix package (GNU Guix) 0.9.0
Copyright (C) 2015 the Guix authors
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
+ module_dir=t-guix-package-21361
+ profile=t-profile-21361
+ rm -f t-profile-21361
+ trap 'rm -f "$profile" "$profile-"[0-9]* ; rm -rf "$module_dir" t-home-21361' EXIT
+ guix package --bootstrap -e +
guix package: error: expression "+" does not evaluate to a package
+ true
+ guix package --bootstrap -p t-profile-21361 -i guile-bootstrap
accepted connection from pid 21374, user marusich
The following package will be installed:
   guile-bootstrap	2.0	/home/marusich/guix/test-tmp/store/awbchdr7mqwlpch2p274j2ja2gw7k239-guile-bootstrap-2.0

1 package in profile
The following environment variable definitions may be needed:
   export PATH="t-profile-21361/bin"
+ test -L t-profile-21361
+ test -L t-profile-21361-1-link
+ test -f t-profile-21361/bin/guile
+ guix gc --list-live
++ readlink t-profile-21361-1-link
+ grep /home/marusich/guix/test-tmp/store/m7xswz8mc6m7f5xhlsknx1qvygqmibmx-profile
accepted connection from pid 21378, user marusich
finding garbage collector roots...
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;;       or pass the --no-auto-compile argument to disable.
;;; compiling /home/marusich/guix/nix/scripts/list-runtime-roots
;;; compiled /home/marusich/guix/test-tmp/var/21352/cache-21352/guile/ccache/2.0-LE-8-2.0/home/marusich/guix/nix/scripts/list-runtime-roots.go
determining live/dead paths...
/home/marusich/guix/test-tmp/store/m7xswz8mc6m7f5xhlsknx1qvygqmibmx-profile
+ guix package --bootstrap -p t-profile-21361 -i guile-bootstrap
accepted connection from pid 21388, user marusich
The following package will be upgraded:
   guile-bootstrap	2.0 → 2.0	/home/marusich/guix/test-tmp/store/awbchdr7mqwlpch2p274j2ja2gw7k239-guile-bootstrap-2.0

nothing to be done
+ test -L t-profile-21361
+ test -L t-profile-21361-1-link
+ test -f t-profile-21361-2-link
+ test -f t-profile-21361/bin/guile
+ guix package -p t-profile-21361 --search-paths
export PATH="t-profile-21361/bin"
+ guix package -p t-profile-21361 --search-paths
+ grep '^export PATH='
export PATH="t-profile-21361/bin"
++ guix package -p t-profile-21361 --search-paths
++ wc -l
+ test 1 = 1
+ set -e
+ set -x
++ guix package --search-paths=prefix -p /home/marusich/guix/t-profile-21361
+ eval export 'PATH="/home/marusich/guix/t-profile-21361/bin${PATH:+:}$PATH"'
++ export PATH=/home/marusich/guix/t-profile-21361/bin:/home/marusich/guix/scripts:/home/marusich/guix:/gnu/store/a78wcgvpzdysals5kqwb7bvmxwmix46x-autoconf-wrapper-2.69/bin:/gnu/store/n164057v3j5lhihj10apqjkbsm0scl3p-automake-1.15/bin:/gnu/store/q8hzf4jbrcci24x3qbj2fg3q7fg8figf-gettext-0.19.6/bin:/gnu/store/hx7fpfka1nxfkaq13xm3d5dxq156iyhz-texinfo-6.0/bin:/gnu/store/7gign5dv3gijcw6bcsz5cs8d1002mjy0-graphviz-2.38.0/bin:/gnu/store/1y0i339n9byw8rmxq9w1qlymq24gdvj5-help2man-1.47.2/bin:/gnu/store/spg8lj9q6gyhddka8jygz5j027j2m066-pkg-config-0.28/bin:/gnu/store/0k3vix0732w6jlj35f27jz93sdqqac5v-emacs-no-x-24.5/bin:/gnu/store/xz8c9ihn3p1d8xqkhzf54bjvjqzvqkc0-tar-1.28/bin:/gnu/store/8m7mgixi5539vqrr1vd1nrvh96vjl66j-gzip-1.6/bin:/gnu/store/yq9vkx7f4zw17gs6b09bg4arcgmmjgxn-bzip2-1.0.6/bin:/gnu/store/hk31a1xlgf6n3yi1yzbdyd2bnjmxc60m-xz-5.0.4/bin:/gnu/store/wl84nj6x2mz7zf5r0ajx5gpi0p689ags-file-5.22/bin:/gnu/store/p1h463zxk0f56jl7snw7s8wxvz1k542q-diffutils-3.3/bin:/gnu/store/0xm4q87qi07gcig4riflrf65vyk1k0mp-patch-2.7.5/bin:/gnu/store/g55pwwrmgi58n1yr57m7vc0y69v1ba89-sed-4.2.2/bin:/gnu/store/7fk9v37a5q4r5sygywq0q0qg7iqrj517-findutils-4.4.2/bin:/gnu/store/k8qgvgwn5anbfy8r70h938kxgd46cyxx-gawk-4.1.3/bin:/gnu/store/021rg9bs7xivw0acp1yr0rxw6mf3h64d-grep-2.21/bin:/gnu/store/mnwjrkbfzkb5ifhqf8hssf3cxfvg11l6-coreutils-8.24/bin:/gnu/store/22k2zmc74dvnri91ma0lwxyyhfi1srk0-make-4.1/bin:/gnu/store/311nvir0pz1mhf0mgsmfrw00qfj7yq0j-bash-4.3.39/bin:/gnu/store/k6r37137lfpg3l3igi50c7lj2za7kqly-ld-wrapper-0/bin:/gnu/store/y5psndwpbbkjrf856x757psb708y62dn-binutils-2.25.1/bin:/gnu/store/hddjjpkfvwaf1j1q3qwpvby0rid3k8by-gcc-4.9.3/bin:/gnu/store/qv7bk62c22ms9i11dhfl71hnivyc82k2-glibc-2.22/bin:/gnu/store/qv7bk62c22ms9i11dhfl71hnivyc82k2-glibc-2.22/sbin:/gnu/store/dwf35p02zincdpa8qi1k5j6iiaw11mqs-bzip2-1.0.6/bin:/gnu/store/9am13bvzh2z15m4l0cs5140hkk4zfhyf-gzip-1.6/bin:/gnu/store/ygg5mgnzj8afif9ry77wcipdyl0ph14d-sqlite-3.8.11.1/bin:/gnu/store/768cgiv2b8lhbx814d8yvsryq39bwjbb-libgcrypt-1.6.3/bin:/gnu/store/5i87jzm90nw8j692y7z1j2qfx16h6ni3-guile-2.0.11/bin:/gnu/store/8nc54gwad0ilz8kywrmd71ichxn09a2l-gnutls-3.4.5/bin:/gnu/store/y9dxdh394q4acmfa7xxwavzmzbqz6k6s-geiser-0.8.1/bin:/gnu/store/wa07dzq40c0jn7fr8l1969vvx91314m9-libgpg-error-1.19/bin:/gnu/store/47rilwfszcndg5xvnif3fs2mzpz8b2gh-nettle-3.1.1/bin:/gnu/store/1c09a6xkcqg4bwrrjf1nh650piya5dm0-libidn-1.32/bin:/gnu/store/x3izl3synr2npl3b5cjb1nbhsxiahf0k-libtasn1-4.5/bin:/home/marusich/.guix-profile/bin:/home/marusich/.guix-profile/sbin:/run/setuid-programs:/run/current-system/profile/bin:/run/current-system/profile/sbin:/home/marusich/.guix-profile/sbin:/home/marusich/.guix-profile/sbin
++ PATH=/home/marusich/guix/t-profile-21361/bin:/home/marusich/guix/scripts:/home/marusich/guix:/gnu/store/a78wcgvpzdysals5kqwb7bvmxwmix46x-autoconf-wrapper-2.69/bin:/gnu/store/n164057v3j5lhihj10apqjkbsm0scl3p-automake-1.15/bin:/gnu/store/q8hzf4jbrcci24x3qbj2fg3q7fg8figf-gettext-0.19.6/bin:/gnu/store/hx7fpfka1nxfkaq13xm3d5dxq156iyhz-texinfo-6.0/bin:/gnu/store/7gign5dv3gijcw6bcsz5cs8d1002mjy0-graphviz-2.38.0/bin:/gnu/store/1y0i339n9byw8rmxq9w1qlymq24gdvj5-help2man-1.47.2/bin:/gnu/store/spg8lj9q6gyhddka8jygz5j027j2m066-pkg-config-0.28/bin:/gnu/store/0k3vix0732w6jlj35f27jz93sdqqac5v-emacs-no-x-24.5/bin:/gnu/store/xz8c9ihn3p1d8xqkhzf54bjvjqzvqkc0-tar-1.28/bin:/gnu/store/8m7mgixi5539vqrr1vd1nrvh96vjl66j-gzip-1.6/bin:/gnu/store/yq9vkx7f4zw17gs6b09bg4arcgmmjgxn-bzip2-1.0.6/bin:/gnu/store/hk31a1xlgf6n3yi1yzbdyd2bnjmxc60m-xz-5.0.4/bin:/gnu/store/wl84nj6x2mz7zf5r0ajx5gpi0p689ags-file-5.22/bin:/gnu/store/p1h463zxk0f56jl7snw7s8wxvz1k542q-diffutils-3.3/bin:/gnu/store/0xm4q87qi07gcig4riflrf65vyk1k0mp-patch-2.7.5/bin:/gnu/store/g55pwwrmgi58n1yr57m7vc0y69v1ba89-sed-4.2.2/bin:/gnu/store/7fk9v37a5q4r5sygywq0q0qg7iqrj517-findutils-4.4.2/bin:/gnu/store/k8qgvgwn5anbfy8r70h938kxgd46cyxx-gawk-4.1.3/bin:/gnu/store/021rg9bs7xivw0acp1yr0rxw6mf3h64d-grep-2.21/bin:/gnu/store/mnwjrkbfzkb5ifhqf8hssf3cxfvg11l6-coreutils-8.24/bin:/gnu/store/22k2zmc74dvnri91ma0lwxyyhfi1srk0-make-4.1/bin:/gnu/store/311nvir0pz1mhf0mgsmfrw00qfj7yq0j-bash-4.3.39/bin:/gnu/store/k6r37137lfpg3l3igi50c7lj2za7kqly-ld-wrapper-0/bin:/gnu/store/y5psndwpbbkjrf856x757psb708y62dn-binutils-2.25.1/bin:/gnu/store/hddjjpkfvwaf1j1q3qwpvby0rid3k8by-gcc-4.9.3/bin:/gnu/store/qv7bk62c22ms9i11dhfl71hnivyc82k2-glibc-2.22/bin:/gnu/store/qv7bk62c22ms9i11dhfl71hnivyc82k2-glibc-2.22/sbin:/gnu/store/dwf35p02zincdpa8qi1k5j6iiaw11mqs-bzip2-1.0.6/bin:/gnu/store/9am13bvzh2z15m4l0cs5140hkk4zfhyf-gzip-1.6/bin:/gnu/store/ygg5mgnzj8afif9ry77wcipdyl0ph14d-sqlite-3.8.11.1/bin:/gnu/store/768cgiv2b8lhbx814d8yvsryq39bwjbb-libgcrypt-1.6.3/bin:/gnu/store/5i87jzm90nw8j692y7z1j2qfx16h6ni3-guile-2.0.11/bin:/gnu/store/8nc54gwad0ilz8kywrmd71ichxn09a2l-gnutls-3.4.5/bin:/gnu/store/y9dxdh394q4acmfa7xxwavzmzbqz6k6s-geiser-0.8.1/bin:/gnu/store/wa07dzq40c0jn7fr8l1969vvx91314m9-libgpg-error-1.19/bin:/gnu/store/47rilwfszcndg5xvnif3fs2mzpz8b2gh-nettle-3.1.1/bin:/gnu/store/1c09a6xkcqg4bwrrjf1nh650piya5dm0-libidn-1.32/bin:/gnu/store/x3izl3synr2npl3b5cjb1nbhsxiahf0k-libtasn1-4.5/bin:/home/marusich/.guix-profile/bin:/home/marusich/.guix-profile/sbin:/run/setuid-programs:/run/current-system/profile/bin:/run/current-system/profile/sbin:/home/marusich/.guix-profile/sbin:/home/marusich/.guix-profile/sbin
++ type -P guile
+ test /home/marusich/guix/t-profile-21361/bin/guile = /home/marusich/guix/t-profile-21361/bin/guile
+ type -P rm
/gnu/store/mnwjrkbfzkb5ifhqf8hssf3cxfvg11l6-coreutils-8.24/bin/rm
+ guix package -p t-profile-21361 --delete-generations=42
accepted connection from pid 21412, user marusich
guix package: error: no matching generation
+ true
+ guix package -p t-profile-21361 --delete-generations=0
accepted connection from pid 21416, user marusich
+ guix package --bootstrap -i guile gcc -p t-profile-21361 -n
accepted connection from pid 21421, user marusich
guix package: warning: ambiguous package specification `guile'
guix package: warning: choosing guile-2.0.11 from gnu/packages/guile.scm:119:2
looking for the latest release of GNU gcc...\r                                            \rguix package: error: socket: Protocol not supported
+ rm -f t-profile-21361 t-profile-21361-1-link
+ rm -rf t-guix-package-21361 t-home-21361
./test-env: line 1: 21360 Terminated              "/home/marusich/guix/pre-inst-env" "/home/marusich/guix/guix-daemon" --disable-chroot --substitute-urls="$GUIX_BINARY_SUBSTITUTE_URL"
FAIL tests/guix-package.sh (exit status: 1)

FAIL: tests/guix-package-net
============================

+ guix package --version
guix package (GNU Guix) 0.9.0
Copyright (C) 2015 the Guix authors
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
+ guile -c '(getaddrinfo "www.gnu.org" "80" AI_NUMERICSERV)'
+ shebang_too_long
++ echo /home/marusich/guix/test-tmp/store/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-bootstrap-binaries-0/bin/bash
++ wc -c
+ test 98 -ge 128
+ profile=t-profile-21455
+ profile_alt=t-profile-alt-21455
+ rm -f t-profile-21455
+ trap 'rm -f "$profile" "$profile_alt" "$profile-"[0-9]* ; rm -rf t-home-21455' EXIT
+ guix package --bootstrap -p t-profile-21455 -i guile-bootstrap
accepted connection from pid 21469, user marusich
The following package will be installed:
   guile-bootstrap	2.0	/home/marusich/guix/test-tmp/store/awbchdr7mqwlpch2p274j2ja2gw7k239-guile-bootstrap-2.0

1 package in profile
The following environment variable definitions may be needed:
   export PATH="t-profile-21455/bin"
+ test -L t-profile-21455
+ test -L t-profile-21455-1-link
+ test -f t-profile-21455-2-link
+ test -f t-profile-21455/bin/guile
+ boot_make='(@@ (gnu packages commencement) gnu-make-boot0)'
++ guix build -e '(@@ (gnu packages commencement) gnu-make-boot0)'
++ grep -v -e -debug
accepted connection from pid 21474, user marusich
+ boot_make_drv=/home/marusich/guix/test-tmp/store/25rbka3kkj7nw29c5js2cfydmfwbrxd1-make-boot0-4.1
+ guix package --bootstrap -p t-profile-21455 -i /home/marusich/guix/test-tmp/store/25rbka3kkj7nw29c5js2cfydmfwbrxd1-make-boot0-4.1
accepted connection from pid 21479, user marusich
The following package will be installed:
   make-boot0:#f	4.1	/home/marusich/guix/test-tmp/store/25rbka3kkj7nw29c5js2cfydmfwbrxd1-make-boot0-4.1

substitute: warning: authentication and authorization of substitutes disabled!
substitute: guix substitute: warning: ACL for archive imports seems to be uninitialized, substitutes may be unavailable
The following derivation will be built:
   /home/marusich/guix/test-tmp/store/qpvddh83sdjpla0p0wpv11isv9dwpk3j-profile.drv
2 packages in profile
The following environment variable definitions may be needed:
   export PATH="t-profile-21455/bin"
+ test -L t-profile-21455-2-link
+ test -f t-profile-21455/bin/make
+ test -f t-profile-21455/bin/guile
++ sort
++ xargs echo
++ cut -f1
++ guix package -p t-profile-21455 --list-installed
+ installed='guile-bootstrap make-boot0'
+ case "x$installed" in
++ guix package -p t-profile-21455 -I 'g.*e'
++ cut -f1
+ test guile-bootstrap = guile-bootstrap
++ guix package -p t-profile-21455 -l
++ grep guile
++ cut -f1
++ head -n1
+ test '  guile-bootstrap' = '  guile-bootstrap'
+ guix package -p t-profile-21455 --list-generations=42
+ true
+ guix package -p t-profile-21455 --switch-generation=99
accepted connection from pid 21511, user marusich
guix package: error: generation 99 of profile 't-profile-21455' does not exist
+ true
+ guix package --bootstrap -p t-profile-21455 -r guile-bootstrap
accepted connection from pid 21515, user marusich
The following package will be removed:
   guile-bootstrap	2.0	/home/marusich/guix/test-tmp/store/awbchdr7mqwlpch2p274j2ja2gw7k239-guile-bootstrap-2.0

substitute: warning: authentication and authorization of substitutes disabled!
substitute: guix substitute: warning: ACL for archive imports seems to be uninitialized, substitutes may be unavailable
The following derivation will be built:
   /home/marusich/guix/test-tmp/store/9770i7r7xf36kvgw1id82jfzdiqg553p-profile.drv
1 package in profile
The following environment variable definitions may be needed:
   export PATH="t-profile-21455/bin"
+ test -L t-profile-21455-3-link
+ test -f t-profile-21455/bin/make
+ test -f t-profile-21455/bin/guile
+ guix package --roll-back -p t-profile-21455
accepted connection from pid 21523, user marusich
spurious SIGPOLL
switched from generation 3 to 2
++ readlink_base t-profile-21455
+++ readlink t-profile-21455
++ basename t-profile-21455-2-link
+ test t-profile-21455-2-link = t-profile-21455-2-link
+ test -x t-profile-21455/bin/guile
+ test -x t-profile-21455/bin/make
+ guix package --roll-back -p t-profile-21455
accepted connection from pid 21532, user marusich
switched from generation 2 to 1
++ readlink_base t-profile-21455
+++ readlink t-profile-21455
++ basename t-profile-21455-1-link
+ test t-profile-21455-1-link = t-profile-21455-1-link
+ test -x t-profile-21455/bin/guile
+ test -x t-profile-21455/bin/make
+ guix package -p t-profile-21455 --switch-generation=2
accepted connection from pid 21540, user marusich
switched from generation 1 to 2
++ readlink_base t-profile-21455
+++ readlink t-profile-21455
++ basename t-profile-21455-2-link
+ test t-profile-21455-2-link = t-profile-21455-2-link
+ guix package -p t-profile-21455 --switch-generation=-1
accepted connection from pid 21549, user marusich
switched from generation 2 to 1
++ readlink_base t-profile-21455
+++ readlink t-profile-21455
++ basename t-profile-21455-1-link
+ test t-profile-21455-1-link = t-profile-21455-1-link
++ seq 1 3
+ for i in '`seq 1 3`'
+ guix package --bootstrap --roll-back -p t-profile-21455
accepted connection from pid 21558, user marusich
switched from generation 1 to 0
+ test -f t-profile-21455/bin
+ test -f t-profile-21455/lib
++ readlink_base t-profile-21455
+++ readlink t-profile-21455
++ basename t-profile-21455-0-link
+ test t-profile-21455-0-link = t-profile-21455-0-link
+ for i in '`seq 1 3`'
+ guix package --bootstrap --roll-back -p t-profile-21455
accepted connection from pid 21567, user marusich
switched from generation 0 to 0
+ test -f t-profile-21455/bin
+ test -f t-profile-21455/lib
++ readlink_base t-profile-21455
+++ readlink t-profile-21455
++ basename t-profile-21455-0-link
+ test t-profile-21455-0-link = t-profile-21455-0-link
+ for i in '`seq 1 3`'
+ guix package --bootstrap --roll-back -p t-profile-21455
accepted connection from pid 21575, user marusich
switched from generation 0 to 0
+ test -f t-profile-21455/bin
+ test -f t-profile-21455/lib
++ readlink_base t-profile-21455
+++ readlink t-profile-21455
++ basename t-profile-21455-0-link
+ test t-profile-21455-0-link = t-profile-21455-0-link
++ guix package -p t-profile-21455 -l 0
+ test -z ''
+ guix package --bootstrap -p t-profile-21455 -e '(@@ (gnu packages commencement) gnu-make-boot0)'
accepted connection from pid 21586, user marusich
looking for the latest release of GNU make-boot0...\r                                                   \rguix package: error: socket: Protocol not supported
+ rm -f t-profile-21455 t-profile-alt-21455 t-profile-21455-0-link t-profile-21455-1-link t-profile-21455-2-link t-profile-21455-3-link
+ rm -rf t-home-21455
./test-env: line 1: 21454 Terminated              "/home/marusich/guix/pre-inst-env" "/home/marusich/guix/guix-daemon" --disable-chroot --substitute-urls="$GUIX_BINARY_SUBSTITUTE_URL"
FAIL tests/guix-package-net.sh (exit status: 1)


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

* bug#21925: Additional information for bug report: 21925
  2015-11-14 20:42 bug#21925: "make check" fails: "guix package: error: socket: Protocol not supported" Chris Marusich
@ 2015-11-15 10:19 ` Chris Marusich
  2015-11-16 16:44   ` Ludovic Courtès
  2015-11-16 21:08   ` Efraim Flashner
  0 siblings, 2 replies; 6+ messages in thread
From: Chris Marusich @ 2015-11-15 10:19 UTC (permalink / raw)
  To: 21925

Hi,

I've noticed that I also experience similar failures when I try to
install certain packages. For example, I cannot install ncurses or
autoconf:

marusich@garuda ~$ guix package -i autoconf
guix package: error: socket: Protocol not supported
marusich@garuda ~$ guix package -i ncurses
guix package: error: socket: Protocol not supported

However, I CAN install python:

marusich@garuda ~$ guix package -i python
The following package will be installed:
   python	3.4.3	/gnu/store/y5x6c38fzrbfl80jxrgjd6py2k88x12a-python-3.4.3
[... I've omitted the rest of the output ...]

I've noticed that ncurses and autoconf both use the "mirror://" pseudo
protocol; perhaps this is somehow related to the problem?

gnu/packages/ncurses.scm:
...
    (package
     (name "ncurses")
     (version "6.0")
     (source (origin
              (method url-fetch)
              (uri (string-append "mirror://gnu/ncurses/ncurses-"
                                  version ".tar.gz"))
...
gnu/packages/autotools.scm:
...
(define-public autoconf
  (package
    (name "autoconf")
    (version "2.69")
    (source
     (origin
      (method url-fetch)
      (uri (string-append "mirror://gnu/autoconf/autoconf-"
                          version ".tar.xz"))
...

However, the python module uses "https://":

gnu/packages/python.scm
...
(define-public python
  (package (inherit python-2)
    (version "3.4.3")
    (source (origin
              (method url-fetch)
              (uri (string-append "https://www.python.org/ftp/python/"
                                  version "/Python-" version ".tar.xz"))
...

If there's any way I can provide more information, please let me know.
I'm having trouble debugging this any further because I'm just
starting to learn Guile; no matter what I do I can't seem to make guix
give me additional information beyond "Protocol not supported."

I hope this information helps.

- Chris

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

* bug#21925: Additional information for bug report: 21925
  2015-11-15 10:19 ` bug#21925: Additional information for bug report: 21925 Chris Marusich
@ 2015-11-16 16:44   ` Ludovic Courtès
  2015-11-17  5:11     ` Chris Marusich
  2015-11-16 21:08   ` Efraim Flashner
  1 sibling, 1 reply; 6+ messages in thread
From: Ludovic Courtès @ 2015-11-16 16:44 UTC (permalink / raw)
  To: Chris Marusich; +Cc: 21925, 21924

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

Chris Marusich <cmmarusich@gmail.com> skribis:

> I've noticed that I also experience similar failures when I try to
> install certain packages. For example, I cannot install ncurses or
> autoconf:
>
> marusich@garuda ~$ guix package -i autoconf
> guix package: error: socket: Protocol not supported
> marusich@garuda ~$ guix package -i ncurses
> guix package: error: socket: Protocol not supported

Could you apply this patch:


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 564 bytes --]

diff --git a/guix/ftp-client.scm b/guix/ftp-client.scm
index f02d460..e76f08a 100644
--- a/guix/ftp-client.scm
+++ b/guix/ftp-client.scm
@@ -140,8 +140,9 @@ TIMEOUT, an ETIMEDOUT error is raised."
 
   (let loop ((addresses addresses))
     (let* ((ai (car addresses))
-           (s  (socket (addrinfo:fam ai) SOCK_STREAM ;TCP only
-                       (addrinfo:protocol ai))))
+           (s  (socket (addrinfo:fam ai)
+                       ;; TCP/IP only
+                       SOCK_STREAM IPPROTO_IP)))
 
       (catch 'system-error
         (lambda ()

[-- Attachment #3: Type: text/plain, Size: 319 bytes --]


and then try again, with:

  ./pre-inst-env guix package -i autoconf

(I can provided more info on how to apply the patch if needed.  See also
<http://www.gnu.org/software/guix/manual/html_node/Running-Guix-Before-It-Is-Installed.html>.)

This may be a regression introduced in 279ec1d.

TIA!

Ludo’.


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

* bug#21925: Additional information for bug report: 21925
  2015-11-15 10:19 ` bug#21925: Additional information for bug report: 21925 Chris Marusich
  2015-11-16 16:44   ` Ludovic Courtès
@ 2015-11-16 21:08   ` Efraim Flashner
  1 sibling, 0 replies; 6+ messages in thread
From: Efraim Flashner @ 2015-11-16 21:08 UTC (permalink / raw)
  To: Chris Marusich; +Cc: 21925

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

On Sun, 15 Nov 2015 02:19:24 -0800
Chris Marusich <cmmarusich@gmail.com> wrote:

> Hi,
> 
> I've noticed that I also experience similar failures when I try to
> install certain packages. For example, I cannot install ncurses or
> autoconf:
> 
> marusich@garuda ~$ guix package -i autoconf
> guix package: error: socket: Protocol not supported
> marusich@garuda ~$ guix package -i ncurses
> guix package: error: socket: Protocol not supported
> 
> However, I CAN install python:
> 
> marusich@garuda ~$ guix package -i python
> The following package will be installed:
>    python	3.4.3	/gnu/store/y5x6c38fzrbfl80jxrgjd6py2k88x12a-python-3.4.3
> [... I've omitted the rest of the output ...]
> 
> I've noticed that ncurses and autoconf both use the "mirror://" pseudo
> protocol; perhaps this is somehow related to the problem?
> 
> gnu/packages/ncurses.scm:
> ...
>     (package
>      (name "ncurses")
>      (version "6.0")
>      (source (origin
>               (method url-fetch)
>               (uri (string-append "mirror://gnu/ncurses/ncurses-"
>                                   version ".tar.gz"))
> ...
> gnu/packages/autotools.scm:
> ...
> (define-public autoconf
>   (package
>     (name "autoconf")
>     (version "2.69")
>     (source
>      (origin
>       (method url-fetch)
>       (uri (string-append "mirror://gnu/autoconf/autoconf-"
>                           version ".tar.xz"))
> ...
> 
> However, the python module uses "https://":
> 
> gnu/packages/python.scm
> ...
> (define-public python
>   (package (inherit python-2)
>     (version "3.4.3")
>     (source (origin
>               (method url-fetch)
>               (uri (string-append "https://www.python.org/ftp/python/"
>                                   version "/Python-" version ".tar.xz"))
> ...
> 
> If there's any way I can provide more information, please let me know.
> I'm having trouble debugging this any further because I'm just
> starting to learn Guile; no matter what I do I can't seem to make guix
> give me additional information beyond "Protocol not supported."
> 
> I hope this information helps.
> 
> - Chris
> 
> 
> 
copied from the end of your log:

+ guix package --bootstrap -p t-profile-21455 -e '(@@ (gnu packages commencement) gnu-make-boot0)'
accepted connection from pid 21586, user marusich
looking for the latest release of GNU make-boot0...\r                                                   \rguix package: error: socket: Protocol not supported

"looking for latest release" is the automagic checker looking for a new
upstream release of GNU make (i think), and the other two, ncurses and
autoconf, I believe also trip the autochecker to see if there's a new
upstream release.

As to the actual error, I'm not sure

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

* bug#21925: Additional information for bug report: 21925
  2015-11-16 16:44   ` Ludovic Courtès
@ 2015-11-17  5:11     ` Chris Marusich
  2015-11-17  8:46       ` Ludovic Courtès
  0 siblings, 1 reply; 6+ messages in thread
From: Chris Marusich @ 2015-11-17  5:11 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 21925

Hi,

Thank you for the quick response!

> Could you apply this patch

The patch fixes the problem for me. Now, all the tests run during
"make check" succeed, and when I ran the following command, it worked
as expected:

./pre-inst-env guix package -i autoconf

Chris

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

* bug#21925: Additional information for bug report: 21925
  2015-11-17  5:11     ` Chris Marusich
@ 2015-11-17  8:46       ` Ludovic Courtès
  0 siblings, 0 replies; 6+ messages in thread
From: Ludovic Courtès @ 2015-11-17  8:46 UTC (permalink / raw)
  To: Chris Marusich; +Cc: 21925-done, 21924-done

Chris Marusich <cmmarusich@gmail.com> skribis:

>> Could you apply this patch
>
> The patch fixes the problem for me. Now, all the tests run during
> "make check" succeed, and when I ran the following command, it worked
> as expected:
>
> ./pre-inst-env guix package -i autoconf

OK, pushed as b7f4677.

Thank you for testing!

Ludo’.

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

end of thread, other threads:[~2015-11-17  8:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-14 20:42 bug#21925: "make check" fails: "guix package: error: socket: Protocol not supported" Chris Marusich
2015-11-15 10:19 ` bug#21925: Additional information for bug report: 21925 Chris Marusich
2015-11-16 16:44   ` Ludovic Courtès
2015-11-17  5:11     ` Chris Marusich
2015-11-17  8:46       ` Ludovic Courtès
2015-11-16 21:08   ` Efraim Flashner

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).