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

error: unknown argument: '-import-bridging-header' #28

Open
shubhamdp opened this issue Nov 21, 2024 · 1 comment
Open

error: unknown argument: '-import-bridging-header' #28

shubhamdp opened this issue Nov 21, 2024 · 1 comment

Comments

@shubhamdp
Copy link

Followed the steps from https://apple.github.io/swift-matter-examples/tutorials/swiftmatterexamples/setup-macos/ and https://apple.github.io/swift-matter-examples/tutorials/swiftmatterexamples/run-example-led-blink.

On running idf.py build I'm seeing below error.

<unknown>:0: error: unknown argument: '-import-bridging-header'
  • macOS --> 14.5 (23F79)
  • echo $TOOLCHAINS --> org.swift.61202411191a
  • xcode --> Version 16.1 (16B40)
  • Python --> 3.9.6

Logs

build logs
➜  led-blink git:(main) idf.py build
Executing action: all (aliases: build)
Running ninja in directory /Users/shubhampatil/shubham/esp/swift-matter-examples/led-blink/build
Executing "ninja all"...
[5/1256] Generating ../../partition_table/partition-table.bin
Partition table binary generated. Contents:
*******************************************************************************
# ESP-IDF Partition Table
# Name, Type, SubType, Offset, Size, Flags
esp_secure_cert,63,6,0xd000,8K,encrypted
nvs,data,nvs,0x10000,48K,
nvs_keys,data,nvs_keys,0x1c000,4K,encrypted
otadata,data,ota,0x1d000,8K,
phy_init,data,phy,0x1f000,4K,
ota_0,app,ota_0,0x20000,1920K,
ota_1,app,ota_1,0x200000,1920K,
fctry,data,nvs,0x3e0000,24K,
coredump,data,coredump,0x3e6000,64K,
*******************************************************************************
[708/1256] Performing configure step for 'chip_gn'
Done. Made 253 targets from 211 files in 97ms
[784/1256] Performing configure step for 'bootloader'
-- Found Git: /usr/bin/git (found version "2.39.3 (Apple Git-146)")
-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /Users/shubhampatil/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Users/shubhampatil/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Users/shubhampatil/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32c6
-- Project sdkconfig file /Users/shubhampatil/shubham/esp/swift-matter-examples/led-blink/sdkconfig
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of time_t
-- Check size of time_t - done
-- Adding linker script /Users/shubhampatil/shubham/esp/esp-idf/components/soc/esp32c6/ld/esp32c6.peripherals.ld
-- Bootloader project name: "bootloader" version: 1
-- Adding linker script /Users/shubhampatil/shubham/esp/esp-idf/components/esp_rom/esp32c6/ld/esp32c6.rom.ld
-- Adding linker script /Users/shubhampatil/shubham/esp/esp-idf/components/esp_rom/esp32c6/ld/esp32c6.rom.api.ld
-- Adding linker script /Users/shubhampatil/shubham/esp/esp-idf/components/esp_rom/esp32c6/ld/esp32c6.rom.rvfp.ld
-- Adding linker script /Users/shubhampatil/shubham/esp/esp-idf/components/esp_rom/esp32c6/ld/esp32c6.rom.newlib.ld
-- Adding linker script /Users/shubhampatil/shubham/esp/esp-idf/components/esp_rom/esp32c6/ld/esp32c6.rom.phy.ld
-- Adding linker script /Users/shubhampatil/shubham/esp/esp-idf/components/esp_rom/esp32c6/ld/esp32c6.rom.wdt.ld
-- Adding linker script /Users/shubhampatil/shubham/esp/esp-idf/components/esp_rom/esp32c6/ld/esp32c6.rom.version.ld
-- Adding linker script /Users/shubhampatil/shubham/esp/esp-idf/components/bootloader/subproject/main/ld/esp32c6/bootloader.ld
-- Adding linker script /Users/shubhampatil/shubham/esp/esp-idf/components/bootloader/subproject/main/ld/esp32c6/bootloader.rom.ld
-- Components: bootloader bootloader_support efuse esp_app_format esp_bootloader_format esp_common esp_hw_support esp_rom esp_system esptool_py freertos hal log main micro-ecc newlib part
ition_table riscv soc spi_flash
-- Component paths: /Users/shubhampatil/shubham/esp/esp-idf/components/bootloader /Users/shubhampatil/shubham/esp/esp-idf/components/bootloader_support /Users/shubhampatil/shubham/esp/esp
-idf/components/efuse /Users/shubhampatil/shubham/esp/esp-idf/components/esp_app_format /Users/shubhampatil/shubham/esp/esp-idf/components/esp_bootloader_format /Users/shubhampatil/shubha
m/esp/esp-idf/components/esp_common /Users/shubhampatil/shubham/esp/esp-idf/components/esp_hw_support /Users/shubhampatil/shubham/esp/esp-idf/components/esp_rom /Users/shubhampatil/shubha
m/esp/esp-idf/components/esp_system /Users/shubhampatil/shubham/esp/esp-idf/components/esptool_py /Users/shubhampatil/shubham/esp/esp-idf/components/freertos /Users/shubhampatil/shubham/e
sp/esp-idf/components/hal /Users/shubhampatil/shubham/esp/esp-idf/components/log /Users/shubhampatil/shubham/esp/esp-idf/components/bootloader/subproject/main /Users/shubhampatil/shubham/
esp/esp-idf/components/bootloader/subproject/components/micro-ecc /Users/shubhampatil/shubham/esp/esp-idf/components/newlib /Users/shubhampatil/shubham/esp/esp-idf/components/partition_ta
ble /Users/shubhampatil/shubham/esp/esp-idf/components/riscv /Users/shubhampatil/shubham/esp/esp-idf/components/soc /Users/shubhampatil/shubham/esp/esp-idf/components/spi_flash
-- Configuring done (5.8s)
-- Generating done (0.2s)
-- Build files have been written to: /Users/shubhampatil/shubham/esp/swift-matter-examples/led-blink/build/bootloader
[839/1256] Building C object esp-idf/espressi...agnostics.dir/src/esp_diagnostics_utils.c.obj
In file included from /Users/shubhampatil/shubham/esp/swift-matter-examples/led-blink/managed_components/espressif__esp_diagnostics/src/esp_diagnostics_utils.c:51:
/Users/shubhampatil/shubham/esp/esp-idf/components/freertos/esp_additions/include/freertos/task_snapshot.h:8:2: warning: #warning freertos/task_snapshot.h header is no longer used, and wi
ll be removed in future versions. [-Wcpp]
    8 | #warning freertos/task_snapshot.h header is no longer used, and will be removed in future versions.
      |  ^~~~~~~
[994/1256] Building C object esp-idf/espressi..._led_strip.dir/src/led_strip_rmt_ws2812.c.obj
In file included from /Users/shubhampatil/shubham/esp/swift-matter-examples/led-blink/managed_components/espressif__led_strip/src/led_strip_rmt_ws2812.c:20:
/Users/shubhampatil/shubham/esp/esp-idf/components/driver/deprecated/driver/rmt.h:18:2: warning: #warning "The legacy RMT driver is deprecated, please use driver/rmt_tx.h and/or driver/rm
t_rx.h" [-Wcpp]
   18 | #warning "The legacy RMT driver is deprecated, please use driver/rmt_tx.h and/or driver/rmt_rx.h"
      |  ^~~~~~~
[997/1256] Building C object esp-idf/led_driv.../__idf_led_driver.dir/ws2812/led_driver.c.obj
In file included from /Users/shubhampatil/shubham/esp/esp-matter/device_hal/led_driver/ws2812/led_driver.c:15:
/Users/shubhampatil/shubham/esp/esp-idf/components/driver/deprecated/driver/rmt.h:18:2: warning: #warning "The legacy RMT driver is deprecated, please use driver/rmt_tx.h and/or driver/rm
t_rx.h" [-Wcpp]
   18 | #warning "The legacy RMT driver is deprecated, please use driver/rmt_tx.h and/or driver/rmt_rx.h"
      |  ^~~~~~~
[1003/1256] Building C object esp-idf/espress.../__idf_espressif__button.dir/button_adc.c.obj
/Users/shubhampatil/shubham/esp/swift-matter-examples/led-blink/managed_components/espressif__button/button_adc.c: In function 'button_adc_init':
/Users/shubhampatil/shubham/esp/swift-matter-examples/led-blink/managed_components/espressif__button/button_adc.c:206:13: warning: 'ADC_ATTEN_DB_11' is deprecated [-Wdeprecated-declaratio
ns]
  206 |             .atten = ADC_BUTTON_ATTEN,
      |             ^
In file included from /Users/shubhampatil/shubham/esp/esp-idf/components/esp_adc/include/esp_adc/adc_oneshot.h:12,
                 from /Users/shubhampatil/shubham/esp/swift-matter-examples/led-blink/managed_components/espressif__button/button_adc.c:21:
/Users/shubhampatil/shubham/esp/esp-idf/components/hal/include/hal/adc_types.h:51:5: note: declared here
   51 |     ADC_ATTEN_DB_11 __attribute__((deprecated)) = ADC_ATTEN_DB_12,  ///<This is deprecated, it behaves the same as `ADC_ATTEN_DB_12`
      |     ^~~~~~~~~~~~~~~
/Users/shubhampatil/shubham/esp/swift-matter-examples/led-blink/managed_components/espressif__button/button_adc.c:211:9: warning: 'ADC_ATTEN_DB_11' is deprecated [-Wdeprecated-declaration
s]
  211 |         ret = adc_calibration_init(ADC_BUTTON_ADC_UNIT, ADC_BUTTON_ATTEN, &g_button.adc1_cali_handle);
      |         ^~~
/Users/shubhampatil/shubham/esp/esp-idf/components/hal/include/hal/adc_types.h:51:5: note: declared here
   51 |     ADC_ATTEN_DB_11 __attribute__((deprecated)) = ADC_ATTEN_DB_12,  ///<This is deprecated, it behaves the same as `ADC_ATTEN_DB_12`
      |     ^~~~~~~~~~~~~~~
[1028/1256] Building C object esp-idf/device/..._idf_device.dir/esp32c6_devkit_c/device.c.obj
/Users/shubhampatil/shubham/esp/esp-matter/device_hal/device/esp32c6_devkit_c/device.c:22:20: warning: 'TAG' defined but not used [-Wunused-variable]
   22 | static const char *TAG = "device";
      |                    ^~~
[107/108] Generating binary image from built executable
esptool.py v4.8.1
Creating esp32c6 image...
Merged 3 ELF sections
Successfully created esp32c6 image.
Generated /Users/shubhampatil/shubham/esp/swift-matter-examples/led-blink/build/bootloader/bootloader.bin
[108/108] cd /Users/shubhampatil/shubham/esp/...les/led-blink/build/bootloader/bootloader.bin
Bootloader binary size 0x54d0 bytes. 0x6b30 bytes (56%) free.
[1148/1256] Building CXX object esp-idf/esp_m...homeip/src/app/util/attribute-storage.cpp.obj
/Users/shubhampatil/shubham/esp/esp-matter/connectedhomeip/connectedhomeip/src/app/util/attribute-storage.cpp: In function 'void emberAfEndpointConfigure()':
/Users/shubhampatil/shubham/esp/esp-matter/connectedhomeip/connectedhomeip/src/app/util/attribute-storage.cpp:165:40: warning: comparison is always true due to limited range of data type
[-Wtype-limits]
  165 |     static_assert(FIXED_ENDPOINT_COUNT <= std::numeric_limits<decltype(ep)>::max(),
/Users/shubhampatil/shubham/esp/esp-matter/connectedhomeip/connectedhomeip/src/app/util/attribute-storage.cpp:190:21: warning: comparison is always false due to limited range of data type
 [-Wtype-limits]
  190 |     for (ep = 0; ep < FIXED_ENDPOINT_COUNT; ep++)
/Users/shubhampatil/shubham/esp/esp-matter/connectedhomeip/connectedhomeip/src/app/util/attribute-storage.cpp: In function 'uint16_t emberAfGetClusterServerEndpointIndex(chip::EndpointId,
 chip::ClusterId, uint16_t)':
/Users/shubhampatil/shubham/esp/esp-matter/connectedhomeip/connectedhomeip/src/app/util/attribute-storage.cpp:869:17: warning: comparison is always false due to limited range of data type
 [-Wtype-limits]
  869 |     if (epIndex < FIXED_ENDPOINT_COUNT)
[1174/1256] Building CXX object esp-idf/esp_m...r-control-server/color-control-server.cpp.obj
/Users/shubhampatil/shubham/esp/esp-matter/connectedhomeip/connectedhomeip/src/app/clusters/color-control-server/color-control-server.cpp: In member function 'bool ColorControlServer::mov
eToHueCommand(chip::app::CommandHandler*, const chip::app::ConcreteCommandPath&, uint16_t, HueDirection, uint16_t, uint8_t, uint8_t, bool)':
/Users/shubhampatil/shubham/esp/esp-matter/connectedhomeip/connectedhomeip/src/app/clusters/color-control-server/color-control-server.cpp:1536:58: warning: 'direction' may be used uniniti
alized [-Wmaybe-uninitialized]
 1536 |     colorHueTransitionState->up             = (direction == HueDirection::kUp);
      |                                               ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/Users/shubhampatil/shubham/esp/esp-matter/connectedhomeip/connectedhomeip/src/app/clusters/color-control-server/color-control-server.cpp:1439:18: note: 'direction' was declared here
 1439 |     HueDirection direction;
      |                  ^~~~~~~~~
[1235/1256] Building Swift Module '__idf_main' with 2 sources
FAILED: esp-idf/main/__idf_main.swiftmodule esp-idf/main/CMakeFiles/__idf_main.dir/LED.swift.obj esp-idf/main/CMakeFiles/__idf_main.dir/Main.swift.obj
ccache /Library/Developer/CommandLineTools/usr/bin/swiftc -j 11 -num-threads 11 -c -DESP_PLATFORM -DIDF_VER=\"v5.2.1\" -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -DSOC_MMU_PAGE_SIZE=C
ONFIG_MMU_PAGE_SIZE -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -DUNITY_INCLUDE_CONFIG_H -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -D_GLIBCXX_USE_POSIX_SEMAPHORE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS
 -parse-as-library -static -emit-module -emit-module-path esp-idf/main/__idf_main.swiftmodule -module-name __idf_main -module-link-name main -wmo -color-diagnostics -DCHIP_HAVE_CONFIG_H -
target riscv32-none-none-eabi -Xfrontend -function-sections -enable-experimental-feature Embedded -wmo -parse-as-library -Osize -color-diagnostics -Xcc -DCHIP_HAVE_CONFIG_H -Xcc -std=c++1
7 -cxx-interoperability-mode=default -Xcc -fno-exceptions -Xcc -fno-rtti -Xcc -DESP_PLATFORM -Xcc -DIDF_VER=v5.3-dev-2815-gbe06a6f5ff-dirty -Xcc -DLV_CONF_INCLUDE_SIMPLE -Xcc -DMBEDTLS_CO
NFIG_FILE=mbedtls/esp_config.h -Xcc -DMD5_ENABLED=1 -Xcc -DSERIAL_FLASHER_BOOT_HOLD_TIME_MS=50 -Xcc -DSERIAL_FLASHER_RESET_HOLD_TIME_MS=100 -Xcc -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -
Xcc -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -Xcc -DUNITY_INCLUDE_CONFIG_H -Xcc -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -Xcc -D_GLIBCXX_USE_POSIX_SEMAPHORE -Xcc -D_POSIX_READER_WRITER_LOCKS -pch-outp
ut-dir /tmp -Xfrontend -enable-single-module-llvm-emission -Xcc -I/Users/shubhampatil/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/lib/gcc/riscv32-esp-elf/13.2.0/i
nclude -Xcc -I/Users/shubhampatil/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/lib/gcc/riscv32-esp-elf/13.2.0/include-fixed -Xcc -I/Users/shubhampatil/.espressif/t
ools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/riscv32-esp-elf/sys-include -Xcc -I/Users/shubhampatil/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/riscv3
2-esp-elf/include -Xcc -I/Users/shubhampatil/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/riscv32-esp-elf/include/c++/13.2.0 -Xcc -I/Users/shubhampatil/.espressif/
tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/riscv32-esp-elf/include/c++/13.2.0/riscv32-esp-elf/rv32imac_zicsr_zifencei/ilp32 -Xcc -I/Users/shubhampatil/.espressif/tools/risc
v32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/riscv32-esp-elf/include/c++/13.2.0/backward -Xcc -I/Users/shubhampatil/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf
/lib/gcc/riscv32-esp-elf/13.2.0/include -Xcc -I/Users/shubhampatil/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/lib/gcc/riscv32-esp-elf/13.2.0/include-fixed -Xcc -
I/Users/shubhampatil/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/riscv32-esp-elf/sys-include -Xcc -I/Users/shubhampatil/.espressif/tools/riscv32-esp-elf/esp-13.2.
0_20230928/riscv32-esp-elf/riscv32-esp-elf/include -import-bridging-header /Users/shubhampatil/shubham/esp/swift-matter-examples/led-blink/main/BridgingHeader.h "-DCHIP_ADDRESS_RESOLVE_IM
PL_INCLUDE_HEADER=<lib/address_resolve/AddressResolve_DefaultImpl.h>" -output-file-map esp-idf/main/CMakeFiles/__idf_main.dir//output-file-map.json -I /Users/shubhampatil/shubham/esp/swif
t-matter-examples/led-blink/build/config -I /Users/shubhampatil/shubham/esp/swift-matter-examples/led-blink/main -I /Users/shubhampatil/shubham/esp/esp-idf/components/newlib/platform_incl
ude -I /Users/shubhampatil/shubham/esp/esp-idf/components/freertos/config/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/freertos/config/include/freertos -I /Users/shubhamp
atil/shubham/esp/esp-idf/components/freertos/config/riscv/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/freertos/FreeRTOS-Kernel/include -I /Users/shubhampatil/shubham/esp
/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/riscv/include/freertos -I /User
s/shubhampatil/shubham/esp/esp-idf/components/freertos/esp_additions/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/esp_hw_support/include -I /Users/shubhampatil/shubham/es
p/esp-idf/components/esp_hw_support/include/soc -I /Users/shubhampatil/shubham/esp/esp-idf/components/esp_hw_support/include/soc/esp32c6 -I /Users/shubhampatil/shubham/esp/esp-idf/compone
nts/esp_hw_support/port/esp32c6/. -I /Users/shubhampatil/shubham/esp/esp-idf/components/esp_hw_support/port/esp32c6/private_include -I /Users/shubhampatil/shubham/esp/esp-idf/components/h
eap/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/log/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/soc/include -I /Users/shubhampatil/shubham/esp/esp-idf/
components/soc/esp32c6 -I /Users/shubhampatil/shubham/esp/esp-idf/components/soc/esp32c6/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/hal/platform_port/include -I /Users/
shubhampatil/shubham/esp/esp-idf/components/hal/esp32c6/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/hal/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/esp
_rom/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/esp_rom/include/esp32c6 -I /Users/shubhampatil/shubham/esp/esp-idf/components/esp_rom/esp32c6 -I /Users/shubhampatil/shu
bham/esp/esp-idf/components/esp_common/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/esp_system/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/esp_system/po
rt/soc -I /Users/shubhampatil/shubham/esp/esp-idf/components/esp_system/port/include/riscv -I /Users/shubhampatil/shubham/esp/esp-idf/components/esp_system/port/include/private -I /Users/
shubhampatil/shubham/esp/esp-idf/components/riscv/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/lwip/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/lwip/inc
lude/apps -I /Users/shubhampatil/shubham/esp/esp-idf/components/lwip/include/apps/sntp -I /Users/shubhampatil/shubham/esp/esp-idf/components/lwip/lwip/src/include -I /Users/shubhampatil/s
hubham/esp/esp-idf/components/lwip/port/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/lwip/port/freertos/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/lwip
/port/esp32xx/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/lwip/port/esp32xx/include/arch -I /Users/shubhampatil/shubham/esp/esp-idf/components/lwip/port/esp32xx/include/
sys -I /Users/shubhampatil/shubham/esp/esp-idf/components/esp_ringbuf/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/efuse/include -I /Users/shubhampatil/shubham/esp/esp-id
f/components/efuse/esp32c6/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/esp_mm/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/driver/include -I /Users/shub
hampatil/shubham/esp/esp-idf/components/driver/deprecated -I /Users/shubhampatil/shubham/esp/esp-idf/components/driver/analog_comparator/include -I /Users/shubhampatil/shubham/esp/esp-idf
/components/driver/dac/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/driver/gpio/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/driver/gptimer/include -I /U
sers/shubhampatil/shubham/esp/esp-idf/components/driver/i2c/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/driver/i2s/include -I /Users/shubhampatil/shubham/esp/esp-idf/com
ponents/driver/ledc/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/driver/mcpwm/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/driver/parlio/include -I /User
s/shubhampatil/shubham/esp/esp-idf/components/driver/pcnt/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/driver/rmt/include -I /Users/shubhampatil/shubham/esp/esp-idf/compo
nents/driver/sdio_slave/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/driver/sdmmc/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/driver/sigma_delta/include
 -I /Users/shubhampatil/shubham/esp/esp-idf/components/driver/spi/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/driver/temperature_sensor/include -I /Users/shubhampatil/sh
ubham/esp/esp-idf/components/driver/touch_sensor/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/driver/twai/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/dr
iver/uart/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/driver/usb_serial_jtag/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/esp_pm/include -I /Users/shubh
ampatil/shubham/esp/esp-idf/components/mbedtls/port/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/mbedtls/mbedtls/include -I /Users/shubhampatil/shubham/esp/esp-idf/compon
ents/mbedtls/mbedtls/library -I /Users/shubhampatil/shubham/esp/esp-idf/components/mbedtls/esp_crt_bundle/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/mbedtls/mbedtls/3rd
party/everest/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/mbedtls/mbedtls/3rdparty/p256-m -I /Users/shubhampatil/shubham/esp/esp-idf/components/mbedtls/mbedtls/3rdparty/
p256-m/p256-m -I /Users/shubhampatil/shubham/esp/esp-idf/components/esp_bootloader_format/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/esp_app_format/include -I /Users/sh
ubhampatil/shubham/esp/esp-idf/components/bootloader_support/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/bootloader_support/bootloader_flash/include -I /Users/shubhampat
il/shubham/esp/esp-idf/components/esp_partition/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/app_update/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/spi_
flash/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/pthread/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/esp_timer/include -I /Users/shubhampatil/shubham/
esp/esp-idf/components/app_trace/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/esp_event/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/nvs_flash/include -I
 /Users/shubhampatil/shubham/esp/esp-idf/components/esp_phy/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/esp_phy/esp32c6/include -I /Users/shubhampatil/shubham/esp/esp-id
f/components/vfs/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/esp_netif/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/wpa_supplicant/include -I /Users/shu
bhampatil/shubham/esp/esp-idf/components/wpa_supplicant/port/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/wpa_supplicant/esp_supplicant/include -I /Users/shubhampatil/shu
bham/esp/esp-idf/components/esp_coex/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/esp_wifi/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/esp_wifi/wifi_app
s/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/bt/include/esp32c6/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/bt/common/osi/include -I /Users/shubhampat
il/shubham/esp/esp-idf/components/bt/common/api/include/api -I /Users/shubhampatil/shubham/esp/esp-idf/components/bt/common/btc/profile/esp/blufi/include -I /Users/shubhampatil/shubham/es
p/esp-idf/components/bt/common/btc/profile/esp/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/bt/porting/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/bt/po
rting/nimble/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/bt/porting/npl/freertos/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/bt/porting/transport/inclu
de -I /Users/shubhampatil/shubham/esp/esp-idf/components/bt/host/nimble/nimble/nimble/host/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/bt/host/nimble/nimble/nimble/inclu
de -I /Users/shubhampatil/shubham/esp/esp-idf/components/bt/host/nimble/nimble/nimble/host/services/ans/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/bt/host/nimble/nimble
/nimble/host/services/bas/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/bt/host/nimble/nimble/nimble/host/services/dis/include -I /Users/shubhampatil/shubham/esp/esp-idf/c
omponents/bt/host/nimble/nimble/nimble/host/services/gap/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/bt/host/nimble/nimble/nimble/host/services/gatt/include -I /Users/sh
ubhampatil/shubham/esp/esp-idf/components/bt/host/nimble/nimble/nimble/host/services/hr/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/bt/host/nimble/nimble/nimble/host/ser
vices/htp/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/bt/host/nimble/nimble/nimble/host/services/ias/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/bt/hos
t/nimble/nimble/nimble/host/services/ipss/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/bt/host/nimble/nimble/nimble/host/services/lls/include -I /Users/shubhampatil/shubh
am/esp/esp-idf/components/bt/host/nimble/nimble/nimble/host/services/prox/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/bt/host/nimble/nimble/nimble/host/services/cts/incl
ude -I /Users/shubhampatil/shubham/esp/esp-idf/components/bt/host/nimble/nimble/nimble/host/services/tps/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/bt/host/nimble/nimbl
e/nimble/host/services/hid/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/bt/host/nimble/nimble/nimble/host/services/sps/include -I /Users/shubhampatil/shubham/esp/esp-idf/
components/bt/host/nimble/nimble/nimble/host/util/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/bt/host/nimble/nimble/nimble/host/store/ram/include -I /Users/shubhampatil/
shubham/esp/esp-idf/components/bt/host/nimble/nimble/nimble/host/store/config/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/bt/host/nimble/nimble/porting/nimble/include -I
 /Users/shubhampatil/shubham/esp/esp-idf/components/bt/host/nimble/port/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/bt/host/nimble/nimble/nimble/transport/include -I /Us
ers/shubhampatil/shubham/esp/esp-idf/components/unity/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/unity/unity/src -I /Users/shubhampatil/shubham/esp/esp-idf/components/c
mock/CMock/src -I /Users/shubhampatil/shubham/esp/esp-idf/components/console -I /Users/shubhampatil/shubham/esp/esp-idf/components/http_parser -I /Users/shubhampatil/shubham/esp/esp-idf/c
omponents/esp-tls -I /Users/shubhampatil/shubham/esp/esp-idf/components/esp-tls/esp-tls-crypto -I /Users/shubhampatil/shubham/esp/esp-idf/components/esp_adc/include -I /Users/shubhampatil
/shubham/esp/esp-idf/components/esp_adc/interface -I /Users/shubhampatil/shubham/esp/esp-idf/components/esp_adc/esp32c6/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/esp_a
dc/deprecated/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/esp_eth/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/esp_gdbstub/include -I /Users/shubhampati
l/shubham/esp/esp-idf/components/esp_hid/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/tcp_transport/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/esp_http
_client/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/esp_http_server/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/esp_https_ota/include -I /Users/shubham
patil/shubham/esp/esp-idf/components/esp_psram/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/esp_lcd/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/esp_lcd/
interface -I /Users/shubhampatil/shubham/esp/esp-idf/components/protobuf-c/protobuf-c -I /Users/shubhampatil/shubham/esp/esp-idf/components/protocomm/include/common -I /Users/shubhampatil
/shubham/esp/esp-idf/components/protocomm/include/security -I /Users/shubhampatil/shubham/esp/esp-idf/components/protocomm/include/transports -I /Users/shubhampatil/shubham/esp/esp-idf/co
mponents/protocomm/include/crypto/srp6a -I /Users/shubhampatil/shubham/esp/esp-idf/components/esp_local_ctrl/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/espcoredump/incl
ude -I /Users/shubhampatil/shubham/esp/esp-idf/components/espcoredump/include/port/riscv -I /Users/shubhampatil/shubham/esp/esp-idf/components/wear_levelling/include -I /Users/shubhampati
l/shubham/esp/esp-idf/components/sdmmc/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/fatfs/diskio -I /Users/shubhampatil/shubham/esp/esp-idf/components/fatfs/src -I /Users
/shubhampatil/shubham/esp/esp-idf/components/fatfs/vfs -I /Users/shubhampatil/shubham/esp/esp-idf/components/idf_test/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/idf_tes
t/include/esp32c6 -I /Users/shubhampatil/shubham/esp/esp-idf/components/ieee802154/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/json/cJSON -I /Users/shubhampatil/shubham/
esp/esp-idf/components/mqtt/esp-mqtt/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/nvs_sec_provider/include -I /Users/shubhampatil/shubham/esp/esp-idf/components/spiffs/in
clude -I /Users/shubhampatil/shubham/esp/esp-idf/components/wifi_provisioning/include -I /Users/shubhampatil/shubham/esp/swift-matter-examples/led-blink/managed_components/espressif__esp_
encrypted_img/include -I /Users/shubhampatil/shubham/esp/swift-matter-examples/led-blink/managed_components/espressif__rmaker_common/include -I /Users/shubhampatil/shubham/esp/swift-matte
r-examples/led-blink/managed_components/espressif__esp_diagnostics/include -I /Users/shubhampatil/shubham/esp/swift-matter-examples/led-blink/managed_components/espressif__cbor/port/inclu
de -I /Users/shubhampatil/shubham/esp/swift-matter-examples/led-blink/managed_components/espressif__esp_diag_data_store/src/rtc_store -I /Users/shubhampatil/shubham/esp/swift-matter-examp
les/led-blink/managed_components/espressif__esp_diag_data_store/include -I /Users/shubhampatil/shubham/esp/swift-matter-examples/led-blink/managed_components/espressif__esp_insights/inclu
de -I /Users/shubhampatil/shubham/esp/swift-matter-examples/led-blink/managed_components/espressif__mdns/include -I /Users/shubhampatil/shubham/esp/swift-matter-examples/led-blink/managed
_components/espressif__esp_secure_cert_mgr/include -I /Users/shubhampatil/shubham/esp/esp-matter/connectedhomeip/connectedhomeip/src/platform/ESP32 -I /Users/shubhampatil/shubham/esp/esp-
matter/connectedhomeip/connectedhomeip/src/platform/OpenThread -I /Users/shubhampatil/shubham/esp/esp-matter/connectedhomeip/connectedhomeip/src/include -I /Users/shubhampatil/shubham/esp
/esp-matter/connectedhomeip/connectedhomeip/src/lib -I /Users/shubhampatil/shubham/esp/esp-matter/connectedhomeip/connectedhomeip/src -I /Users/shubhampatil/shubham/esp/esp-matter/connect
edhomeip/connectedhomeip/zzz_generated/app-common -I /Users/shubhampatil/shubham/esp/esp-matter/connectedhomeip/connectedhomeip/examples/platform/esp32 -I /Users/shubhampatil/shubham/esp/
esp-matter/connectedhomeip/connectedhomeip/third_party/nlassert/repo/include -I /Users/shubhampatil/shubham/esp/esp-matter/connectedhomeip/connectedhomeip/third_party/nlio/repo/include -I
 /Users/shubhampatil/shubham/esp/swift-matter-examples/led-blink/build/esp-idf/chip/src/include -I /Users/shubhampatil/shubham/esp/swift-matter-examples/led-blink/build/esp-idf/chip/inclu
de -I /Users/shubhampatil/shubham/esp/swift-matter-examples/led-blink/build/esp-idf/chip/gen/include -I /Users/shubhampatil/shubham/esp/esp-matter/connectedhomeip/connectedhomeip/config/e
sp32 -I /Users/shubhampatil/shubham/esp/esp-matter/connectedhomeip/connectedhomeip/config/esp32/../.. -I /Users/shubhampatil/shubham/esp/esp-matter/components/esp_matter_console -I /Users
/shubhampatil/shubham/esp/esp-matter/components/esp_matter -I /Users/shubhampatil/shubham/esp/esp-matter/connectedhomeip/connectedhomeip/third_party/nlfaultinjection/include -I /Users/shu
bhampatil/shubham/esp/esp-matter/components/esp_matter/zap_common -I /Users/shubhampatil/shubham/esp/esp-matter/components/esp_matter_bridge -I /Users/shubhampatil/shubham/esp/esp-matter/
examples/common/app_bridge -I /Users/shubhampatil/shubham/esp/swift-matter-examples/led-blink/managed_components/espressif__led_strip/include -I /Users/shubhampatil/shubham/esp/esp-matter
/device_hal/led_driver/include -I /Users/shubhampatil/shubham/esp/swift-matter-examples/led-blink/managed_components/espressif__button/include -I /Users/shubhampatil/shubham/esp/esp-matte
r/device_hal/device/include -I /Users/shubhampatil/shubham/esp/esp-matter/examples/common/app_reset -I /Users/shubhampatil/shubham/esp/swift-matter-examples/led-blink/managed_components/e
spressif__jsmn/include -I /Users/shubhampatil/shubham/esp/swift-matter-examples/led-blink/managed_components/espressif__json_parser/include -I /Users/shubhampatil/shubham/esp/swift-matter
-examples/led-blink/managed_components/espressif__json_generator/include -I /Users/shubhampatil/shubham/esp/esp-matter/components/esp_matter_rainmaker -I /Users/shubhampatil/shubham/esp/e
sp-matter/components/esp_matter_thread_br /Users/shubhampatil/shubham/esp/swift-matter-examples/led-blink/main/LED.swift /Users/shubhampatil/shubham/esp/swift-matter-examples/led-blink/ma
in/Main.swift
<unknown>:0: error: unknown argument: '-import-bridging-header'
[1246/1256] Building CXX object esp-idf/esp_m...on-server/time-synchronization-server.cpp.obj
ninja: build stopped: subcommand failed.
ninja failed with exit code 1, output of the command is in the /Users/shubhampatil/shubham/esp/swift-matter-examples/led-blink/build/log/idf_py_stderr_output_6846 and /Users/shubhampatil/
shubham/esp/swift-matter-examples/led-blink/build/log/idf_py_stdout_output_6846

Please let me know if any further details are required.

@kubamracek
Copy link
Collaborator

<unknown>:0: error: unknown argument: '-import-bridging-header'

This means that the toolchain being used for building is very old. I suspect that the $TOOLCHAINS variable was not present when configuring the build (i.e. not at idf.py build time but at idf.py set-target time).

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

No branches or pull requests

2 participants