Development discussion of WireGuard
 help / color / mirror / Atom feed
* Building the android apk on osx (case sensitive)
       [not found] <193313766.8410087.1528912045317.ref@mail.yahoo.com>
@ 2018-06-13 17:47 ` Ben Edmunds
  0 siblings, 0 replies; 3+ messages in thread
From: Ben Edmunds @ 2018-06-13 17:47 UTC (permalink / raw)
  To: wireguard

[-- Attachment #1: Type: text/plain, Size: 35247 bytes --]

Hi Jason,
Ive been getting into helping out a little with the android app however when i run the build on a mac im getting the following.Are you able to point me in the right direction to fix this?
Thanks
Bens-MacBook-Air:wireguard-android ben$ ./gradlew assembleRelease

Starting a Gradle Daemon, 2 stopped Daemons could not be reused, use --status for details




> Task :app:externalNativeBuildRelease FAILED

Build libwg.so x86_64

[1/19] Building wireguard-go

FAILED: cd /Users/ben/Documents/GitHub/wireguard-android/app/tools/libwg-go && make ANDROID_ARCH_NAME=x86_64 ANDROID_C_COMPILER=/Users/ben/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang ANDROID_TOOLCHAIN_ROOT=/Users/ben/Library/Android/sdk/ndk-bundle/toolchains/x86_64-4.9/prebuilt/darwin-x86_64 ANDROID_LLVM_TRIPLE=x86_64-none-linux-android ANDROID_SYSROOT=/Users/ben/Library/Android/sdk/ndk-bundle/sysroot "CFLAGS=-isystem /Users/ben/Library/Android/sdk/ndk-bundle/sysroot/usr/include/x86_64-linux-android -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -Wa,--noexecstack -Wformat -Werror=format-security  -Wno-unused-command-line-argument" "LDFLAGS=-Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -nostdlib++ --sysroot /Users/ben/Library/Android/sdk/ndk-bundle/platforms/android-21/arch-x86_64 -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -L/Users/ben/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/x86_64 -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now  -fuse-ld=gold" DESTDIR=/Users/ben/Documents/GitHub/wireguard-android/app/build/intermediates/cmake/release/obj/x86_64

Using system Go

find . -name '*.go' -type l -delete

find . -type d -empty -delete

mkdir -p ./src/git.zx2c4.com/wireguard-go/ratelimiter/ ./src/git.zx2c4.com/wireguard-go/ratelimiter/ ./src/git.zx2c4.com/wireguard-go/replay/ ./src/git.zx2c4.com/wireguard-go/replay/ ./src/git.zx2c4.com/wireguard-go/rwcancel/ ./src/git.zx2c4.com/wireguard-go/rwcancel/ ./src/git.zx2c4.com/wireguard-go/rwcancel/ ./src/git.zx2c4.com/wireguard-go/rwcancel/ ./src/git.zx2c4.com/wireguard-go/rwcancel/ ./src/git.zx2c4.com/wireguard-go/tai64n/ ./src/git.zx2c4.com/wireguard-go/tai64n/ ./src/git.zx2c4.com/wireguard-go/tun/ ./src/git.zx2c4.com/wireguard-go/tun/ ./src/git.zx2c4.com/wireguard-go/tun/ ./src/git.zx2c4.com/wireguard-go/tun/ ./src/git.zx2c4.com/wireguard-go/tun/ ./src/git.zx2c4.com/wireguard-go/xchacha20poly1305/ ./src/git.zx2c4.com/wireguard-go/xchacha20poly1305/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/

ln -sfrt ./src/git.zx2c4.com/wireguard-go/ratelimiter/ ../wireguard-go/ratelimiter/ratelimiter.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ratelimiter/ ../wireguard-go/ratelimiter/ratelimiter_test.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/replay/ ../wireguard-go/replay/replay.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/replay/ ../wireguard-go/replay/replay_test.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/rwcancel/ ../wireguard-go/rwcancel/fdset_default.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/rwcancel/ ../wireguard-go/rwcancel/fdset_freebsd.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/rwcancel/ ../wireguard-go/rwcancel/rwcancel.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/rwcancel/ ../wireguard-go/rwcancel/select_default.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/rwcancel/ ../wireguard-go/rwcancel/select_linux.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/tai64n/ ../wireguard-go/tai64n/tai64n.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/tai64n/ ../wireguard-go/tai64n/tai64n_test.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/tun/ ../wireguard-go/tun/tun.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/tun/ ../wireguard-go/tun/tun_darwin.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/tun/ ../wireguard-go/tun/tun_freebsd.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/tun/ ../wireguard-go/tun/tun_linux.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/tun/ ../wireguard-go/tun/tun_openbsd.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/xchacha20poly1305/ ../wireguard-go/xchacha20poly1305/xchacha20.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/xchacha20poly1305/ ../wireguard-go/xchacha20poly1305/xchacha20_test.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/allowedips.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/allowedips_rand_test.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/allowedips_test.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/bind_test.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/conn.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/conn_default.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/conn_linux.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/constants.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/cookie.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/cookie_test.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/device.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/device_test.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/donotuseon_linux.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/endpoint_test.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/helper_test.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/indextable.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/ip.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/kdf_test.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/keypair.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/logger.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/misc.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/noise-helpers.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/noise-protocol.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/noise-types.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/noise_test.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/peer.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/receive.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/send.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/timers.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/tun.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/uapi.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/uapi_bsd.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/uapi_linux.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/version.go;

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

ln: illegal option -- r

usage: ln [-Ffhinsv] source_file [target_file]

       ln [-Ffhinsv] source_file ... target_dir

       link source_file target_file

make: *** [/Users/ben/Documents/GitHub/wireguard-android/app/build/intermediates/cmake/release/obj/x86_64/libwg-go.so] Error 1

ninja: build stopped: subcommand failed.







FAILURE: Build failed with an exception.




* What went wrong:

Execution failed for task ':app:externalNativeBuildRelease'.

> Build command failed.

  Error while executing process /Users/ben/Library/Android/sdk/cmake/3.6.4111459/bin/cmake with arguments {--build /Users/ben/Documents/GitHub/wireguard-android/app/.externalNativeBuild/cmake/release/x86_64 --target libwg.so}

  [1/19] Building wireguard-go

  FAILED: cd /Users/ben/Documents/GitHub/wireguard-android/app/tools/libwg-go && make ANDROID_ARCH_NAME=x86_64 ANDROID_C_COMPILER=/Users/ben/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang ANDROID_TOOLCHAIN_ROOT=/Users/ben/Library/Android/sdk/ndk-bundle/toolchains/x86_64-4.9/prebuilt/darwin-x86_64 ANDROID_LLVM_TRIPLE=x86_64-none-linux-android ANDROID_SYSROOT=/Users/ben/Library/Android/sdk/ndk-bundle/sysroot "CFLAGS=-isystem /Users/ben/Library/Android/sdk/ndk-bundle/sysroot/usr/include/x86_64-linux-android -D__ANDROID_API__=21 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -Wa,--noexecstack -Wformat -Werror=format-security  -Wno-unused-command-line-argument" "LDFLAGS=-Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -nostdlib++ --sysroot /Users/ben/Library/Android/sdk/ndk-bundle/platforms/android-21/arch-x86_64 -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -L/Users/ben/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/libs/x86_64 -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now  -fuse-ld=gold" DESTDIR=/Users/ben/Documents/GitHub/wireguard-android/app/build/intermediates/cmake/release/obj/x86_64

  Using system Go

  find . -name '*.go' -type l -delete

  find . -type d -empty -delete

  mkdir -p ./src/git.zx2c4.com/wireguard-go/ratelimiter/ ./src/git.zx2c4.com/wireguard-go/ratelimiter/ ./src/git.zx2c4.com/wireguard-go/replay/ ./src/git.zx2c4.com/wireguard-go/replay/ ./src/git.zx2c4.com/wireguard-go/rwcancel/ ./src/git.zx2c4.com/wireguard-go/rwcancel/ ./src/git.zx2c4.com/wireguard-go/rwcancel/ ./src/git.zx2c4.com/wireguard-go/rwcancel/ ./src/git.zx2c4.com/wireguard-go/rwcancel/ ./src/git.zx2c4.com/wireguard-go/tai64n/ ./src/git.zx2c4.com/wireguard-go/tai64n/ ./src/git.zx2c4.com/wireguard-go/tun/ ./src/git.zx2c4.com/wireguard-go/tun/ ./src/git.zx2c4.com/wireguard-go/tun/ ./src/git.zx2c4.com/wireguard-go/tun/ ./src/git.zx2c4.com/wireguard-go/tun/ ./src/git.zx2c4.com/wireguard-go/xchacha20poly1305/ ./src/git.zx2c4.com/wireguard-go/xchacha20poly1305/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/ ./src/git.zx2c4.com/wireguard-go/

  ln -sfrt ./src/git.zx2c4.com/wireguard-go/ratelimiter/ ../wireguard-go/ratelimiter/ratelimiter.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ratelimiter/ ../wireguard-go/ratelimiter/ratelimiter_test.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/replay/ ../wireguard-go/replay/replay.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/replay/ ../wireguard-go/replay/replay_test.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/rwcancel/ ../wireguard-go/rwcancel/fdset_default.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/rwcancel/ ../wireguard-go/rwcancel/fdset_freebsd.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/rwcancel/ ../wireguard-go/rwcancel/rwcancel.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/rwcancel/ ../wireguard-go/rwcancel/select_default.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/rwcancel/ ../wireguard-go/rwcancel/select_linux.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/tai64n/ ../wireguard-go/tai64n/tai64n.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/tai64n/ ../wireguard-go/tai64n/tai64n_test.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/tun/ ../wireguard-go/tun/tun.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/tun/ ../wireguard-go/tun/tun_darwin.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/tun/ ../wireguard-go/tun/tun_freebsd.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/tun/ ../wireguard-go/tun/tun_linux.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/tun/ ../wireguard-go/tun/tun_openbsd.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/xchacha20poly1305/ ../wireguard-go/xchacha20poly1305/xchacha20.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/xchacha20poly1305/ ../wireguard-go/xchacha20poly1305/xchacha20_test.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/allowedips.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/allowedips_rand_test.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/allowedips_test.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/bind_test.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/conn.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/conn_default.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/conn_linux.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/constants.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/cookie.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/cookie_test.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/device.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/device_test.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/donotuseon_linux.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/endpoint_test.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/helper_test.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/indextable.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/ip.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/kdf_test.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/keypair.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/logger.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/misc.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/noise-helpers.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/noise-protocol.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/noise-types.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/noise_test.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/peer.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/receive.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/send.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/timers.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/tun.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/uapi.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/uapi_bsd.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/uapi_linux.go; ln -sfrt ./src/git.zx2c4.com/wireguard-go/ ../wireguard-go/version.go;

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  ln: illegal option -- r

  usage: ln [-Ffhinsv] source_file [target_file]

         ln [-Ffhinsv] source_file ... target_dir

         link source_file target_file

  make: *** [/Users/ben/Documents/GitHub/wireguard-android/app/build/intermediates/cmake/release/obj/x86_64/libwg-go.so] Error 1

  ninja: build stopped: subcommand failed.







* 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.




* Get more help at https://help.gradle.org




BUILD FAILED in 12s

21 actionable tasks: 1 executed, 20 up-to-date


[-- Attachment #2: Type: text/html, Size: 84582 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Building the android apk on osx (case sensitive)
  2018-06-13 22:08 ` Jason A. Donenfeld
