GROVEL-ERROR on Mac M2
JosephBoyd opened this issue · comments
With zmq installed via macports, I get the following after (ql:quickload :pzmq)
Subprocess #<UIOP/LAUNCH-PROGRAM::PROCESS-INFO {700A4C2FA3}>
with command ("clang" "-o"
"/Users/josephboyd/.cache/common-lisp/sbcl-2.3.8-macosx-arm64/Users/josephboyd/quicklisp/dists/quicklisp/software/pzmq-20210531-git/grovel__grovel-tmpJAIDFZTC.o"
"-c" "-g" "-Wall" "-Wundef" "-Wsign-compare"
"-Wpointer-arith" "-O3" "-g" "-Wall"
"-fdollars-in-identifiers"
"-fno-omit-frame-pointer" "-fPIC"
"-I/Users/josephboyd/quicklisp/dists/quicklisp/software/cffi-20230618-git/"
"/Users/josephboyd/.cache/common-lisp/sbcl-2.3.8-macosx-arm64/Users/josephboyd/quicklisp/dists/quicklisp/software/pzmq-20210531-git/grovel__grovel.c")
exited with error code 1
[Condition of type CFFI-GROVEL:GROVEL-ERROR]
After further research, I came across this
yitzchak/common-lisp-jupyter#32
After making the changes suggested by yitzchak to grovel.lisp and c-api.lisp the process was able to find zmq.h which is what was causing my reported error. However, in my case I received an additional error
ld: unsupported tapi file type '!tapi-tbd' in YAML file
The following link indicates that there is some issue when running conda. Once I disabled conda the package installed just fine.
https://developer.apple.com/forums/thread/722490
I hope this helps someone.