msfjarvis / viscerion

[RETIRED] Beautiful and feature filled Android client for the WireGuard™️ protocol
https://msfjarvis.dev/posts/sunsetting-viscerion/
Apache License 2.0
157 stars 23 forks source link

build project error please tutorial thanks!!! #1

Closed tunv11 closed 6 years ago

tunv11 commented 6 years ago

$ git clone https://github.com/MSF-Jarvis/wireguard-kt --recursive $ cd wireguard-kt $ ./gradlew assembleDebug

error: wireguard-kt/app/build/intermediates/cmake/debug/obj/x86_64/libwg-go.so] Error 1 ninja: build stopped: subcommand failed.

msfjarvis commented 6 years ago

screenshot_20180814-215436

Just copy pasted the commands and as you can see everything compiles fine. You'll need to send more of your build log as well as your build environment for anybody to be able to debug your problem.

tunv11 commented 6 years ago

NguyenTus-MacBook-Pro:wireguard-android nguyentu$ cd /Users/nguyentu NguyenTus-MacBook-Pro:~ nguyentu$ git clone https://github.com/MSF-Jarvis/wireguard-kt --recursive Cloning into 'wireguard-kt'... remote: Counting objects: 8091, done. remote: Compressing objects: 100% (2776/2776), done. remote: Total 8091 (delta 3990), reused 7986 (delta 3887), pack-reused 0 Receiving objects: 100% (8091/8091), 1.35 MiB | 228.00 KiB/s, done. Resolving deltas: 100% (3990/3990), done. Submodule 'app/tools/libmnl' (https://github.com/justmirror/libmnl/) registered for path 'app/tools/libmnl' Submodule 'app/tools/wireguard' (https://github.com/WireGuard/WireGuard) registered for path 'app/tools/wireguard' Submodule 'app/tools/wireguard-go' (https://github.com/WireGuard/wireguard-go) registered for path 'app/tools/wireguard-go' Cloning into '/Users/nguyentu/wireguard-kt/app/tools/libmnl'... remote: Counting objects: 1169, done.
remote: Compressing objects: 100% (419/419), done.
remote: Total 1169 (delta 736), reused 1169 (delta 736), pack-reused 0
Receiving objects: 100% (1169/1169), 190.46 KiB | 413.00 KiB/s, done. Resolving deltas: 100% (736/736), done. Cloning into '/Users/nguyentu/wireguard-kt/app/tools/wireguard'... remote: Counting objects: 7625, done.
remote: Compressing objects: 100% (89/89), done.
remote: Total 7625 (delta 96), reused 108 (delta 70), pack-reused 7464
Receiving objects: 100% (7625/7625), 2.16 MiB | 1.36 MiB/s, done. Resolving deltas: 100% (5537/5537), done. Cloning into '/Users/nguyentu/wireguard-kt/app/tools/wireguard-go'... remote: Counting objects: 1814, done.
remote: Total 1814 (delta 0), reused 0 (delta 0), pack-reused 1814
Receiving objects: 100% (1814/1814), 433.51 KiB | 274.00 KiB/s, done. Resolving deltas: 100% (1324/1324), done. Submodule path 'app/tools/libmnl': checked out '0930a63252958f40bb0f9d09de86985c25cea039' Submodule path 'app/tools/wireguard': checked out '8f49f7b30fc7dbc35e9cc0ac06cbd0bf9adfcaf4' Submodule path 'app/tools/wireguard-go': checked out '3ad3e83c7aea762c7030b7aa7485f48083d7d9a9' NguyenTus-MacBook-Pro:~ nguyentu$ cd wireguard-kt NguyenTus-MacBook-Pro:wireguard-kt nguyentu$ ./gradlew assembleDebug /Users/nguyentu/wireguard-kt/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:522: warn: multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?. /Users/nguyentu/wireguard-kt/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:620: warn: multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?.

