Do not know when I began to get this issue:
root@debian:~/spksrc/spk/transmission# make arch-armada38x-5.2 ===> Building package for arch armada38x-5.2 make[1]: Entering directory '/root/spksrc/spk/transmission' ===> Set up toolchain ===> Downloading files for syno-armada38x wget http://sourceforge.net/projects/dsgpl/files/DSM%205.2%20Tool%20Chains/Marvell%20Armada%2038x%20Linux%203.10.35/armada38x-gcc493_glibc220_hard-GPL.txz 2018-03-04 14:49:39 URL:https://sourceforge.net/ [746/746] -> "armada38x-gcc493_glibc220_hard-GPL.txz.part" [1] ===> Verifying files for syno-armada38x ===> Checking sha1sum of file armada38x-gcc493_glibc220_hard-GPL.txz ===> Wrong sha1sum for file armada38x-gcc493_glibc220_hard-GPL.txz ===> Renamed as armada38x-gcc493_glibc220_hard-GPL.txz.wrong ===> Download cookie removed to trigger the download again ../../mk/spksrc.checksum.mk:42: recipe for target 'checksum_target' failed make[2]: *** [checksum_target] Error 1 /root/spksrc/spk/transmission/work-armada38x-5.2/tc_vars.mk:1: *** An error occured while setting up the toolchain, please check the messages above. Stop. make[1]: Leaving directory '/root/spksrc/spk/transmission' ../../mk/spksrc.spk.mk:438: recipe for target 'arch-armada38x-5.2' failed make: [arch-armada38x-5.2] Error 2 (ignored)
To fix it, we can download the file from the sourceforge and put them to the right locations:
distrib/toolchains/$DSM_VERSION
And please note even the filenames maybe the same, different toolchains use different files, so when we download the files from https://sourceforge.net/projects/dsgpl/files/, we need to select the right DSM version.
root@debian:~/spksrc/spk/transmission# cd ~/spksrc/distrib/toolchains/5.2 root@debian:~/spksrc/distrib/toolchains/5.2# ls armada38x-gcc493_glibc220_hard-GPL.txz.bak armada38x-gcc493_glibc220_hard-GPL.txz.wrong avoton-gcc473_glibc217_x86_64-GPL.txz bromolow-gcc473_glibc217_x86_64-GPL.txz root@debian:~/spksrc/distrib/toolchains/5.2# rm armada38x-gcc493_glibc220_hard-GPL.txz.wrong root@debian:~/spksrc/distrib/toolchains/5.2# mv armada38x-gcc493_glibc220_hard-GPL.txz.bak armada38x-gcc493_glibc220_hard-GPL.txz root@debian:~/spksrc/distrib/toolchains/5.2# cd ~/spksrc/spk/transmission/ root@debian:~/spksrc/spk/transmission# make clean rm -fr work work-* root@debian:~/spksrc/spk/transmission# make arch-armada38x-5.2 ===> Building package for arch armada38x-5.2 make[1]: Entering directory '/root/spksrc/spk/transmission' ===> Set up toolchain ===> Downloading files for syno-armada38x ===> File armada38x-gcc493_glibc220_hard-GPL.txz already downloaded ===> Verifying files for syno-armada38x ===> Checking sha1sum of file armada38x-gcc493_glibc220_hard-GPL.txz ===> Checking sha256sum of file armada38x-gcc493_glibc220_hard-GPL.txz ===> Checking md5sum of file armada38x-gcc493_glibc220_hard-GPL.txz /root/spksrc/toolchains/syno-armada38x-5.2/../../distrib/toolchains/5.2/armada38x-gcc493_glibc220_hard-GPL.txz ===> Extracting for syno-armada38x.........................
Now it works well.