New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build from http://pgloader.io/download.html : You need ASDF >= 3.1 to load this system correctly. #497

Closed
mfn opened this Issue Dec 28, 2016 · 3 comments

Comments

Projects
None yet
2 participants
@mfn

mfn commented Dec 28, 2016

I downloaded http://pgloader.io/files/pgloader-latest.tgz on Ubuntu 14.04 LTS, unpacked and ran make:

$  make
mkdir -p build
curl -o build/quicklisp.lisp http://beta.quicklisp.org/quicklisp.lisp
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 57144  100 57144    0     0   595k      0 --:--:-- --:--:-- --:--:--  600k
sbcl --noinform --no-sysinit --no-userinit --load build/quicklisp.lisp                        \
             --load src/getenv.lisp                                               \
             --eval '(quicklisp-quickstart:install :path "build/quicklisp" :proxy (getenv "http_proxy"))' \
             --eval '(quit)'

  ==== quicklisp quickstart 2015-01-28 loaded ====

    To continue with installation, evaluate: (quicklisp-quickstart:install)

    For installation options, evaluate: (quicklisp-quickstart:help)

WARNING: Making quicklisp part of the install pathname directory
; Fetching #<URL "http://beta.quicklisp.org/client/quicklisp.sexp">
; 0.82KB
==================================================
838 bytes in 0.01 seconds (102.29KB/sec)
; Fetching #<URL "http://beta.quicklisp.org/client/2016-02-22/quicklisp.tar">
; 240.00KB
==================================================
245,760 bytes in 0.06 seconds (4000.00KB/sec)
; Fetching #<URL "http://beta.quicklisp.org/client/2015-09-24/setup.lisp">
; 4.94KB
==================================================
5,054 bytes in 0.00 seconds (4935.55KB/sec)
; Fetching #<URL "http://beta.quicklisp.org/asdf/2.26/asdf.lisp">
; 194.07KB
==================================================
198,729 bytes in 0.05 seconds (3960.64KB/sec)
; Fetching #<URL "http://beta.quicklisp.org/dist/quicklisp.txt">
; 0.40KB
==================================================
408 bytes in 0.01 seconds (66.41KB/sec)
Installing dist "quicklisp" version "2016-12-08".
; Fetching #<URL "http://beta.quicklisp.org/dist/quicklisp/2016-12-08/releases.txt">
; 346.27KB
==================================================
354,577 bytes in 0.07 seconds (5092.16KB/sec)
; Fetching #<URL "http://beta.quicklisp.org/dist/quicklisp/2016-12-08/systems.txt">
; 248.55KB
==================================================
254,516 bytes in 0.06 seconds (4360.54KB/sec)

  ==== quicklisp installed ====

    To load a system, use: (ql:quickload "system-name")

    To find systems, use: (ql:system-apropos "term")

    To load Quicklisp every time you start Lisp, use: (ql:add-to-init-file)

    For more information, see http://www.quicklisp.org/beta/

git clone --depth 1 https://github.com/dimitri/cl-ixf.git build/quicklisp/local-projects/cl-ixf
Cloning into 'build/quicklisp/local-projects/cl-ixf'...
remote: Counting objects: 11, done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 11 (delta 0), reused 2 (delta 0), pack-reused 0
Unpacking objects: 100% (11/11), done.
Checking connectivity... done.
git clone --depth 1 https://github.com/dimitri/cl-db3.git build/quicklisp/local-projects/cl-db3
Cloning into 'build/quicklisp/local-projects/cl-db3'...
remote: Counting objects: 6, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 6 (delta 1), reused 3 (delta 0), pack-reused 0
Unpacking objects: 100% (6/6), done.
Checking connectivity... done.
git clone --depth 1 https://github.com/AccelerationNet/cl-csv.git build/quicklisp/local-projects/cl-csv
Cloning into 'build/quicklisp/local-projects/cl-csv'...
remote: Counting objects: 25, done.
remote: Compressing objects: 100% (20/20), done.
remote: Total 25 (delta 5), reused 15 (delta 3), pack-reused 0
Unpacking objects: 100% (25/25), done.
Checking connectivity... done.
git clone --depth 1 https://github.com/qitab/qmynd.git build/quicklisp/local-projects/qmynd
Cloning into 'build/quicklisp/local-projects/qmynd'...
remote: Counting objects: 50, done.
remote: Compressing objects: 100% (50/50), done.
remote: Total 50 (delta 11), reused 5 (delta 0), pack-reused 0
Unpacking objects: 100% (50/50), done.
Checking connectivity... done.
sbcl --noinform --no-sysinit --no-userinit --load build/quicklisp/setup.lisp                 \
             --eval '(push "/appl/project/pgloader/pgloader-3.3.2/" asdf:*central-registry*)'      \
             --eval '(ql:quickload "pgloader")'                     \
             --eval '(quit)'
To load "pgloader":
  Load 1 ASDF system:
    pgloader
; Loading "pgloader"
To load "cl-log":
  Install 1 Quicklisp release:
    cl-log
; Fetching #<URL "http://beta.quicklisp.org/archive/cl-log/2013-01-28/cl-log.1.0.1.tgz">
; 18.03KB
==================================================
18,463 bytes in 0.01 seconds (3005.05KB/sec)
; Loading "cl-log"
[package com.ravenbrook.common-lisp-log]....
; Loading "pgloader"
To load "postmodern":
  Install 5 Quicklisp releases:
    alexandria bordeaux-threads closer-mop md5 postmodern
; Fetching #<URL "http://beta.quicklisp.org/archive/closer-mop/2016-10-31/closer-mop-20161031-git.tgz">
; 22.07KB
==================================================
22,596 bytes in 0.00 seconds (11033.20KB/sec)
; Fetching #<URL "http://beta.quicklisp.org/archive/md5/2015-08-04/md5-20150804-git.tgz">
; 12.40KB
==================================================
12,696 bytes in 0.00 seconds (12398.44KB/sec)
; Fetching #<URL "http://beta.quicklisp.org/archive/alexandria/2016-12-04/alexandria-20161204-git.tgz">
; 49.88KB
==================================================
51,078 bytes in 0.02 seconds (2267.31KB/sec)
; Fetching #<URL "http://beta.quicklisp.org/archive/bordeaux-threads/2016-03-18/bordeaux-threads-v0.8.5.tgz">
; 19.63KB
==================================================
20,105 bytes in 0.00 seconds (9816.89KB/sec)
; Fetching #<URL "http://beta.quicklisp.org/archive/postmodern/2016-12-04/postmodern-20161204-git.tgz">
; 103.34KB
==================================================
105,823 bytes in 0.04 seconds (2649.81KB/sec)
; Loading "postmodern"

debugger invoked on a LOAD-SYSTEM-DEFINITION-ERROR in thread #<THREAD "main thread" RUNNING {1002A8BB33}>: Error while trying to load definition for system bordeaux-threads from pathname /appl/project/pgloader/p
gloader-3.3.2/build/quicklisp/dists/quicklisp/software/bordeaux-threads-v0.8.5/bordeaux-threads.asd: READ error during COMPILE-FILE: You need ASDF >= 3.1 to load this system correctly.(in form starting at line:
 1, column: 0, file-position: 0)

Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
  0: [ABORT                                 ] Abort loading file "/appl/project/pgloader/pgloader-3.3.2/build/quicklisp/dists/quicklisp/software/bordeaux-threads-v0.8.5/bordeaux-threads.asd".
  1: [REINITIALIZE-SOURCE-REGISTRY-AND-RETRY] Retry finding system bordeaux-threads after reinitializing the source-registry.
  2:                                          Give up on "postmodern"
  3:                                          Give up on "pgloader"
  4: [CONTINUE                              ] Ignore runtime option --eval "(ql:quickload \"pgloader\")".
  5:                                          Skip rest of --eval and --load options.
  6:                                          Skip to toplevel READ/EVAL/PRINT loop.
  7: [EXIT                                  ] Exit SBCL (calling #'EXIT, killing the process).

((FLET #:LAMBDA10578 :IN ASDF/FIND-SYSTEM:LOAD-ASD) #<SB-C::INPUT-ERROR-IN-COMPILE-FILE {1005068123}>)
0]

As can be seen, it downloads asdf but in version 2.26.

$  sbcl --version
SBCL 1.1.14.debian
@mfn

This comment has been minimized.

Show comment
Hide comment
@mfn

mfn Dec 28, 2016

PS: I get the same in current master branch too

mfn commented Dec 28, 2016

PS: I get the same in current master branch too

@dimitri

This comment has been minimized.

Show comment
Hide comment
@dimitri

dimitri Dec 28, 2016

Owner

ASDF is provided for by the implementation (sbcl or ccl, etc), and 1.1.14 is way to old. Please use something modern enough, see http://www.sbcl.org/platform-table.html and https://packages.debian.org/search?keywords=sbcl to have an idea about what that means.

Also if you're building yourself and having large dataset and some other issues with SBCL, consider building against Clozure CL (or CCL); it provides a much better Garbage Collector and thus the user experience with pgloader usually is much better, sometimes even in terms of raw performances.

Owner

dimitri commented Dec 28, 2016

ASDF is provided for by the implementation (sbcl or ccl, etc), and 1.1.14 is way to old. Please use something modern enough, see http://www.sbcl.org/platform-table.html and https://packages.debian.org/search?keywords=sbcl to have an idea about what that means.

Also if you're building yourself and having large dataset and some other issues with SBCL, consider building against Clozure CL (or CCL); it provides a much better Garbage Collector and thus the user experience with pgloader usually is much better, sometimes even in terms of raw performances.

@mfn

This comment has been minimized.

Show comment
Hide comment
@mfn

mfn Dec 28, 2016

Ok, but the current https://github.com/dimitri/pgloader/blob/master/INSTALL.md#debian says:

We need a recent enough SBCL version and that means backporting the one found in sid rather than using the very old one found in current stable debian release. See bootstrap-debian.sh for details about how to backport a recent enough SBCL here (1.1.14 or newer).

As I'm having 1.1.14, I assumed I was covered.

I've no problem turning this into a documentation issue, I was able to get a more recent packaged version form simply downloading http://apt.postgresql.org/pub/repos/apt/pool/main/p/pgloader/pgloader_3.3.2%2bdfsg-1%7epgdg14.04%2b1_amd64.deb and installing it manually 👍

mfn commented Dec 28, 2016

Ok, but the current https://github.com/dimitri/pgloader/blob/master/INSTALL.md#debian says:

We need a recent enough SBCL version and that means backporting the one found in sid rather than using the very old one found in current stable debian release. See bootstrap-debian.sh for details about how to backport a recent enough SBCL here (1.1.14 or newer).

As I'm having 1.1.14, I assumed I was covered.

I've no problem turning this into a documentation issue, I was able to get a more recent packaged version form simply downloading http://apt.postgresql.org/pub/repos/apt/pool/main/p/pgloader/pgloader_3.3.2%2bdfsg-1%7epgdg14.04%2b1_amd64.deb and installing it manually 👍

@dimitri dimitri closed this in 024579c Jan 28, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment