zoukankan      html  css  js  c++  java
  • 学习笔记——make项目中克隆GitHub目录失败的解决

    在示例项目中执行make后出现下面的错误

    WARNING: Missing submodule components/json/cJSON...

    WARNING: Missing submodule components/lwip/lwip...

    详细报错如下:

    Building partitions from /home/cxj/ESP8266_RTOS_SDK/components/partition_table/partitions_singleapp.csv...
    WARNING: Missing submodule components/json/cJSON...
    Attempting 'git submodule update --init components/json/cJSON' in esp-idf root directory...
    正克隆到 '/home/cxj/ESP8266_RTOS_SDK/components/json/cJSON'...
    warning: 重定向到 https://github.com/DaveGamble/cJSON.git/
    error: RPC failed; curl 18 transfer closed with outstanding read data remaining
    fatal: The remote end hung up unexpectedly
    fatal: 过早的文件结束符(EOF)
    fatal: index-pack 失败
    fatal: 无法克隆 'http://github.com/DaveGamble/cJSON.git' 到子模组路径 '/home/cxj/ESP8266_RTOS_SDK/components/json/cJSON'
    克隆 'components/json/cJSON' 失败。按计划重试
    正克隆到 '/home/cxj/ESP8266_RTOS_SDK/components/json/cJSON'...
    warning: 重定向到 https://github.com/DaveGamble/cJSON.git/
    子模组路径 'components/json/cJSON':检出 '3c8935676a97c7c97bf006db8312875b4f292f6c'
    子模组路径 'components/json/cJSON':检出 '3c8935676a97c7c97bf006db8312875b4f292f6c'
    WARNING: Missing submodule components/lwip/lwip...
    Attempting 'git submodule update --init components/lwip/lwip' in esp-idf root directory...
    子模组 'components/lwip/lwip'(http://github.com/espressif/esp-lwip.git)未对路径 'components/lwip/lwip' 注册
    正克隆到 '/home/cxj/ESP8266_RTOS_SDK/components/lwip/lwip'...
    warning: 重定向到 https://github.com/espressif/esp-lwip.git/
    error: RPC failed; curl 18 transfer closed with outstanding read data remaining
    fatal: The remote end hung up unexpectedly
    fatal: 过早的文件结束符(EOF)
    fatal: index-pack 失败
    fatal: 无法克隆 'http://github.com/espressif/esp-lwip.git' 到子模组路径 '/home/cxj/ESP8266_RTOS_SDK/components/lwip/lwip'
    克隆 'components/lwip/lwip' 失败。按计划重试
    正克隆到 '/home/cxj/ESP8266_RTOS_SDK/components/lwip/lwip'...
    warning: 重定向到 https://github.com/espressif/esp-lwip.git/
    error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
    fatal: The remote end hung up unexpectedly
    fatal: 过早的文件结束符(EOF)
    fatal: index-pack 失败
    fatal: 无法克隆 'http://github.com/espressif/esp-lwip.git' 到子模组路径 '/home/cxj/ESP8266_RTOS_SDK/components/lwip/lwip'
    第二次尝试克隆 'components/lwip/lwip' 失败,退出
    /home/cxj/ESP8266_RTOS_SDK/make/project.mk:630: recipe for target '/home/cxj/ESP8266_RTOS_SDK/components/lwip/lwip/.git' failed
    make: *** [/home/cxj/ESP8266_RTOS_SDK/components/lwip/lwip/.git] Error 1

     

    解决办法:

    第一种方法:

    根据报错中提示的地址手动下载需要的文件,放入报错路经下

    第二种方法:

    调大postBuffer的值,同时提高一下Github的下载速度,再次执行make,让其自动完成下载和注册。

  • 相关阅读:
    IE8中li添加float属性,中英数字混合BUG
    jQuery ajax get与post后台交互中的奥秘
    BZOJ 4816 数字表格
    BZOJ 1598 牛跑步
    BZOJ 4077 Messenger
    相关分析 BZOJ 4821
    Crash的数字表格 BZOJ 2154 / jzptab BZOJ 2693
    回文串 BZOJ 3676
    古代猪文 BZOJ 1951
    树上的路径 BZOJ 3784
  • 原文地址:https://www.cnblogs.com/fcchen/p/12916491.html
Copyright © 2011-2022 走看看