Dear list,
I am aware that
sagemath.org is currently migrating from UW to SMC. This seems to have serious consequences. I'm trying to build the just-released 6.7 on a machine behind a "corporate" firewall. The build fails due to the sage-spkg script being unable to download the source tarball. The root of the problem seems to be in the routine looking for the fastest server, which seems to return an empty list :
charpent@SAP5057241:/usr/local/sage-6.7$ time make
cd build && \
"../build/pipestatus" \
"env SAGE_PARALLEL_SPKG_BUILD='' ./install all 2>&1" \
"tee -a ../logs/install.log"
*** ALL ENVIRONMENT VARIABLES BEFORE BUILD: ***
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-zfRxJqhSwo,guid=ace828dfe59269a7d92282305559a27c
DESKTOP_SESSION=default
DISPLAY=:0
GDM_LANG=fr_FR.utf8
GDMSESSION=default
GJS_DEBUG_OUTPUT=stderr
GJS_DEBUG_TOPICS=JS ERROR;JS LOG
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GPG_AGENT_INFO=/run/user/1000/keyring/gpg:0:1
HOME=/home/charpent
http_proxy=http://10.172.138.20:3128
https_proxy=http://10.172.138.20:3128
LANG=fr_FR.utf8
LOGNAME=charpent
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
MAKEFLAGS=
MAKELEVEL=1
MAKE=make
MATHEMATICA_HOME=/usr/local/Wolfram/Mathematica/10.0
MFLAGS=
PATH=/usr/local/sage-6.7/src/bin:/usr/local/sage-6.7/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
PWD=/usr/local/sage-6.7/build
PYTHONPATH=/usr/local/sage-6.7/local
SAGE_EXTCODE=/usr/local/sage-6.7/local/share/sage/ext
SAGE_LOCAL=/usr/local/sage-6.7/local
SAGE_LOGS=/usr/local/sage-6.7/logs/pkgs
SAGE_MP_LIBRARY=MPIR
SAGE_ORIG_PATH_SET=True
SAGE_ORIG_PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
SAGE_PARALLEL_SPKG_BUILD=
SAGE_ROOT=/usr/local/sage-6.7
SAGE_SPKG_INST=/usr/local/sage-6.7/local/var/lib/sage/installed
SAGE_SRC=/usr/local/sage-6.7/src
SAGE_VERSION=6.7
SESSION_MANAGER=local/SAP5057241:@/tmp/.ICE-unix/1846,unix/SAP5057241:/tmp/.ICE-unix/1846
SHELL=/bin/bash
SHLVL=3
SSH_AGENT_PID=1895
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
TERM=xterm
USER=charpent
USERNAME=charpent
_=/usr/bin/env
VTE_VERSION=3801
WINDOWID=41943046
WINDOWPATH=7
XAUTHORITY=/var/run/gdm3/auth-for-charpent-JAUY2F/database
XDG_CURRENT_DESKTOP=GNOME
XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share/:/usr/share/
XDG_MENU_PREFIX=gnome-
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SESSION_DESKTOP=default
XDG_SESSION_ID=1
XDG_VTNR=7
***********************************************
make[1]: Entering directory '/usr/local/sage-6.7/build'
make base
make[2]: Entering directory '/usr/local/sage-6.7/build'
make[2]: Nothing to be done for 'base'.
make[2]: Leaving directory '/usr/local/sage-6.7/build'
env SAGE_BUILD_TOOLCHAIN=yes make toolchain
make[2]: Entering directory '/usr/local/sage-6.7/build'
make[2]: Nothing to be done for 'toolchain'.
make[2]: Leaving directory '/usr/local/sage-6.7/build'
make toolchain-deps
make[2]: Entering directory '/usr/local/sage-6.7/build'
make /usr/local/sage-6.7/local/var/lib/sage/installed/zlib-1.2.8.p0
make[3]: Entering directory '/usr/local/sage-6.7/build'
make[3]: '/usr/local/sage-6.7/local/var/lib/sage/installed/zlib-1.2.8.p0' is up to date.
make[3]: Leaving directory '/usr/local/sage-6.7/build'
make /usr/local/sage-6.7/local/var/lib/sage/installed/mpir-2.7.0-alpha12
make[3]: Entering directory '/usr/local/sage-6.7/build'
make[3]: '/usr/local/sage-6.7/local/var/lib/sage/installed/mpir-2.7.0-alpha12' is up to date.
make[3]: Leaving directory '/usr/local/sage-6.7/build'
make /usr/local/sage-6.7/local/var/lib/sage/installed/mpfr-3.1.2.p0
make[3]: Entering directory '/usr/local/sage-6.7/build'
make[3]: '/usr/local/sage-6.7/local/var/lib/sage/installed/mpfr-3.1.2.p0' is up to date.
make[3]: Leaving directory '/usr/local/sage-6.7/build'
make /usr/local/sage-6.7/local/var/lib/sage/installed/mpc-1.0.2.p0
make[3]: Entering directory '/usr/local/sage-6.7/build'
make[3]: '/usr/local/sage-6.7/local/var/lib/sage/installed/mpc-1.0.2.p0' is up to date.
make[3]: Leaving directory '/usr/local/sage-6.7/build'
make /usr/local/sage-6.7/local/var/lib/sage/installed/ppl-1.1
make[3]: Entering directory '/usr/local/sage-6.7/build'
make[3]: '/usr/local/sage-6.7/local/var/lib/sage/installed/ppl-1.1' is up to date.
make[3]: Leaving directory '/usr/local/sage-6.7/build'
make[2]: Leaving directory '/usr/local/sage-6.7/build'
make all-sage
make[2]: Entering directory '/usr/local/sage-6.7/build'
/usr/local/sage-6.7/build/pipestatus "sage-spkg -f pari-2.8-1564-gdeac36e.p0 2>&1" "tee -a /usr/local/sage-6.7/logs/pkgs/pari-2.8-1564-gdeac36e.p0.log"
Found local metadata for pari-2.8-1564-gdeac36e.p0
Attempting to download package pari-2.8-1564-gdeac36e.p0
Downloading the Sage mirror list
Searching fastest mirror
Traceback (most recent call last):
File "/usr/local/sage-6.7/src/bin/sage-download-file", line 417, in <module>
mirror_list = MirrorList()
File "/usr/local/sage-6.7/src/bin/sage-download-file", line 140, in __init__
self._rank_mirrors()
File "/usr/local/sage-6.7/src/bin/sage-download-file", line 200, in _rank_mirrors
print('Fastest mirror: ' + self.fastest)
File "/usr/local/sage-6.7/src/bin/sage-download-file", line 204, in fastest
return self.mirrors[0]
IndexError: list index out of range
Error: spkg file '/usr/local/sage-6.7/upstream/pari-2.8-1564-gdeac36e.tar.gz' not found.
This shouldn't happen, it is a bug in the sage-spkg script.
Makefile:643: recipe for target '/usr/local/sage-6.7/local/var/lib/sage/installed/pari-2.8-1564-gdeac36e.p0' failed
make[2]: *** [/usr/local/sage-6.7/local/var/lib/sage/installed/pari-2.8-1564-gdeac36e.p0] Error 1
make[2]: Leaving directory '/usr/local/sage-6.7/build'
Makefile:418: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/local/sage-6.7/build'
real 0m19.966s
user 0m0.468s
sys 0m0.128s
***************************************************************
Error building Sage.
The following package(s) may have failed to build:
package: pari-2.8-1564-gdeac36e.p0
log file: /usr/local/sage-6.7/logs/pkgs/pari-2.8-1564-gdeac36e.p0.log
build directory: /usr/local/sage-6.7/local/var/tmp/sage/build/pari-2.8-1564-gdeac36e.p0
package: sage_mode
log file: /usr/local/sage-6.7/logs/pkgs/sage_mode.log
build directory: /usr/local/sage-6.7/local/var/tmp/sage/build/sage_mode
The build directory may contain configuration files and other potentially
helpful information. WARNING: if you now run 'make' again, the build
directory will, by default, be deleted. Set the environment variable
SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this.
Makefile:19: recipe for target 'build' failed
make: *** [build] Error 1
real 0m20.760s
user 0m0.800s
sys 0m0.224s
I tried to work around this problem by specifying a mirror, to no avail :
charpent@SAP5057241:/usr/local/sage-6.7$ SAGE_SERVER=https://www-ftp.lip6.fr/pub/math/sagemath/ time make
cd build && \
"../build/pipestatus" \
"env SAGE_PARALLEL_SPKG_BUILD='' ./install all 2>&1" \
"tee -a ../logs/install.log"
*** ALL ENVIRONMENT VARIABLES BEFORE BUILD: ***
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-zfRxJqhSwo,guid=ace828dfe59269a7d92282305559a27c
DESKTOP_SESSION=default
DISPLAY=:0
GDM_LANG=fr_FR.utf8
GDMSESSION=default
GJS_DEBUG_OUTPUT=stderr
GJS_DEBUG_TOPICS=JS ERROR;JS LOG
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GPG_AGENT_INFO=/run/user/1000/keyring/gpg:0:1
HOME=/home/charpent
http_proxy=http://10.172.138.20:3128
https_proxy=http://10.172.138.20:3128
LANG=fr_FR.utf8
LOGNAME=charpent
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
MAKEFLAGS=
MAKELEVEL=1
MAKE=make
MATHEMATICA_HOME=/usr/local/Wolfram/Mathematica/10.0
MFLAGS=
PATH=/usr/local/sage-6.7/src/bin:/usr/local/sage-6.7/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
PWD=/usr/local/sage-6.7/build
PYTHONPATH=/usr/local/sage-6.7/local
SAGE_EXTCODE=/usr/local/sage-6.7/local/share/sage/ext
SAGE_LOCAL=/usr/local/sage-6.7/local
SAGE_LOGS=/usr/local/sage-6.7/logs/pkgs
SAGE_MP_LIBRARY=MPIR
SAGE_ORIG_PATH_SET=True
SAGE_ORIG_PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
SAGE_PARALLEL_SPKG_BUILD=
SAGE_ROOT=/usr/local/sage-6.7
SAGE_SERVER=https://www-ftp.lip6.fr/pub/math/sagemath/
SAGE_SPKG_INST=/usr/local/sage-6.7/local/var/lib/sage/installed
SAGE_SRC=/usr/local/sage-6.7/src
SAGE_VERSION=6.7
SESSION_MANAGER=local/SAP5057241:@/tmp/.ICE-unix/1846,unix/SAP5057241:/tmp/.ICE-unix/1846
SHELL=/bin/bash
SHLVL=3
SSH_AGENT_PID=1895
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
TERM=xterm
USER=charpent
USERNAME=charpent
_=/usr/bin/env
VTE_VERSION=3801
WINDOWID=41943046
WINDOWPATH=7
XAUTHORITY=/var/run/gdm3/auth-for-charpent-JAUY2F/database
XDG_CURRENT_DESKTOP=GNOME
XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share/:/usr/share/
XDG_MENU_PREFIX=gnome-
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SESSION_DESKTOP=default
XDG_SESSION_ID=1
XDG_VTNR=7
***********************************************
make[1]: Entering directory '/usr/local/sage-6.7/build'
make base
make[2]: Entering directory '/usr/local/sage-6.7/build'
make[2]: Nothing to be done for 'base'.
make[2]: Leaving directory '/usr/local/sage-6.7/build'
env SAGE_BUILD_TOOLCHAIN=yes make toolchain
make[2]: Entering directory '/usr/local/sage-6.7/build'
make[2]: Nothing to be done for 'toolchain'.
make[2]: Leaving directory '/usr/local/sage-6.7/build'
make toolchain-deps
make[2]: Entering directory '/usr/local/sage-6.7/build'
make /usr/local/sage-6.7/local/var/lib/sage/installed/zlib-1.2.8.p0
make[3]: Entering directory '/usr/local/sage-6.7/build'
make[3]: '/usr/local/sage-6.7/local/var/lib/sage/installed/zlib-1.2.8.p0' is up to date.
make[3]: Leaving directory '/usr/local/sage-6.7/build'
make /usr/local/sage-6.7/local/var/lib/sage/installed/mpir-2.7.0-alpha12
make[3]: Entering directory '/usr/local/sage-6.7/build'
make[3]: '/usr/local/sage-6.7/local/var/lib/sage/installed/mpir-2.7.0-alpha12' is up to date.
make[3]: Leaving directory '/usr/local/sage-6.7/build'
make /usr/local/sage-6.7/local/var/lib/sage/installed/mpfr-3.1.2.p0
make[3]: Entering directory '/usr/local/sage-6.7/build'
make[3]: '/usr/local/sage-6.7/local/var/lib/sage/installed/mpfr-3.1.2.p0' is up to date.
make[3]: Leaving directory '/usr/local/sage-6.7/build'
make /usr/local/sage-6.7/local/var/lib/sage/installed/mpc-1.0.2.p0
make[3]: Entering directory '/usr/local/sage-6.7/build'
make[3]: '/usr/local/sage-6.7/local/var/lib/sage/installed/mpc-1.0.2.p0' is up to date.
make[3]: Leaving directory '/usr/local/sage-6.7/build'
make /usr/local/sage-6.7/local/var/lib/sage/installed/ppl-1.1
make[3]: Entering directory '/usr/local/sage-6.7/build'
make[3]: '/usr/local/sage-6.7/local/var/lib/sage/installed/ppl-1.1' is up to date.
make[3]: Leaving directory '/usr/local/sage-6.7/build'
make[2]: Leaving directory '/usr/local/sage-6.7/build'
make all-sage
make[2]: Entering directory '/usr/local/sage-6.7/build'
/usr/local/sage-6.7/build/pipestatus "sage-spkg -f pari-2.8-1564-gdeac36e.p0 2>&1" "tee -a /usr/local/sage-6.7/logs/pkgs/pari-2.8-1564-gdeac36e.p0.log"
Found local metadata for pari-2.8-1564-gdeac36e.p0
Attempting to download package pari-2.8-1564-gdeac36e.p0
Downloading the Sage mirror list
Searching fastest mirror
Traceback (most recent call last):
File "/usr/local/sage-6.7/src/bin/sage-download-file", line 417, in <module>
mirror_list = MirrorList()
File "/usr/local/sage-6.7/src/bin/sage-download-file", line 140, in __init__
self._rank_mirrors()
File "/usr/local/sage-6.7/src/bin/sage-download-file", line 200, in _rank_mirrors
print('Fastest mirror: ' + self.fastest)
File "/usr/local/sage-6.7/src/bin/sage-download-file", line 204, in fastest
return self.mirrors[0]
IndexError: list index out of range
Error: spkg file '/usr/local/sage-6.7/upstream/pari-2.8-1564-gdeac36e.tar.gz' not found.
This shouldn't happen, it is a bug in the sage-spkg script.
Makefile:643: recipe for target '/usr/local/sage-6.7/local/var/lib/sage/installed/pari-2.8-1564-gdeac36e.p0' failed
make[2]: *** [/usr/local/sage-6.7/local/var/lib/sage/installed/pari-2.8-1564-gdeac36e.p0] Error 1
make[2]: Leaving directory '/usr/local/sage-6.7/build'
Makefile:418: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/local/sage-6.7/build'
real 0m20.108s
user 0m0.492s
sys 0m0.096s
***************************************************************
Error building Sage.
The following package(s) may have failed to build:
package: pari-2.8-1564-gdeac36e.p0
log file: /usr/local/sage-6.7/logs/pkgs/pari-2.8-1564-gdeac36e.p0.log
build directory: /usr/local/sage-6.7/local/var/tmp/sage/build/pari-2.8-1564-gdeac36e.p0
package: sage_mode
log file: /usr/local/sage-6.7/logs/pkgs/sage_mode.log
build directory: /usr/local/sage-6.7/local/var/tmp/sage/build/sage_mode
The build directory may contain configuration files and other potentially
helpful information. WARNING: if you now run 'make' again, the build
directory will, by default, be deleted. Set the environment variable
SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this.
Makefile:19: recipe for target 'build' failed
make: *** [build] Error 1
Command exited with non-zero status 2
0.83user 0.20system 0:21.59elapsed 4%CPU (0avgtext+0avgdata 21032maxresident)k
5008inputs+200outputs (52major+105544minor)pagefaults 0swaps
Is there another way to work around this problem ?
Sincerely,
--
Emmanuel Charpentier