You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Detecting the Python interpreter
Checking "python" ...
Python 3.8.0
"python" has been detected
Adding ESP-IDF tools to PATH...
Using Python interpreter in /home/safdar/.espressif/python_env/idf4.4_py3.8_env/bin/python
Checking if Python packages are up to date...
Python requirements from /home/safdar/esp/esp-idf/requirements.txt are satisfied.
Added the following directories to PATH:
/home/safdar/esp/esp-idf/components/esptool_py/esptool
/home/safdar/esp/esp-idf/components/espcoredump
/home/safdar/esp/esp-idf/components/partition_table
/home/safdar/esp/esp-idf/components/app_update
Done! You can now compile ESP-IDF projects.
Go to the project directory and run:
idf.py build
(base) safdar@obelix:~/esp/addtwoints_server$ idf.py set-target esp32
Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Executing action: set-target
Set Target to: esp32, new sdkconfig created. Existing sdkconfig renamed to sdkconfig.old.
Running cmake in directory /home/safdar/esp/addtwoints_server/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32 -DCCACHE_ENABLE=0 /home/safdar/esp/addtwoints_server"...
-- Found Git: /usr/bin/git (found version "2.25.1")
-- Component directory /home/safdar/Arduino does not contain a CMakeLists.txt file. No component will be added
-- Component directory /home/safdar/Desktop does not contain a CMakeLists.txt file. No component will be added
-- Component directory /home/safdar/Documents does not contain a CMakeLists.txt file. No component will be added
-- Component directory /home/safdar/Downloads does not contain a CMakeLists.txt file. No component will be added
-- Component directory /home/safdar/Music does not contain a CMakeLists.txt file. No component will be added
-- Component directory /home/safdar/Pictures does not contain a CMakeLists.txt file. No component will be added
-- Component directory /home/safdar/Public does not contain a CMakeLists.txt file. No component will be added
-- Component directory /home/safdar/Templates does not contain a CMakeLists.txt file. No component will be added
-- Component directory /home/safdar/Unity does not contain a CMakeLists.txt file. No component will be added
-- Component directory /home/safdar/Videos does not contain a CMakeLists.txt file. No component will be added
-- Component directory /home/safdar/anaconda3 does not contain a CMakeLists.txt file. No component will be added
-- Component directory /home/safdar/code does not contain a CMakeLists.txt file. No component will be added
-- Component directory /home/safdar/esp does not contain a CMakeLists.txt file. No component will be added
-- Component directory /home/safdar/ray_results does not contain a CMakeLists.txt file. No component will be added
-- Component directory /home/safdar/snap does not contain a CMakeLists.txt file. No component will be added
-- Component directory /home/safdar/steamvr does not contain a CMakeLists.txt file. No component will be added
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/safdar/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /home/safdar/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /home/safdar/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /home/safdar/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++
-- Check for working CXX compiler: /home/safdar/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.
-- Building ESP-IDF components for target esp32
-- Project sdkconfig file /home/safdar/esp/addtwoints_server/sdkconfig
Loading defaults file /home/safdar/esp/addtwoints_server/sdkconfig.defaults...
-- Found PythonInterp: /home/safdar/.espressif/python_env/idf4.4_py3.8_env/bin/python (found version "3.8")
-- Found Perl: /usr/bin/perl (found version "5.30.0")
-- App "addtwoints_server" version: 1
-- Adding linker script /home/safdar/esp/addtwoints_server/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script /home/safdar/esp/esp-idf/components/esp_system/ld/esp32/sections.ld.in
-- Adding linker script /home/safdar/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script /home/safdar/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script /home/safdar/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script /home/safdar/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script /home/safdar/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script /home/safdar/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script /home/safdar/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-time.ld
-- Adding linker script /home/safdar/esp/esp-idf/components/soc/esp32/ld/esp32.peripherals.ld
-- Using Micro XRCE-DDS middleware
-- Components: app_trace app_update asio bootloader bootloader_support bt cbor cmock coap console cxx driver efuse esp-tls esp32 esp_adc_cal esp_common esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_hw_support esp_ipc esp_lcd esp_local_ctrl esp_netif esp_phy esp_pm esp_ringbuf esp_rom esp_serial_slave_link esp_system esp_timer esp_websocket_client esp_wifi espcoredump esptool_py expat fatfs freemodbus freertos hal heap idf_test ieee802154 jsmn json libsodium log lwip main mbedtls mdns micro_ros_espidf_component mqtt newlib nghttp nvs_flash openssl openthread partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport tcpip_adapter tinyusb ulp unity usb vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
-- Component paths: /home/safdar/esp/esp-idf/components/app_trace /home/safdar/esp/esp-idf/components/app_update /home/safdar/esp/esp-idf/components/asio /home/safdar/esp/esp-idf/components/bootloader /home/safdar/esp/esp-idf/components/bootloader_support /home/safdar/esp/esp-idf/components/bt /home/safdar/esp/esp-idf/components/cbor /home/safdar/esp/esp-idf/components/cmock /home/safdar/esp/esp-idf/components/coap /home/safdar/esp/esp-idf/components/console /home/safdar/esp/esp-idf/components/cxx /home/safdar/esp/esp-idf/components/driver /home/safdar/esp/esp-idf/components/efuse /home/safdar/esp/esp-idf/components/esp-tls /home/safdar/esp/esp-idf/components/esp32 /home/safdar/esp/esp-idf/components/esp_adc_cal /home/safdar/esp/esp-idf/components/esp_common /home/safdar/esp/esp-idf/components/esp_eth /home/safdar/esp/esp-idf/components/esp_event /home/safdar/esp/esp-idf/components/esp_gdbstub /home/safdar/esp/esp-idf/components/esp_hid /home/safdar/esp/esp-idf/components/esp_http_client /home/safdar/esp/esp-idf/components/esp_http_server /home/safdar/esp/esp-idf/components/esp_https_ota /home/safdar/esp/esp-idf/components/esp_https_server /home/safdar/esp/esp-idf/components/esp_hw_support /home/safdar/esp/esp-idf/components/esp_ipc /home/safdar/esp/esp-idf/components/esp_lcd /home/safdar/esp/esp-idf/components/esp_local_ctrl /home/safdar/esp/esp-idf/components/esp_netif /home/safdar/esp/esp-idf/components/esp_phy /home/safdar/esp/esp-idf/components/esp_pm /home/safdar/esp/esp-idf/components/esp_ringbuf /home/safdar/esp/esp-idf/components/esp_rom /home/safdar/esp/esp-idf/components/esp_serial_slave_link /home/safdar/esp/esp-idf/components/esp_system /home/safdar/esp/esp-idf/components/esp_timer /home/safdar/esp/esp-idf/components/esp_websocket_client /home/safdar/esp/esp-idf/components/esp_wifi /home/safdar/esp/esp-idf/components/espcoredump /home/safdar/esp/esp-idf/components/esptool_py /home/safdar/esp/esp-idf/components/expat /home/safdar/esp/esp-idf/components/fatfs /home/safdar/esp/esp-idf/components/freemodbus /home/safdar/esp/esp-idf/components/freertos /home/safdar/esp/esp-idf/components/hal /home/safdar/esp/esp-idf/components/heap /home/safdar/esp/esp-idf/components/idf_test /home/safdar/esp/esp-idf/components/ieee802154 /home/safdar/esp/esp-idf/components/jsmn /home/safdar/esp/esp-idf/components/json /home/safdar/esp/esp-idf/components/libsodium /home/safdar/esp/esp-idf/components/log /home/safdar/esp/esp-idf/components/lwip /home/safdar/esp/addtwoints_server/main /home/safdar/esp/esp-idf/components/mbedtls /home/safdar/esp/esp-idf/components/mdns /home/safdar/esp/esp-idf/components/micro_ros_espidf_component /home/safdar/esp/esp-idf/components/mqtt /home/safdar/esp/esp-idf/components/newlib /home/safdar/esp/esp-idf/components/nghttp /home/safdar/esp/esp-idf/components/nvs_flash /home/safdar/esp/esp-idf/components/openssl /home/safdar/esp/esp-idf/components/openthread /home/safdar/esp/esp-idf/components/partition_table /home/safdar/esp/esp-idf/components/perfmon /home/safdar/esp/esp-idf/components/protobuf-c /home/safdar/esp/esp-idf/components/protocomm /home/safdar/esp/esp-idf/components/pthread /home/safdar/esp/esp-idf/components/sdmmc /home/safdar/esp/esp-idf/components/soc /home/safdar/esp/esp-idf/components/spi_flash /home/safdar/esp/esp-idf/components/spiffs /home/safdar/esp/esp-idf/components/tcp_transport /home/safdar/esp/esp-idf/components/tcpip_adapter /home/safdar/esp/esp-idf/components/tinyusb /home/safdar/esp/esp-idf/components/ulp /home/safdar/esp/esp-idf/components/unity /home/safdar/esp/esp-idf/components/usb /home/safdar/esp/esp-idf/components/vfs /home/safdar/esp/esp-idf/components/wear_levelling /home/safdar/esp/esp-idf/components/wifi_provisioning /home/safdar/esp/esp-idf/components/wpa_supplicant /home/safdar/esp/esp-idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: /home/safdar/esp/addtwoints_server/build
Run> idf.py menuconfig (and set the wifi user/pwd)
Run> idf.py build
Expected behavior
if.py build should compile succesfully.
Actual behavior
Build output:
...
[1010/1022] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/main.c.obj
FAILED: esp-idf/main/CMakeFiles/__idf_main.dir/main.c.obj
/home/safdar/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -DHAVE_CONFIG_H -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -DUNITY_INCLUDE_CONFIG_H -DWITH_POSIX -Iconfig -I/home/safdar/esp/esp-idf/components/newlib/platform_include -I/home/safdar/esp/esp-idf/components/freertos/include -I/home/safdar/esp/esp-idf/components/freertos/include/esp_additions/freertos -I/home/safdar/esp/esp-idf/components/freertos/port/xtensa/include -I/home/safdar/esp/esp-idf/components/freertos/include/esp_additions -I/home/safdar/esp/esp-idf/components/esp_hw_support/include -I/home/safdar/esp/esp-idf/components/esp_hw_support/include/soc -I/home/safdar/esp/esp-idf/components/esp_hw_support/include/soc/esp32 -I/home/safdar/esp/esp-idf/components/esp_hw_support/port/esp32/. -I/home/safdar/esp/esp-idf/components/heap/include -I/home/safdar/esp/esp-idf/components/log/include -I/home/safdar/esp/esp-idf/components/lwip/include/apps -I/home/safdar/esp/esp-idf/components/lwip/include/apps/sntp -I/home/safdar/esp/esp-idf/components/lwip/lwip/src/include -I/home/safdar/esp/esp-idf/components/lwip/port/esp32/include -I/home/safdar/esp/esp-idf/components/lwip/port/esp32/include/arch -I/home/safdar/esp/esp-idf/components/soc/include -I/home/safdar/esp/esp-idf/components/soc/esp32/. -I/home/safdar/esp/esp-idf/components/soc/esp32/include -I/home/safdar/esp/esp-idf/components/hal/esp32/include -I/home/safdar/esp/esp-idf/components/hal/include -I/home/safdar/esp/esp-idf/components/hal/platform_port/include -I/home/safdar/esp/esp-idf/components/esp_rom/include -I/home/safdar/esp/esp-idf/components/esp_rom/include/esp32 -I/home/safdar/esp/esp-idf/components/esp_rom/esp32 -I/home/safdar/esp/esp-idf/components/esp_common/include -I/home/safdar/esp/esp-idf/components/esp_system/include -I/home/safdar/esp/esp-idf/components/esp_system/port/soc -I/home/safdar/esp/esp-idf/components/esp_system/port/public_compat -I/home/safdar/esp/esp-idf/components/esp32/include -I/home/safdar/esp/esp-idf/components/xtensa/include -I/home/safdar/esp/esp-idf/components/xtensa/esp32/include -I/home/safdar/esp/esp-idf/components/driver/include -I/home/safdar/esp/esp-idf/components/driver/esp32/include -I/home/safdar/esp/esp-idf/components/esp_pm/include -I/home/safdar/esp/esp-idf/components/esp_ringbuf/include -I/home/safdar/esp/esp-idf/components/efuse/include -I/home/safdar/esp/esp-idf/components/efuse/esp32/include -I/home/safdar/esp/esp-idf/components/vfs/include -I/home/safdar/esp/esp-idf/components/esp_wifi/include -I/home/safdar/esp/esp-idf/components/esp_event/include -I/home/safdar/esp/esp-idf/components/esp_netif/include -I/home/safdar/esp/esp-idf/components/esp_eth/include -I/home/safdar/esp/esp-idf/components/tcpip_adapter/include -I/home/safdar/esp/esp-idf/components/esp_phy/include -I/home/safdar/esp/esp-idf/components/esp_phy/esp32/include -I/home/safdar/esp/esp-idf/components/esp_ipc/include -I/home/safdar/esp/esp-idf/components/app_trace/include -I/home/safdar/esp/esp-idf/components/esp_timer/include -I/home/safdar/esp/esp-idf/components/mbedtls/port/include -I/home/safdar/esp/esp-idf/components/mbedtls/mbedtls/include -I/home/safdar/esp/esp-idf/components/mbedtls/esp_crt_bundle/include -I/home/safdar/esp/esp-idf/components/app_update/include -I/home/safdar/esp/esp-idf/components/spi_flash/include -I/home/safdar/esp/esp-idf/components/bootloader_support/include -I/home/safdar/esp/esp-idf/components/nvs_flash/include -I/home/safdar/esp/esp-idf/components/pthread/include -I/home/safdar/esp/esp-idf/components/esp_gdbstub/include -I/home/safdar/esp/esp-idf/components/esp_gdbstub/xtensa -I/home/safdar/esp/esp-idf/components/esp_gdbstub/esp32 -I/home/safdar/esp/esp-idf/components/espcoredump/include -I/home/safdar/esp/esp-idf/components/espcoredump/include/port/xtensa -I/home/safdar/esp/esp-idf/components/wpa_supplicant/include -I/home/safdar/esp/esp-idf/components/wpa_supplicant/port/include -I/home/safdar/esp/esp-idf/components/wpa_supplicant/esp_supplicant/include -I/home/safdar/esp/esp-idf/components/ieee802154/include -I/home/safdar/esp/esp-idf/components/console -I/home/safdar/esp/esp-idf/components/asio/asio/asio/include -I/home/safdar/esp/esp-idf/components/asio/port/include -I/home/safdar/esp/esp-idf/components/cbor/port/include -I/home/safdar/esp/esp-idf/components/unity/include -I/home/safdar/esp/esp-idf/components/unity/unity/src -I/home/safdar/esp/esp-idf/components/cmock/CMock/src -I/home/safdar/esp/esp-idf/components/coap/port/include -I/home/safdar/esp/esp-idf/components/coap/libcoap/include -I/home/safdar/esp/esp-idf/components/nghttp/port/include -I/home/safdar/esp/esp-idf/components/nghttp/nghttp2/lib/includes -I/home/safdar/esp/esp-idf/components/esp-tls -I/home/safdar/esp/esp-idf/components/esp-tls/esp-tls-crypto -I/home/safdar/esp/esp-idf/components/esp_adc_cal/include -I/home/safdar/esp/esp-idf/components/esp_hid/include -I/home/safdar/esp/esp-idf/components/tcp_transport/include -I/home/safdar/esp/esp-idf/components/esp_http_client/include -I/home/safdar/esp/esp-idf/components/esp_http_server/include -I/home/safdar/esp/esp-idf/components/esp_https_ota/include -I/home/safdar/esp/esp-idf/components/esp_lcd/include -I/home/safdar/esp/esp-idf/components/esp_lcd/interface -I/home/safdar/esp/esp-idf/components/protobuf-c/protobuf-c -I/home/safdar/esp/esp-idf/components/protocomm/include/common -I/home/safdar/esp/esp-idf/components/protocomm/include/security -I/home/safdar/esp/esp-idf/components/protocomm/include/transports -I/home/safdar/esp/esp-idf/components/mdns/include -I/home/safdar/esp/esp-idf/components/esp_local_ctrl/include -I/home/safdar/esp/esp-idf/components/sdmmc/include -I/home/safdar/esp/esp-idf/components/esp_serial_slave_link/include -I/home/safdar/esp/esp-idf/components/esp_websocket_client/include -I/home/safdar/esp/esp-idf/components/expat/expat/expat/lib -I/home/safdar/esp/esp-idf/components/expat/port/include -I/home/safdar/esp/esp-idf/components/wear_levelling/include -I/home/safdar/esp/esp-idf/components/fatfs/diskio -I/home/safdar/esp/esp-idf/components/fatfs/vfs -I/home/safdar/esp/esp-idf/components/fatfs/src -I/home/safdar/esp/esp-idf/components/freemodbus/common/include -I/home/safdar/esp/esp-idf/components/idf_test/include -I/home/safdar/esp/esp-idf/components/idf_test/include/esp32 -I/home/safdar/esp/esp-idf/components/jsmn/include -I/home/safdar/esp/esp-idf/components/json/cJSON -I/home/safdar/esp/esp-idf/components/libsodium/libsodium/src/libsodium/include -I/home/safdar/esp/esp-idf/components/libsodium/port_include -I/home/safdar/esp/esp-idf/components/micro_ros_espidf_component/network_interfaces -I/home/safdar/esp/esp-idf/components/mqtt/esp-mqtt/include -I/home/safdar/esp/esp-idf/components/openssl/include -I/home/safdar/esp/esp-idf/components/perfmon/include -I/home/safdar/esp/esp-idf/components/spiffs/include -I/home/safdar/esp/esp-idf/components/ulp/include -I/home/safdar/esp/esp-idf/components/wifi_provisioning/include -isystem /home/safdar/esp/esp-idf/components/micro_ros_espidf_component/include -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -fmacro-prefix-map=/home/safdar/esp/addtwoints_server=. -fmacro-prefix-map=/home/safdar/esp/esp-idf=IDF -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v4.4\" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS -MD -MT esp-idf/main/CMakeFiles/__idf_main.dir/main.c.obj -MF esp-idf/main/CMakeFiles/__idf_main.dir/main.c.obj.d -o esp-idf/main/CMakeFiles/__idf_main.dir/main.c.obj -c ../main/main.c
../main/main.c: In function 'micro_ros_task':
../main/main.c:46:10: error: implicit declaration of function 'rmw_uros_options_set_udp_address'; did you mean 'rcl_init_options_set_domain_id'? [-Werror=implicit-function-declaration]
RCCHECK(rmw_uros_options_set_udp_address(CONFIG_MICRO_ROS_AGENT_IP, CONFIG_MICRO_ROS_AGENT_PORT, rmw_options));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../main/main.c:18:43: note: in definition of macro 'RCCHECK'
#define RCCHECK(fn) { rcl_ret_t temp_rc = fn; if((temp_rc != RCL_RET_OK)){printf("Failed status on line %d: %d. Aborting.\n",__LINE__,(int)temp_rc);}}
^~
../main/main.c: In function 'app_main':
../main/main.c:82:40: warning: extra tokens at end of #ifdef directive
#ifdef CONFIG_MICRO_ROS_ESP_NETIF_WLAN || CONFIG_MICRO_ROS_ESP_NETIF_ENET
^~
cc1: some warnings being treated as errors
[1014/1022] Building C object esp-idf/libsodium/CMakeFiles/__idf_libsodium.dir/libsodium/src/libsodium/crypto_core/ed25519/ref10/ed25519_ref10.c.obj
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
Additional information
The text was updated successfully, but these errors were encountered:
Issue template
Steps to reproduce the issue
Once esp-idf has been setup under ~/esp:
Expected behavior
if.py build should compile succesfully.
Actual behavior
Build output:
Additional information
The text was updated successfully, but these errors were encountered: