runfalk / synology-wireguard

WireGuard support for some Synology NAS drives
MIT License
920 stars 131 forks source link

Boardwellnk #52

Open psmanek opened 3 years ago

psmanek commented 3 years ago

Hello,

There is a problem with compile on broadwellnk chip ;/

2020-09-01 16:32:35 (116 KB/s) - 'wireguard-linux-compat-1.0.20200729.tar.xz' saved [262464]

patching file wireguard-linux-compat-1.0.20200729/src/compat/Kbuild.include
Hunk #1 succeeded at 42 with fuzz 2.
make[1]: Entering directory '/source/WireGuard/wireguard-linux-compat-1.0.20200729/src'
In file included from <command-line>:0:0:
/source/WireGuard/wireguard-linux-compat-1.0.20200729/src/compat/memneq/include.h:2:19: error: redefinition of 'crypto_memneq'
 static inline int crypto_memneq(const void *a, const void *b, size_t size)
                   ^
In file included from /source/WireGuard/wireguard-linux-compat-1.0.20200729/src/compat/compat.h:731:0,
                 from <command-line>:0:
include/crypto/algapi.h:380:19: note: previous definition of 'crypto_memneq' was here
 static inline int crypto_memneq(const void *a, const void *b, size_t size)
                   ^
scripts/Makefile.build:269: recipe for target '/source/WireGuard/wireguard-linux-compat-1.0.20200729/src/main.o' failed
make[3]: *** [/source/WireGuard/wireguard-linux-compat-1.0.20200729/src/main.o] Error 1
Makefile:1411: recipe for target '_module_/source/WireGuard/wireguard-linux-compat-1.0.20200729/src' failed
make[2]: *** [_module_/source/WireGuard/wireguard-linux-compat-1.0.20200729/src] Error 2
Makefile:26: recipe for target 'module' failed
make[1]: *** [module] Error 2
make[1]: Leaving directory '/source/WireGuard/wireguard-linux-compat-1.0.20200729/src'
Makefile:64: recipe for target 'wireguard-linux-compat-1.0.20200729/src/wireguard.ko' failed
make: *** [wireguard-linux-compat-1.0.20200729/src/wireguard.ko] Error 2
make: Leaving directory '/source/WireGuard'

[Error] Build project fail!

Time cost: 00:00:29 [Build-->WireGuard]
[INFO] Build WireGuard finished!

----------------- Time cost statistics -----------------
Time cost: 00:00:29 [Build-->WireGuard]

########################################################
      Error(s) occurred on project "WireGuard"
########################################################
1 projects, 1 failed.

[Error] Check [/logs/error.build] for fixing errors.

cat: 
Install log
===========

/build_env/ds.broadwellnk-6.2/logs.install: No such file or director
runfalk commented 3 years ago

From the README:

The error error: redefinition of 'crypto_memneq' means that you architecture does not need the memneq workaround in wireguard. To work around the issue you can pass --env HAS_MEMNEQ=1 as an additional argument to you docker build. If it works, please create an issue or send a PR to fix it properly for your architecture.

Let me know if this works and I'll update the build script and add an SPK for Broadwellnk.

psmanek commented 3 years ago

Yes, thank you. It worked. Sorry for not reading README file ;/

runfalk commented 3 years ago

No worries, happy it worked! Which model do you have?

psmanek commented 3 years ago

DS3018xs