Development discussion of WireGuard
 help / color / mirror / Atom feed
From: Houman <>
To: WireGuard mailing list <>
Subject: Compiling Wireguard-Android repo on a M1 Silicon Mac
Date: Thu, 9 Feb 2023 08:05:35 +0000	[thread overview]
Message-ID: <> (raw)

I have difficulties compiling the Wireguard-Android repo on a M1 Silicon Mac.

I got this error message below. Any idea what I need to do? Thanks

* What went wrong:
Execution failed for task ':tunnel:buildCMakeDebug[arm64-v8a]'.
> ninja: Entering directory `/Users/houmie/Projects/wireguard-android/tunnel/.cxx/Debug/2w2e1e1x/arm64-v8a'
  [1/18] Building C object CMakeFiles/
  [2/18] Building C object
  [3/18] Linking C executable
  [4/18] Building wireguard-go
  FAILED: CMakeFiles/
  cd /Users/houmie/Projects/wireguard-android/tunnel/tools/libwg-go &&
ANDROID_LLVM_TRIPLE=aarch64-none-linux-android21 ANDROID_SYSROOT=
GRADLE_USER_HOME=/Users/houmie/.gradle "CFLAGS=-g -DANDROID
-fdata-sections -ffunction-sections -funwind-tables
-fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2
-Wformat -Werror=format-security  -Wno-unused-command-line-argument"
"LDFLAGS=-Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libgcc_real.a
-Wl,--exclude-libs,libatomic.a -static-libstdc++ -Wl,--build-id
-Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments
-fuse-ld=gold" DESTDIR=/Users/houmie/Projects/wireguard-android/tunnel/build/intermediates/cxx/Debug/2w2e1e1x/obj/arm64-v8a
  mkdir -p "/Users/houmie/.gradle/caches/golang/"
  flock "/Users/houmie/.gradle/caches/golang/go1.18.2.darwin-arm64.tar.gz.lock"
-c ' \
  [ -f "/Users/houmie/.gradle/caches/golang/go1.18.2.darwin-arm64.tar.gz"
] && exit 0; \
  curl -o "/Users/houmie/.gradle/caches/golang/go1.18.2.darwin-arm64.tar.gz.tmp"
"" && \
  echo "6c7df9a2405f09aa9bab55c93c9c4ce41d3e58127d626bc1825ba5d0a0045d5c
| sha256sum -c && \
  mv "/Users/houmie/.gradle/caches/golang/go1.18.2.darwin-arm64.tar.gz.tmp"
    % Total    % Received % Xferd  Average Speed   Time    Time
Time  Current
                                   Dload  Upload   Total   Spent    Left  Speed
100  131M  100  131M    0     0  17.0M      0  0:00:07  0:00:07 --:--:-- 20.0M
  zsh:1: command not found: sha256sum
  make: *** [/Users/houmie/.gradle/caches/golang/go1.18.2.darwin-arm64.tar.gz]
Error 127
  ninja: build stopped: subcommand failed.

  C++ build system [build] failed while executing:
      /Users/houmie/Library/Android/sdk/cmake/3.22.1/bin/ninja \
        -C \
\ \
    from /Users/houmie/Projects/wireguard-android/tunnel

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

             reply	other threads:[~2023-02-09  8:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-09  8:05 Houman [this message]
2023-02-09  8:58 ` Mark Lawrence

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='' \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).