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

atomic patch build failed for ESP32C3 #249

Closed
shvass opened this issue Aug 2, 2024 · 1 comment
Closed

atomic patch build failed for ESP32C3 #249

shvass opened this issue Aug 2, 2024 · 1 comment

Comments

@shvass
Copy link
Contributor

shvass commented Aug 2, 2024

atomic patch at PR #19 leads to build failure

  • Hardware description: ESP32C3
  • RTOS: FreeRTOS
  • Installation type: ESP-IDF component
  • Version or commit hash: rolling

Steps to reproduce the issue

  • create a new IDF project and add this repo as a component.
  • build the project with ESP32C3 as chipset ( or any other with atomic patch required )

Actual behavior

build fails with the following logs

-- App "icm-fusion" version: 1
-- Adding linker script /home/aksh/projects/esp/icm-fusion/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script /home/aksh/esp/v5.2.1/esp-idf/components/esp_system/ld/esp32c3/sections.ld.in
-- Adding linker script /home/aksh/esp/v5.2.1/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.ld
-- Adding linker script /home/aksh/esp/v5.2.1/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.api.ld
-- Adding linker script /home/aksh/esp/v5.2.1/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.libgcc.ld
-- Adding linker script /home/aksh/esp/v5.2.1/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.newlib.ld
-- Adding linker script /home/aksh/esp/v5.2.1/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.version.ld
-- Adding linker script /home/aksh/esp/v5.2.1/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.eco3.ld
-- Adding linker script /home/aksh/esp/v5.2.1/esp-idf/components/soc/esp32c3/ld/esp32c3.peripherals.ld
-- Using Micro XRCE-DDS middleware
echo /home/aksh/projects/esp/icm-fusion/components/micro_ros_espidf_component/micro_ros_src/atomic_workaround; \
        mkdir /home/aksh/projects/esp/icm-fusion/components/micro_ros_espidf_component/micro_ros_src/atomic_workaround; cd /home/aksh/projects/esp/icm-fusion/components/micro_ros_espidf_component/micro_ros_src/atomic_workaround; \
        /home/aksh/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-ar x /home/aksh/projects/esp/icm-fusion/components/micro_ros_espidf_component/micro_ros_src/install/lib/librcutils.a; \
        /home/aksh/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-strip atomic_64bits.c.obj --strip-symbol=__atomic_fetch_add_8; \
        if [ 5 -ge 4 ] && [ 2 -ge 3 ]; then \
                /home/aksh/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-strip atomic_64bits.c.obj --strip-symbol=__atomic_load_8; \
                /home/aksh/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-strip atomic_64bits.c.obj --strip-symbol=__atomic_store_8; \
                /home/aksh/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-strip atomic_64bits.c.obj --strip-symbol=__atomic_exchange_8; \
        fi; \
        if [ 5 -ge 4 ] && [ 2 -ge 4 ]; then \
                /home/aksh/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-strip atomic_64bits.c.obj --strip-symbol=__atomic_load_8; \
                /home/aksh/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-strip atomic_64bits.c.obj --strip-symbol=__atomic_store_8; \
        fi; \
        if [ 5 -ge 5 ] && [ 2 -ge 0 ]; then \
                /home/aksh/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-strip atomic_64bits.c.obj --strip-symbol=__atomic_load_8; \
                /home/aksh/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-strip atomic_64bits.c.obj --strip-symbol=__atomic_store_8; \
                /home/aksh/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-strip atomic_64bits.c.obj --strip-symbol=__atomic_exchange_8; \
        fi; \
        /home/aksh/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/riscv32-esp-elf-ar rc -s librcutils.a *.obj; \
        cp -rf librcutils.a  /home/aksh/projects/esp/icm-fusion/components/micro_ros_espidf_component/micro_ros_src/install/lib/librcutils.a; \
        rm -rf /home/aksh/projects/esp/icm-fusion/components/micro_ros_espidf_component/micro_ros_src/atomic_workaround; \
        cd ..;
/home/aksh/projects/esp/icm-fusion/components/micro_ros_espidf_component/micro_ros_src/atomic_workaround
/bin/sh: line 22: cd: ..: No such file or directory
make: *** [libmicroros.mk:115: patch_atomic] Error 1
CMake Error at components/micro_ros_espidf_component/CMakeLists.txt:77 (message):
  FAILED: 2


-- Configuring incomplete, errors occurred!

 *  The terminal process "/usr/bin/cmake '-G=Ninja', '-DPYTHON_DEPS_CHECKED=1', '-DESP_PLATFORM=1', '-B=/home/aksh/projects/esp/icm-fusion/build', '-S=/home/aksh/projects/esp/icm-fusion'" terminated with exit code: 1.
shvass added a commit to shvass/micro_ros_espidf_component that referenced this issue Aug 2, 2024
atomic patch no more deletes current working directory
@shvass
Copy link
Contributor Author

shvass commented Aug 2, 2024

created PR #250 addressing this issue.

@pablogs9 pablogs9 closed this as completed Sep 9, 2024
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