Task :app:compileDebugJavaWithJavac /Users/nguyentu/wireguard-kt/app/src/main/java/com/google/android/material/snackbar/CustomBaseTransientBottomBar.java:269: warning: [deprecation] setFitsSystemWindows(View,boolean) in ViewCompat has been deprecated ViewCompat.setFitsSystemWindows(view, true); ^ /Users/nguyentu/wireguard-kt/app/src/main/java/com/google/android/material/snackbar/CustomBaseTransientBottomBar.java:338: warning: [unchecked] unchecked cast return (B) this; ^ required: B found: CustomBaseTransientBottomBar where B is a type-variable: B extends CustomBaseTransientBottomBar declared in class CustomBaseTransientBottomBar /Users/nguyentu/wireguard-kt/app/src/main/java/com/google/android/material/snackbar/CustomBaseTransientBottomBar.java:359: warning: [unchecked] unchecked cast return (B) this; ^ required: B found: CustomBaseTransientBottomBar where B is a type-variable: B extends CustomBaseTransientBottomBar declared in class CustomBaseTransientBottomBar /Users/nguyentu/wireguard-kt/app/src/main/java/com/google/android/material/snackbar/CustomBaseTransientBottomBar.java:407: warning: [unchecked] unchecked cast return (B) this; ^ required: B found: CustomBaseTransientBottomBar where B is a type-variable: B extends CustomBaseTransientBottomBar declared in class CustomBaseTransientBottomBar /Users/nguyentu/wireguard-kt/app/src/main/java/com/google/android/material/snackbar/CustomBaseTransientBottomBar.java:413: warning: [unchecked] unchecked cast return (B) this; ^ required: B found: CustomBaseTransientBottomBar where B is a type-variable: B extends CustomBaseTransientBottomBar declared in class CustomBaseTransientBottomBar /Users/nguyentu/wireguard-kt/app/src/main/java/com/google/android/material/snackbar/CustomBaseTransientBottomBar.java:426: warning: [unchecked] unchecked cast return (B) this; ^ required: B found: CustomBaseTransientBottomBar where B is a type-variable: B extends CustomBaseTransientBottomBar declared in class CustomBaseTransientBottomBar /Users/nguyentu/wireguard-kt/app/src/main/java/com/google/android/material/snackbar/CustomBaseTransientBottomBar.java:430: warning: [unchecked] unchecked cast return (B) this; ^ required: B found: CustomBaseTransientBottomBar where B is a type-variable: B extends CustomBaseTransientBottomBar declared in class CustomBaseTransientBottomBar /Users/nguyentu/wireguard-kt/app/src/main/java/com/google/android/material/snackbar/CustomBaseTransientBottomBar.java:433: warning: [unchecked] unchecked cast return (B) this; ^ required: B found: CustomBaseTransientBottomBar where B is a type-variable: B extends CustomBaseTransientBottomBar declared in class CustomBaseTransientBottomBar /Users/nguyentu/wireguard-kt/app/src/main/java/com/google/android/material/snackbar/CustomBaseTransientBottomBar.java:674: warning: [unchecked] unchecked cast callbacks.get(i).onShown((B) this); ^ required: B found: CustomBaseTransientBottomBar where B is a type-variable: B extends CustomBaseTransientBottomBar declared in class CustomBaseTransientBottomBar /Users/nguyentu/wireguard-kt/app/src/main/java/com/google/android/material/snackbar/CustomBaseTransientBottomBar.java:687: warning: [unchecked] unchecked cast callbacks.get(i).onDismissed((B) this, event); ^ required: B found: CustomBaseTransientBottomBar where B is a type-variable: B extends CustomBaseTransientBottomBar declared in class CustomBaseTransientBottomBar 10 warnings

