espressif / esp-who

Face detection and recognition framework
Other
1.67k stars 466 forks source link

Getting make errors: liblto_plugin.so: cannot open shared object file: No such file or directory (AIV-489) #195

Closed ropelletier closed 2 years ago

ropelletier commented 2 years ago

On a RPi 4 with bullseye. Any thoughts as to what I need to do. My google searches have not turned up anything helpful.

~/esp-who/examples/human_face_detection/lcd# idf.py set-target esp32
Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Build directory '/root/esp-who/examples/human_face_detection/lcd/build' not found. Nothing to clean.
Executing action: set-target
Set Target to: esp32, new sdkconfig created. Existing sdkconfig renamed to sdkconfig.old.
Running cmake in directory /root/esp-who/examples/human_face_detection/lcd/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32 -DCCACHE_ENABLE=0 /root/esp-who/examples/human_face_detection/lcd"...
-- Found Git: /usr/bin/git (found version "2.30.2") 
-- 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: /root/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /root/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /root/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc - broken
CMake Error at /usr/share/cmake-3.18/Modules/CMakeTestCCompiler.cmake:66 (message):
  The C compiler

    "/root/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /root/esp-who/examples/human_face_detection/lcd/build/CMakeFiles/CMakeTmp

    Run Build Command(s):/usr/bin/ninja cmTC_f4a72 && [1/2] Building C object CMakeFiles/cmTC_f4a72.dir/testCCompiler.c.obj
    [2/2] Linking C executable cmTC_f4a72
    FAILED: cmTC_f4a72 
    : && /root/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -mlongcalls -Wno-frame-address  CMakeFiles/cmTC_f4a72.dir/testCCompiler.c.obj -o cmTC_f4a72   && :
    /root/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /root/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/../libexec/gcc/xtensa-esp32-elf/8.4.0/liblto_plugin.so: error loading plugin: /root/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/../libexec/gcc/xtensa-esp32-elf/8.4.0/liblto_plugin.so: cannot open shared object file: No such file or directory
    collect2: error: ld returned 1 exit status
    ninja: build stopped: subcommand failed.

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  /root/esp/esp-idf/tools/cmake/project.cmake:311 (__project)
  CMakeLists.txt:8 (project)

-- Configuring incomplete, errors occurred!
See also "/root/esp-who/examples/human_face_detection/lcd/build/CMakeFiles/CMakeOutput.log".
See also "/root/esp-who/examples/human_face_detection/lcd/build/CMakeFiles/CMakeError.log".
cmake failed with exit code 1
ropelletier commented 2 years ago

I scrapped the rpi setup and created an Ubuntu 18.04 VM. Works fine.