runfalk / synology-wireguard

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

Building of package fails #90

Open samuellazea opened 2 years ago

samuellazea commented 2 years ago

Hello,

I have a DS1621XS+ and I try to build the package using this command:

root@DS1621xs:/volume1/Testing_Wireguard/synology-wireguard# sudo docker run --rm --privileged --network=host --env PACKAGE_ARCH=broadwell --env DSM_VER=6.2 -v $(pwd)/artifacts:/result_spk synobuild

But for some reason it fails with this:

/bin/sh: 1: exec: /source/WireGuard/build.sh: Permission denied

Checked inside the container and the only log that I see is the one with Permission denied and then the container just dies right away.

This is the building of the container:

root@DS1621xs:/volume1/Testing_Wireguard/synology-wireguard# docker build -t synobuild .

Sending build context to Docker daemon 207.4kB Step 1/6 : FROM ubuntu:latest latest: Pulling from library/ubuntu 16ec32c2132b: Pull complete Digest: sha256:82becede498899ec668628e7cb0ad87b6e1c371cb8a1e597d83a47fac21d6af3 Status: Downloaded newer image for ubuntu:latest ---> 1318b700e415 Step 2/6 : VOLUME [ "/toolkit_tarballs" ] ---> Running in ef4bc03b1a15 Removing intermediate container ef4bc03b1a15 ---> b070a079d2d4 Step 3/6 : ENV IS_IN_CONTAINER 1 ---> Running in 08538c8ec6bf Removing intermediate container 08538c8ec6bf ---> 83b444505a6d Step 4/6 : RUN apt-get update && apt-get -qy install git python3 wget ca-certificates ---> Running in 951413fda3e4 Get:1 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB] Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB] Get:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB] Get:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB] Get:5 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [177 kB] Get:6 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB] Get:7 http://archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [33.4 kB] Get:8 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1275 kB] Get:9 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [432 kB] Get:10 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1055 kB] Get:11 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [33.0 kB] Get:12 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1419 kB] Get:13 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [478 kB] Get:14 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [6319 B] Get:15 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [2668 B] Get:16 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [987 kB] Get:17 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [785 kB] Get:18 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [30.6 kB] Fetched 18.7 MB in 2s (8589 kB/s) Reading package lists... Reading package lists... Building dependency tree... Reading state information... The following additional packages will be installed: file git-man krb5-locales less libasn1-8-heimdal libbrotli1 libbsd0 libcbor0.6 libcurl3-gnutls libedit2 liberror-perl libexpat1 libfido2-1 libgdbm-compat4 libgdbm6 libgssapi-krb5-2 libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal libhx509-5-heimdal libk5crypto3 libkeyutils1 libkrb5-26-heimdal libkrb5-3 libkrb5support0 libldap-2.4-2 libldap-common libmagic-mgc libmagic1 libmpdec2 libnghttp2-14 libperl5.30 libpsl5 libpython3-stdlib libpython3.8-minimal libpython3.8-stdlib libreadline8 libroken18-heimdal librtmp1 libsasl2-2 libsasl2-modules libsasl2-modules-db libsqlite3-0 libssh-4 libssl1.1 libwind0-heimdal libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxext6 libxmuu1 mime-support netbase openssh-client openssl patch perl perl-modules-5.30 publicsuffix python3-minimal python3.8 python3.8-minimal readline-common xauth xz-utils Suggested packages: gettext-base git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn gdbm-l10n krb5-doc krb5-user libsasl2-modules-gssapi-mit | libsasl2-modules-gssapi-heimdal libsasl2-modules-ldap libsasl2-modules-otp libsasl2-modules-sql keychain libpam-ssh monkeysphere ssh-askpass ed diffutils-doc perl-doc libterm-readline-gnu-perl | libterm-readline-perl-perl make libb-debug-perl liblocale-codes-perl python3-doc python3-tk python3-venv python3.8-venv python3.8-doc binutils binfmt-support readline-doc The following NEW packages will be installed: ca-certificates file git git-man krb5-locales less libasn1-8-heimdal libbrotli1 libbsd0 libcbor0.6 libcurl3-gnutls libedit2 liberror-perl libexpat1 libfido2-1 libgdbm-compat4 libgdbm6 libgssapi-krb5-2 libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal libhx509-5-heimdal libk5crypto3 libkeyutils1 libkrb5-26-heimdal libkrb5-3 libkrb5support0 libldap-2.4-2 libldap-common libmagic-mgc libmagic1 libmpdec2 libnghttp2-14 libperl5.30 libpsl5 libpython3-stdlib libpython3.8-minimal libpython3.8-stdlib libreadline8 libroken18-heimdal librtmp1 libsasl2-2 libsasl2-modules libsasl2-modules-db libsqlite3-0 libssh-4 libssl1.1 libwind0-heimdal libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxext6 libxmuu1 mime-support netbase openssh-client openssl patch perl perl-modules-5.30 publicsuffix python3 python3-minimal python3.8 python3.8-minimal readline-common wget xauth xz-utils 0 upgraded, 72 newly installed, 0 to remove and 0 not upgraded. Need to get 25.5 MB of archives. After this operation, 138 MB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libssl1.1 amd64 1.1.1f-1ubuntu2.4 [1319 kB] Get:2 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libpython3.8-minimal amd64 3.8.10-0ubuntu1~20.04 [717 kB] Get:3 http://archive.ubuntu.com/ubuntu focal/main amd64 libexpat1 amd64 2.2.9-1build1 [73.3 kB] Get:4 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 python3.8-minimal amd64 3.8.10-0ubuntu1~20.04 [1898 kB] Get:5 http://archive.ubuntu.com/ubuntu focal/main amd64 python3-minimal amd64 3.8.2-0ubuntu2 [23.6 kB] Get:6 http://archive.ubuntu.com/ubuntu focal/main amd64 mime-support all 3.64ubuntu1 [30.6 kB] Get:7 http://archive.ubuntu.com/ubuntu focal/main amd64 libmpdec2 amd64 2.4.2-3 [81.1 kB] Get:8 http://archive.ubuntu.com/ubuntu focal/main amd64 readline-common all 8.0-4 [53.5 kB] Get:9 http://archive.ubuntu.com/ubuntu focal/main amd64 libreadline8 amd64 8.0-4 [131 kB] Get:10 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libsqlite3-0 amd64 3.31.1-4ubuntu0.2 [549 kB] Get:11 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libpython3.8-stdlib amd64 3.8.10-0ubuntu1~20.04 [1675 kB] Get:12 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 python3.8 amd64 3.8.10-0ubuntu1~20.04 [387 kB] Get:13 http://archive.ubuntu.com/ubuntu focal/main amd64 libpython3-stdlib amd64 3.8.2-0ubuntu2 [7068 B] Get:14 http://archive.ubuntu.com/ubuntu focal/main amd64 python3 amd64 3.8.2-0ubuntu2 [47.6 kB] Get:15 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 perl-modules-5.30 all 5.30.0-9ubuntu0.2 [2738 kB] Get:16 http://archive.ubuntu.com/ubuntu focal/main amd64 libgdbm6 amd64 1.18.1-5 [27.4 kB] Get:17 http://archive.ubuntu.com/ubuntu focal/main amd64 libgdbm-compat4 amd64 1.18.1-5 [6244 B] Get:18 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libperl5.30 amd64 5.30.0-9ubuntu0.2 [3952 kB] Get:19 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 perl amd64 5.30.0-9ubuntu0.2 [224 kB] Get:20 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 openssl amd64 1.1.1f-1ubuntu2.4 [620 kB] Get:21 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 ca-certificates all 20210119~20.04.1 [146 kB] Get:22 http://archive.ubuntu.com/ubuntu focal/main amd64 libmagic-mgc amd64 1:5.38-4 [218 kB] Get:23 http://archive.ubuntu.com/ubuntu focal/main amd64 libmagic1 amd64 1:5.38-4 [75.9 kB] Get:24 http://archive.ubuntu.com/ubuntu focal/main amd64 file amd64 1:5.38-4 [23.3 kB] Get:25 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 less amd64 551-1ubuntu0.1 [123 kB] Get:26 http://archive.ubuntu.com/ubuntu focal/main amd64 libbsd0 amd64 0.10.0-1 [45.4 kB] Get:27 http://archive.ubuntu.com/ubuntu focal/main amd64 netbase all 6.1 [13.1 kB] Get:28 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 xz-utils amd64 5.2.4-1ubuntu1 [82.5 kB] Get:29 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 krb5-locales all 1.17-6ubuntu4.1 [11.4 kB] Get:30 http://archive.ubuntu.com/ubuntu focal/main amd64 libcbor0.6 amd64 0.6.0-0ubuntu1 [21.1 kB] Get:31 http://archive.ubuntu.com/ubuntu focal/main amd64 libedit2 amd64 3.1-20191231-1 [87.0 kB] Get:32 http://archive.ubuntu.com/ubuntu focal/main amd64 libfido2-1 amd64 1.3.1-1ubuntu2 [47.9 kB] Get:33 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libkrb5support0 amd64 1.17-6ubuntu4.1 [30.9 kB] Get:34 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libk5crypto3 amd64 1.17-6ubuntu4.1 [79.9 kB] Get:35 http://archive.ubuntu.com/ubuntu focal/main amd64 libkeyutils1 amd64 1.6-6ubuntu1 [10.2 kB] Get:36 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libkrb5-3 amd64 1.17-6ubuntu4.1 [330 kB] Get:37 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libgssapi-krb5-2 amd64 1.17-6ubuntu4.1 [121 kB] Get:38 http://archive.ubuntu.com/ubuntu focal/main amd64 libpsl5 amd64 0.21.0-1ubuntu1 [51.5 kB] Get:39 http://archive.ubuntu.com/ubuntu focal/main amd64 libxau6 amd64 1:1.0.9-0ubuntu1 [7488 B] Get:40 http://archive.ubuntu.com/ubuntu focal/main amd64 libxdmcp6 amd64 1:1.1.3-0ubuntu1 [10.6 kB] Get:41 http://archive.ubuntu.com/ubuntu focal/main amd64 libxcb1 amd64 1.14-2 [44.7 kB] Get:42 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libx11-data all 2:1.6.9-2ubuntu1.2 [113 kB] Get:43 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libx11-6 amd64 2:1.6.9-2ubuntu1.2 [575 kB] Get:44 http://archive.ubuntu.com/ubuntu focal/main amd64 libxext6 amd64 2:1.3.4-0ubuntu1 [29.1 kB] Get:45 http://archive.ubuntu.com/ubuntu focal/main amd64 libxmuu1 amd64 2:1.1.3-0ubuntu1 [9728 B] Get:46 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 openssh-client amd64 1:8.2p1-4ubuntu0.2 [671 kB] Get:47 http://archive.ubuntu.com/ubuntu focal/main amd64 publicsuffix all 20200303.0012-1 [111 kB] Get:48 http://archive.ubuntu.com/ubuntu focal/main amd64 wget amd64 1.20.3-1ubuntu1 [349 kB] Get:49 http://archive.ubuntu.com/ubuntu focal/main amd64 xauth amd64 1:1.1-0ubuntu1 [25.0 kB] Get:50 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libbrotli1 amd64 1.0.7-6ubuntu0.1 [267 kB] Get:51 http://archive.ubuntu.com/ubuntu focal/main amd64 libroken18-heimdal amd64 7.7.0+dfsg-1ubuntu1 [41.8 kB] Get:52 http://archive.ubuntu.com/ubuntu focal/main amd64 libasn1-8-heimdal amd64 7.7.0+dfsg-1ubuntu1 [181 kB] Get:53 http://archive.ubuntu.com/ubuntu focal/main amd64 libheimbase1-heimdal amd64 7.7.0+dfsg-1ubuntu1 [29.7 kB] Get:54 http://archive.ubuntu.com/ubuntu focal/main amd64 libhcrypto4-heimdal amd64 7.7.0+dfsg-1ubuntu1 [87.9 kB] Get:55 http://archive.ubuntu.com/ubuntu focal/main amd64 libwind0-heimdal amd64 7.7.0+dfsg-1ubuntu1 [48.0 kB] Get:56 http://archive.ubuntu.com/ubuntu focal/main amd64 libhx509-5-heimdal amd64 7.7.0+dfsg-1ubuntu1 [107 kB] Get:57 http://archive.ubuntu.com/ubuntu focal/main amd64 libkrb5-26-heimdal amd64 7.7.0+dfsg-1ubuntu1 [208 kB] Get:58 http://archive.ubuntu.com/ubuntu focal/main amd64 libheimntlm0-heimdal amd64 7.7.0+dfsg-1ubuntu1 [15.1 kB] Get:59 http://archive.ubuntu.com/ubuntu focal/main amd64 libgssapi3-heimdal amd64 7.7.0+dfsg-1ubuntu1 [96.1 kB] Get:60 http://archive.ubuntu.com/ubuntu focal/main amd64 libsasl2-modules-db amd64 2.1.27+dfsg-2 [14.9 kB] Get:61 http://archive.ubuntu.com/ubuntu focal/main amd64 libsasl2-2 amd64 2.1.27+dfsg-2 [49.3 kB] Get:62 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libldap-common all 2.4.49+dfsg-2ubuntu1.8 [16.6 kB] Get:63 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libldap-2.4-2 amd64 2.4.49+dfsg-2ubuntu1.8 [155 kB] Get:64 http://archive.ubuntu.com/ubuntu focal/main amd64 libnghttp2-14 amd64 1.40.0-1build1 [78.7 kB] Get:65 http://archive.ubuntu.com/ubuntu focal/main amd64 librtmp1 amd64 2.4+20151223.gitfa8646d.1-2build1 [54.9 kB] Get:66 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libssh-4 amd64 0.9.3-2ubuntu2.1 [170 kB] Get:67 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libcurl3-gnutls amd64 7.68.0-1ubuntu2.6 [231 kB] Get:68 http://archive.ubuntu.com/ubuntu focal/main amd64 liberror-perl all 0.17029-1 [26.5 kB] Get:69 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 git-man all 1:2.25.1-1ubuntu3.1 [884 kB] Get:70 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 git amd64 1:2.25.1-1ubuntu3.1 [4557 kB] Get:71 http://archive.ubuntu.com/ubuntu focal/main amd64 libsasl2-modules amd64 2.1.27+dfsg-2 [49.1 kB] Get:72 http://archive.ubuntu.com/ubuntu focal/main amd64 patch amd64 2.7.6-6 [105 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 25.5 MB in 2s (14.0 MB/s) Selecting previously unselected package libssl1.1:amd64. (Reading database ... 4127 files and directories currently installed.) Preparing to unpack .../libssl1.1_1.1.1f-1ubuntu2.4_amd64.deb ... Unpacking libssl1.1:amd64 (1.1.1f-1ubuntu2.4) ... Selecting previously unselected package libpython3.8-minimal:amd64. Preparing to unpack .../libpython3.8-minimal_3.8.10-0ubuntu1~20.04_amd64.deb ... Unpacking libpython3.8-minimal:amd64 (3.8.10-0ubuntu1~20.04) ... Selecting previously unselected package libexpat1:amd64. Preparing to unpack .../libexpat1_2.2.9-1build1_amd64.deb ... Unpacking libexpat1:amd64 (2.2.9-1build1) ... Selecting previously unselected package python3.8-minimal. Preparing to unpack .../python3.8-minimal_3.8.10-0ubuntu1~20.04_amd64.deb ... Unpacking python3.8-minimal (3.8.10-0ubuntu1~20.04) ... Setting up libssl1.1:amd64 (1.1.1f-1ubuntu2.4) ... debconf: unable to initialize frontend: Dialog debconf: (TERM is not set, so the dialog frontend is not usable.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.30.0 /usr/local/share/perl/5.30.0 /usr/lib/x86_64-linux-gnu/perl5/5.30 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.) debconf: falling back to frontend: Teletype Setting up libpython3.8-minimal:amd64 (3.8.10-0ubuntu1~20.04) ... Setting up libexpat1:amd64 (2.2.9-1build1) ... Setting up python3.8-minimal (3.8.10-0ubuntu1~20.04) ... Selecting previously unselected package python3-minimal. (Reading database ... 4428 files and directories currently installed.) Preparing to unpack .../0-python3-minimal_3.8.2-0ubuntu2_amd64.deb ... Unpacking python3-minimal (3.8.2-0ubuntu2) ... Selecting previously unselected package mime-support. Preparing to unpack .../1-mime-support_3.64ubuntu1_all.deb ... Unpacking mime-support (3.64ubuntu1) ... Selecting previously unselected package libmpdec2:amd64. Preparing to unpack .../2-libmpdec2_2.4.2-3_amd64.deb ... Unpacking libmpdec2:amd64 (2.4.2-3) ... Selecting previously unselected package readline-common. Preparing to unpack .../3-readline-common_8.0-4_all.deb ... Unpacking readline-common (8.0-4) ... Selecting previously unselected package libreadline8:amd64. Preparing to unpack .../4-libreadline8_8.0-4_amd64.deb ... Unpacking libreadline8:amd64 (8.0-4) ... Selecting previously unselected package libsqlite3-0:amd64. Preparing to unpack .../5-libsqlite3-0_3.31.1-4ubuntu0.2_amd64.deb ... Unpacking libsqlite3-0:amd64 (3.31.1-4ubuntu0.2) ... Selecting previously unselected package libpython3.8-stdlib:amd64. Preparing to unpack .../6-libpython3.8-stdlib_3.8.10-0ubuntu1~20.04_amd64.deb ... Unpacking libpython3.8-stdlib:amd64 (3.8.10-0ubuntu1~20.04) ... Selecting previously unselected package python3.8. Preparing to unpack .../7-python3.8_3.8.10-0ubuntu1~20.04_amd64.deb ... Unpacking python3.8 (3.8.10-0ubuntu1~20.04) ... Selecting previously unselected package libpython3-stdlib:amd64. Preparing to unpack .../8-libpython3-stdlib_3.8.2-0ubuntu2_amd64.deb ... Unpacking libpython3-stdlib:amd64 (3.8.2-0ubuntu2) ... Setting up python3-minimal (3.8.2-0ubuntu2) ... Selecting previously unselected package python3. (Reading database ... 4858 files and directories currently installed.) Preparing to unpack .../00-python3_3.8.2-0ubuntu2_amd64.deb ... Unpacking python3 (3.8.2-0ubuntu2) ... Selecting previously unselected package perl-modules-5.30. Preparing to unpack .../01-perl-modules-5.30_5.30.0-9ubuntu0.2_all.deb ... Unpacking perl-modules-5.30 (5.30.0-9ubuntu0.2) ... Selecting previously unselected package libgdbm6:amd64. Preparing to unpack .../02-libgdbm6_1.18.1-5_amd64.deb ... Unpacking libgdbm6:amd64 (1.18.1-5) ... Selecting previously unselected package libgdbm-compat4:amd64. Preparing to unpack .../03-libgdbm-compat4_1.18.1-5_amd64.deb ... Unpacking libgdbm-compat4:amd64 (1.18.1-5) ... Selecting previously unselected package libperl5.30:amd64. Preparing to unpack .../04-libperl5.30_5.30.0-9ubuntu0.2_amd64.deb ... Unpacking libperl5.30:amd64 (5.30.0-9ubuntu0.2) ... Selecting previously unselected package perl. Preparing to unpack .../05-perl_5.30.0-9ubuntu0.2_amd64.deb ... Unpacking perl (5.30.0-9ubuntu0.2) ... Selecting previously unselected package openssl. Preparing to unpack .../06-openssl_1.1.1f-1ubuntu2.4_amd64.deb ... Unpacking openssl (1.1.1f-1ubuntu2.4) ... Selecting previously unselected package ca-certificates. Preparing to unpack .../07-ca-certificates_20210119~20.04.1_all.deb ... Unpacking ca-certificates (20210119~20.04.1) ... Selecting previously unselected package libmagic-mgc. Preparing to unpack .../08-libmagic-mgc_1%3a5.38-4_amd64.deb ... Unpacking libmagic-mgc (1:5.38-4) ... Selecting previously unselected package libmagic1:amd64. Preparing to unpack .../09-libmagic1_1%3a5.38-4_amd64.deb ... Unpacking libmagic1:amd64 (1:5.38-4) ... Selecting previously unselected package file. Preparing to unpack .../10-file_1%3a5.38-4_amd64.deb ... Unpacking file (1:5.38-4) ... Selecting previously unselected package less. Preparing to unpack .../11-less_551-1ubuntu0.1_amd64.deb ... Unpacking less (551-1ubuntu0.1) ... Selecting previously unselected package libbsd0:amd64. Preparing to unpack .../12-libbsd0_0.10.0-1_amd64.deb ... Unpacking libbsd0:amd64 (0.10.0-1) ... Selecting previously unselected package netbase. Preparing to unpack .../13-netbase_6.1_all.deb ... Unpacking netbase (6.1) ... Selecting previously unselected package xz-utils. Preparing to unpack .../14-xz-utils_5.2.4-1ubuntu1_amd64.deb ... Unpacking xz-utils (5.2.4-1ubuntu1) ... Selecting previously unselected package krb5-locales. Preparing to unpack .../15-krb5-locales_1.17-6ubuntu4.1_all.deb ... Unpacking krb5-locales (1.17-6ubuntu4.1) ... Selecting previously unselected package libcbor0.6:amd64. Preparing to unpack .../16-libcbor0.6_0.6.0-0ubuntu1_amd64.deb ... Unpacking libcbor0.6:amd64 (0.6.0-0ubuntu1) ... Selecting previously unselected package libedit2:amd64. Preparing to unpack .../17-libedit2_3.1-20191231-1_amd64.deb ... Unpacking libedit2:amd64 (3.1-20191231-1) ... Selecting previously unselected package libfido2-1:amd64. Preparing to unpack .../18-libfido2-1_1.3.1-1ubuntu2_amd64.deb ... Unpacking libfido2-1:amd64 (1.3.1-1ubuntu2) ... Selecting previously unselected package libkrb5support0:amd64. Preparing to unpack .../19-libkrb5support0_1.17-6ubuntu4.1_amd64.deb ... Unpacking libkrb5support0:amd64 (1.17-6ubuntu4.1) ... Selecting previously unselected package libk5crypto3:amd64. Preparing to unpack .../20-libk5crypto3_1.17-6ubuntu4.1_amd64.deb ... Unpacking libk5crypto3:amd64 (1.17-6ubuntu4.1) ... Selecting previously unselected package libkeyutils1:amd64. Preparing to unpack .../21-libkeyutils1_1.6-6ubuntu1_amd64.deb ... Unpacking libkeyutils1:amd64 (1.6-6ubuntu1) ... Selecting previously unselected package libkrb5-3:amd64. Preparing to unpack .../22-libkrb5-3_1.17-6ubuntu4.1_amd64.deb ... Unpacking libkrb5-3:amd64 (1.17-6ubuntu4.1) ... Selecting previously unselected package libgssapi-krb5-2:amd64. Preparing to unpack .../23-libgssapi-krb5-2_1.17-6ubuntu4.1_amd64.deb ... Unpacking libgssapi-krb5-2:amd64 (1.17-6ubuntu4.1) ... Selecting previously unselected package libpsl5:amd64. Preparing to unpack .../24-libpsl5_0.21.0-1ubuntu1_amd64.deb ... Unpacking libpsl5:amd64 (0.21.0-1ubuntu1) ... Selecting previously unselected package libxau6:amd64. Preparing to unpack .../25-libxau6_1%3a1.0.9-0ubuntu1_amd64.deb ... Unpacking libxau6:amd64 (1:1.0.9-0ubuntu1) ... Selecting previously unselected package libxdmcp6:amd64. Preparing to unpack .../26-libxdmcp6_1%3a1.1.3-0ubuntu1_amd64.deb ... Unpacking libxdmcp6:amd64 (1:1.1.3-0ubuntu1) ... Selecting previously unselected package libxcb1:amd64. Preparing to unpack .../27-libxcb1_1.14-2_amd64.deb ... Unpacking libxcb1:amd64 (1.14-2) ... Selecting previously unselected package libx11-data. Preparing to unpack .../28-libx11-data_2%3a1.6.9-2ubuntu1.2_all.deb ... Unpacking libx11-data (2:1.6.9-2ubuntu1.2) ... Selecting previously unselected package libx11-6:amd64. Preparing to unpack .../29-libx11-6_2%3a1.6.9-2ubuntu1.2_amd64.deb ... Unpacking libx11-6:amd64 (2:1.6.9-2ubuntu1.2) ... Selecting previously unselected package libxext6:amd64. Preparing to unpack .../30-libxext6_2%3a1.3.4-0ubuntu1_amd64.deb ... Unpacking libxext6:amd64 (2:1.3.4-0ubuntu1) ... Selecting previously unselected package libxmuu1:amd64. Preparing to unpack .../31-libxmuu1_2%3a1.1.3-0ubuntu1_amd64.deb ... Unpacking libxmuu1:amd64 (2:1.1.3-0ubuntu1) ... Selecting previously unselected package openssh-client. Preparing to unpack .../32-openssh-client_1%3a8.2p1-4ubuntu0.2_amd64.deb ... Unpacking openssh-client (1:8.2p1-4ubuntu0.2) ... Selecting previously unselected package publicsuffix. Preparing to unpack .../33-publicsuffix_20200303.0012-1_all.deb ... Unpacking publicsuffix (20200303.0012-1) ... Selecting previously unselected package wget. Preparing to unpack .../34-wget_1.20.3-1ubuntu1_amd64.deb ... Unpacking wget (1.20.3-1ubuntu1) ... Selecting previously unselected package xauth. Preparing to unpack .../35-xauth_1%3a1.1-0ubuntu1_amd64.deb ... Unpacking xauth (1:1.1-0ubuntu1) ... Selecting previously unselected package libbrotli1:amd64. Preparing to unpack .../36-libbrotli1_1.0.7-6ubuntu0.1_amd64.deb ... Unpacking libbrotli1:amd64 (1.0.7-6ubuntu0.1) ... Selecting previously unselected package libroken18-heimdal:amd64. Preparing to unpack .../37-libroken18-heimdal_7.7.0+dfsg-1ubuntu1_amd64.deb ... Unpacking libroken18-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ... Selecting previously unselected package libasn1-8-heimdal:amd64. Preparing to unpack .../38-libasn1-8-heimdal_7.7.0+dfsg-1ubuntu1_amd64.deb ... Unpacking libasn1-8-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ... Selecting previously unselected package libheimbase1-heimdal:amd64. Preparing to unpack .../39-libheimbase1-heimdal_7.7.0+dfsg-1ubuntu1_amd64.deb ... Unpacking libheimbase1-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ... Selecting previously unselected package libhcrypto4-heimdal:amd64. Preparing to unpack .../40-libhcrypto4-heimdal_7.7.0+dfsg-1ubuntu1_amd64.deb ... Unpacking libhcrypto4-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ... Selecting previously unselected package libwind0-heimdal:amd64. Preparing to unpack .../41-libwind0-heimdal_7.7.0+dfsg-1ubuntu1_amd64.deb ... Unpacking libwind0-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ... Selecting previously unselected package libhx509-5-heimdal:amd64. Preparing to unpack .../42-libhx509-5-heimdal_7.7.0+dfsg-1ubuntu1_amd64.deb ... Unpacking libhx509-5-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ... Selecting previously unselected package libkrb5-26-heimdal:amd64. Preparing to unpack .../43-libkrb5-26-heimdal_7.7.0+dfsg-1ubuntu1_amd64.deb ... Unpacking libkrb5-26-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ... Selecting previously unselected package libheimntlm0-heimdal:amd64. Preparing to unpack .../44-libheimntlm0-heimdal_7.7.0+dfsg-1ubuntu1_amd64.deb ... Unpacking libheimntlm0-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ... Selecting previously unselected package libgssapi3-heimdal:amd64. Preparing to unpack .../45-libgssapi3-heimdal_7.7.0+dfsg-1ubuntu1_amd64.deb ... Unpacking libgssapi3-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ... Selecting previously unselected package libsasl2-modules-db:amd64. Preparing to unpack .../46-libsasl2-modules-db_2.1.27+dfsg-2_amd64.deb ... Unpacking libsasl2-modules-db:amd64 (2.1.27+dfsg-2) ... Selecting previously unselected package libsasl2-2:amd64. Preparing to unpack .../47-libsasl2-2_2.1.27+dfsg-2_amd64.deb ... Unpacking libsasl2-2:amd64 (2.1.27+dfsg-2) ... Selecting previously unselected package libldap-common. Preparing to unpack .../48-libldap-common_2.4.49+dfsg-2ubuntu1.8_all.deb ... Unpacking libldap-common (2.4.49+dfsg-2ubuntu1.8) ... Selecting previously unselected package libldap-2.4-2:amd64. Preparing to unpack .../49-libldap-2.4-2_2.4.49+dfsg-2ubuntu1.8_amd64.deb ... Unpacking libldap-2.4-2:amd64 (2.4.49+dfsg-2ubuntu1.8) ... Selecting previously unselected package libnghttp2-14:amd64. Preparing to unpack .../50-libnghttp2-14_1.40.0-1build1_amd64.deb ... Unpacking libnghttp2-14:amd64 (1.40.0-1build1) ... Selecting previously unselected package librtmp1:amd64. Preparing to unpack .../51-librtmp1_2.4+20151223.gitfa8646d.1-2build1_amd64.deb ... Unpacking librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2build1) ... Selecting previously unselected package libssh-4:amd64. Preparing to unpack .../52-libssh-4_0.9.3-2ubuntu2.1_amd64.deb ... Unpacking libssh-4:amd64 (0.9.3-2ubuntu2.1) ... Selecting previously unselected package libcurl3-gnutls:amd64. Preparing to unpack .../53-libcurl3-gnutls_7.68.0-1ubuntu2.6_amd64.deb ... Unpacking libcurl3-gnutls:amd64 (7.68.0-1ubuntu2.6) ... Selecting previously unselected package liberror-perl. Preparing to unpack .../54-liberror-perl_0.17029-1_all.deb ... Unpacking liberror-perl (0.17029-1) ... Selecting previously unselected package git-man. Preparing to unpack .../55-git-man_1%3a2.25.1-1ubuntu3.1_all.deb ... Unpacking git-man (1:2.25.1-1ubuntu3.1) ... Selecting previously unselected package git. Preparing to unpack .../56-git_1%3a2.25.1-1ubuntu3.1_amd64.deb ... Unpacking git (1:2.25.1-1ubuntu3.1) ... Selecting previously unselected package libsasl2-modules:amd64. Preparing to unpack .../57-libsasl2-modules_2.1.27+dfsg-2_amd64.deb ... Unpacking libsasl2-modules:amd64 (2.1.27+dfsg-2) ... Selecting previously unselected package patch. Preparing to unpack .../58-patch_2.7.6-6_amd64.deb ... Unpacking patch (2.7.6-6) ... Setting up libxau6:amd64 (1:1.0.9-0ubuntu1) ... Setting up libkeyutils1:amd64 (1.6-6ubuntu1) ... Setting up libpsl5:amd64 (0.21.0-1ubuntu1) ... Setting up perl-modules-5.30 (5.30.0-9ubuntu0.2) ... Setting up mime-support (3.64ubuntu1) ... Setting up wget (1.20.3-1ubuntu1) ... Setting up libmagic-mgc (1:5.38-4) ... Setting up libbrotli1:amd64 (1.0.7-6ubuntu0.1) ... Setting up libsqlite3-0:amd64 (3.31.1-4ubuntu0.2) ... Setting up libsasl2-modules:amd64 (2.1.27+dfsg-2) ... Setting up libnghttp2-14:amd64 (1.40.0-1build1) ... Setting up libmagic1:amd64 (1:5.38-4) ... Setting up less (551-1ubuntu0.1) ... Setting up krb5-locales (1.17-6ubuntu4.1) ... Setting up file (1:5.38-4) ... Setting up libcbor0.6:amd64 (0.6.0-0ubuntu1) ... Setting up libldap-common (2.4.49+dfsg-2ubuntu1.8) ... Setting up libkrb5support0:amd64 (1.17-6ubuntu4.1) ... Setting up libsasl2-modules-db:amd64 (2.1.27+dfsg-2) ... Setting up libx11-data (2:1.6.9-2ubuntu1.2) ... Setting up librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2build1) ... Setting up xz-utils (5.2.4-1ubuntu1) ... update-alternatives: using /usr/bin/xz to provide /usr/bin/lzma (lzma) in auto mode update-alternatives: warning: skip creation of /usr/share/man/man1/lzma.1.gz because associated file /usr/share/man/man1/xz.1.gz (of link group lzma) doesn't exist update-alternatives: warning: skip creation of /usr/share/man/man1/unlzma.1.gz because associated file /usr/share/man/man1/unxz.1.gz (of link group lzma) doesn't exist update-alternatives: warning: skip creation of /usr/share/man/man1/lzcat.1.gz because associated file /usr/share/man/man1/xzcat.1.gz (of link group lzma) doesn't exist update-alternatives: warning: skip creation of /usr/share/man/man1/lzmore.1.gz because associated file /usr/share/man/man1/xzmore.1.gz (of link group lzma) doesn't exist update-alternatives: warning: skip creation of /usr/share/man/man1/lzless.1.gz because associated file /usr/share/man/man1/xzless.1.gz (of link group lzma) doesn't exist update-alternatives: warning: skip creation of /usr/share/man/man1/lzdiff.1.gz because associated file /usr/share/man/man1/xzdiff.1.gz (of link group lzma) doesn't exist update-alternatives: warning: skip creation of /usr/share/man/man1/lzcmp.1.gz because associated file /usr/share/man/man1/xzcmp.1.gz (of link group lzma) doesn't exist update-alternatives: warning: skip creation of /usr/share/man/man1/lzgrep.1.gz because associated file /usr/share/man/man1/xzgrep.1.gz (of link group lzma) doesn't exist update-alternatives: warning: skip creation of /usr/share/man/man1/lzegrep.1.gz because associated file /usr/share/man/man1/xzegrep.1.gz (of link group lzma) doesn't exist update-alternatives: warning: skip creation of /usr/share/man/man1/lzfgrep.1.gz because associated file /usr/share/man/man1/xzfgrep.1.gz (of link group lzma) doesn't exist Setting up patch (2.7.6-6) ... Setting up libk5crypto3:amd64 (1.17-6ubuntu4.1) ... Setting up libsasl2-2:amd64 (2.1.27+dfsg-2) ... Setting up libroken18-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ... Setting up git-man (1:2.25.1-1ubuntu3.1) ... Setting up netbase (6.1) ... Setting up libkrb5-3:amd64 (1.17-6ubuntu4.1) ... Setting up libmpdec2:amd64 (2.4.2-3) ... Setting up libfido2-1:amd64 (1.3.1-1ubuntu2) ... Setting up openssl (1.1.1f-1ubuntu2.4) ... Setting up libbsd0:amd64 (0.10.0-1) ... Setting up readline-common (8.0-4) ... Setting up publicsuffix (20200303.0012-1) ... Setting up libheimbase1-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ... Setting up libgdbm6:amd64 (1.18.1-5) ... Setting up libxdmcp6:amd64 (1:1.1.3-0ubuntu1) ... Setting up libxcb1:amd64 (1.14-2) ... Setting up libasn1-8-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ... Setting up libedit2:amd64 (3.1-20191231-1) ... Setting up libreadline8:amd64 (8.0-4) ... Setting up libhcrypto4-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ... Setting up ca-certificates (20210119~20.04.1) ... debconf: unable to initialize frontend: Dialog debconf: (TERM is not set, so the dialog frontend is not usable.) debconf: falling back to frontend: Readline Updating certificates in /etc/ssl/certs... 129 added, 0 removed; done. Setting up libwind0-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ... Setting up libgssapi-krb5-2:amd64 (1.17-6ubuntu4.1) ... Setting up libgdbm-compat4:amd64 (1.18.1-5) ... Setting up libssh-4:amd64 (0.9.3-2ubuntu2.1) ... Setting up libperl5.30:amd64 (5.30.0-9ubuntu0.2) ... Setting up libx11-6:amd64 (2:1.6.9-2ubuntu1.2) ... Setting up libpython3.8-stdlib:amd64 (3.8.10-0ubuntu1~20.04) ... Setting up python3.8 (3.8.10-0ubuntu1~20.04) ... Setting up libxmuu1:amd64 (2:1.1.3-0ubuntu1) ... Setting up libpython3-stdlib:amd64 (3.8.2-0ubuntu2) ... Setting up openssh-client (1:8.2p1-4ubuntu0.2) ... Setting up libhx509-5-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ... Setting up libxext6:amd64 (2:1.3.4-0ubuntu1) ... Setting up python3 (3.8.2-0ubuntu2) ... running python rtupdate hooks for python3.8... running python post-rtupdate hooks for python3.8... Setting up perl (5.30.0-9ubuntu0.2) ... Setting up xauth (1:1.1-0ubuntu1) ... Setting up libkrb5-26-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ... Setting up libheimntlm0-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ... Setting up liberror-perl (0.17029-1) ... Setting up libgssapi3-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ... Setting up libldap-2.4-2:amd64 (2.4.49+dfsg-2ubuntu1.8) ... Setting up libcurl3-gnutls:amd64 (7.68.0-1ubuntu2.6) ... Setting up git (1:2.25.1-1ubuntu3.1) ... Processing triggers for libc-bin (2.31-0ubuntu9.2) ... Processing triggers for ca-certificates (20210119~20.04.1) ... Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done. Running hooks in /etc/ca-certificates/update.d... done. Removing intermediate container 951413fda3e4 ---> 7c7f65aa3139 Step 5/6 : COPY . /source/WireGuard ---> 4cbb4cf53de2 Step 6/6 : ENTRYPOINT exec /source/WireGuard/build.sh ---> Running in 4a654622e635 Removing intermediate container 4a654622e635 ---> b2ace5db85c8 Successfully built b2ace5db85c8 Successfully tagged synobuild:latest

