Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failing for armada38x / DSM 7.0 #130

Open
paullbn opened this issue Feb 8, 2022 · 0 comments
Open

Build failing for armada38x / DSM 7.0 #130

paullbn opened this issue Feb 8, 2022 · 0 comments

Comments

@paullbn
Copy link

paullbn commented Feb 8, 2022

Description
I cant build the package for my DS216J (armada38x) running DSM 7.0

Steps to reproduce

sudo docker build -t synobuild .
sudo docker run --rm --privileged --env PACKAGE_ARCH=armada38x --env DSM_VER=7.0 -v $(pwd)/artifacts:/result_spk synobuild
...

/source/WireGuard/wireguard-linux-compat-1.0.20211208/src/compat/siphash/siphash.c: In function '__siphash_aligned':
/source/WireGuard/wireguard-linux-compat-1.0.20211208/src/compat/siphash/siphash.c:80:36: error: 'fallthrough' undeclared (first use in this function)
  case 7: b |= ((u64)end[6]) << 48; fallthrough;
                                    ^~~~~~~~~~~
/source/WireGuard/wireguard-linux-compat-1.0.20211208/src/compat/siphash/siphash.c:80:36: note: each undeclared identifier is reported only once for each function it appears in
/source/WireGuard/wireguard-linux-compat-1.0.20211208/src/compat/siphash/siphash.c: In function '__siphash_unaligned':
/source/WireGuard/wireguard-linux-compat-1.0.20211208/src/compat/siphash/siphash.c:112:36: error: 'fallthrough' undeclared (first use in this function)
  case 7: b |= ((u64)end[6]) << 48; fallthrough;
                                    ^~~~~~~~~~~
/source/WireGuard/wireguard-linux-compat-1.0.20211208/src/compat/siphash/siphash.c: In function '__hsiphash_aligned':
/source/WireGuard/wireguard-linux-compat-1.0.20211208/src/compat/siphash/siphash.c:429:36: error: 'fallthrough' undeclared (first use in this function)
  case 3: b |= ((u32)end[2]) << 16; fallthrough;
                                    ^~~~~~~~~~~
/source/WireGuard/wireguard-linux-compat-1.0.20211208/src/compat/siphash/siphash.c: In function '__hsiphash_unaligned':
/source/WireGuard/wireguard-linux-compat-1.0.20211208/src/compat/siphash/siphash.c:451:36: error: 'fallthrough' undeclared (first use in this function)
  case 3: b |= ((u32)end[2]) << 16; fallthrough;
                                    ^~~~~~~~~~~
scripts/Makefile.build:312: recipe for target '/source/WireGuard/wireguard-linux-compat-1.0.20211208/src/compat/siphash/siphash.o' failed
make[3]: *** [/source/WireGuard/wireguard-linux-compat-1.0.20211208/src/compat/siphash/siphash.o] Error 1
Makefile:1243: recipe for target '_module_/source/WireGuard/wireguard-linux-compat-1.0.20211208/src' failed
make[2]: *** [_module_/source/WireGuard/wireguard-linux-compat-1.0.20211208/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.20211208/src'
Makefile:72: recipe for target 'wireguard-linux-compat-1.0.20211208/src/wireguard.ko' failed
make: *** [wireguard-linux-compat-1.0.20211208/src/wireguard.ko] Error 2
[Error] Build project fail!
Time cost: 00:00:27 [Build-->WireGuard]
[INFO] Build WireGuard finished!

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

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

[Error] Check [/logs/error.build] for fixing errors.
Install log
===========
cat: /build_env/ds.armada38x-7.0/logs.install: No such file or directory

Expected behavior
Build success

Synology NAS model
DS216j

Do you have an idea of what could have gone wrong?
Paul

mehdilauters added a commit to mehdilauters/synology-wireguard that referenced this issue Feb 9, 2022
A build issue was introduced on the wiregard-linux-compat codebase.
The fix has been requested for a merge on the project repository
WireGuard/wireguard-linux-compat#5

Waiting it to be merged, a patch was added to this project to locally
fix the problem
sebthom pushed a commit to vegardit/synology-wireguard that referenced this issue Nov 13, 2022
A build issue was introduced on the wiregard-linux-compat codebase.
The fix has been requested for a merge on the project repository
WireGuard/wireguard-linux-compat#5

Waiting it to be merged, a patch was added to this project to locally
fix the problem
sebthom pushed a commit to vegardit/synology-wireguard that referenced this issue Nov 14, 2022
A build issue was introduced on the wiregard-linux-compat codebase.
The fix has been requested for a merge on the project repository
WireGuard/wireguard-linux-compat#5

Waiting it to be merged, a patch was added to this project to locally
fix the problem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant