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

Unable to build on aarch64-apple-darwin (Apple Silicon) #177

Open
fxcoudert opened this issue Nov 8, 2022 · 2 comments
Open

Unable to build on aarch64-apple-darwin (Apple Silicon) #177

fxcoudert opened this issue Nov 8, 2022 · 2 comments

Comments

@fxcoudert
Copy link

Building on aarch64-apple-darwin (Apple Silicon), I get:

2022-11-08T15:31:08.4570440Z �[34m==>�[0m �[1m./configure --prefix=/opt/homebrew/Cellar/dnscrypt-wrapper/0.4.2_1�[0m
2022-11-08T15:31:08.4570710Z checking for gcc... clang
2022-11-08T15:31:08.4570890Z checking whether the C compiler works... yes
2022-11-08T15:31:08.4571150Z checking for C compiler default output file name... a.out
2022-11-08T15:31:08.4571400Z checking for suffix of executables... 
2022-11-08T15:31:08.4571570Z checking whether we are cross compiling... no
2022-11-08T15:31:08.4571820Z checking for suffix of object files... o
2022-11-08T15:31:08.4572020Z checking whether the compiler supports GNU C... yes
2022-11-08T15:31:08.4572310Z checking whether clang accepts -g... yes
2022-11-08T15:31:08.4572570Z checking for clang option to enable C11 features... none needed
2022-11-08T15:31:08.4572810Z checking for gar... no
2022-11-08T15:31:08.4573010Z checking for ar... ar
2022-11-08T15:31:08.4573240Z checking for gtar... no
2022-11-08T15:31:08.4573370Z checking for tar... tar
2022-11-08T15:31:08.4573640Z checking for event_base_new in -levent... yes
2022-11-08T15:31:08.4573900Z checking for stdio.h... yes
2022-11-08T15:31:08.4574130Z checking for stdlib.h... yes
2022-11-08T15:31:08.4574290Z checking for string.h... yes
2022-11-08T15:31:08.4574520Z checking for inttypes.h... yes
2022-11-08T15:31:08.4574760Z checking for stdint.h... yes
2022-11-08T15:31:08.4574970Z checking for strings.h... yes
2022-11-08T15:31:08.4575130Z checking for sys/stat.h... yes
2022-11-08T15:31:08.4575310Z checking for sys/types.h... yes
2022-11-08T15:31:08.4575520Z checking for unistd.h... yes
2022-11-08T15:31:08.4575690Z checking for event2/event.h... yes
2022-11-08T15:31:08.4575920Z checking for sodium_init in -lsodium... yes
2022-11-08T15:31:08.4576140Z checking for crypto_box_curve25519xchacha20poly1305_open_easy... yes
2022-11-08T15:31:08.4576360Z configure: creating ./config.status
2022-11-08T15:31:08.4576610Z config.status: creating config.mak.autogen
2022-11-08T15:31:08.4576910Z config.status: executing config.mak.autogen commands
2022-11-08T15:31:08.4577040Z 
2022-11-08T15:31:08.4577090Z Configuration summary:
2022-11-08T15:31:08.4577250Z 
2022-11-08T15:31:08.4577320Z     Support for event library: yes
2022-11-08T15:31:08.4577540Z     Support for sodium library: yes
2022-11-08T15:31:08.4577710Z     Support for xchacha20: yes
2022-11-08T15:31:08.4577810Z 
2022-11-08T15:31:08.4577880Z �[34m==>�[0m �[1mmake�[0m
2022-11-08T15:31:08.4578110Z clang -o argparse.o -c -Wall -fPIC -O3 -g -ggdb argparse.c
2022-11-08T15:31:08.4578310Z   CC udp_request.o
2022-11-08T15:31:08.4578460Z   CC dnscrypt.o
2022-11-08T15:31:08.4578590Z ar rcs libargparse.a argparse.o
2022-11-08T15:31:08.4578750Z   CC tcp_request.o
2022-11-08T15:31:08.4578940Z   CC edns.o
2022-11-08T15:31:08.4579120Z   CC logger.o
2022-11-08T15:31:08.4579310Z   CC rfc1035.o
2022-11-08T15:31:08.4579740Z   CC safe_rw.o
2022-11-08T15:31:08.4579900Z   CC cert.o
2022-11-08T15:31:08.4580030Z   CC pidfile.o
2022-11-08T15:31:08.4580150Z   CC debug.o
2022-11-08T15:31:08.4580330Z   CC fpst.o
2022-11-08T15:31:08.4580470Z   CC block.o
2022-11-08T15:31:08.4580740Z debug.c:59:43: error: no member named '__eip' in 'struct __darwin_arm_thread_state64'
2022-11-08T15:31:08.4581070Z     return (void *) uc->uc_mcontext->__ss.__eip;
2022-11-08T15:31:08.4581390Z                     ~~~~~~~~~~~~~~~~~~~~~ ^
2022-11-08T15:31:08.4581550Z 1 error generated.
2022-11-08T15:31:08.4581670Z make: *** [debug.o] Error 1
2022-11-08T15:31:08.4581850Z make: *** Waiting for unfinished jobs....
@fxcoudert
Copy link
Author

It is clear that only Intel processors are supported:

return (void *) uc->uc_mcontext->__ss.__eip;

@jedisct1
Copy link
Contributor

jedisct1 commented Nov 8, 2022

You should use encrypted-dns-server instead.

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