Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pio update command uninstalls GCC needed by pio run #3770

Closed
cbc02009 opened this issue Dec 21, 2020 · 10 comments
Closed

pio update command uninstalls GCC needed by pio run #3770

cbc02009 opened this issue Dec 21, 2020 · 10 comments
Assignees
Milestone

Comments

@cbc02009
Copy link

cbc02009 commented Dec 21, 2020

Configuration

Operating system: Windows

PlatformIO Version (platformio --version): PlatformIO, version 5.0.3

Description of problem

Every time I run the pio update command it uninstalls GCC, so the next time I run pio run it has to reinstall GCC

If problems with PlatformIO Build System:

The content of platformio.ini:

platform = nordicnrf52
board = adafruit_feather_nrf52840
framework = zephyr
upload_protocol = jlink

Additional info

console output of pio update:

Updating platformio/contrib-pysite            2.39.201019 @ ~2.39.0              [Up-to-date]
Updating platformio/tool-unity                1.20500.200612 @ ~1.20500.0        [Up-to-date]
Updating platformio/tool-scons                4.40001.0 @ ~4.40001.0             [Up-to-date]

Platform Manager
================
Platform atmelsam
--------
Updating platformio/atmelsam                  5.0.2                              [Up-to-date]
Updating platformio/framework-zephyr          2.20400.201210 @ ~2.20400.0        [Up-to-date]
Updating platformio/framework-zephyr-cmsis    0.0.0-alpha+sha.542b2296e6 @ 0.0.0-alpha+sha.542b2296e6[Up-to-date]
Updating platformio/framework-zephyr-canopennode 0.0.0-alpha+sha.468d350028 @ 0.0.0-alpha+sha.468d350028[Up-to-date]
Updating platformio/framework-zephyr-civetweb 0.0.0-alpha+sha.99129c5efc @ 0.0.0-alpha+sha.99129c5efc[Up-to-date]
Updating platformio/framework-zephyr-fatfs    0.0.0-alpha+sha.13697783bf @ 0.0.0-alpha+sha.13697783bf[Up-to-date]
Updating platformio/framework-zephyr-hal-atmel 0.0.0-alpha+sha.9f0a699a2f @ 0.0.0-alpha+sha.9f0a699a2f[Up-to-date]
Updating platformio/framework-zephyr-hal-st   0.0.0-alpha+sha.5b3ec3e182 @ 0.0.0-alpha+sha.5b3ec3e182[Up-to-date]
Updating platformio/framework-zephyr-libmetal 0.0.0-alpha+sha.0b23894a04 @ 0.0.0-alpha+sha.0b23894a04[Up-to-date]
Updating platformio/framework-zephyr-lvgl     0.0.0-alpha+sha.928b61c7c8 @ 0.0.0-alpha+sha.928b61c7c8[Up-to-date]
Updating platformio/framework-zephyr-mbedtls  0.0.0-alpha+sha.aef137b1af @ 0.0.0-alpha+sha.aef137b1af[Up-to-date]
Updating platformio/framework-zephyr-mcuboot  0.0.0-alpha+sha.a5d79cf8cc @ 0.0.0-alpha+sha.a5d79cf8cc[Up-to-date]
Updating platformio/framework-zephyr-mcumgr   0.0.0-alpha+sha.5051f9d900 @ 0.0.0-alpha+sha.5051f9d900[Up-to-date]
Updating platformio/framework-zephyr-open-amp 0.0.0-alpha+sha.724f7e2a45 @ 0.0.0-alpha+sha.724f7e2a45[Up-to-date]
Updating platformio/framework-zephyr-loramac-node 0.0.0-alpha+sha.3f545d76a2 @ 0.0.0-alpha+sha.3f545d76a2[Up-to-date]
Updating platformio/framework-zephyr-openthread 0.0.0-alpha+sha.07f430dac6 @ 0.0.0-alpha+sha.07f430dac6[Up-to-date]
Updating platformio/framework-zephyr-segger   0.0.0-alpha+sha.874d9e9696 @ 0.0.0-alpha+sha.874d9e9696[Up-to-date]
Updating platformio/framework-zephyr-tinycbor 0.0.0-alpha+sha.40daca97b4 @ 0.0.0-alpha+sha.40daca97b4[Up-to-date]
Updating platformio/framework-zephyr-tinycrypt 0.0.0-alpha+sha.3e9a49d267 @ 0.0.0-alpha+sha.3e9a49d267[Up-to-date]
Updating platformio/framework-zephyr-littlefs 0.0.0-alpha+sha.9e4498d1c7 @ 0.0.0-alpha+sha.9e4498d1c7[Up-to-date]
Updating platformio/framework-zephyr-mipi-sys-t 0.0.0-alpha+sha.957d46bc3c @ 0.0.0-alpha+sha.957d46bc3c[Up-to-date]
Updating platformio/framework-zephyr-trusted-firmware-m 0.0.0-alpha+sha.143df67555 @ 0.0.0-alpha+sha.143df67555[Up-to-date]
Updating platformio/tool-cmake                3.16.4 @ ~3.16.0                   [Up-to-date]
Updating platformio/tool-dtc                  1.4.7 @ ~1.4.7                     [Up-to-date]
Updating platformio/tool-ninja                1.9.0 @ ^1.7.0                     [Up-to-date]
Tool Manager: Removing toolchain-gccarmnoneeabi @ 1.80201.190214
Tool Manager: toolchain-gccarmnoneeabi @ 1.80201.190214 has been removed!