Task :app:generateJsonModelDebug debug|armeabi-v7a :CMake Warning at /Users/nguyentu/Library/Android/sdk/ndk-bundle/build/cmake/android.toolchain.cmake:63 (message): debug|armeabi-v7a : Using custom NDK path (ANDROID_NDK is set): debug|armeabi-v7a : /Users/nguyentu/Library/Android/sdk/ndk-bundle debug|armeabi-v7a :Call Stack (most recent call first): debug|armeabi-v7a : /Users/nguyentu/Library/Android/sdk/cmake/3.6.4111459/share/cmake-3.6/Modules/CMakeDetermineSystem.cmake:98 (include) debug|armeabi-v7a : CMakeLists.txt debug|armeabi-v7a :-- Check for working C compiler: /Users/nguyentu/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang debug|armeabi-v7a :-- Check for working C compiler: /Users/nguyentu/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang -- works debug|armeabi-v7a :-- Detecting C compiler ABI info debug|armeabi-v7a :-- Detecting C compiler ABI info - done debug|armeabi-v7a :-- Detecting C compile features debug|armeabi-v7a :-- Detecting C compile features - done debug|armeabi-v7a :-- Check for working CXX compiler: /Users/nguyentu/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ debug|armeabi-v7a :-- Check for working CXX compiler: /Users/nguyentu/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ -- works debug|armeabi-v7a :-- Detecting CXX compiler ABI info debug|armeabi-v7a :-- Detecting CXX compiler ABI info - done debug|armeabi-v7a :-- Detecting CXX compile features debug|armeabi-v7a :-- Detecting CXX compile features - done debug|armeabi-v7a :-- Configuring done debug|armeabi-v7a :-- Generating done debug|armeabi-v7a :-- Build files have been written to: /Users/nguyentu/wireguard-kt/app/.externalNativeBuild/cmake/debug/armeabi-v7a debug|arm64-v8a :CMake Warning at /Users/nguyentu/Library/Android/sdk/ndk-bundle/build/cmake/android.toolchain.cmake:63 (message): debug|arm64-v8a : Using custom NDK path (ANDROID_NDK is set): debug|arm64-v8a : /Users/nguyentu/Library/Android/sdk/ndk-bundle debug|arm64-v8a :Call Stack (most recent call first): debug|arm64-v8a : /Users/nguyentu/Library/Android/sdk/cmake/3.6.4111459/share/cmake-3.6/Modules/CMakeDetermineSystem.cmake:98 (include) debug|arm64-v8a : CMakeLists.txt debug|arm64-v8a :-- Check for working C compiler: /Users/nguyentu/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang debug|arm64-v8a :-- Check for working C compiler: /Users/nguyentu/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang -- works debug|arm64-v8a :-- Detecting C compiler ABI info debug|arm64-v8a :-- Detecting C compiler ABI info - done debug|arm64-v8a :-- Detecting C compile features debug|arm64-v8a :-- Detecting C compile features - done debug|arm64-v8a :-- Check for working CXX compiler: /Users/nguyentu/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ debug|arm64-v8a :-- Check for working CXX compiler: /Users/nguyentu/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ -- works debug|arm64-v8a :-- Detecting CXX compiler ABI info debug|arm64-v8a :-- Detecting CXX compiler ABI info - done debug|arm64-v8a :-- Detecting CXX compile features debug|arm64-v8a :-- Detecting CXX compile features - done debug|arm64-v8a :-- Configuring done debug|arm64-v8a :-- Generating done debug|arm64-v8a :-- Build files have been written to: /Users/nguyentu/wireguard-kt/app/.externalNativeBuild/cmake/debug/arm64-v8a debug|x86 :CMake Warning at /Users/nguyentu/Library/Android/sdk/ndk-bundle/build/cmake/android.toolchain.cmake:63 (message): debug|x86 : Using custom NDK path (ANDROID_NDK is set): debug|x86 : /Users/nguyentu/Library/Android/sdk/ndk-bundle debug|x86 :Call Stack (most recent call first): debug|x86 : /Users/nguyentu/Library/Android/sdk/cmake/3.6.4111459/share/cmake-3.6/Modules/CMakeDetermineSystem.cmake:98 (include) debug|x86 : CMakeLists.txt debug|x86 :-- Check for working C compiler: /Users/nguyentu/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang debug|x86 :-- Check for working C compiler: /Users/nguyentu/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang -- works debug|x86 :-- Detecting C compiler ABI info debug|x86 :-- Detecting C compiler ABI info - done debug|x86 :-- Detecting C compile features debug|x86 :-- Detecting C compile features - done debug|x86 :-- Check for working CXX compiler: /Users/nguyentu/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ debug|x86 :-- Check for working CXX compiler: /Users/nguyentu/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ -- works debug|x86 :-- Detecting CXX compiler ABI info debug|x86 :-- Detecting CXX compiler ABI info - done debug|x86 :-- Detecting CXX compile features debug|x86 :-- Detecting CXX compile features - done debug|x86 :-- Configuring done debug|x86 :-- Generating done debug|x86 :-- Build files have been written to: /Users/nguyentu/wireguard-kt/app/.externalNativeBuild/cmake/debug/x86 debug|x86_64 :CMake Warning at /Users/nguyentu/Library/Android/sdk/ndk-bundle/build/cmake/android.toolchain.cmake:63 (message): debug|x86_64 : Using custom NDK path (ANDROID_NDK is set): debug|x86_64 : /Users/nguyentu/Library/Android/sdk/ndk-bundle debug|x86_64 :Call Stack (most recent call first): debug|x86_64 : /Users/nguyentu/Library/Android/sdk/cmake/3.6.4111459/share/cmake-3.6/Modules/CMakeDetermineSystem.cmake:98 (include) debug|x86_64 : CMakeLists.txt debug|x86_64 :-- Check for working C compiler: /Users/nguyentu/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang debug|x86_64 :-- Check for working C compiler: /Users/nguyentu/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang -- works debug|x86_64 :-- Detecting C compiler ABI info debug|x86_64 :-- Detecting C compiler ABI info - done debug|x86_64 :-- Detecting C compile features debug|x86_64 :-- Detecting C compile features - done debug|x86_64 :-- Check for working CXX compiler: /Users/nguyentu/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ debug|x86_64 :-- Check for working CXX compiler: /Users/nguyentu/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ -- works debug|x86_64 :-- Detecting CXX compiler ABI info debug|x86_64 :-- Detecting CXX compiler ABI info - done debug|x86_64 :-- Detecting CXX compile features debug|x86_64 :-- Detecting CXX compile features - done debug|x86_64 :-- Configuring done debug|x86_64 :-- Generating done debug|x86_64 :-- Build files have been written to: /Users/nguyentu/wireguard-kt/app/.externalNativeBuild/cmake/debug/x86_64

Task :app:externalNativeBuildDebug Build libwg.so x86_64 [1/20] Building wireguard-go FAILED: cd /Users/nguyentu/wireguard-kt/app/tools/libwg-go && make ANDROID_ARCH_NAME=x86_64 ANDROID_C_COMPILER=/Users/nguyentu/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang ANDROID_TOOLCHAIN_ROOT=/Users/nguyentu/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/nguyentu/Library/Android/sdk/ndk-bundle/sysroot ANDROID_PACKAGE_NAME=com.wireguard.android.ktdebug "CFLAGS=-isystem /Users/nguyentu/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 --sysroot /Users/nguyentu/Library/Android/sdk/ndk-bundle/platforms/android-21/arch-x86_64 -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now -fuse-ld=gold" DESTDIR=/Users/nguyentu/wireguard-kt/app/build/intermediates/cmake/debug/obj/x86_64 rm -rf "/Users/nguyentu/wireguard-kt/app/tools/libwg-go/goroot" mkdir -p "/Users/nguyentu/wireguard-kt/app/tools/libwg-go/goroot" curl "https://dl.google.com/go/go1.10.2.darwin-amd64.tar.gz" | tar -C "/Users/nguyentu/wireguard-kt/app/tools/libwg-go/goroot" --strip-components=1 -xzf - || { rm -rf "/Users/nguyentu/wireguard-kt/app/tools/libwg-go/goroot"; exit 1; } % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 124M 0 445k 0 0 810k 0 0:02:37 --:--:-- 0:02:37 810k 3 124M 3 4623k 0 0 2872k 0 0:00:44 0:00:01 0:00:43 2871k 6 124M 6 7647k 0 0 2979k 0 0:00:42 0:00:02 0:00:40 2978k 8 124M 8 10.8M 0 0 3083k 0 0:00:41 0:00:03 0:00:38 3083k 11 124M 11 13.6M 0 0 3073k 0 0:00:41 0:00:04 0:00:37 3073k 13 124M 13 16.9M 0 0 3093k 0 0:00:41 0:00:05 0:00:36 3340k 15 124M 15 19.7M 0 0 3050k 0 0:00:41 0:00:06 0:00:35 3108k 18 124M 18 23.4M 0 0 3163k 0 0:00:40 0:00:07 0:00:33 3257k 20 124M 20 26.0M 0 0 3096k 0 0:00:41 0:00:08 0:00:33 3105k 23 124M 23 29.6M 0 0 3181k 0 0:00:40 0:00:09 0:00:31 3279k 26 124M 26 32.8M 0 0 3173k 0 0:00:40 0:00:10 0:00:30 3263k 28 124M 28 35.7M 0 0 3168k 0 0:00:40 0:00:11 0:00:29 3327k 31 124M 31 38.8M 0 0 3166k 0 0:00:40 0:00:12 0:00:28 3172k 33 124M 33 42.2M 0 0 3172k 0 0:00:40 0:00:13 0:00:27 3302k 36 124M 36 45.5M 0 0 3195k 0 0:00:39 0:00:14 0:00:25 3222k 38 124M 38 48.4M 0 0 3189k 0 0:00:39 0:00:15 0:00:24 3223k 41 124M 41 51.3M 0 0 3179k 0 0:00:40 0:00:16 0:00:24 3203k 43 124M 43 54.3M 0 0 3170k 0 0:00:40 0:00:17 0:00:23 3180k 46 124M 46 57.9M
0 0 3182k 0 0:00:40 0:00:18 0:00:22 3211k 49 124M 49 61.1M 0 0 3200k 0 0:00:39 0:00:19 0:00:20 3215k 51 124M 51 63.5M 0 0 3166k 0 0:00:40 0:00:20 0:00:20 3095k 54 124M 54 67.7M 0 0 3194k 0 0:00:39 0:00:21 0:00:18 3244k 56 124M 56 70.5M 0 0 3203k 0 0:00:39 0:00:22 0:00:17 3320k 59 124M 59 73.6M 0 0 3202k 0 0:00:39 0:00:23 0:00:16 3277k 61 124M 61 76.6M 0 0 3187k 0 0:00:39 0:00:24 0:00:15 3136k 64 124M 64 79.9M 0 0 3204k 0 0:00:39 0:00:25 0:00:14 3358k 66 124M 66 83.0M 0 0 3197k 0 0:00:39 0:00:26 0:00:13 3211k 69 124M 69 86.1M 0 0 3201k 0 0:00:39 0:00:27 0:00:12 3189k 71 124M 71 89.3M 0 0 3202k 0 0:00:39 0:00:28 0:00:11 3203k 74 124M 74 92.6M 0 0 3211k 0 0:00:39 0:00:29 0:00:10 3328k 76 124M 76 95.4M 0 0 3199k 0 0:00:39 0:00:30 0:00:09 3175k 78 124M 78 97.6M 0 0 3168k 0 0:00:40 0:00:31 0:00:09 3011k 81 124M 81 100M 0 0 3175k 0 0:00:40 0:00:32 0:00:08 3035k 84 124M 84 104M 0 0 3197k 0 0:00:39 0:00:33 0:00:06 3168k 86 124M 86 108M 0 0 3197k 0 0:00:39 0:00:34 0:00:05 3118k 89 124M 89 110M 0 0 3197k 0 0:00:39 0:00:35 0:00:04 3182k 91 124M 91 114M 0 0 3194k 0 0:00:39 0:00:36 0:00:03 3356k 94 124M 94 117M 0 0 3193k 0 0:00:39 0:00:37 0:00:02 3305k 96 124M 96 120M 0 0 3199k 0 0:00:39 0:00:38 0:00:01 3208k 99 124M 99 123M 0 0 3196k 0 0:00:39 0:00:39 --:--:-- 3189k 100 124M 100 124M 0 0 3180k 0 0:00:40 0:00:40 --:--:-- 3048k patch -p1 -f -N -r- -d "/Users/nguyentu/wireguard-kt/app/tools/libwg-go/goroot" < goruntime-boottime-over-monotonic.diff || { rm -rf "/Users/nguyentu/wireguard-kt/app/tools/libwg-go/goroot"; exit 1; } patching file src/runtime/sys_linux_386.s patching fi le src/runtime/sys_linux_amd64.s patching file src/runtime/sys_linux_arm64.s patching file src/runtime/sys_linux_arm.s patching file src/runtime/sys_linux_mips64x.s patching file src/runtime/sys_linux_mipsx.s patching file src/runtime/sys_linux_ppc64x.s patching file src/runtime/sys_linux_s390x.s 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/wiregu ard-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 ./s rc/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 sourc e_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 op tion -- r usage: ln [-Ffhinsv] source_file [target_file] ln [-Ffhinsv] source_file ... target_dir link source_file target_file make: *** [/Users/nguyentu/wireguard-kt/app/build/intermediates/cmake/debug/obj/x86_64/libwg-go.so] Error 1 ninja: build stopped: subcommand failed.

