Skip to content
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

Linking error when building emacs-zmq #47

Open
zalky opened this issue Jan 13, 2024 · 1 comment
Open

Linking error when building emacs-zmq #47

zalky opened this issue Jan 13, 2024 · 1 comment

Comments

@zalky
Copy link

zalky commented Jan 13, 2024

Hi, I'm trying to install emacs-jupyter using package-install and when compiling emacs-zmq I am see the following error during the linking stage:

/bin/sh ./libtool  --tag=CC   --mode=link gcc -Ilibzmq/include -fvisibility=hidden -g -O2 -module -avoid-version -shrext   -Wl,libzmq/src/.libs/libzmq.a -v -o emacs-zmq.la -rpath /Users/zalan/src/emacs-zmq/lib emacs_zmq_la-socket.lo emacs_zmq_la-context.lo emacs_zmq_la-msg.lo emacs_zmq_la-constants.lo emacs_zmq_la-util.lo emacs_zmq_la-core.lo emacs_zmq_la-poll.lo emacs_zmq_la-emacs-zmq.lo  
libtool: link: gcc -Wl,-undefined -Wl,dynamic_lookup -o .libs/emacs-zmq-Wl,libzmq/src/.libs/libzmq.a -bundle  .libs/emacs_zmq_la-socket.o .libs/emacs_zmq_la-context.o .libs/emacs_zmq_la-msg.o .libs/emacs_zmq_la-constants.o .libs/emacs_zmq_la-util.o .libs/emacs_zmq_la-core.o .libs/emacs_zmq_la-poll.o .libs/emacs_zmq_la-emacs-zmq.o    -g -O2  
ld: warning: -undefined dynamic_lookup may not work with chained fixups
ld: can't open output file for writing: .libs/emacs-zmq-Wl,libzmq/src/.libs/libzmq.a, errno=2 for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

For some reason the output path is being concatenated with the compiler flag: .libs/emacs-zmq-Wl,libzmq/src/.libs/libzmq.a

My system info:

System info: "aarch64-apple-darwin21.1.0
OS: macOS 12.6.9 (21G726)
Emacs: GNU Emacs 28.2
emacs-jupyter: jupyter-20231204.529
emacs-zmq: zmq-20230608.1856

I've also tried to build emacs-zmq directly from the master branch of emacs-zmq (9d5679c) and I see the exact same error.

Please let me know if there's additional information that would be useful.

@bharath1097
Copy link

Facing the same issue when trying to install emacs-jupyter on macos 14.3.1 (on a M1 pro macbook pro).
Also even when I have libzmq installed in the system with zmq_poller_new, this doesn't detect it and tries to build libzmq resulting in the above linker error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants