Fix issue of “recipe for target ‘checksum_target’ failed”

NeilZhang
NeilZhang
管理员
140
文章
106.8千
浏览
Life评论280字数 428阅读1分25秒阅读模式

Do not know when I began to get this issue:

  1. root@debian:~/spksrc/spk/transmission# make arch-armada38x-5.2
  2. ===> Building package for arch armada38x-5.2
  3. make[1]: Entering directory '/root/spksrc/spk/transmission'
  4. ===> Set up toolchain
  5. ===> Downloading files for syno-armada38x
  6. 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
  7. 2018-03-04 14:49:39 URL:https://sourceforge.net/ [746/746] -> "armada38x-gcc493_glibc220_hard-GPL.txz.part" [1]
  8. ===> Verifying files for syno-armada38x
  9. ===> Checking sha1sum of file armada38x-gcc493_glibc220_hard-GPL.txz
  10. ===> Wrong sha1sum for file armada38x-gcc493_glibc220_hard-GPL.txz
  11. ===> Renamed as armada38x-gcc493_glibc220_hard-GPL.txz.wrong
  12. ===> Download cookie removed to trigger the download again
  13. ../../mk/spksrc.checksum.mk:42: recipe for target 'checksum_target' failed
  14. make[2]: *** [checksum_target] Error 1
  15. /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.
  16. make[1]: Leaving directory '/root/spksrc/spk/transmission'
  17. ../../mk/spksrc.spk.mk:438: recipe for target 'arch-armada38x-5.2' failed
  18. 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.

  1. root@debian:~/spksrc/spk/transmission# cd ~/spksrc/distrib/toolchains/5.2
  2. root@debian:~/spksrc/distrib/toolchains/5.2# ls
  3. 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
  4. root@debian:~/spksrc/distrib/toolchains/5.2# rm armada38x-gcc493_glibc220_hard-GPL.txz.wrong
  5. root@debian:~/spksrc/distrib/toolchains/5.2# mv armada38x-gcc493_glibc220_hard-GPL.txz.bak armada38x-gcc493_glibc220_hard-GPL.txz
  6. root@debian:~/spksrc/distrib/toolchains/5.2# cd ~/spksrc/spk/transmission/
  7. root@debian:~/spksrc/spk/transmission# make clean
  8. rm -fr work work-*
  9. root@debian:~/spksrc/spk/transmission# make arch-armada38x-5.2
  10. ===> Building package for arch armada38x-5.2
  11. make[1]: Entering directory '/root/spksrc/spk/transmission'
  12. ===> Set up toolchain
  13. ===> Downloading files for syno-armada38x
  14. ===> File armada38x-gcc493_glibc220_hard-GPL.txz already downloaded
  15. ===> Verifying files for syno-armada38x
  16. ===> Checking sha1sum of file armada38x-gcc493_glibc220_hard-GPL.txz
  17. ===> Checking sha256sum of file armada38x-gcc493_glibc220_hard-GPL.txz
  18. ===> Checking md5sum of file armada38x-gcc493_glibc220_hard-GPL.txz
  19. /root/spksrc/toolchains/syno-armada38x-5.2/../../distrib/toolchains/5.2/armada38x-gcc493_glibc220_hard-GPL.txz
  20. ===> Extracting for syno-armada38x.........................

Now it works well.

 
  • 本文由 NeilZhang 发表于04/03/2018 15:01:47
  • Repost please keep this link: https://www.dbcloudsvc.com/blogs/life/fix-issue-of-recipe-for-target-checksum_target-failed/
匿名

发表评论

匿名网友
:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:
确定