Task :app:externalNativeBuildDebug FAILED

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':app:externalNativeBuildDebug'.

    Build command failed. Error while executing process /Users/nguyentu/Library/Android/sdk/cmake/3.6.4111459/bin/cmake with arguments {--build /Users/nguyentu/wireguard-kt/app/.externalNativeBuild/cmake/debug/x86_64 --target libwg.so} [1/20] Building wireguard-go FAILED: cd /Users/nguyentu/wireguard-kt/app/tools/libwg-go && make ANDROID_ARCH_NAME=x86_64 ANDROID_C_COMPILER=/Users/nguyentu/Library/Android/sdk/ndk-bundle/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang ANDROID_TOOLCHAIN_ROOT=/Users/nguyentu/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/nguyentu/Library/Android/sdk/ndk-bundle/sysroot ANDROID_PACKAGE_NAME=com.wireguard.android.ktdebug "CFLAGS=-isystem /Users/nguyentu/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 --sysroot /Users/nguyentu/Library/Android/sdk/ndk-bundle/platforms/android-21/arch-x86_64 -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now -fuse-ld=gold" DESTDIR=/Users/nguyentu/wireguard-kt/app/build/intermediates/cmake/debug/obj/x86_64 rm -rf "/Users/nguyentu/wireguard-kt/app/tools/libwg-go/goroot" mkdir -p "/Users/nguyentu/wireguard-kt/app/tools/libwg-go/goroot" curl "https://dl.google.com/go/go1.10.2.darwin-amd64.tar.gz" | tar -C "/Users/nguyentu/wireguard-kt/app/tools/libwg-go/goroot" --strip-components=1 -xzf - || { rm -rf "/Users/nguyentu/wireguard-kt/app/tools/libwg-go/goroot"; exit 1; } % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed

    0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 124M 0 445k 0 0 810k 0 0:02:37 --:--:-- 0:02:37 810k 3 124M 3 4623k 0 0 2872k 0 0:00:44 0:00:01 0:00:43 2871k 6 124M 6 7647k 0 0 2979k 0 0:00:42 0:00:02 0:00:40 2978k 8 124M 8 10.8M 0 0 3083k 0 0:00:41 0:00:03 0:00:38 3083k 11 124M 11 13.6M 0 0 3073k 0 0:00:41 0:00:04 0:00:37 3073k 13 124M 13 16.9M 0 0 3093k 0 0:00:41 0:00:05 0:00:36 3340k 15 124M 15 19.7M 0 0 3050k 0 0:00:41 0:00:06 0:00:35 3108k 18 124M 18 23.4M 0 0 3163k 0 0:00:40 0:00:07 0:00:33 3257k 20 124M 20 26.0M 0 0 3096k 0 0:00:41 0:00:08 0:00:33 3105k 23 124M 23 29.6M 0 0 3181k 0 0:00:40 0:00:09 0:00:31 3279k 26 124M 26 32.8M 0 0 3173k 0 0:00:40 0:00:10 0:00:30 3263k 28 124M 28 35.7M 0 0 3168k 0 0:00:40 0:00:11 0:00:29 3327k 31 124M 31 38.8M 0 0 3166k 0 0:00:40 0:00:12 0:00:28 3172k 33 124M 33 42.2M 0 0 3172k 0 0:00:40 0:00:13 0:00:27 3302k 36 124M 36 45.5M 0 0 3195k 0 0:00:39 0:00:14 0:00:25 3222k 38 124M 38 48.4M 0 0 3189k 0 0:00:39 0:00:15 0:00:24 3223k 41 124M 41 51.3M 0 0 3179k 0 0:00:40 0:00:16 0:00:24 3203k 43 124M 43 54.3M 0 0 3170k 0 0:00:40 0:00:17 0:00:23 3180k 46 124M 46 57.9M 0 0 3182k 0 0:00:40 0:00:18 0:00:22 3211k 49 124M 49 61.1M 0 0 3200k 0 0:00:39 0:00:19 0:00:20 3215k 51 124M 51 63.5M 0 0 3166k 0 0:00:40 0:00:20 0:00:20 3095k 54 124M 54 67.7M 0 0 3194k 0 0:00:39 0:00:21 0:00:18 3244k 56 124M 56 70.5M 0 0 3203k 0 0:00:39 0:00:22 0:00:17 3320k 59 124M 59 73.6M 0 0 3202k 0 0:00:39 0:00:23 0:00:16 3277k 61 124M 61 76.6M 0 0 3187k 0 0:00:39 0:00:24 0:00:15 3136k 64 124M 64 79.9M 0 0 3204k 0 0:00:39 0:00:25 0:00:14 3358k 66 124M 66 83.0M 0 0 3197k 0 0:00:39 0:00:26 0:00:13 3211k 69 124M 69 86.1M 0 0 3201k 0 0:00:39 0:00:27 0:00:12 3189k 71 124M 71 89.3M 0 0 3202k 0 0:00:39 0:00:28 0:00:11 3203k 74 124M 74 92.6M 0 0 3211k 0 0:00:39 0:00:29 0:00:10 3328k 76 124M 76 95.4M 0 0 3199k 0 0:00:39 0:00:30 0:00:09 3175k 78 124M 78 97.6M 0 0 3168k 0 0:00:40 0:00:31 0:00:09 3011k 81 124M 81 100M 0 0 3175k 0 0:00:40 0:00:32 0:00:08 3035k 84 124M 84 104M 0 0 3197k 0 0:00:39 0:00:33 0:00:06 3168k 86 124M 86 108M 0 0 3197k 0 0:00:39 0:00:34 0:00:05 3118k 89 124M 89 110M 0 0 3197k 0 0:00:39 0:00:35 0:00:04 3182k 91 124M 91 114M 0 0 3194k 0 0:00:39 0:00:36 0:00:03 3356k 94 124M 94 117M 0 0 3193k 0 0:00:39 0:00:37 0:00:02 3305k 96 124M 96 120M 0 0 3199k 0 0:00:39 0:00:38 0:00:01 3208k 99 124M 99 123M 0 0 3196k 0 0:00:39 0:00:39 --:--:-- 3189k 100 124M 100 124M 0 0 3180k 0 0:00:40 0:00:40 --:--:-- 3048k patch -p1 -f -N -r- -d "/Users/nguyentu/wireguard-kt/app/tools/libwg-go/goroot" < goruntime-boottime-over-monotonic.diff || { rm -rf "/Users/nguyentu/wireguard-kt/app/tools/libwg-go/goroot"; exit 1; } patching file src/runtime/sys_linux_386.s patching file src/runtime/sys_linux_amd64.s patching file src/runtime/sys_linux_arm64.s patching file src/runtime/sys_linux_arm.s patching file src/runtime/sys_linux_mips64x.s patching file src/runtime/sys_linux_mipsx.s patching file src/runtime/sys_linux_ppc64x.s patching file src/runtime/sys_linux_s390x.s 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/nguyentu/wireguard-kt/app/build/intermediates/cmake/debug/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 58s 24 actionable tasks: 24 executed NguyenTus-MacBook-Pro:wireguard-kt nguyentu$

