runfalk / synology-wireguard

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

Can't create pkg file for DSM7 DS218J #110

Closed Davidstos closed 2 years ago

Davidstos commented 2 years ago

Does someone can compile the package for armada38x DSM7 for me please ?

Davidstos commented 2 years ago

WireGuard version:        1.0.20210606
WireGuard tools version:  1.0.20210914
libmnl version:           1.0.4

Cloning into 'pkgscripts-ng'...
[2021-10-09 15:06:57,780] INFO: Download... https://dataupdate7.synology.com/toolchain/v1/get_download_list?identify=toolkit&version=7.0&platform=base
[2021-10-09 15:07:10,237] INFO: Download... https://dataupdate7.synology.com/toolchain/v1/get_download_list?identify=toolkit&version=7.0&platform=armada38x
[2021-10-09 15:07:16,204] INFO: tar -xhf /toolkit_tarballs/base_env-7.0.txz -C /build_env/ds.armada38x-7.0
[2021-10-09 15:08:33,743] INFO: tar -xhf /toolkit_tarballs/ds.armada38x-7.0.env.txz -C /build_env/ds.armada38x-7.0
[2021-10-09 15:08:58,712] INFO: tar -xhf /toolkit_tarballs/ds.armada38x-7.0.dev.txz -C /build_env/ds.armada38x-7.0
[2021-10-09 15:09:21,905] INFO: All task finished.
============================================================
                   Parse argument result                    
------------------------------------------------------------
platforms     : armada38x
env_section   : default
env_version   : 7.0
dep_level     : 1
parallel_proj : 1
branch        : master
suffix        : 
collect       : True
collecter     : True
link          : True
update_link   : False
build         : True
install       : True
only_install  : False
parallel      : 2
build_opt     : -J
install_opt   : 
print_log     : True
tee           : True
sdk_ver       : 6.2
package       : WireGuard

Processing [7.0-42176]: armada38x
============================================================
              Start to run "Traverse project"               
------------------------------------------------------------
Projects: WireGuard

============================================================
                Start to run "Link Project"                 
------------------------------------------------------------
Link /pkgscripts-ng -> /build_env/ds.armada38x-7.0/pkgscripts-ng
Link //source/WireGuard -> /build_env/ds.armada38x-7.0/source/WireGuard

============================================================
                Start to run "Build Package"                
------------------------------------------------------------
[armada38x] env PackageName=WireGuard /pkgscripts-ng/SynoBuild --armada38x -c --min-sdk 6.2 -J WireGuard
Set cache size limit to 8.0 Gbytes
Statistics cleared
[INFO] projectList=WireGuard
[INFO] Start to build WireGuard.
[SCRIPT] build script: //source/WireGuard/SynoBuildConf/build
[INFO] ======= Run build script =======
rm -rf libmnl-1.0.4.tar.bz2 libmnl-1.0.4 wireguard-linux-compat-1.0.20210606.tar.xz wireguard-linux-compat-1.0.20210606 wireguard-tools-1.0.20210914.tar.xz wireguard-tools-1.0.20210914
wget https://netfilter.org/projects/libmnl/files/libmnl-1.0.4.tar.bz2
--2021-10-09 23:09:25--  https://netfilter.org/projects/libmnl/files/libmnl-1.0.4.tar.bz2
Resolving netfilter.org (netfilter.org)... 92.243.18.11, 2001:4b98:dc0:43:216:3eff:fe87:a456
Connecting to netfilter.org (netfilter.org)|92.243.18.11|:443... connected.
ERROR: cannot verify netfilter.org's certificate, issued by 'CN=R3,O=Let\'s Encrypt,C=US':
  Unable to locally verify the issuer's authority.