Can anyone help me with this? Do I need to do some more things? Or do I need the supply my uid? Thanks lots in advance

samuellazea commented 2 years ago

Did a bit more debugging and this is what I came up with:

  1. I changed the Dockerfile exec part to do an ls -latr in order to see the permissions from the container even if crashes.

`root@DS1621xs:/volume1/Testing_Wireguard/synology-wireguard# cat Dockerfile FROM ubuntu:latest

VOLUME [ "/toolkit_tarballs" ]

ENV IS_IN_CONTAINER 1

RUN apt-get update \ && apt-get -qy install git python3 wget ca-certificates

COPY . /source/WireGuard

ENTRYPOINT exec ls -latr /source/WireGuard/ `

  1. I built the container again and I checked the logs and this is what it prints:

Running hooks in /etc/ca-certificates/update.d...

done. Removing intermediate container 4b340363cde0 ---> daeeb3648a62 Step 5/6 : COPY . /source/WireGuard ---> b2df6cdc10bd Step 6/6 : ENTRYPOINT exec ls -latr /source/WireGuard/ ---> Running in 2937ff1f09b2 Removing intermediate container 2937ff1f09b2 ---> b8cfa8fc8657 Successfully built b8cfa8fc8657 Successfully tagged synobuild:latest root@DS1621xs:/volume1/Testing_Wireguard/synology-wireguard# docker run --privileged --network=host --env PACKAGE_ARCH=broadwell --env DSM_VER=6.2 -v $(pwd):/result_spk synobuild total 80 d--------- 1 root root 68 Jul 28 08:11 scripts ---------- 1 root root 1818 Jul 28 08:11 release.sh ---------- 1 root root 501 Jul 28 08:11 memneq.patch ---------- 1 root root 4860 Jul 28 08:11 build.sh d--------- 1 root root 38 Jul 28 08:11 SynoBuildConf ---------- 1 root root 8506 Jul 28 08:11 README.rst ---------- 1 root root 22942 Jul 28 08:11 PACKAGE_ICON_256.PNG ---------- 1 root root 3699 Jul 28 08:11 PACKAGE_ICON.PNG ---------- 1 root root 2710 Jul 28 08:11 Makefile ---------- 1 root root 1083 Jul 28 08:11 LICENSE ---------- 1 root root 298 Jul 28 08:11 INFO.sh ---------- 1 root root 11 Jul 28 08:11 .gitignore d--------- 1 root root 28 Jul 28 08:11 .github d--------- 1 root root 138 Jul 28 08:11 .git ---------- 1 root root 37 Jul 28 08:11 .dockerignore ---------- 1 root root 224 Jul 28 09:47 Dockerfile drwxr-xr-x 1 root root 18 Jul 28 09:49 .. drwxr-xr-x 1 root root 324 Jul 28 09:49 .

As you can see, the permissions look really wrong

samuellazea commented 2 years ago

Did some more trying and I now manage to get further. I added in docker file an chmod to make sure the permissions are ok and that seems to get it further.

Removing intermediate container 6d5894985fc5 ---> 1a83cc4c638c Step 5/7 : COPY . /source/WireGuard ---> d9199c5f65a2 Step 6/7 : RUN chmod -R 777 /source/WireGuard ---> Running in 2d80b7862d0c Removing intermediate container 2d80b7862d0c ---> e56e7ea37bbd Step 7/7 : ENTRYPOINT exec ls -latr /source/WireGuard/ ---> Running in 93569dbd69a1 Removing intermediate container 93569dbd69a1 ---> 967b9e080651 Successfully built 967b9e080651 Successfully tagged synobuild:latest root@DS1621xs:/volume1/Testing_Wireguard/synology-wireguard# docker run --privileged --name synobuild --network=host --env PACKAGE_ARCH=broadwell --env DSM_VER=6.2 -v $(pwd):/result_spk synobuild total 80 drwxrwxrwx 1 root root 68 Jul 28 08:11 scripts -rwxrwxrwx 1 root root 1818 Jul 28 08:11 release.sh -rwxrwxrwx 1 root root 501 Jul 28 08:11 memneq.patch -rwxrwxrwx 1 root root 4860 Jul 28 08:11 build.sh drwxrwxrwx 1 root root 38 Jul 28 08:11 SynoBuildConf -rwxrwxrwx 1 root root 8506 Jul 28 08:11 README.rst -rwxrwxrwx 1 root root 22942 Jul 28 08:11 PACKAGE_ICON_256.PNG -rwxrwxrwx 1 root root 3699 Jul 28 08:11 PACKAGE_ICON.PNG -rwxrwxrwx 1 root root 2710 Jul 28 08:11 Makefile -rwxrwxrwx 1 root root 1083 Jul 28 08:11 LICENSE -rwxrwxrwx 1 root root 298 Jul 28 08:11 INFO.sh -rwxrwxrwx 1 root root 11 Jul 28 08:11 .gitignore drwxrwxrwx 1 root root 28 Jul 28 08:11 .github drwxrwxrwx 1 root root 138 Jul 28 08:11 .git -rwxrwxrwx 1 root root 37 Jul 28 08:11 .dockerignore -rwxrwxrwx 1 root root 260 Jul 28 09:59 Dockerfile drwxr-xr-x 1 root root 18 Jul 28 10:02 .. drwxrwxrwx 1 root root 324 Jul 28 10:02 .

Running hooks in /etc/ca-certificates/update.d... done. Removing intermediate container a1518dca554f ---> dcb139e47956 Step 5/7 : COPY . /source/WireGuard ---> d8b9d3847a6a Step 6/7 : RUN chmod -R 777 /source/WireGuard ---> Running in 43f01e23882a Removing intermediate container 43f01e23882a ---> a7086f8c6676 Step 7/7 : ENTRYPOINT exec /source/WireGuard/build.sh ---> Running in 840cc340b5ba Removing intermediate container 840cc340b5ba ---> fc200e268a80 Successfully built fc200e268a80 Successfully tagged synobuild:latest root@DS1621xs:/volume1/Testing_Wireguard/synology-wireguard# docker run --privileged --name synobuild --network=host --env PACKAGE_ARCH=broadwell --env DSM_VER=6.2 -v $(pwd):/result_spk synobuild WireGuard version: 1.0.20210606 WireGuard tools version: 1.0.20210424 libmnl version: 1.0.4

Cloning into 'pkgscripts-ng'... Download... https://sourceforge.net/projects/dsgpl/files/toolkit/DSM6.2/base_env-6.2.txz Download destination: /toolkit_tarballs/base_env-6.2.txz% Download... https://sourceforge.net/projects/dsgpl/files/toolkit/DSM6.2/ds.broadwell-6.2.env.txz Download destination: /toolkit_tarballs/ds.broadwell-6.2.env.txz Download... https://sourceforge.net/projects/dsgpl/files/toolkit/DSM6.2/ds.broadwell-6.2.dev.txz Download destination: /toolkit_tarballs/ds.broadwell-6.2.dev.txz

Maybe this can be added to the Dockerfile to make sure people don't run into this thing?

mada199122 commented 2 years ago

I haven't been able to compile the package for the 1621xs+ too. Has someone been able to?

I'm on DSM 7.0.1

mkowalski commented 2 years ago

I was running onto the same set of issues when trying to build directly from the NAS. What helped was a cross-compilation from a regular x86_64 environment. You can follow https://github.com/runfalk/synology-wireguard/pull/102 for a simple set of steps that worked for me without modifying scripts and Dockerfiles.

mada199122 commented 2 years ago

I have available only the NAS with a Broadwell CPU...

Can someone that was able to build successfully the package share it please?

ben-ba commented 2 years ago

@mada199122

https://github.com/runfalk/synology-wireguard/issues/93#issuecomment-922057387