dimitri / pgloader

Migrate to PostgreSQL in a single command!
http://pgloader.io
Other
5.42k stars 546 forks source link

arm64: Fatal TYPE-ERROR: The value 64 is not of type (INTEGER -32 63) #490

Closed df7cb closed 7 years ago

df7cb commented 7 years ago

pgloader used to build (and hopefully work :) fine on arm64, but now the build is failing: https://buildd.debian.org/status/fetch.php?pkg=pgloader&arch=arm64&ver=3.3.2%2Bdfsg-1&stamp=1480785487

;; loading file #P"/usr/share/common-lisp/source/cl-asdf/build/asdf.lisp"
;; loading system "asdf-finalizers"
;; loading system "asdf-system-connections"
;; loading system "pgloader"
Fatal TYPE-ERROR:
  The value
    64
  is not of type
    (INTEGER -32 63)
dimitri commented 7 years ago

If you have access to such an arm64 machine, can you manually enter the following session to get more information:

sbcl
* (require :asdf)
* (asdf:load-system :pgloader)

Thanks!

df7cb commented 7 years ago

Seems to come from https://github.com/froydnj/ironclad/blob/master/src/digests/skein.lisp#L169

df7cb commented 7 years ago

Do we have a plan to fix this? Given it compiled on arm64 in Debian before, this is a release critical bug.

dimitri commented 7 years ago

As I have no plan to fix it in pgloader I just opened an issue in Ironclad where the maintainers there might be helpful.

glv2 commented 7 years ago

Do you have a log of the compilation of ironclad of this arm64 machine?

sbcl
* (require :asdf)
* (asdf:load-system :ironclad)
df7cb commented 7 years ago
; /home/myon/.cache/common-lisp/sbcl-1.3.11.debian-linux-arm64/usr/share/common-lisp/source/ironclad/src/digests/whirlpool-tmpZE69DN33.fasl written
; compilation finished in 0:00:03.047
; compiling file "/usr/share/common-lisp/source/ironclad/src/digests/tree-hash.lisp" (written 22 NOV 2016 09:17:20 PM):
; compiling (IN-PACKAGE :CRYPTO)
; compiling (DEFPARAMETER *LEAF-BYTE* ...)
; compiling (DEFPARAMETER *INTERNAL-BYTE* ...)
; compiling (DEFUN MAKE-TREE-HASH-LEAF-DIGEST ...)
; compiling (DEFSTRUCT (TREE-HASH # ...) ...)
; compiling (DEFUN %MAKE-TREE-HASH-DIGEST ...)
; compiling (DEFUN MAKE-TIGER-TREE-HASH ...)
; compiling (DEFMETHOD BLOCK-LENGTH ...)
; compiling (DEFMETHOD DIGEST-LENGTH ...)
; compiling (DEFMETHOD REINITIALIZE-INSTANCE ...)
; compiling (DEFMETHOD COPY-DIGEST ...)
; compiling (DEFINE-DIGEST-UPDATER TREE-HASH ...)
; compiling (DEFUN UPDATE-TREE-HASH-BRANCH ...)
; compiling (DEFUN MERGE-TREE-HASH-BRANCH ...)
; compiling (DEFUN COMBINE-HASH-TREE-DIGESTS ...)
; compiling (DEFMETHOD PRODUCE-DIGEST ...)
; compiling (SETF (GET # ...) ...)
; compiling (SETF (GET # ...) ...)

; /home/myon/.cache/common-lisp/sbcl-1.3.11.debian-linux-arm64/usr/share/common-lisp/source/ironclad/src/digests/tree-hash-tmpG8099TO3.fasl written
; compilation finished in 0:00:00.229
; compiling file "/usr/share/common-lisp/source/ironclad/src/digests/skein.lisp" (written 22 NOV 2016 09:17:20 PM):
; compiling (IN-PACKAGE :CRYPTO)
; compiling (DEFCONSTANT +SKEIN-KEY+ ...)
; compiling (DEFCONSTANT +SKEIN-CFG+ ...)
; compiling (DEFCONSTANT +SKEIN-PRS+ ...)
; compiling (DEFCONSTANT +SKEIN-PK+ ...)
; compiling (DEFCONSTANT +SKEIN-KDF+ ...)
; compiling (DEFCONSTANT +SKEIN-NON+ ...)
; compiling (DEFCONSTANT +SKEIN-MSG+ ...)
; compiling (DEFCONSTANT +SKEIN-OUT+ ...)
; compiling (DECLAIM (TYPE # ...))
; compiling (DECLAIM (TYPE # ...))
; compiling (DECLAIM (TYPE # ...))
; compiling (DEFCONST +SKEIN256-IV-128+ ...)
; compiling (DEFCONST +SKEIN256-IV-160+ ...)
; compiling (DEFCONST +SKEIN256-IV-224+ ...)
; compiling (DEFCONST +SKEIN256-IV-256+ ...)
; compiling (DEFCONST +SKEIN512-IV-128+ ...)
; compiling (DEFCONST +SKEIN512-IV-160+ ...)
; compiling (DEFCONST +SKEIN512-IV-224+ ...)
; compiling (DEFCONST +SKEIN512-IV-256+ ...)
; compiling (DEFCONST +SKEIN512-IV-384+ ...)
; compiling (DEFCONST +SKEIN512-IV-512+ ...)
; compiling (DEFCONST +SKEIN1024-IV-384+ ...)
; compiling (DEFCONST +SKEIN1024-IV-512+ ...)
; compiling (DEFCONST +SKEIN1024-IV-1024+ ...)
; compiling (DEFUN SKEIN-GET-IV ...)
; compiling (DEFUN SKEIN-INCREMENT-COUNTER ...)
debugger invoked on a TYPE-ERROR in thread
#<THREAD "main thread" RUNNING {10030982A3}>:
  The value
    64
  is not of type
    (INTEGER -32 63)

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

restarts (invokable by number or by possibly-abbreviated name):
  0: [RETRY                        ] Retry
                                     compiling #<IRONCLAD-SOURCE-FILE "ironclad" "src" "digests" "skein">.
  1: [ACCEPT                       ] Continue, treating
                                     compiling #<IRONCLAD-SOURCE-FILE "ironclad" "src" "digests" "skein">
                                     as having been successful.
  2:                                 Retry ASDF operation.
  3: [CLEAR-CONFIGURATION-AND-RETRY] Retry ASDF operation after resetting the
                                     configuration.
  4: [ABORT                        ] Exit debugger, returning to top level.

(SB-ARM64-ASM::EMIT-BITFIELD #<SB-ASSEM:SEGMENT :TYPE :REGULAR> 1 2 1 33 64 4 1) [tl,external]
0]

I'm trying to apply to the patch from froydnj/ironclad#78, but so far didn't manage to convince sbcl to really load the patched file. (Or the patch doesn't fix the problem, but the explanation is likely my non-experience with buildapp.)

dimitri commented 7 years ago

Closing because not really a pgloader bug, even if pgloader is exposing it in its build system. Also because I want to clean-up the issues list. Please re-open if deemed necessary.