PlatformIO Community

Error compiling arduino8266 framework

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

What exact platformio.ini do you have?

Here is the file listing

;
; PlatformIO Project Configuration File
;
; Please make sure to read documentation with examples first
; http://docs.platformio.org/en/stable/projectconf.html
;
; *********************************************************************;
; You can uncomment or add here Your favorite environment you want to work on at the moment
; (uncomment only one !)
; *********************************************************************;
[platformio]
description  = Firmware for ESP82xx/ESP32 for easy IoT deployment of sensors.
extra_configs =
  platformio_core_defs.ini
  platformio_esp82xx_base.ini
  platformio_esp82xx_envs.ini
  platformio_esp32_envs.ini
  platformio_special_envs.ini
default_envs = custom_ESP8266_4M1M, custom_ESP32_4M316k
;default_envs = dev_ESP8266_4M1M
;default_envs = normal_ESP8266_4M1M
;default_envs = test_beta_ESP8266_4M1M
; ..etc
;build_cache_dir = $PROJECT_DIR\.buildcache
; add these:
; -Werror -Wall -Wextra -pedantic -Wcast-align -Wcast-qual -Wctor-dtor-privacy -Wdisabled-optimization -Wformat=2 -Winit-self -Wlogical-op
;                    -Wmissing-include-dirs -Wnoexcept -Wold-style-cast -Woverloaded-virtual -Wredundant-decls -Wshadow -Wsign-promo -Wstrict-null-sentinel
;                    -Wstrict-overflow=5 -Wundef -Wno-unused -Wno-variadic-macros -Wno-parentheses -fdiagnostics-show-option
; thanks @chouffe103

[compiler_warnings]
build_flags = -Wall -Wno-parentheses -fdiagnostics-show-option
[minimal_size]
build_flags = 
  -Os
  -ffunction-sections 
  -fdata-sections
  -Wl,--gc-sections
  -s
[espota]
upload_protocol = espota
; each flag in a new line
; Do not use port 8266 for OTA, since that's used for ESPeasy p2p
upload_flags_esp8266 = 
  --port=18266
upload_flags_esp32 =
  --port=3232
build_flags = -DFEATURE_ARDUINO_OTA
upload_port = 192.168.1.152
[debug_flags]
build_flags               = 
[mqtt_flags]
build_flags               = -DMQTT_MAX_PACKET_SIZE=1024
[common]
lib_ldf_mode              = chain
lib_archive               = false
framework                 = arduino
upload_speed              = 115200
monitor_speed             = 115200
;targets                   = size, checkprogsize
targets                   =
extra_scripts             = pre:pre_default_check.py
[env]
extends                   = common

You’ll also need to share these also… specifically any platform or framework lines present.

Here is a copy of the platformio_core_defs.ini.
the source is https://github.com/letscontrolit/ESPEasy/releases/tag/mega-20200328


[esp82xx_defaults]

build_flags               = -D BUILD_GIT='"${sysenv.TRAVIS_TAG}"'

                            -D NDEBUG

                            -lstdc++ -lsupc++

                            -mtarget-align

                            -DPIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY

                            -DVTABLES_IN_FLASH

                            -DPUYA_SUPPORT=1

[esp82xx_2_5_x]

build_flags               = -D BUILD_GIT='"${sysenv.TRAVIS_TAG}"'

                            -DNDEBUG

                            -mtarget-align

                            -DVTABLES_IN_FLASH

                            -fno-exceptions

                            -lstdc++

                            -DPIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY_LOW_FLASH

                            -DPUYA_SUPPORT=1

                            -DCORE_POST_2_5_0

[esp82xx_2_6_x]

build_flags               = ${esp82xx_2_5_x.build_flags} 

                            -O2

                            -DBEARSSL_SSL_BASIC

                            -DCORE_POST_2_6_0 

;[core_2_3_0]

;platform                  = https://github.com/TD-er/platform-espressif8266.git#patch/v1.5.0_Puya

;build_flags               = -D BUILD_GIT='"${sysenv.TRAVIS_TAG}"'

;                            -DNDEBUG

;                            -DVTABLES_IN_FLASH

;                            -fno-exceptions

;                            -DPUYA_SUPPORT=1

;                            -DARDUINO_ESP8266_RELEASE_2_3_0

;                            -DFORCE_PRE_2_5_0

;lib_ignore                = ESP32_ping, ESP32WebServer, IRremoteESP8266, HeatpumpIR

;[core_2_4_0]

;platform                  = https://github.com/TD-er/platform-espressif8266.git#patch/v1.6.0_Puya

;build_flags               = ${esp82xx_defaults.build_flags} -DARDUINO_ESP8266_RELEASE_2_4_0 -DFORCE_PRE_2_5_0

;lib_ignore                = ESP32_ping, ESP32WebServer, IRremoteESP8266, HeatpumpIR

;[core_2_4_1]

;platform                  = https://github.com/TD-er/platform-espressif8266.git#patch/v1.7.3_Puya

;build_flags               = ${esp82xx_defaults.build_flags} -DARDUINO_ESP8266_RELEASE_2_4_1 -DFORCE_PRE_2_5_0

;lib_ignore                = ESP32_ping, ESP32WebServer, IRremoteESP8266, HeatpumpIR

[core_2_4_2]

platform                  = https://github.com/TD-er/platform-espressif8266.git#patch/v1.8.0_Puya

build_flags               = ${esp82xx_defaults.build_flags} -DARDUINO_ESP8266_RELEASE_2_4_2 -DFORCE_PRE_2_5_0

lib_ignore                = ESP32_ping, ESP32WebServer, IRremoteESP8266, HeatpumpIR

;[core_2_5_0]

;platform                  = espressif8266@2.0.4

;build_flags               = ${esp82xx_2_5_x.build_flags}

;[core_2_5_2]

;platform                  = espressif8266@2.2.3

;build_flags               = ${esp82xx_2_5_x.build_flags}

; See for SDK flags: https://github.com/esp8266/Arduino/blob/master/tools/platformio-build.py

;[core_2_6_0]

;platform                  = https://github.com/Jason2866/platform-espressif8266.git#core_2_6_0

;build_flags               = ${esp82xx_2_6_x.build_flags} 

                            -DPIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK22x_190703

;[core_2_6_1]

;platform                  = https://github.com/Jason2866/platform-espressif8266.git#core_2_6_1

;build_flags               = ${esp82xx_2_6_x.build_flags} 

                            -DPIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK22x_190703

;[core_2_6_1_sdk3]

;platform                  = https://github.com/Jason2866/platform-espressif8266.git#core_2_6_1

;build_flags               = ${esp82xx_2_6_x.build_flags} 

                            -DPIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK3

[core_2_6_2]

platform                  = espressif8266@2.3.1

platform_packages         =

  framework-arduinoespressif8266 @ https://github.com/esp8266/Arduino.git#2.6.2

build_flags               = ${esp82xx_2_6_x.build_flags} 

                            -DPIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK22x_190703

[core_2_6_2_sdk3]

platform                  = espressif8266@2.3.1

platform_packages         =

  framework-arduinoespressif8266 @ https://github.com/esp8266/Arduino.git#2.6.2

build_flags               = ${esp82xx_2_6_x.build_flags} 

                            -DPIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK3

[core_2_6_3]

platform                  = espressif8266@2.4.0

platform_packages         =

  framework-arduinoespressif8266 @ https://github.com/esp8266/Arduino.git#2.6.3

build_flags               = ${esp82xx_2_6_x.build_flags} 

                            -DPIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK22x_191122

[core_2_6_3_sdk3]

platform                  = espressif8266@2.4.0

platform_packages         =

  framework-arduinoespressif8266 @ https://github.com/esp8266/Arduino.git#2.6.3

build_flags               = ${esp82xx_2_6_x.build_flags} 

                            -DPIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK3

[core_stage]

platform                  = https://github.com/platformio/platform-espressif8266.git

build_flags               = ${esp82xx_2_6_x.build_flags}

                            -DPIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK22x_191105

platform_packages         =

  framework-arduinoespressif8266 @ https://github.com/esp8266/Arduino.git

[core_esp32_1_11_2]

platform                  = espressif32@1.11.2

[core_esp32_stage]

platform                  = https://github.com/platformio/platform-espressif32.git#feature/stage

Not reproducable for me.

>pio run
Processing custom_ESP8266_4M1M (platform: espressif8266@2.4.0; board: esp12e; framework: arduino)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PackageManager: Installing framework-arduinoespressif8266
git version 2.16.2.windows.1
Cloning into 'C:\Users\Maxi\.platformio\packages\_tmp_installing-trcsy6zd-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 0R
Receiving objects: 100% (1647/1647), 23.62 MiB | 1.11 MiB/s, done.
Resolving deltas: 100% (201/201), done.
Note: checking out '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 performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

Checking out files: 100% (1360/1360), done.
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/Maxi/.platformio/packages/_tmp_installing-trcsy6zd-package/libraries/ESP8266SdFat'...
remote: Enumerating objects: 3705, done.
remote: Total 3705 (delta 0), reused 0 (delta 0), pack-reused 3705
Receiving objects: 100% (3705/3705), 10.18 MiB | 448.00 KiB/s, done.
Resolving deltas: 100% (2033/2033), done.
Cloning into 'C:/Users/Maxi/.platformio/packages/_tmp_installing-trcsy6zd-package/libraries/LittleFS/lib/littlefs'...
remote: Enumerating objects: 37, done.
remote: Counting objects: 100% (37/37), done.
remote: Compressing objects: 100% (33/33), done.
remote: Total 2768 (delta 8), reused 10 (delta 4), pack-reused 2731
Receiving objects: 100% (2768/2768), 1.64 MiB | 2.33 MiB/s, done.
Resolving deltas: 100% (1875/1875), done.
Cloning into 'C:/Users/Maxi/.platformio/packages/_tmp_installing-trcsy6zd-package/libraries/SoftwareSerial'...
remote: Enumerating objects: 54, done.
remote: Counting objects: 100% (54/54), done.
remote: Compressing objects: 100% (40/40), done.
remote: Total 1855 (delta 29), reused 31 (delta 13), pack-reused 1801
Receiving objects: 100% (1855/1855), 370.85 KiB | 1.19 MiB/s, done.
Resolving deltas: 100% (1076/1076), done.
Cloning into 'C:/Users/Maxi/.platformio/packages/_tmp_installing-trcsy6zd-package/tools/esptool'...
remote: Enumerating objects: 70, done.
remote: Counting objects: 100% (70/70), done.
remote: Compressing objects: 100% (47/47), done.
remote: Total 2228 (delta 33), reused 57 (delta 22), pack-reused 2158
Receiving objects: 100% (2228/2228), 7.82 MiB | 569.00 KiB/s, done.
Resolving deltas: 100% (1378/1378), done.
Cloning into 'C:/Users/Maxi/.platformio/packages/_tmp_installing-trcsy6zd-package/tools/pyserial'...
remote: Enumerating objects: 40, done.
remote: Counting objects: 100% (40/40), done.
remote: Compressing objects: 100% (40/40), done.
remote: Total 5941 (delta 20), reused 6 (delta 0), pack-reused 5901
Receiving objects: 100% (5941/5941), 1.68 MiB | 2.78 MiB/s, done.
Resolving deltas: 100% (4348/4348), done.
Cloning into 'C:/Users/Maxi/.platformio/packages/_tmp_installing-trcsy6zd-package/tools/sdk/lwip2/builder'...
remote: Enumerating objects: 33, done.
remote: Counting objects: 100% (33/33), done.
remote: Compressing objects: 100% (23/23), done.
remote: Total 938 (delta 16), reused 19 (delta 9), pack-reused 905
Receiving objects: 100% (938/938), 483.06 KiB | 1.05 MiB/s, done.
Resolving deltas: 100% (553/553), done.
Cloning into 'C:/Users/Maxi/.platformio/packages/_tmp_installing-trcsy6zd-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 2844 (delta 46), reused 50 (delta 28), pack-reused 2758
Receiving objects: 100% (2844/2844), 1.79 MiB | 905.00 KiB/s, done.
Resolving deltas: 100% (2244/2244), 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/Maxi/.platformio/packages/_tmp_installing-trcsy6zd-package/tools/sdk/lwip2/builder/lwip2-src'...
remote: Counting objects: 53686, done.
remote: Compressing objects: 100% (12611/12611), done.
remote: Total 53686 (delta 40472), reused 53582 (delta 40406)
Receiving objects: 100% (53686/53686), 10.28 MiB | 982.00 KiB/s, done.
Resolving deltas: 100% (40472/40472), done.
Submodule path 'tools/sdk/lwip2/builder/lwip2-src': checked out '159e31b689577dbf69cf0683bbaffbd71fa5ee10'
Submodule path 'tools/sdk/ssl/bearssl': checked out '89454af34e3e61ddfc9837f3da5a0bc8ed44c3aa'
framework-arduinoespressif8266 @ 3d128e5 has been successfully installed!
Verbose mode can be enabled via `-v, --verbose` option

