While compiling the arduino8266 framework the cloning for the repository is failing. with this error.
Failed to recurse into submodule path ‘tools/sdk/lwip2/builder’
This is the same error presented in:
But I have the latest git for windows installed. I am at the end of my wits. Have been at this for a day and can’t find a solution.
Please help.
See below
Processing custom_ESP8266_4M1M (platform: espressif8266@2.4.0; board: esp12e; framework: arduino)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PackageManager: Installing framework-arduinoespressif8266
**git version 2.26.0.windows.1**
Cloning into 'C:\Users\Cottage-Proto2\.platformio\packages\_tmp_installing-r3imxs_5-package'...
remote: Enumerating objects: 1647, done.
remote: Counting objects: 100% (1647/1647), done.
remote: Compressing objects: 100% (1401/1401), done.
remote: Total 1647 (delta 201), reused 841 (delta 78), pack-reused 0 eceiving objects: 99% (1631/1647), 23.39 MiB | 584.00 KiB/s
Receiving objects: 100% (1647/1647), 23.62 MiB | 592.00 KiB/s, done.
Resolving deltas: 100% (201/201), done.
Note: switching to '3d128e5c785cbe2096a0def394554d1d8091601d'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
Submodule 'libraries/ESP8266SdFat' (https://github.com/earlephilhower/ESP8266SdFat.git) registered for path 'libraries/ESP8266SdFat'
Submodule 'libraries/LittleFS/lib/littlefs' (https://github.com/ARMmbed/littlefs.git) registered for path 'libraries/LittleFS/lib/littlefs'
Submodule 'libraries/SoftwareSerial' (https://github.com/plerup/espsoftwareserial.git) registered for path 'libraries/SoftwareSerial'
Submodule 'tools/esptool' (https://github.com/espressif/esptool.git) registered for path 'tools/esptool'
Submodule 'tools/pyserial' (https://github.com/pyserial/pyserial.git) registered for path 'tools/pyserial'
Submodule 'lwip2' (https://github.com/d-a-v/esp82xx-nonos-linklayer.git) registered for path 'tools/sdk/lwip2/builder'
Submodule 'tools/sdk/ssl/bearssl' (https://github.com/earlephilhower/bearssl-esp8266.git) registered for path 'tools/sdk/ssl/bearssl'
Cloning into 'C:/Users/Cottage-Proto2/.platformio/packages/_tmp_installing-r3imxs_5-package/libraries/ESP8266SdFat'...
remote: Enumerating objects: 3534, done.
remote: Total 3534 (delta 0), reused 0 (delta 0), pack-reused 3534
Receiving objects: 100% (3534/3534), 10.16 MiB | 580.00 KiB/s, done.
Resolving deltas: 100% (1916/1916), done.
Cloning into 'C:/Users/Cottage-Proto2/.platformio/packages/_tmp_installing-r3imxs_5-package/libraries/LittleFS/lib/littlefs'...
remote: Enumerating objects: 2163, done.
remote: Total 2163 (delta 0), reused 0 (delta 0), pack-reused 2163
Receiving objects: 100% (2163/2163), 1.26 MiB | 617.00 KiB/s, done.
Resolving deltas: 100% (1508/1508), done.
Cloning into 'C:/Users/Cottage-Proto2/.platformio/packages/_tmp_installing-r3imxs_5-package/libraries/SoftwareSerial'...
remote: Enumerating objects: 69, done.
remote: Counting objects: 100% (69/69), done.
remote: Compressing objects: 100% (55/55), done.
remote: Total 1855 (delta 29), reused 46 (delta 13), pack-reused 1786
Receiving objects: 100% (1855/1855), 370.85 KiB | 617.00 KiB/s, done.
Resolving deltas: 100% (1076/1076), done.
Cloning into 'C:/Users/Cottage-Proto2/.platformio/packages/_tmp_installing-r3imxs_5-package/tools/esptool'...
remote: Enumerating objects: 55, done.
remote: Counting objects: 100% (55/55), done.
remote: Compressing objects: 100% (41/41), done.
remote: Total 2189 (delta 20), reused 46 (delta 13), pack-reused 2134
Receiving objects: 100% (2189/2189), 7.80 MiB | 604.00 KiB/s, done.
Resolving deltas: 100% (1351/1351), done.
Cloning into 'C:/Users/Cottage-Proto2/.platformio/packages/_tmp_installing-r3imxs_5-package/tools/pyserial'...
remote: Enumerating objects: 47, done.
remote: Counting objects: 100% (47/47), done.
remote: Compressing objects: 100% (47/47), done.
remote: Total 5878 (delta 20), reused 13 (delta 0), pack-reused 5831
Receiving objects: 100% (5878/5878), 1.65 MiB | 607.00 KiB/s, done.
Resolving deltas: 100% (4338/4338), done.
Cloning into 'C:/Users/Cottage-Proto2/.platformio/packages/_tmp_installing-r3imxs_5-package/tools/sdk/lwip2/builder'...
remote: Enumerating objects: 22, done.
remote: Counting objects: 100% (22/22), done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 924 (delta 8), reused 14 (delta 6), pack-reused 902
Receiving objects: 100% (924/924), 481.52 KiB | 614.00 KiB/s, done.
Resolving deltas: 100% (543/543), done.
Cloning into 'C:/Users/Cottage-Proto2/.platformio/packages/_tmp_installing-r3imxs_5-package/tools/sdk/ssl/bearssl'...
remote: Enumerating objects: 86, done.
remote: Counting objects: 100% (86/86), done.
remote: Compressing objects: 100% (58/58), done.
remote: Total 2820 (delta 46), reused 50 (delta 28), pack-reused 2734
Receiving objects: 100% (2820/2820), 1.79 MiB | 607.00 KiB/s, done.
Resolving deltas: 100% (2225/2225), done.
Submodule path 'libraries/ESP8266SdFat': checked out 'b240d2231a117bbd89b79902eb54cae948ee2f42'
Submodule path 'libraries/LittleFS/lib/littlefs': checked out '6b65737715039ef92d348014316b575b52547019'
Submodule path 'libraries/SoftwareSerial': checked out '9da4d3729a57a181307bf9acf73473d052a38874'
Submodule path 'tools/esptool': checked out 'de30f21a222ec62f5a023dd955439b4f57702768'
Submodule path 'tools/pyserial': checked out 'c54c81d933b847458d465cd77e96cd702ff2e7be'
Submodule path 'tools/sdk/lwip2/builder': checked out '354887a25f83064dc0c795e11704190845812713'
Submodule 'lwip2-src' (https://git.savannah.nongnu.org/git/lwip.git) registered for path 'tools/sdk/lwip2/builder/lwip2-src'
Cloning into 'C:/Users/Cottage-Proto2/.platformio/packages/_tmp_installing-r3imxs_5-package/tools/sdk/lwip2/builder/lwip2-src'...
remote: Counting objects: 51275, done.
remote: Compressing objects: 100% (12181/12181), done.
remote: Total 51275 (delta 38694), reused 50936 (delta 38448)
Receiving objects: 100% (51275/51275), 10.06 MiB | 609.00 KiB/s, done.
Resolving deltas: 100% (38694/38694), done.
error: Server does not allow request for unadvertised object 159e31b689577dbf69cf0683bbaffbd71fa5ee10
Fetched in submodule path 'tools/sdk/lwip2/builder/lwip2-src', but it did not contain 159e31b689577dbf69cf0683bbaffbd71fa5ee10. Direct fetching of that commit failed.
Submodule path 'tools/sdk/ssl/bearssl': checked out '89454af34e3e61ddfc9837f3da5a0bc8ed44c3aa'
**Failed to recurse into submodule path 'tools/sdk/lwip2/builder'**
Error: VCS: Could not process command ['git', 'clone', '--recursive', '--depth', '1', '--branch', '2.6.3', 'https://github.com/esp8266/Arduino.git', 'C:\\Users\\Cottage-Proto2\\.platformio\\packages\\_tmp_installing-r3imxs_5-package']
The terminal process terminated with exit code: 1