nathanchance commented 6 years ago

You probably need to install GNU coreutils through Homebrew, judging by the massive ln spam.

msfjarvis commented 6 years ago

Yep, that's what's missing, I'll add it to the README.

tunv11 commented 6 years ago

brew info coreutils coreutils: stable 8.30 (bottled), HEAD GNU File, Shell, and Text utilities https://www.gnu.org/software/coreutils Conflicts with: aardvark_shell_utils (because both install realpath binaries) ganglia (because both install gstat binaries) gegl (because both install gcut binaries) idutils (because both install gid and gid.1) /usr/local/Cellar/coreutils/8.30 (430 files, 8.8MB) * Poured from bottle on 2018-08-15 at 20:53:41 From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/coreutils.rb ==> Dependencies Optional: gmp ✔ ==> Options --with-gmp Build with gmp support --HEAD Install HEAD version ==> Caveats All commands have been installed with the prefix 'g'.

If you really need to use these commands with their normal names, you can add a "gnubin" directory to your PATH from your bashrc like:

PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"

Additionally, you can access their man pages with normal names if you add the "gnuman" directory to your MANPATH from your bashrc as well:

MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH"

i install GNU but build error log it

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: illega l 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 ... t arget_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/nguyentu/Desktop/wireguard-kt/app/build/intermediates/cmake/debug/obj/x86_64/libwg-go.so] Error 1 ninja: build stopped: subcommand failed.

Task :app:externalNativeBuildDebug FAILED