roswell icon indicating copy to clipboard operation
roswell copied to clipboard

Installs on Ubuntu 16.04 and 20.04, fails to install on Ubuntu 19.10

Open duncan-bayne opened this issue 6 years ago • 8 comments

Environment

➜  ~ cat /etc/os-release 
NAME="Ubuntu"
VERSION="19.10 (Eoan Ermine)"
... snip ...
VERSION_CODENAME=eoan
UBUNTU_CODENAME=eoan
➜  ~ uname -a
Linux duncan-w540 5.3.0-46-generic #38-Ubuntu SMP Fri Mar 27 17:37:05 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
➜  ~ ros --version
roswell 20.04.14.105
➜  ~ ros config
Making core for Roswell...
Installing Quicklisp... Done 10008
building dump:/home/duncan/.roswell/env/roswell/impls/x86-64/linux/sbcl-bin/2.0.3/dump/roswell.core
setup.time=3796170158
sbcl-bin.version=2.0.3
default.lisp=sbcl-bin

How to reproduce the issue

I installed Roswell from source with the following:

sudo apt-get update
sudo apt-get install -y \
     autoconf \
     automake \
     autotools-dev \
     build-essential \
     libcurl4-openssl-dev

mkdir -p ~/mobili-working
git clone https://github.com/roswell/roswell ~/mobili-working/roswell
pushd ~/mobili-working/roswell
./bootstrap
./configure
make
sudo make install
popd

ros install sbcl-bin

... then attempted to install Quicklisp with ros install quicklisp

Expected behavior

I expect that:

  1. ros does not build core each time it is run.
  2. ros does not attempt to install Quicklisp each time it is run.
  3. SLIME installs correctly.

Actual result

➜  ~ ros
Making core for Roswell...
Installing Quicklisp... Done 10008
building dump:/home/duncan/.roswell/env/roswell/impls/x86-64/linux/sbcl-bin/2.0.3/dump/roswell.core
Common Lisp environment setup Utility.

Usage:
...snip...

➜  ~ ros
Making core for Roswell...
Installing Quicklisp... Done 10008
building dump:/home/duncan/.roswell/env/roswell/impls/x86-64/linux/sbcl-bin/2.0.3/dump/roswell.core
Common Lisp environment setup Utility.

Usage:
... snip ...

➜  ~ ros install quicklisp
Skip downloading http://beta.quicklisp.org/quicklisp.lisp.
Specify 'download.force=t' to download again.
; 
; caught WARNING:
;   :SB-EVAL is no longer present in *FEATURES*
ASDF could not load sb-bsd-sockets because
COMPILE-FILE-ERROR while compiling #<CL-SOURCE-FILE "asdf" "build" "asdf">.
While evaluating the form starting at line 314, column 0
  of #P"/home/duncan/.roswell/archives/quicklisp.lisp":
Unhandled UIOP/LISP-BUILD:COMPILE-FILE-ERROR in thread #<SB-THREAD:THREAD "main thread" RUNNING
                                                          {1000508083}>:
  COMPILE-FILE-ERROR while compiling #<CL-SOURCE-FILE "asdf" "build" "asdf">

Backtrace for: #<SB-THREAD:THREAD "main thread" RUNNING {1000508083}>
0: (SB-DEBUG::DEBUGGER-DISABLED-HOOK #<UIOP/LISP-BUILD:COMPILE-FILE-ERROR {1007F20343}> #<unused argument> :QUIT T)
1: (SB-DEBUG::RUN-HOOK SB-EXT:*INVOKE-DEBUGGER-HOOK* #<UIOP/LISP-BUILD:COMPILE-FILE-ERROR {1007F20343}>)
2: (INVOKE-DEBUGGER #<UIOP/LISP-BUILD:COMPILE-FILE-ERROR {1007F20343}>)
3: (ERROR UIOP/LISP-BUILD:COMPILE-FILE-ERROR :CONTEXT-FORMAT "~/asdf-action::format-action/" :CONTEXT-ARGUMENTS ((#<ASDF/LISP-ACTION:COMPILE-OP > . #<ASDF/LISP-ACTION:CL-SOURCE-FILE "asdf" "build" "asdf">)))
4: (UIOP/LISP-BUILD:CHECK-LISP-COMPILE-RESULTS NIL T T "~/asdf-action::format-action/" ((#<ASDF/LISP-ACTION:COMPILE-OP > . #<ASDF/LISP-ACTION:CL-SOURCE-FILE "asdf" "build" "asdf">)))
5: ((SB-PCL::EMF ASDF/ACTION:PERFORM) #<unused argument> #<unused argument> #<ASDF/LISP-ACTION:COMPILE-OP > #<ASDF/LISP-ACTION:CL-SOURCE-FILE "asdf" "build" "asdf">)
6: ((LAMBDA NIL :IN ASDF/ACTION:CALL-WHILE-VISITING-ACTION))
7: ((:METHOD ASDF/ACTION:PERFORM-WITH-RESTARTS :AROUND (T T)) #<ASDF/LISP-ACTION:COMPILE-OP > #<ASDF/LISP-ACTION:CL-SOURCE-FILE "asdf" "build" "asdf">) [fast-method]
... snip ...
54: (LOAD #<CONCATENATED-STREAM :STREAMS NIL {1002F83893}> :VERBOSE NIL :PRINT NIL :IF-DOES-NOT-EXIST T :EXTERNAL-FORMAT :DEFAULT)
55: ((FLET ROSWELL::BODY :IN ROSWELL:SCRIPT) #<SB-SYS:FD-STREAM for "file /home/duncan/.local/etc/roswell/install.ros" {1002F7EBD3}>)
56: (ROSWELL:SCRIPT "/home/duncan/.local/etc/roswell/install.ros" "quicklisp")
57: (ROSWELL:RUN ((:EVAL "(ros:quicklisp)") (:SCRIPT "/home/duncan/.local/etc/roswell/install.ros" "quicklisp") (:QUIT NIL)))
58: (SB-INT:SIMPLE-EVAL-IN-LEXENV (ROSWELL:RUN (QUOTE ((:EVAL "(ros:quicklisp)") (:SCRIPT "/home/duncan/.local/etc/roswell/install.ros" "quicklisp") (:QUIT NIL)))) #<NULL-LEXENV>)
59: (EVAL (ROSWELL:RUN (QUOTE ((:EVAL "(ros:quicklisp)") (:SCRIPT "/home/duncan/.local/etc/roswell/install.ros" "quicklisp") (:QUIT NIL)))))
60: (SB-IMPL::PROCESS-EVAL/LOAD-OPTIONS ((:EVAL . "(progn #-ros.init(cl:load \"/home/duncan/.local/etc/roswell/init.lisp\"))") (:EVAL . "(ros:run '((:eval\"(ros:quicklisp)\")(:script \"/home/duncan/.local/etc/roswell/install.ros\"\"quicklisp\")(:quit ())))")))
61: (SB-IMPL::TOPLEVEL-INIT)
62: ((FLET SB-UNIX::BODY :IN SB-EXT:SAVE-LISP-AND-DIE))
63: ((FLET "WITHOUT-INTERRUPTS-BODY-14" :IN SB-EXT:SAVE-LISP-AND-DIE))
64: ((LABELS SB-IMPL::RESTART-LISP :IN SB-EXT:SAVE-LISP-AND-DIE))

unhandled condition in --disable-debugger mode, quitting
; 
; compilation unit aborted
;   caught 1 fatal ERROR condition
;   caught 1 WARNING condition
➜  ~ ros install slime
While evaluating the form starting at line 1, column 0
  of #P"/home/duncan/.local/etc/roswell/install-slime.lisp":
Unhandled SB-C::INPUT-ERROR-IN-LOAD in thread #<SB-THREAD:THREAD "main thread" RUNNING
                                                 {1000508083}>:
  READ error during LOAD:

    Package QL does not exist.

      Line: 3, Column: 13, File-Position: 119

      Stream: #<SB-INT:FORM-TRACKING-STREAM for "file /home/duncan/.local/etc/roswell/util-install-quicklisp.lisp" {1003658CA3}>

Backtrace for: #<SB-THREAD:THREAD "main thread" RUNNING {1000508083}>
0: (SB-DEBUG::DEBUGGER-DISABLED-HOOK #<SB-C::INPUT-ERROR-IN-LOAD {10037BBF73}> #<unused argument> :QUIT T)
1: (SB-DEBUG::RUN-HOOK SB-EXT:*INVOKE-DEBUGGER-HOOK* #<SB-C::INPUT-ERROR-IN-LOAD {10037BBF73}>)
2: (INVOKE-DEBUGGER #<SB-C::INPUT-ERROR-IN-LOAD {10037BBF73}>)
3: (ERROR #<SB-C::INPUT-ERROR-IN-LOAD {10037BBF73}>)
4: (SB-C:COMPILER-ERROR SB-C::INPUT-ERROR-IN-LOAD :CONDITION #<SB-INT:SIMPLE-READER-PACKAGE-ERROR "Package ~A does not exist." {10037BBEC3}> :STREAM #<SB-INT:FORM-TRACKING-STREAM for "file /home/duncan/.local/etc/roswell/util-install-quicklisp.lisp" {1003658CA3}>)
5: (SB-C::%DO-FORMS-FROM-INFO #<CLOSURE (LAMBDA (SB-KERNEL:FORM &KEY :CURRENT-INDEX &ALLOW-OTHER-KEYS) :IN SB-INT:LOAD-AS-SOURCE) {100365ABAB}> #<SB-C::SOURCE-INFO {100365AB73}> SB-C::INPUT-ERROR-IN-LOAD)
6: (SB-INT:LOAD-AS-SOURCE #<SB-INT:FORM-TRACKING-STREAM for "file /home/duncan/.local/etc/roswell/util-install-quicklisp.lisp" {1003658CA3}> :VERBOSE NIL :PRINT NIL :CONTEXT "loading")
7: ((FLET SB-FASL::THUNK :IN LOAD))
8: (SB-FASL::CALL-WITH-LOAD-BINDINGS #<CLOSURE (FLET SB-FASL::THUNK :IN LOAD) {7F80E10C5F5B}> #<SB-INT:FORM-TRACKING-STREAM for "file /home/duncan/.local/etc/roswell/util-install-quicklisp.lisp" {1003658CA3}>)
... snip ...
38: (SB-INT:SIMPLE-EVAL-IN-LEXENV (ROSWELL:RUN (QUOTE ((:EVAL "(ros:quicklisp)") (:SCRIPT "/home/duncan/.local/etc/roswell/install.ros" "slime") (:QUIT NIL)))) #<NULL-LEXENV>)
39: (EVAL (ROSWELL:RUN (QUOTE ((:EVAL "(ros:quicklisp)") (:SCRIPT "/home/duncan/.local/etc/roswell/install.ros" "slime") (:QUIT NIL)))))
40: (SB-IMPL::PROCESS-EVAL/LOAD-OPTIONS ((:EVAL . "(progn #-ros.init(cl:load \"/home/duncan/.local/etc/roswell/init.lisp\"))") (:EVAL . "(ros:run '((:eval\"(ros:quicklisp)\")(:script \"/home/duncan/.local/etc/roswell/install.ros\"\"slime\")(:quit ())))")))
41: (SB-IMPL::TOPLEVEL-INIT)
42: ((FLET SB-UNIX::BODY :IN SB-EXT:SAVE-LISP-AND-DIE))
43: ((FLET "WITHOUT-INTERRUPTS-BODY-14" :IN SB-EXT:SAVE-LISP-AND-DIE))
44: ((LABELS SB-IMPL::RESTART-LISP :IN SB-EXT:SAVE-LISP-AND-DIE))

unhandled condition in --disable-debugger mode, quitting

duncan-bayne avatar Apr 18 '20 03:04 duncan-bayne

I can also reproduce this issue with Roswell installed from the .deb file at https://github.com/roswell/roswell/releases.

duncan-bayne avatar Apr 19 '20 06:04 duncan-bayne

Some more potentially relevant information; this doesn't happen in my ARM64 development environment - Ubuntu Touch, based upon Ubuntu 16.04.

phablet@pinephone:~$ cat /etc/os-release 
NAME="Ubuntu"
VERSION="16.04.6 LTS (Xenial Xerus)"
... snip ...
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial
phablet@pinephone:~/mobili$ uname -a
Linux pinephone.local 5.5.0-pine64 #1 SMP Thu Mar 26 21:33:11 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux
phablet@pinephone:~/mobili$ ros --version
roswell 20.04.14.105
phablet@pinephone:~/mobili$ ros config
emacs.type=slime
slime.version=2020.03.25
setup.time=3796249862
sbcl-bin.version=2.0.3
default.lisp=sbcl-bin

phablet@pinephone:~/mobili$ ros install slime
Installing from github 2020.03.25
Downloading http://beta.quicklisp.org/dist/quicklisp-versions.txt
[##########################################################################]100%
Downloading http://beta.quicklisp.org/dist/quicklisp/2020-03-25/distinfo.txt
[##########################################################################]100%
Downloading http://beta.quicklisp.org/dist/quicklisp/2020-03-25/releases.txt
[##########################################################################]100%
Downloading http://beta.quicklisp.org/archive/slime/2019-07-10/slime-v2.24.tgz
[##########################################################################]100%
helper.el installed in "/home/phablet/.roswell/helper.el"

To use, add this to your ~/.emacs:

  (load (expand-file-name "~/.roswell/helper.el"))

Note that on Ubuntu Touch, it doesn't seem to be building core and installing Quicklisp every time ros is called.

duncan-bayne avatar Apr 19 '20 07:04 duncan-bayne

Also, the version of SBCL is identical on both systems:

➜  ~ ros run
* (lisp-implementation-type)
"SBCL"
* (lisp-implementation-version)
"2.0.3"
* (quit) 
➜  ~ ssh pinephone.local
Welcome to Ubuntu 16.04.6 LTS (GNU/Linux 5.5.0-pine64 aarch64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

Last login: Sun Apr 19 08:34:58 2020 from 192.168.0.6
phablet@pinephone:~$ ros run
* (lisp-implementation-type)
"SBCL"
* (lisp-implementation-version)
"2.0.3"
* (quit)

duncan-bayne avatar Apr 19 '20 08:04 duncan-bayne

Same versions of ASDF, too:

➜  ~ ros run
* (require :asdf)
("uiop" "UIOP" "asdf" "ASDF")
* (in-package :asdf)
#<PACKAGE "ASDF/INTERFACE">
* *asdf-version*
"3.3.1"
* (quit)
➜  ~ ssh pinephone.local
Welcome to Ubuntu 16.04.6 LTS (GNU/Linux 5.5.0-pine64 aarch64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

Last login: Sun Apr 19 08:40:48 2020 from 192.168.0.6
phablet@pinephone:~$ ros run
* (require :asdf)
NIL
* (in-package :asdf)
#<PACKAGE "ASDF/INTERFACE">
* *asdf-version*
"3.3.1"
* (quit)

duncan-bayne avatar Apr 19 '20 13:04 duncan-bayne

I am seeing the same issue.

vaelen avatar Apr 22 '20 06:04 vaelen

I have the same issue.

tre-flip avatar Apr 25 '20 16:04 tre-flip

I'm also seeing this.

IAmRasputin avatar Apr 25 '20 17:04 IAmRasputin

I wonder if this is an Ubuntu issue? I've upgraded to Ubuntu 20.04, and can now install Roswell without any problems.

duncan-bayne avatar May 05 '20 08:05 duncan-bayne

Closing this after ~ 3 years inactivity.

duncan-bayne avatar Mar 21 '23 02:03 duncan-bayne