Platform nordicnrf52
--------
Updating platformio/nordicnrf52               5.0.1                              [Up-to-date]
Updating platformio/framework-zephyr          2.20400.201210 @ ~2.20400.0        [Up-to-date]
Updating platformio/framework-zephyr-cmsis    0.0.0-alpha+sha.542b2296e6 @ 0.0.0-alpha+sha.542b2296e6[Up-to-date]
Updating platformio/framework-zephyr-canopennode 0.0.0-alpha+sha.468d350028 @ 0.0.0-alpha+sha.468d350028[Up-to-date]
Updating platformio/framework-zephyr-civetweb 0.0.0-alpha+sha.99129c5efc @ 0.0.0-alpha+sha.99129c5efc[Up-to-date]
Updating platformio/framework-zephyr-fatfs    0.0.0-alpha+sha.13697783bf @ 0.0.0-alpha+sha.13697783bf[Up-to-date]
Updating platformio/framework-zephyr-hal-nordic 0.0.0-alpha+sha.d8a6ea9695 @ 0.0.0-alpha+sha.d8a6ea9695[Up-to-date]
Updating platformio/framework-zephyr-hal-st   0.0.0-alpha+sha.5b3ec3e182 @ 0.0.0-alpha+sha.5b3ec3e182[Up-to-date]
Updating platformio/framework-zephyr-libmetal 0.0.0-alpha+sha.0b23894a04 @ 0.0.0-alpha+sha.0b23894a04[Up-to-date]
Updating platformio/framework-zephyr-lvgl     0.0.0-alpha+sha.928b61c7c8 @ 0.0.0-alpha+sha.928b61c7c8[Up-to-date]
Updating platformio/framework-zephyr-mbedtls  0.0.0-alpha+sha.aef137b1af @ 0.0.0-alpha+sha.aef137b1af[Up-to-date]
Updating platformio/framework-zephyr-mcuboot  0.0.0-alpha+sha.a5d79cf8cc @ 0.0.0-alpha+sha.a5d79cf8cc[Up-to-date]
Updating platformio/framework-zephyr-mcumgr   0.0.0-alpha+sha.5051f9d900 @ 0.0.0-alpha+sha.5051f9d900[Up-to-date]
Updating platformio/framework-zephyr-open-amp 0.0.0-alpha+sha.724f7e2a45 @ 0.0.0-alpha+sha.724f7e2a45[Up-to-date]
Updating platformio/framework-zephyr-loramac-node 0.0.0-alpha+sha.3f545d76a2 @ 0.0.0-alpha+sha.3f545d76a2[Up-to-date]
Updating platformio/framework-zephyr-openthread 0.0.0-alpha+sha.07f430dac6 @ 0.0.0-alpha+sha.07f430dac6[Up-to-date]
Updating platformio/framework-zephyr-segger   0.0.0-alpha+sha.874d9e9696 @ 0.0.0-alpha+sha.874d9e9696[Up-to-date]
Updating platformio/framework-zephyr-tinycbor 0.0.0-alpha+sha.40daca97b4 @ 0.0.0-alpha+sha.40daca97b4[Up-to-date]
Updating platformio/framework-zephyr-tinycrypt 0.0.0-alpha+sha.3e9a49d267 @ 0.0.0-alpha+sha.3e9a49d267[Up-to-date]
Updating platformio/framework-zephyr-littlefs 0.0.0-alpha+sha.9e4498d1c7 @ 0.0.0-alpha+sha.9e4498d1c7[Up-to-date]
Updating platformio/framework-zephyr-mipi-sys-t 0.0.0-alpha+sha.957d46bc3c @ 0.0.0-alpha+sha.957d46bc3c[Up-to-date]
Updating platformio/framework-zephyr-trusted-firmware-m 0.0.0-alpha+sha.143df67555 @ 0.0.0-alpha+sha.143df67555[Up-to-date]
Updating platformio/tool-sreccat              1.164.0 @ ~1.164.0                 [Up-to-date]
Updating platformio/tool-cmake                3.16.4 @ ~3.16.0                   [Up-to-date]
Updating platformio/tool-dtc                  1.4.7 @ ~1.4.7                     [Up-to-date]
Updating platformio/tool-ninja                1.9.0 @ ^1.7.0                     [Up-to-date]