To connect to netfilter.org insecurely, use `--no-check-certificate'.
Makefile:26: recipe for target 'libmnl-1.0.4.tar.bz2' failed
make: *** [libmnl-1.0.4.tar.bz2] Error 5
[Error] Build project fail!
Time cost: 00:00:00 [Build-->WireGuard]
[INFO] Build WireGuard finished!
----------------- Time cost statistics -----------------
Time cost: 00:00:00 [Build-->WireGuard]
########################################################
      Error(s) occurred on project "WireGuard"
########################################################
1 projects, 1 failed, 0 blocked.
[Error] Check [/logs/error.build] for fixing errors.
Traceback (most recent call last):
  File "/pkgscripts-ng/include/python/exec_env.py", line 76, in execute
    output = commandrunner.run(cmd, display=display, **kwargs)
  File "/pkgscripts-ng/include/python/commandrunner.py", line 39, in run
    raise RunShellFailed(p.returncode, cmd, output)
commandrunner.RunShellFailed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/pkgscripts-ng/include/python/parallel.py", line 15, in __call__
    result = self.__callable(*args, **kwargs)
  File "/pkgscripts-ng/include/python/pkgcommon.py", line 191, in run_command
    env.execute(cmd, display=len(self.env_config.platforms)
  File "/pkgscripts-ng/include/python/exec_env.py", line 79, in execute
    raise EnvError(
exec_env.EnvError: ('Execute chroot /build_env/ds.armada38x-7.0 env PackageName=WireGuard /pkgscripts-ng/SynoBuild --armada38x -c --min-sdk 6.2 -J WireGuard failed', 'Set cache size limit to 8.0 Gbytes\nStatistics cleared\n[INFO] projectList=WireGuard\n[INFO] Start to build WireGuard.\n[SCRIPT] build script: //source/WireGuard/SynoBuildConf/build\n[INFO] ======= Run build script =======\nrm -rf libmnl-1.0.4.tar.bz2 libmnl-1.0.4 wireguard-linux-compat-1.0.20210606.tar.xz wireguard-linux-compat-1.0.20210606 wireguard-tools-1.0.20210914.tar.xz wireguard-tools-1.0.20210914\nwget https://netfilter.org/projects/libmnl/files/libmnl-1.0.4.tar.bz2\n--2021-10-09 23:09:25--  https://netfilter.org/projects/libmnl/files/libmnl-1.0.4.tar.bz2\nResolving netfilter.org (netfilter.org)... 92.243.18.11, 2001:4b98:dc0:43:216:3eff:fe87:a456\nConnecting to netfilter.org (netfilter.org)|92.243.18.11|:443... connected.\nERROR: cannot verify netfilter.org\'s certificate, issued by \'CN=R3,O=Let\\\'s Encrypt,C=US\':\n  Unable to locally verify the issuer\'s authority.\nTo connect to netfilter.org insecurely, use `--no-check-certificate\'.\nMakefile:26: recipe for target \'libmnl-1.0.4.tar.bz2\' failed\nmake: *** [libmnl-1.0.4.tar.bz2] Error 5\n[Error] Build project fail!\nTime cost: 00:00:00 [Build-->WireGuard]\n[INFO] Build WireGuard finished!\n\n----------------- Time cost statistics -----------------\nTime cost: 00:00:00 [Build-->WireGuard]\n\n########################################################\n      Error(s) occurred on project "WireGuard"\n########################################################\n1 projects, 1 failed, 0 blocked.\n\n[Error] Check [/logs/error.build] for fixing errors.')
multiprocessing.pool.RemoteTraceback: 
"""
Traceback (most recent call last):
  File "/pkgscripts-ng/include/python/exec_env.py", line 76, in execute
    output = commandrunner.run(cmd, display=display, **kwargs)
  File "/pkgscripts-ng/include/python/commandrunner.py", line 39, in run
    raise RunShellFailed(p.returncode, cmd, output)
commandrunner.RunShellFailed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "/pkgscripts-ng/include/python/parallel.py", line 15, in __call__
    result = self.__callable(*args, **kwargs)
  File "/pkgscripts-ng/include/python/pkgcommon.py", line 191, in run_command
    env.execute(cmd, display=len(self.env_config.platforms)
  File "/pkgscripts-ng/include/python/exec_env.py", line 79, in execute
    raise EnvError(
exec_env.EnvError: ('Execute chroot /build_env/ds.armada38x-7.0 env PackageName=WireGuard /pkgscripts-ng/SynoBuild --armada38x -c --min-sdk 6.2 -J WireGuard failed', 'Set cache size limit to 8.0 Gbytes\nStatistics cleared\n[INFO] projectList=WireGuard\n[INFO] Start to build WireGuard.\n[SCRIPT] build script: //source/WireGuard/SynoBuildConf/build\n[INFO] ======= Run build script =======\nrm -rf libmnl-1.0.4.tar.bz2 libmnl-1.0.4 wireguard-linux-compat-1.0.20210606.tar.xz wireguard-linux-compat-1.0.20210606 wireguard-tools-1.0.20210914.tar.xz wireguard-tools-1.0.20210914\nwget https://netfilter.org/projects/libmnl/files/libmnl-1.0.4.tar.bz2\n--2021-10-09 23:09:25--  https://netfilter.org/projects/libmnl/files/libmnl-1.0.4.tar.bz2\nResolving netfilter.org (netfilter.org)... 92.243.18.11, 2001:4b98:dc0:43:216:3eff:fe87:a456\nConnecting to netfilter.org (netfilter.org)|92.243.18.11|:443... connected.\nERROR: cannot verify netfilter.org\'s certificate, issued by \'CN=R3,O=Let\\\'s Encrypt,C=US\':\n  Unable to locally verify the issuer\'s authority.\nTo connect to netfilter.org insecurely, use `--no-check-certificate\'.\nMakefile:26: recipe for target \'libmnl-1.0.4.tar.bz2\' failed\nmake: *** [libmnl-1.0.4.tar.bz2] Error 5\n[Error] Build project fail!\nTime cost: 00:00:00 [Build-->WireGuard]\n[INFO] Build WireGuard finished!\n\n----------------- Time cost statistics -----------------\nTime cost: 00:00:00 [Build-->WireGuard]\n\n########################################################\n      Error(s) occurred on project "WireGuard"\n########################################################\n1 projects, 1 failed, 0 blocked.\n\n[Error] Check [/logs/error.build] for fixing errors.')
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "pkgscripts-ng/PkgCreate.py", line 184, in <module>
    main(sys.argv[1:])
  File "pkgscripts-ng/PkgCreate.py", line 177, in main
    packer.pack_package()
  File "/pkgscripts-ng/include/python/pkguniform.py", line 437, in pack_package
    worker.execute()
  File "/pkgscripts-ng/include/python/pkgcommon.py", line 86, in execute
    self._process_output(self._run(*argv))
  File "/pkgscripts-ng/include/python/pkgcommon.py", line 212, in _run
    return doPlatformParallel(self.run_command, self.env_config.platforms)
  File "/pkgscripts-ng/include/python/parallel.py", line 60, in doPlatformParallel
    output[item] = results[item].get()
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 771, in get
    raise self._value
exec_env.EnvError: ('Execute chroot /build_env/ds.armada38x-7.0 env PackageName=WireGuard /pkgscripts-ng/SynoBuild --armada38x -c --min-sdk 6.2 -J WireGuard failed', 'Set cache size limit to 8.0 Gbytes\nStatistics cleared\n[INFO] projectList=WireGuard\n[INFO] Start to build WireGuard.\n[SCRIPT] build script: //source/WireGuard/SynoBuildConf/build\n[INFO] ======= Run build script =======\nrm -rf libmnl-1.0.4.tar.bz2 libmnl-1.0.4 wireguard-linux-compat-1.0.20210606.tar.xz wireguard-linux-compat-1.0.20210606 wireguard-tools-1.0.20210914.tar.xz wireguard-tools-1.0.20210914\nwget https://netfilter.org/projects/libmnl/files/libmnl-1.0.4.tar.bz2\n--2021-10-09 23:09:25--  https://netfilter.org/projects/libmnl/files/libmnl-1.0.4.tar.bz2\nResolving netfilter.org (netfilter.org)... 92.243.18.11, 2001:4b98:dc0:43:216:3eff:fe87:a456\nConnecting to netfilter.org (netfilter.org)|92.243.18.11|:443... connected.\nERROR: cannot verify netfilter.org\'s certificate, issued by \'CN=R3,O=Let\\\'s Encrypt,C=US\':\n  Unable to locally verify the issuer\'s authority.\nTo connect to netfilter.org insecurely, use `--no-check-certificate\'.\nMakefile:26: recipe for target \'libmnl-1.0.4.tar.bz2\' failed\nmake: *** [libmnl-1.0.4.tar.bz2] Error 5\n[Error] Build project fail!\nTime cost: 00:00:00 [Build-->WireGuard]\n[INFO] Build WireGuard finished!\n\n----------------- Time cost statistics -----------------\nTime cost: 00:00:00 [Build-->WireGuard]\n\n########################################################\n      Error(s) occurred on project "WireGuard"\n########################################################\n1 projects, 1 failed, 0 blocked.\n\n[Error] Check [/logs/error.build] for fixing errors.')
Build log
=========
Set cache size limit to 8.0 Gbytes
Statistics cleared
[INFO] projectList=WireGuard
[INFO] Start to build WireGuard.
[SCRIPT] build script: //source/WireGuard/SynoBuildConf/build
[INFO] ======= Run build script =======
rm -rf libmnl-1.0.4.tar.bz2 libmnl-1.0.4 wireguard-linux-compat-1.0.20210606.tar.xz wireguard-linux-compat-1.0.20210606 wireguard-tools-1.0.20210914.tar.xz wireguard-tools-1.0.20210914
wget https://netfilter.org/projects/libmnl/files/libmnl-1.0.4.tar.bz2
--2021-10-09 23:09:25--  https://netfilter.org/projects/libmnl/files/libmnl-1.0.4.tar.bz2
Resolving netfilter.org (netfilter.org)... 92.243.18.11, 2001:4b98:dc0:43:216:3eff:fe87:a456
Connecting to netfilter.org (netfilter.org)|92.243.18.11|:443... connected.
ERROR: cannot verify netfilter.org's certificate, issued by 'CN=R3,O=Let\'s Encrypt,C=US':
  Unable to locally verify the issuer's authority.
To connect to netfilter.org insecurely, use `--no-check-certificate'.
Makefile:26: recipe for target 'libmnl-1.0.4.tar.bz2' failed
make: *** [libmnl-1.0.4.tar.bz2] Error 5
[Error] Build project fail!
Time cost: 00:00:00 [Build-->WireGuard]
[INFO] Build WireGuard finished!

----------------- Time cost statistics -----------------
Time cost: 00:00:00 [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
Davidstos commented 2 years ago

I fixed it !! You have to add --no-check-certificate into MakeFile

# Download WireGuard source tarball
$(WIREGUARD_TAR):
        wget --no-check-certificate https://git.zx2c4.com/wireguard-linux-compat/snapshot/$(WIREGUARD_TAR)

$(WIREGUARD_TOOLS_TAR):
        wget --no-check-certificate https://git.zx2c4.com/wireguard-tools/snapshot/$(WIREGUARD_TOOLS_TAR)