Lisp HUG Maillist Archive

LW7.0 install zeromq fail

Hello All:
1. I use the cffi manual load the "libzmq.dll" in windows 7/ windows 10, works fine.


CL-USER 6 > (cffi:define-foreign-library zeromq
              (:windows "libzmq.dll"))
ZEROMQ

CL-USER 7 > (cffi:use-foreign-library zeromq)
#<CFFI:FOREIGN-LIBRARY ZEROMQ "libzmq.dll">

CL-USER 8 >

2. Fail while use quicklisp install it. the following is the error message, any help?
different error information in windows7 and windows 10. why?

and my asdf version is 3.1.4

CL-USER 8 > (asdf/upgrade:asdf-version)
"3.1.4"

CL-USER 9 >

CL-USER 1 > (ql:quickload "zeromq")

**++++ Error in ASDF/BUNDLE:BUNDLE-PATHNAME-TYPE:
  Illegal car (OS-WINDOWS-P) in compound form ((OS-WINDOWS-P) (IF (FEATUREP (QUOTE (:OR :MINGW32 :MINGW64))) "o" "obj")).
; *** 1 error detected, no fasl file produced.

Error: Error while trying to load definition for system zeromq from pathname
       C:\Users\Administrator\quicklisp\dists\quicklisp\software\cl-zmq-20160318-git\zeromq.asd:
          COMPILE-FILE-ERROR while compiling #<CL-SOURCE-FILE "cffi-toolchain" "toolchain" "bundle">
   1 (continue) Retry compiling #<CL-SOURCE-FILE "cffi-toolchain" "toolchain" "bundle">.
   2 Continue, treating compiling #<CL-SOURCE-FILE "cffi-toolchain" "toolchain" "bundle"> as having
     been successful.
   3 Try loading C:\Users\Administrator\quicklisp\dists\quicklisp\software\cl-zmq-20160318-git\zeromq.asd again.
   4 Give up loading C:\Users\Administrator\quicklisp\dists\quicklisp\software\cl-zmq-20160318-git\zeromq.asd.
   5 Try loading another file instead of C:\Users\Administrator\quicklisp\dists\quicklisp\software\cl-zmq-20160318-git\zeromq.asd.
   6 Retry ASDF operation.
   7 Retry ASDF operation after resetting the configuration.
   8 (abort) Give up on "zeromq"
   9 Return to level 0.
  10 Return to top loop level 0.

Type :b for backtrace or :c <option number> to proceed.
Type :bug-form "<subject>" for a bug report template or :? for other options.

ASDF/USER 2 : 1 >






CL-USER 1 > (ql:quickload "zeromq")
To load "zeromq":
  Load 1 ASDF system:
    zeromq
; Loading "zeromq"
; gcc -m64 -o C:\Users\chaoqi\AppData\Local\common-lisp\cache\lw-7.0.0-win-x64\C\Users\chaoqi\quicklisp\dists\quicklisp\software\cl-zmq-20160318-git\src\grovel__grovel-tmpHUOOFYXZ.exe -IC:\Users\chaoqi\quicklisp\dists\quicklisp\software\cffi_0.18.0\ C:\Users\chaoqi\AppData\Local\common-lisp\cache\lw-7.0.0-win-x64\C\Users\chaoqi\quicklisp\dists\quicklisp\software\cl-zmq-20160318-git\src\grovel__grovel.c

Error: Subprocess run with command ("gcc" "-m64" "-o" "C:\\Users\\chaoqi\\AppData\\Local\\common-lisp\\cache\\lw-7.0.0-win-x64\\C\\Users\\chaoqi\\quicklisp\\dists\\quicklisp\\software\\cl-zmq-20160318-git\\src\\grovel__grovel-tmpHUOOFYXZ.exe" "-IC:\\Users\\chaoqi\\quicklisp\\dists\\quicklisp\\software\\cffi_0.18.0\\" "C:\\Users\\chaoqi\\AppData\\Local\\common-lisp\\cache\\lw-7.0.0-win-x64\\C\\Users\\chaoqi\\quicklisp\\dists\\quicklisp\\software\\cl-zmq-20160318-git\\src\\grovel__grovel.c") exited with error code 1
  1 (continue) Retry PROCESS-OP on #<CFFI-GROVEL:GROVEL-FILE "zeromq" "src" "grovel">.
  2 Continue, treating PROCESS-OP on #<CFFI-GROVEL:GROVEL-FILE "zeromq" "src" "grovel"> as having been successful.
  3 Retry ASDF operation.
  4 Retry ASDF operation after resetting the configuration.
  5 (abort) Give up on "zeromq"
  6 Return to level 0.
  7 Return to top loop level 0.

Type :b for backtrace or :c <option number> to proceed.
Type :bug-form "<subject>" for a bug report template or :? for other options.

CL-USER 2 : 1 > 


update:LW7.0 install zeromq fail


Hello All:

I use the LispWorks7.0 to load the zeromq on my PC with windows 10, and got the error message as below:

    CL-USER 13 > (ql:quickload :zeromq)
To load "zeromq":
  Load 1 ASDF system:
    zeromq
; Loading "zeromq"
; gcc -o C:\Users\chaoqi\AppData\Local\common-lisp\cache\lw-7.0.0-win-x64\g\third_codes\quicklisp\dists\quicklisp\software\cl-zmq-20160318-git\src\grovel__grovel-tmpXOBV8AQ3.obj -c -m64 -Ig:\third_codes\quicklisp\dists\quicklisp\software\cffi_0.19.0\ C:\Users\chaoqi\AppData\Local\common-lisp\cache\lw-7.0.0-win-x64\g\third_codes\quicklisp\dists\quicklisp\software\cl-zmq-20160318-git\src\grovel__grovel.c

Error: Subprocess run with command ("gcc" "-o" "C:\\Users\\chaoqi\\AppData\\Local\\common-lisp\\cache\\lw-7.0.0-win-x64\\g\\third_codes\\quicklisp\\dists\\quicklisp\\software\\cl-zmq-20160318-git\\src\\grovel__grovel-tmpXOBV8AQ3.obj" "-c" "-m64" "-Ig:\\third_codes\\quicklisp\\dists\\quicklisp\\software\\cffi_0.19.0\\" "C:\\Users\\chaoqi\\AppData\\Local\\common-lisp\\cache\\lw-7.0.0-win-x64\\g\\third_codes\\quicklisp\\dists\\quicklisp\\software\\cl-zmq-20160318-git\\src\\grovel__grovel.c") exited with error code 1
  1 (continue) Retry PROCESS-OP on #<CFFI-GROVEL:GROVEL-FILE "zeromq" "src" "grovel">.
  2 Continue, treating PROCESS-OP on #<CFFI-GROVEL:GROVEL-FILE "zeromq" "src" "grovel"> as having been successful.
  3 Retry ASDF operation.
  4 Retry ASDF operation after resetting the configuration.
  5 (abort) Give up on "zeromq"
  6 Return to level 0.
  7 Return to top loop level 0.

Type :b for backtrace or :c <option number> to proceed.
Type :bug-form "<subject>" for a bug report template or :? for other options.

CL-USER 14 : 1 > 

I'm sure that, I use my Vistual Studio 2015 and compiled the x64 version libzmq.dll and set the cffi path ok.
Because I use the ccl with lispbox install the zeromq and work fine, the output message as below:

CL-USER> (ql:quickload :zeromq)
To load "zeromq":
  Load 1 ASDF system:
    zeromq
; Loading "zeromq"

(:ZEROMQ)
CL-USER> 

I want to known, why error message with gcc stuff and how to fix this.
As I know, it just loads the dll where the cffi:foreign-library-directories pointed.

Any help will be appreciated.

Updated at: 2020-12-10 08:30 UTC