output of pio run:

------------------------------------------------------------------------------------------------------------------------
Tool Manager: Installing platformio/toolchain-gccarmnoneeabi @ ~1.80201.0
Unpacking  [####################################]  100%
Tool Manager: toolchain-gccarmnoneeabi @ 1.80201.190214 has been installed!
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/nordicnrf52/adafruit_feather_nrf52840.html
PLATFORM: Nordic nRF52 (5.0.1) > Adafruit Feather nRF52840 Express
HARDWARE: NRF52840 64MHz, 243KB RAM, 796KB Flash
DEBUG: Current (blackmagic) External (blackmagic, cmsis-dap, jlink, stlink)
PACKAGES:
 - framework-zephyr 2.20400.201210 (2.4.0)
 - framework-zephyr-canopennode 0.0.0-alpha+sha.468d350028
 - framework-zephyr-civetweb 0.0.0-alpha+sha.99129c5efc
 - framework-zephyr-cmsis 0.0.0-alpha+sha.542b2296e6
 - framework-zephyr-fatfs 0.0.0-alpha+sha.13697783bf
 - framework-zephyr-hal-nordic 0.0.0-alpha+sha.d8a6ea9695
 - framework-zephyr-hal-st 0.0.0-alpha+sha.5b3ec3e182
 - framework-zephyr-libmetal 0.0.0-alpha+sha.0b23894a04
 - framework-zephyr-littlefs 0.0.0-alpha+sha.9e4498d1c7
 - framework-zephyr-loramac-node 0.0.0-alpha+sha.3f545d76a2
 - framework-zephyr-lvgl 0.0.0-alpha+sha.928b61c7c8
 - framework-zephyr-mbedtls 0.0.0-alpha+sha.aef137b1af
 - framework-zephyr-mcuboot 0.0.0-alpha+sha.a5d79cf8cc
 - framework-zephyr-mcumgr 0.0.0-alpha+sha.5051f9d900
 - framework-zephyr-mipi-sys-t 0.0.0-alpha+sha.957d46bc3c
 - framework-zephyr-open-amp 0.0.0-alpha+sha.724f7e2a45
 - framework-zephyr-openthread 0.0.0-alpha+sha.07f430dac6
 - framework-zephyr-segger 0.0.0-alpha+sha.874d9e9696
 - framework-zephyr-tinycbor 0.0.0-alpha+sha.40daca97b4
 - framework-zephyr-tinycrypt 0.0.0-alpha+sha.3e9a49d267
 - framework-zephyr-trusted-firmware-m 0.0.0-alpha+sha.143df67555
 - tool-cmake 3.16.4
 - tool-dtc 1.4.7
 - tool-ninja 1.9.0
 - tool-sreccat 1.164.0 (1.64)
 - toolchain-gccarmnoneeabi 1.80201.190214 (8.2.1)
Reading CMake configuration...
Parsing system calls...
Generating syscall files
Generating KObject files...
Validating driver...
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Compiling .pio\build\adafruit_feather_nrf52840\offsets\zephyr\arch\arm\core\offsets\offsets.c.o
Compiling .pio\build\adafruit_feather_nrf52840\zephyr_final\zephyr\misc\empty_file.c.o
Generating header file with offsets .pio\build\adafruit_feather_nrf52840\zephyr\include\generated\offsets.h
Archiving .pio\build\adafruit_feather_nrf52840\zephyr\liboffsets.a
Compiling .pio\build\adafruit_feather_nrf52840\arch__arm__core__aarch32__cortex_m\zephyr\arch\arch\arm\core\aarch32\cortex_m\reset.S.o
Compiling .pio\build\adafruit_feather_nrf52840\src\main.o
Compiling .pio\build\adafruit_feather_nrf52840\kernel\zephyr\kernel\thread.c.o
Compiling .pio\build\adafruit_feather_nrf52840\lib__libc__minimal\zephyr\lib\libc\minimal\source\stdout\fprintf.c.o
Compiling .pio\build\adafruit_feather_nrf52840\zephyr\zephyr\configs.c.o
Compiling .pio\build\adafruit_feather_nrf52840\kernel\zephyr\kernel\idle.c.o
Compiling .pio\build\adafruit_feather_nrf52840\zephyr\zephyr\lib\os\hex.c.o
Compiling .pio\build\adafruit_feather_nrf52840\lib__posix\zephyr\lib\posix\nanosleep.c.o
Compiling .pio\build\adafruit_feather_nrf52840\lib__libc__minimal\zephyr\lib\libc\minimal\source\stdlib\strtoul.c.o
Compiling .pio\build\adafruit_feather_nrf52840\kernel\zephyr\kernel\system_work_q.c.o
Compiling .pio\build\adafruit_feather_nrf52840\arch__arm__core__aarch32__cortex_m\zephyr\arch\arch\arm\core\aarch32\cortex_m\fault_s.S.o
Compiling .pio\build\adafruit_feather_nrf52840\zephyr\zephyr\lib\os\crc32_sw.c.o
Compiling .pio\build\adafruit_feather_nrf52840\zephyr\zephyr\lib\os\rb.c.o
Compiling .pio\build\adafruit_feather_nrf52840\arch__arm__core__aarch32__cortex_m__mpu\zephyr\arch\arch\arm\core\aarch32\cortex_m\mpu\arm_core_mpu.c.o
Generating linker script .pio\build\adafruit_feather_nrf52840\zephyr\linker.cmd
Compiling .pio\build\adafruit_feather_nrf52840\arch__arm__core__aarch32\zephyr\arch\arch\arm\core\aarch32\isr_wrapper.S.o
Compiling .pio\build\adafruit_feather_nrf52840\zephyr\zephyr\lib\os\crc7_sw.c.o
Compiling .pio\build\adafruit_feather_nrf52840\soc__arm__common__cortex_m\zephyr\soc\arm\common\cortex_m\arm_mpu_regions.c.o
Compiling .pio\build\adafruit_feather_nrf52840\kernel\zephyr\kernel\queue.c.o
Compiling .pio\build\adafruit_feather_nrf52840\zephyr\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c.o
Compiling .pio\build\adafruit_feather_nrf52840\drivers__serial\zephyr\drivers\serial\uart_nrfx_uart.c.o
Compiling .pio\build\adafruit_feather_nrf52840\zephyr\zephyr\lib\os\onoff.c.o
Compiling .pio\build\adafruit_feather_nrf52840\kernel\zephyr\kernel\pipes.c.o
Compiling .pio\build\adafruit_feather_nrf52840\kernel\zephyr\kernel\timer.c.o
Compiling .pio\build\adafruit_feather_nrf52840\arch__arm__core__aarch32__cortex_m\zephyr\arch\arch\arm\core\aarch32\cortex_m\scb.c.o
Compiling .pio\build\adafruit_feather_nrf52840\lib__libc__minimal\zephyr\lib\libc\minimal\source\stdlib\bsearch.c.o
Compiling .pio\build\adafruit_feather_nrf52840\arch__arm__core__aarch32__cortex_m__mpu\zephyr\arch\arch\arm\core\aarch32\cortex_m\mpu\arm_mpu.c.o
Compiling .pio\build\adafruit_feather_nrf52840\arch__arm__core__aarch32\zephyr\arch\arch\arm\core\aarch32\prep_c.c.o
Compiling .pio\build\adafruit_feather_nrf52840\zephyr\zephyr\lib\os\fdtable.c.o
Compiling .pio\build\adafruit_feather_nrf52840\lib__libc__minimal\zephyr\lib\libc\minimal\source\stdlib\atoi.c.o
Compiling .pio\build\adafruit_feather_nrf52840\lib__libc__minimal\zephyr\lib\libc\minimal\source\stdlib\malloc.c.o
Compiling .pio\build\adafruit_feather_nrf52840\lib__libc__minimal\zephyr\lib\libc\minimal\source\string\strncasecmp.c.o
Compiling .pio\build\adafruit_feather_nrf52840\kernel\zephyr\kernel\thread_abort.c.o
Compiling .pio\build\adafruit_feather_nrf52840\arch__arm__core__aarch32\zephyr\arch\arch\arm\core\aarch32\thread.c.o
Compiling .pio\build\adafruit_feather_nrf52840\zephyr\zephyr\lib\os\dec.c.o
Compiling .pio\build\adafruit_feather_nrf52840\lib__libc__minimal\zephyr\lib\libc\minimal\source\stdout\sprintf.c.o
Compiling .pio\build\adafruit_feather_nrf52840\zephyr_prebuilt\zephyr\misc\empty_file.c.o
Compiling .pio\build\adafruit_feather_nrf52840\lib__libc__minimal\zephyr\lib\libc\minimal\source\stdout\stdout_console.c.o
Compiling .pio\build\adafruit_feather_nrf52840\kernel\zephyr\kernel\mem_slab.c.o
Compiling .pio\build\adafruit_feather_nrf52840\arch__arm__core__aarch32__cortex_m\zephyr\arch\arch\arm\core\aarch32\cortex_m\thread_abort.c.o
Compiling .pio\build\adafruit_feather_nrf52840\arch__arm__core__aarch32__cortex_m\zephyr\arch\arch\arm\core\aarch32\cortex_m\vector_table.S.o
Compiling .pio\build\adafruit_feather_nrf52840\arch__arm__core__aarch32\zephyr\arch\arch\arm\core\aarch32\irq_manage.c.o
Archiving .pio\build\adafruit_feather_nrf52840\zephyr\soc\arm\common\cortex_m\libsoc__arm__common__cortex_m.a
Compiling .pio\build\adafruit_feather_nrf52840\lib__libc__minimal\zephyr\lib\libc\minimal\source\string\string.c.o
Compiling .pio\build\adafruit_feather_nrf52840\soc__arm__nordic_nrf__nrf52\zephyr\soc\arm\nordic_nrf\nrf52\power.c.o
Compiling .pio\build\adafruit_feather_nrf52840\lib__libc__minimal\zephyr\lib\libc\minimal\source\string\strspn.c.o
Compiling .pio\build\adafruit_feather_nrf52840\zephyr\zephyr\drivers\console\uart_console.c.o
Compiling .pio\build\adafruit_feather_nrf52840\..__-hal-nordic\modules\framework-zephyr-hal-nordic\nrfx_glue.c.o
Compiling .pio\build\adafruit_feather_nrf52840\arch__arm__core__aarch32__cortex_m\zephyr\arch\arch\arm\core\aarch32\cortex_m\exc_exit.S.o
Compiling .pio\build\adafruit_feather_nrf52840\zephyr\zephyr\lib\os\notify.c.o
Compiling .pio\build\adafruit_feather_nrf52840\lib__libc__minimal\zephyr\lib\libc\minimal\source\stdlib\exit.c.o
Compiling .pio\build\adafruit_feather_nrf52840\zephyr\zephyr\lib\os\crc8_sw.c.o
Compiling .pio\build\adafruit_feather_nrf52840\kernel\zephyr\kernel\work_q.c.o
Compiling .pio\build\adafruit_feather_nrf52840\kernel\zephyr\kernel\kheap.c.o
Compiling .pio\build\adafruit_feather_nrf52840\isr_tables\zephyr\arch\common\isr_tables.c.o
Compiling .pio\build\adafruit_feather_nrf52840\arch__arm__core__aarch32\zephyr\arch\arch\arm\core\aarch32\fatal.c.o
Compiling .pio\build\adafruit_feather_nrf52840\lib__libc__minimal\zephyr\lib\libc\minimal\source\time\gmtime.c.o
Compiling .pio\build\adafruit_feather_nrf52840\lib__libc__minimal\zephyr\lib\libc\minimal\source\stdlib\strtol.c.o
Compiling .pio\build\adafruit_feather_nrf52840\zephyr\zephyr\drivers\timer\nrf_rtc_timer.c.o
Compiling .pio\build\adafruit_feather_nrf52840\arch__arm__core__aarch32__cortex_m\zephyr\arch\arch\arm\core\aarch32\cortex_m\fault.c.o
Compiling .pio\build\adafruit_feather_nrf52840\zephyr\zephyr\lib\os\mempool.c.o
Compiling .pio\build\adafruit_feather_nrf52840\zephyr\zephyr\lib\os\heap.c.o
Compiling .pio\build\adafruit_feather_nrf52840\arch__arm__core__aarch32\zephyr\arch\arch\arm\core\aarch32\cpu_idle.S.o
Compiling .pio\build\adafruit_feather_nrf52840\arch__arm__core__aarch32\zephyr\arch\arch\arm\core\aarch32\swap_helper.S.o
Compiling .pio\build\adafruit_feather_nrf52840\zephyr\zephyr\lib\os\crc16_sw.c.o
Compiling .pio\build\adafruit_feather_nrf52840\lib__libc__minimal\zephyr\lib\libc\minimal\source\string\strstr.c.o
Compiling .pio\build\adafruit_feather_nrf52840\zephyr\zephyr\lib\os\printk.c.o
Archiving .pio\build\adafruit_feather_nrf52840\zephyr\drivers\serial\libdrivers__serial.a
Compiling .pio\build\adafruit_feather_nrf52840\kernel\zephyr\kernel\mempool.c.o
Compiling .pio\build\adafruit_feather_nrf52840\kernel\zephyr\kernel\stack.c.o
Compiling .pio\build\adafruit_feather_nrf52840\drivers__gpio\zephyr\drivers\gpio\gpio_nrfx.c.o
Archiving .pio\build\adafruit_feather_nrf52840\zephyr\arch\arch\arm\core\aarch32\cortex_m\mpu\libarch__arm__core__aarch32__cortex_m__mpu.a
Compiling .pio\build\adafruit_feather_nrf52840\arch__arm__core__aarch32\zephyr\arch\arch\arm\core\aarch32\nmi_on_reset.S.o
Compiling .pio\build\adafruit_feather_nrf52840\soc__arm__nordic_nrf__nrf52\zephyr\soc\arm\nordic_nrf\nrf52\soc.c.o
Compiling .pio\build\adafruit_feather_nrf52840\zephyr\zephyr\lib\os\heap-validate.c.o
Compiling .pio\build\adafruit_feather_nrf52840\zephyr\zephyr\drivers\timer\sys_clock_init.c.o
Compiling .pio\build\adafruit_feather_nrf52840\kernel\zephyr\kernel\fatal.c.o
Compiling .pio\build\adafruit_feather_nrf52840\arch__arm__core__aarch32__cortex_m\zephyr\arch\arch\arm\core\aarch32\cortex_m\irq_init.c.o
Compiling .pio\build\adafruit_feather_nrf52840\kernel\zephyr\kernel\timeout.c.o
Compiling .pio\build\adafruit_feather_nrf52840\arch__common\zephyr\arch\common\sw_isr_common.c.o
Archiving .pio\build\adafruit_feather_nrf52840\zephyr\arch\common\libisr_tables.a
Compiling .pio\build\adafruit_feather_nrf52840\..__-hal-nordic\modules\framework-zephyr-hal-nordic\nrfx\drivers\src\nrfx_clock.c.o
Compiling .pio\build\adafruit_feather_nrf52840\kernel\zephyr\kernel\errno.c.o
Compiling .pio\build\adafruit_feather_nrf52840\kernel\zephyr\kernel\smp.c.o
Compiling .pio\build\adafruit_feather_nrf52840\zephyr\zephyr\lib\os\prf.c.o
Compiling .pio\build\adafruit_feather_nrf52840\zephyr\zephyr\lib\os\sem.c.o
Compiling .pio\build\adafruit_feather_nrf52840\kernel\zephyr\kernel\sched.c.o
Compiling .pio\build\adafruit_feather_nrf52840\kernel\zephyr\kernel\msg_q.c.o
Compiling .pio\build\adafruit_feather_nrf52840\kernel\zephyr\kernel\mailbox.c.o
Archiving .pio\build\adafruit_feather_nrf52840\zephyr\lib\libc\minimal\liblib__libc__minimal.a
Compiling .pio\build\adafruit_feather_nrf52840\zephyr\zephyr\drivers\clock_control\clock_control_nrf.c.o
Compiling .pio\build\adafruit_feather_nrf52840\arch__arm__core__aarch32\zephyr\arch\arch\arm\core\aarch32\nmi.c.o
Compiling .pio\build\adafruit_feather_nrf52840\arch__arm__core__aarch32\zephyr\arch\arch\arm\core\aarch32\swap.c.o
Compiling .pio\build\adafruit_feather_nrf52840\zephyr\zephyr\lib\os\timeutil.c.o
Compiling .pio\build\adafruit_feather_nrf52840\lib__posix\zephyr\lib\posix\pthread_common.c.o
Compiling .pio\build\adafruit_feather_nrf52840\zephyr\zephyr\lib\os\work_q.c.o
Compiling .pio\build\adafruit_feather_nrf52840\kernel\zephyr\kernel\sem.c.o
Compiling .pio\build\adafruit_feather_nrf52840\zephyr\zephyr\soc\arm\nordic_nrf\validate_enabled_instances.c.o
Compiling .pio\build\adafruit_feather_nrf52840\kernel\zephyr\kernel\mutex.c.o
Compiling .pio\build\adafruit_feather_nrf52840\..__-hal-nordic\modules\framework-zephyr-hal-nordic\nrfx\mdk\system_nrf52840.c.o
Compiling .pio\build\adafruit_feather_nrf52840\kernel\zephyr\kernel\init.c.o
Archiving .pio\build\adafruit_feather_nrf52840\zephyr\arch\common\libarch__common.a
Compiling .pio\build\adafruit_feather_nrf52840\kernel\zephyr\kernel\device.c.o
Compiling .pio\build\adafruit_feather_nrf52840\zephyr\zephyr\lib\os\thread_entry.c.o
Compiling .pio\build\adafruit_feather_nrf52840\kernel\zephyr\kernel\version.c.o
Compiling .pio\build\adafruit_feather_nrf52840\zephyr\zephyr\subsys\power\power.c.o
Compiling .pio\build\adafruit_feather_nrf52840\zephyr\zephyr\subsys\power\policy\policy_residency.c.o
Generating final linker script .pio\build\adafruit_feather_nrf52840\zephyr\linker_pass_final.cmd
Archiving .pio\build\adafruit_feather_nrf52840\zephyr\soc\arm\nordic_nrf\nrf52\libsoc__arm__nordic_nrf__nrf52.a
Archiving .pio\build\adafruit_feather_nrf52840\zephyr\arch\arch\arm\core\aarch32\cortex_m\libarch__arm__core__aarch32__cortex_m.a
Archiving .pio\build\adafruit_feather_nrf52840\zephyr\drivers\gpio\libdrivers__gpio.a
Archiving .pio\build\adafruit_feather_nrf52840\zephyr\arch\arch\arm\core\aarch32\libarch__arm__core__aarch32.a
Archiving .pio\build\adafruit_feather_nrf52840\zephyr\lib\posix\liblib__posix.a
Archiving .pio\build\adafruit_feather_nrf52840\modules\framework-zephyr-hal-nordic\lib..__framework-zephyr-hal-nordic.a
Archiving .pio\build\adafruit_feather_nrf52840\zephyr\libzephyr.a
Archiving .pio\build\adafruit_feather_nrf52840\zephyr\kernel\libkernel.a
Linking .pio\build\adafruit_feather_nrf52840\firmware-pre.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       14384 B         1 MB      1.37%
            SRAM:        4024 B       256 KB      1.54%
        IDT_LIST:          56 B         2 KB      2.73%
Generating ISR list .pio\build\adafruit_feather_nrf52840\zephyr\isrList.bin
Generating ISR table .pio\build\adafruit_feather_nrf52840\zephyr\isr_tables.c
Compiling .pio\build\adafruit_feather_nrf52840\zephyr_final\zephyr\isr_tables.c.o
Linking .pio\build\adafruit_feather_nrf52840\firmware.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       14384 B         1 MB      1.37%
            SRAM:        4024 B       256 KB      1.54%
        IDT_LIST:          0 GB         2 KB      0.00%
Checking size .pio\build\adafruit_feather_nrf52840\firmware.elf
Building .pio\build\adafruit_feather_nrf52840\firmware.hex
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [          ]   1.6% (used 4007 bytes from 248832 bytes)
Flash: [          ]   1.7% (used 13938 bytes from 815104 bytes)
============================================= [SUCCESS] Took 35.54 seconds =============================================
@ivankravets
Copy link
Member

Do you use 3rd party spy antivirus software?

Please provide an output of

pio system info

@cbc02009
Copy link
Author

I am not using any 3rd party anti-malware or antivirus.

pio system info:

PlatformIO Core             5.0.3
Python                      3.9.1-final.0
System Type                 windows_amd64
Platform                    Windows-10
File System Encoding        utf-8
Locale Encoding             cp1252
PlatformIO Core Directory   C:\Users\*****\.platformio
PlatformIO Core Executable  C:\Users\*****\.platformio\penv\Scripts\platformio.exe
Python Executable           c:\users\*****\.platformio\penv\scripts\python.exe
Global Libraries            0
Development Platforms       2
Tools & Toolchains          37
--------------------------  ------------------------------------------------------

@ivankravets
Copy link
Member

Is your project located on the special drive?

@cbc02009
Copy link
Author

Is your project located on the special drive?

Sorry, what do you mean by special drive?

@ivankravets
Copy link
Member

OneDrive? Dropbox? Google Drive? Network Disk?

@cbc02009
Copy link
Author

Oh, gotcha. Nope it's just on the C:\ drive in the Windows Documents folder.

@mcspr
Copy link
Contributor

mcspr commented Jan 4, 2021

I wonder if this is related?

Was trying to build ESPEasy with the new toolchain package when already have these installed via Espurna builder:
https://github.com/xoseperez/espurna/blob/47538b9658d36777f81fdc78ce3592f2d8db9e68/code/platformio.ini#L125-L127
https://github.com/letscontrolit/ESPEasy/blob/e693db524076c35bf9f16cea59fafb7687426cac/platformio_esp82xx_envs.ini#L75
https://github.com/letscontrolit/ESPEasy/blob/e693db524076c35bf9f16cea59fafb7687426cac/platformio_core_defs.ini#L135-L137

Only 2 differences I noticed:

  • platformio/framework-arduinoespressif8266 vs. framework-arduinoespressif8266 in .inis, but referencing the exact same https://github.com/esp8266/Arduino.git
  • platform=... for Espurna is espressif8266@2.6.2 vs. the git-platform for ESPEasy (...did the platform installation cause this?)

The pio-run managed to delete my existing esp8266/Arduino.git tree with an active development branch and 2 existing toolchain packages :/ It feels like it is too eager to optimize out the outdated versions:

>  C:\Users\maxim\.platformio\penv\Scripts\pio.exe run -e custom_beta_ESP8266_4M1M
Processing custom_beta_ESP8266_4M1M (platform: https://github.com/platformio/platform-espressif8266.git; board: esp12e; framework: arduino)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Platform Manager: Installing git+https://github.com/platformio/platform-espressif8266.git
git version 2.29.2.windows.2
Cloning into 'C:\Users\maxim\.platformio\.cache\tmp\pkg-installing-5_nvu_5o'...
remote: Enumerating objects: 108, done.
remote: Counting objects: 100% (108/108), done.
Receiving objects:  15% (17/108)% (89/89), done.
remote: Total 108 (delta 57), reused 35 (delta 5), pack-reused 0
Receiving objects: 100% (108/108), 34.87 KiB | 430.00 KiB/s, done.
Resolving deltas: 100% (57/57), done.
Platform Manager: espressif8266 @ 2.6.2+sha.468a625 has been installed!
Tool Manager: Removing framework-arduinoespressif8266 @ 3.0.0-dev+sha.417aacc
Tool Manager: framework-arduinoespressif8266 @ 3.0.0-dev+sha.417aacc has been removed! // <--- my existing tree
Tool Manager: Removing toolchain-xtensa @ 5.100200.201223 // <--- toolchain I already had installed
Tool Manager: toolchain-xtensa @ 5.100200.201223 has been removed!
Tool Manager: Removing toolchain-xtensa @ 5.100200.200918 // <-- old toolchain, which I might've wanted to keep :/
Tool Manager: toolchain-xtensa @ 5.100200.200918 has been removed!
The platform 'https://github.com/platformio/platform-espressif8266.git' has been successfully installed!
The rest of the packages will be installed later depending on your build environment.
Tool Manager: Installing mcspr/toolchain-xtensa @ 5.100200.201223
Unpacking  [####################################]  100%
Tool Manager: toolchain-xtensa @ 5.100200.201223 has been installed!
Tool Manager: Installing git+https://github.com/esp8266/Arduino.git

@mcspr
Copy link
Contributor

mcspr commented Jan 7, 2021

Plus, I also noticed the same issue with the pio platform update. The culprit seems to be

pm.uninstall(pkg.metadata.spec)

Since it purges everything that is not attached to platform as a dependency.
(and I also noticed that even with --only-check it still uninstalls my toolchain package :/)

> C:\Users\maxim\.platformio\penv\Scripts\pio.exe platform update -c
Platform espressif8266
--------
Checking platformio/espressif8266             2.6.2                              [Up-to-date]
Checking platformio/toolchain-xtensa          2.40802.200502 @ ~2.40802.191122   [Up-to-date]
Checking platformio/framework-arduinoespressif8266 3.20704.0 @ ~3.20704.0             [Up-to-date]
Checking platformio/tool-esptool              1.413.0 @ <2                       [Up-to-date]
Checking platformio/tool-esptoolpy            1.20800.0 @ ~1.20800.0             [Up-to-date]
Tool Manager: Removing framework-arduinoespressif8266 @ 3.0.0-dev+sha.100a8df
Tool Manager: framework-arduinoespressif8266 @ 3.0.0-dev+sha.100a8df has been removed!
Tool Manager: Removing toolchain-xtensa @ 5.100200.201223
Tool Manager: toolchain-xtensa @ 5.100200.201223 has been removed!

Which may explain the original issue b/c of the version requirements toolchain-gccarmnoneeabi @ 1.80201.190214 does not match:
https://github.com/platformio/platform-nordicnrf52/blob/6654461aa15920c08f92373ea0bbd813310c94c6/platform.json#L40
https://github.com/platformio/platform-atmelsam/blob/9ea87740bf02f108f8cd29f023b482800c619602/platform.json#L46

Another place that seems to manage uninstall comes from get_core_package_dir() named as _remove_unnecessary_packages():


Which filters out anything without owner="platformio" and... removes it? This does seem to need an actual project to be called, which I have not tried just yet.

@mcspr
Copy link
Contributor

mcspr commented Jan 23, 2021

@ivankravets does this make sense then?
mcspr/platformio-core@bf393ac9

but, since this is not closed, I think you will come up with a better solution :)

@ivankravets
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants