emacs-jupyter / jupyter

An interface to communicate with Jupyter kernels.
GNU General Public License v3.0
944 stars 93 forks source link

Symbol's Value as Variable is Void: zmq-REQ #428

Open harrycheon opened 1 year ago

harrycheon commented 1 year ago

I'm getting this error as #22. None of the solutions suggested worked for me.

I've also tried the suggestion in https://github.com/nnicandro/emacs-zmq/issues/33, but to no avail.

I am on macOS Ventura with

gcc 12.1.0 emacs 28.2

make EMACS=/opt/homebrew/Cellar/emacs-plus@28/28.2/Emacs.app/Contents/MacOS/Emacs
/Applications/Xcode.app/Contents/Developer/usr/bin/make configure
cd src && ./configure CPPFLAGS="" \
        --host= --prefix=/Users/harrycheon/.crafted-emacs/elpa/zmq-0.10.10 \
        --enable-shared=emacs-zmq --enable-static=zeromq \
        --without-docs --enable-drafts=yes --enable-libunwind=no \
        --disable-curve-keygen --disable-perf --disable-eventfd
checking for a BSD-compatible install... /opt/homebrew/bin/ginstall -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /opt/homebrew/bin/gmkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/Users/harrycheon/.crafted-emacs/elpa/zmq-0.10.10/src':
configure: error: C compiler cannot create executables
See `config.log' for more details
make[1]: *** [configure] Error 77
make: *** [src/Makefile] Error 2

make test returns

emacs -nw -Q -batch -L . -l ert -l zmq-tests.el \
        --eval "(ert-run-tests-batch-and-exit)"
Checking for compatible module binary to download
ZMQ module not found. Building it

Compilation exited abnormally with code 2
Something went wrong when compiling the ZMQ module!
Debugger entered--Lisp error: (void-function zmq-version)
  (zmq-version)
  (message "ZMQ Version: %s" (zmq-version))
  eval-buffer(#<buffer  *load*> nil "/Users/harrycheon/.crafted-emacs/elpa/zmq-0.10.10/..." nil t)  ; Reading at buffer position 1053
  load-with-code-conversion("/Users/harrycheon/.crafted-emacs/elpa/zmq-0.10.10/..." "/Users/harrycheon/.crafted-emacs/elpa/zmq-0.10.10/..." nil t)
  load("/Users/harrycheon/.crafted-emacs/elpa/zmq-0.10.10/..." nil t)
  command-line-1(("-L" "." "-l" "ert" "-l" "zmq-tests.el" "--eval" "(ert-run-tests-batch-and-exit)"))
  command-line()
  normal-top-level()

make: *** [test] Error 255
nnicandro commented 1 year ago

It looks like the C compiler being used is gcc. Typically on MacOSX it is clang. Maybe try make EMACS=... CC=clang?

memeplex commented 8 months ago

This also happened to me in macOS Sonoma. But it's because aclocal is not installed, not because of the compiler. You need to install automake with brew.

neolee commented 1 month ago

Happens to me on macOS Sonoma, Emacs 29.4. After recent update of emacs-jupyter error message occurs and cannot render PDF from org file:

defconst: Symbol’s value as variable is void: zmq-REQ