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

Dev Container Build for ESP32 is broken #1524

Closed
alberk8 opened this issue Aug 2, 2024 · 0 comments · Fixed by nanoframework/nf-interpreter#2999
Closed

Dev Container Build for ESP32 is broken #1524

alberk8 opened this issue Aug 2, 2024 · 0 comments · Fixed by nanoframework/nf-interpreter#2999

Comments

@alberk8
Copy link

alberk8 commented Aug 2, 2024

Target name(s)

ESP32_REV3

Firmware version

N/A

Was working before? On which version?

No response

Device capabilities

No response

Description

The nf-Interpreter build with Dev Container image for ESP32 for prebuild image as well as from Source is broken.

Prebuild Docker Container

Build Output

[cmake] Not searching for unused variables given on the command line.
[cmake] -- 
[cmake] 
[cmake] INFO: Running CMake 3.27.6
[cmake] 
[cmake] 
[cmake] -- 
[cmake] Setting RTOS to ESP32
[cmake] 
[cmake] CMake Error at CMake/toolchain.xtensa-esp32-elf.cmake:13 (find_program):
[cmake]   Could not find CMAKE_C_COMPILER using the following names:
[cmake]   xtensa-esp32-elf-gcc
[cmake] Call Stack (most recent call first):
[cmake]   CMake/toolchain.xtensa-esp32-elf.cmake:23 (nf_set_compiler_var)
[cmake]   /usr/bin/cmake/share/cmake-3.27/Modules/CMakeDetermineSystem.cmake:148 (include)
[cmake]   CMakeLists.txt:100 (project)
[cmake] 
[cmake] 
[cmake] CMake Error: CMake was unable to find a build program corresponding to "Ninja".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
[cmake] CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
[cmake] CMake Error: CMAKE_ASM_COMPILER not set, after EnableLanguage
[cmake] -- Configuring incomplete, errors occurred!
[proc] The command: /usr/bin/cmake/bin/cmake -DTARGET_NAME=ESP32_PSRAM_REV3 -DSDK_CONFIG_FILE=sdkconfig.default_rev3.esp32 -DNF_BUILD_RTM=OFF -DNF_FEATURE_DEBUGGER=ON -DNF_FEATURE_RTC=ON -DNF_FEATURE_HAS_SDCARD=ON -DAPI_nanoFramework.Device.OneWire=ON -DAPI_nanoFramework.ResourceManager=ON -DAPI_nanoFramework.System.Collections=ON -DAPI_nanoFramework.System.Text=ON -DCMAKE_TOOLCHAIN_FILE:FILEPATH=/workspaces/nf-interpreter/CMake/toolchain.xtensa-esp32-elf.cmake -DNF_TARGET_HAS_NANOBOOTER=OFF -DRTOS=ESP32 -DTARGET_SERIES=ESP32 -DTARGET_BOARD=ESP32 -DNF_FEATURE_HAS_CONFIG_BLOCK=ON -DNF_FEATURE_USE_LITTLEFS=ON -DNF_FEATURE_HAS_ACCESSIBLE_STORAGE=ON -DSUPPORT_ANY_BASE_CONVERSION=ON -DAPI_System.Net=ON -DAPI_System.Math=ON -DAPI_System.Device.Adc=ON -DAPI_System.Device.Dac=ON -DAPI_System.Device.Gpio=ON -DAPI_System.Device.I2c=ON -DAPI_System.Device.I2c.Slave=ON -DAPI_System.Device.I2s=ON -DAPI_System.Device.Spi=ON -DAPI_System.Device.Pwm=ON -DAPI_System.Device.Wifi=ON -DAPI_System.IO.Ports=ON -DAPI_System.IO.FileSystem=ON -DAPI_Hardware.Esp32=ON -DAPI_nanoFramework.System.IO.Hashing=ON -DAPI_nanoFramework.System.Security.Cryptography=ON -DAPI_nanoFramework.Hardware.Esp32.Rmt=ON "-DESP32_SPIRAM_FOR_IDF_ALLOCATION=256 * 1024" -DTOOL_HEX2DFU_PREFIX=/usr/local/bin/hex2dfu -DTOOL_SRECORD_PREFIX=/usr/bin -DCHIBIOS_SOURCE_FOLDER=/sources/ChibiOs -DFREERTOS_SOURCE_FOLDER=/sources/FreeRTOS -DCHIBIOS_CONTRIB_SOURCE=/sources/ChibiOs-Contrib -DCHIBIOS_HAL_SOURCE=/sources/ChibiOs -DSTM32_CUBE_PACKAGE_SOURCE=/sources/STM32CubeF7 -DLWIP_SOURCE=/sources/lwip -DMBEDTLS_SOURCE=/sources/mbedtls -DFATFS_SOURCE=/sources/fatfs -DLITTLEFS_SOURCE=/sources/littlefs -DESP32_IDF_PATH=/sources/esp-idf -DTI_SL_CC32xx_SDK_SOURCE=/sources/SimpleLinkCC32 -DTI_SL_CC13xx_26xx_SDK_SOURCE=/sources/SimpleLinkCC13 -DTI_XDCTOOLS_SOURCE=/usr/local/bin/titools -DTI_SYSCONFIG_SOURCE=/sources/TI_SysConfig -DAZURERTOS_SOURCE_FOLDER=/sources/AzureRTOS -DNETXDUO_SOURCE_FOLDER=/sources/NetxDuo -DCMAKE_BUILD_TYPE=Debug -DBUILD_VERSION=0.9.99.999 -DBUILD_VERBOSE=OFF -DNF_WP_TRACE_ERRORS=OFF -DNF_WP_TRACE_HEADERS=OFF -DNF_WP_TRACE_STATE=OFF -DNF_WP_TRACE_NODATA=OFF -DNF_WP_TRACE_ALL=OFF -DNF_WP_IMPLEMENTS_CRC32=OFF -DNF_PLATFORM_NO_CLR_TRACE=OFF -DNF_CLR_NO_IL_INLINE=OFF -DNF_FEATURE_WATCHDOG=ON -DSWO_OUTPUT=OFF -DRADIO_FREQUENCY=CHANGE_ME_TO_A_VALID_VALUE_868_OR_915 -Wdev -Wdeprecated --no-warn-unused-cli -S/workspaces/nf-interpreter -B/workspaces/nf-interpreter/build -G Ninja exited with code: 1

How to reproduce

No response

Expected behaviour

Can build ESP32 firmware from prebuild docker image or from source

Screenshots

No response

Aditional information

No response

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

Successfully merging a pull request may close this issue.

2 participants