The commit for the core is 3d128e5c785cbe2096a0def394554d1d8091601d (release 2.6.3). As you can follow from https://github.com/esp8266/Arduino/tree/3d128e5c785cbe2096a0def394554d1d8091601d/tools/sdk/lwip2 it references builder @ 354887a, which in turn references

grafik

well, Github can’t reference it but the logs says

Submodule 'lwip2-src' (https://git.savannah.nongnu.org/git/lwip.git) registered for path 'tools/sdk/lwip2/builder/lwip2-src'

so that is sourced from https://git.savannah.nongnu.org/git/lwip.git. Can you execute this command as I do and check the output?

git clone "https://git.savannah.nongnu.org/git/lwip.git" && cd lwip && git checkout 159e31b689577dbf69cf0683bbaffbd71fa5ee10
Cloning into 'lwip'...
remote: Counting objects: 53686, done.
remote: Compressing objects: 100% (12611/12611), done.
Receiving objects: 100% (53686/53686), 10.28 MiB | 1.93 MiB/s,
Resolving deltas:  39% (15800/40472)
Resolving deltas: 100% (40472/40472), done.
Note: checking out '159e31b689577dbf69cf0683bbaffbd71fa5ee10'.

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 performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 159e31b6 Prepare 2.1.2 release

Because I’m able to clone this LWIP source code with no problem.s

1 Like

I ran git clone “https://git.savannah.nongnu.org/git/lwip.git”, the terminal in platformIO IDE does not support &&

The token ‘&&’ is not a valid statement separator in this version.
At line:1 char:69

Result
git clone “https://git.savannah.nongnu.org/git/lwip.git
Cloning into ‘lwip’…
remote: Counting objects: 53686, done.
remote: Compressing objects: 100% (12611/12611), done.
remote: Total 53686 (delta 40472), reused 53582 (delta 40406)
Receiving objects: 100% (53686/53686), 10.28 MiB | 579.00 KiB/s, done.
Resolving deltas: 100% (40472/40472), done.
PS C:\Users\Cottage-Proto2\Downloads\ESPEasy_mega-20200310\source>

It seemed to run successfully

You’re running it in a powershell, I ran it in a cmd.exe. For PS you need ; instead of &&. Remove the lwip folder again and retry

Again successful.
So why am I getting errors when compiling from https://github.com/letscontrolit/ESPEasy/releases/tag/mega-20200328

PS C:\Users\Cottage-Proto2\Downloads\ESPEasy_mega-20200310\source\lwip> git clone “https://git.savannah.nongnu.org/git/lwip.git” ; cd lwip ; git checkout
Cloning into ‘lwip’…
remote: Counting objects: 53686, done.
remote: Compressing objects: 100% (12611/12611), done.
Receiving objects: 100% (53686/53686), 10.28 MiB | 583.00 KiB/s, done. objects: 100% (53686/53686), 10.08 MiB | 575.00 KiB/s

Resolving deltas: 100% (40472/40472), done.
Your branch is up to date with ‘origin/master’.
PS C:\Users\Cottage-Proto2\Downloads\ESPEasy_mega-20200310\source\lwip\lwip>

You double-cloned lwip there. Go two directories up and remove the lwip folder (rm .\lwip -Recurse -Force or just via Windows Explorer). Then try the 3 commands just in sequence, as it seems it still hasn’t executed them in sequence (no “HEAD at…” output)

1 Like
OK I know what you mean now. I deleted the lwip dir and rerun the commands. 

PS C:\Users\Cottage-Proto2\Downloads\ESPEasy_mega-20200310\source> git clone "https://git.savannah.nongnu.org/git/lwip.git"
Cloning into 'lwip'...
remote: Counting objects: 53686, done.
remote: Compressing objects: 100% (12545/12545), done.
Receiving objects: 100% (53686/53686), 10.28 MiB | 605.00 KiB/s, done. objects: 100% (53686/53686), 10.14 MiB | 609.00 KiB/s

Resolving deltas: 100% (40472/40472), done.
PS C:\Users\Cottage-Proto2\Downloads\ESPEasy_mega-20200310\source> cd lwip
PS C:\Users\Cottage-Proto2\Downloads\ESPEasy_mega-20200310\source\lwip> git checkout
Your branch is up to date with 'origin/master'.
PS C:\Users\Cottage-Proto2\Downloads\ESPEasy_mega-20200310\source\lwip>
git checkout 159e31b689577dbf69cf0683bbaffbd71fa5ee10

as the last command, is the crucial part.

I really appreciate your help with this.

PS C:\Users\Cottage-Proto2\Downloads\ESPEasy_mega-20200310\source\lwip> git checkout 159e31b689577dbf69cf0683bbaffbd71fa5ee10
Note: switching to '159e31b689577dbf69cf0683bbaffbd71fa5ee10'.

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

HEAD is now at 159e31b6 Prepare 2.1.2 release
PS C:\Users\Cottage-Proto2\Downloads\ESPEasy_mega-20200310\source\lwip>

So this has worked perfectly… Too bad, if there was an error it would explain why it’s unable to clone it during the normal PIO run. Are there different versions of git being used? What’s the output of git --version in the PowerShell? Still git version 2.26.0.windows.1? Is it able to install it if you retry it a second?

If it’s the same as during the PIO run, I suggest to temporarily uninstall git and install my (old) version. Backup any keys / identities you might need before this, of course. My used version is here (I guess you need Git-2.16.2-64-bit.exe). Double-check that that’s the version running after installation. Does the same error appear again?

git version 2.26.0.windows.1

I will try again with the older version.

I successfully installed the arduino framework with the older version of git. Thanks for all your help.
I never would have fixed this on my own.

framework-arduinoespressif8266 @ 3d128e5 has been successfully installed!

1 Like

Funny how the newest git version has problems with that (when executed in PIO and not on its own…). Maybe a future release of git or PIO will incidently fix it.

1 Like

And the bug is present (again).
Git 2.27.0 and 2.28.0 for Windows do not work correctly with this.
The submodules are not initialized.
So now I have to go looking for older versions to download to test when it starts working again.