You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello everyone, I can't seem to get a lead on this. My company's working with procket and having just been assigned a new apple computer, it fails to compile with:
❯ mix deps.compile procket
/Library/Developer/CommandLineTools/usr/bin/make -f /path_to/deps/procket/c_src/Makefile.ancillary
make[1]: Nothing to be done for `all'.
cc -m64 -g -Wall -o /path_to/deps/procket/priv/procket -L/path_to/deps/procket/c_src procket_cmd.c -lancillary
ld: warning: ignoring file '/path_to/deps/procket/c_src/libancillary.a[3](fd_recv.o)': found architecture 'x86_64', required architecture 'arm64'
ld: warning: ignoring file '/path_to/deps/procket/c_src/libancillary.a[2](fd_send.o)': found architecture 'x86_64', required architecture 'arm64'
Undefined symbols for architecture arm64:
"_ancil_send_fd", referenced from:
_procket_pipe in procket_cmd-3c70fe.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [cmd] Error 1
===> Hook for compile failed!
** (Mix) Could not compile dependency :procket, "/user/.asdf/installs/elixir/1.11.4-otp-23/.mix/rebar3 bare compile --paths="/path_to/_build/dev/lib/*/ebin"" command failed. You can recompile this dependency with "mix deps.compile procket", update it with "mix deps.update procket" or clean it with "mix deps.clean procket"
The environment:
MacOS X Sonoma 14.5
chip: Apple M2
running Elixir/Erlang on asdf:
❯ asdf current
elixir 1.11.4-otp-23 /path_to/.tool-versions
erlang 23.3.4.4 /path_to/.tool-versions
Elixir and Erlang don't seem to have any trouble running, so I guess the problem is with a pre-compiled dependency not working on the Apple M2 chip or something? I couldn't find any lead googling and the only one I found in the previous or ongoing issues on this repository seems not to be related.
Any ideas? Has anyone managed to compile this on a M2 chip?
Thanks in advance.
The text was updated successfully, but these errors were encountered:
Well, i'm going to just close it because it might have had something to do with some wonky dependency state. I tried to mix deps.clean procket and mix deps.get + mix deps.compile procket and it works like a treat now.
Thank you for you quick reply :) sorry for the noise.
Hello everyone, I can't seem to get a lead on this. My company's working with
procket
and having just been assigned a new apple computer, it fails to compile with:The environment:
Elixir and Erlang don't seem to have any trouble running, so I guess the problem is with a pre-compiled dependency not working on the Apple M2 chip or something? I couldn't find any lead googling and the only one I found in the previous or ongoing issues on this repository seems not to be related.
Any ideas? Has anyone managed to compile this on a M2 chip?
Thanks in advance.
The text was updated successfully, but these errors were encountered: