My problem in compile

zc-esp
Posts: 2
Joined: Mon May 02, 2022 3:51 pm

My problem in compile

Postby zc-esp » Mon May 02, 2022 3:54 pm

There was a problem when compilation was about to complete.

/root/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: cannot find -lphy
/root/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: cannot find -lrtc
/root/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: cannot find -lphy
/root/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: cannot find -lrtc
/root/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: cannot find -lphy
/root/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: cannot find -lrtc
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
ninja failed with exit code 1

ESP_Sprite
Posts: 9729
Joined: Thu Nov 26, 2015 4:08 am

Re: My problem in compile

Postby ESP_Sprite » Tue May 03, 2022 1:22 am

Have you installed esp-idf correctly? (Specifically try running 'git submodule update --init --recursive' in the esp-idf directory)

Also: I see you run esp-idf as root. Please do not do that. Instead, make sure to set the udev rules so you can build/flash your program as an user. There's instructions for that in the documentation.

Who is online

Users browsing this forum: Google [Bot] and 105 guests