@ 2018-06-13 23:13   ` Ben Edmunds
  0 siblings, 0 replies; 3+ messages in thread
From: Ben Edmunds @ 2018-06-13 23:13 UTC (permalink / raw)
  To: Jason A. Donenfeld; +Cc: WireGuard mailing list

[-- Attachment #1: Type: text/plain, Size: 707 bytes --]

 Thanks for that, ive switched the makefile to use gln and it all works now.

    On Wednesday, 13 June 2018, 23:08:30 BST, Jason A. Donenfeld <Jason@zx2c4.com> wrote:  
 
 > ln: illegal option -- r
>
> usage: ln [-Ffhinsv] source_file [target_file]
>
>        ln [-Ffhinsv] source_file ... target_dir
>
>        link source_file target_file

The makefile uses options from coreutil's ln, which aren't available
on macOS. Use Linux to build the app. If Mac support in the build
system is really important to you and you have something useful you'd
like to contribute, I suppose I can futz with the makefile to use
simpler options to ln. Are you able to use Linux for development?
  

[-- Attachment #2: Type: text/html, Size: 1843 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Building the android apk on osx (case sensitive)
       [not found] <mailman.834.1528911815.2201.wireguard@lists.zx2c4.com>
@ 2018-06-13 22:08 ` Jason A. Donenfeld
  2018-06-13 23:13   ` Ben Edmunds
  0 siblings, 1 reply; 3+ messages in thread
From: Jason A. Donenfeld @ 2018-06-13 22:08 UTC (permalink / raw)
  To: Ben Edmunds; +Cc: WireGuard mailing list

> ln: illegal option -- r
>
> usage: ln [-Ffhinsv] source_file [target_file]
>
>        ln [-Ffhinsv] source_file ... target_dir
>
>        link source_file target_file

The makefile uses options from coreutil's ln, which aren't available
on macOS. Use Linux to build the app. If Mac support in the build
system is really important to you and you have something useful you'd
like to contribute, I suppose I can futz with the makefile to use
simpler options to ln. Are you able to use Linux for development?

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-06-13 23:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <193313766.8410087.1528912045317.ref@mail.yahoo.com>
2018-06-13 17:47 ` Building the android apk on osx (case sensitive) Ben Edmunds
     [not found] <mailman.834.1528911815.2201.wireguard@lists.zx2c4.com>
2018-06-13 22:08 ` Jason A. Donenfeld
2018-06-13 23:13   ` Ben Edmunds

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).