求助,esp32的micropython固件编译失败,使用最新的micropython跟esp-idf4.2
[复制链接]
idf.py -D MICROPY_BOARD=GENERIC -B build-GENERIC build
Executing action: all (aliases: build)
Running cmake in directory /home/carlos/esp32_cmake/micropython/ports/esp32/build-GENERIC
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DMICROPY_BOARD=GENERIC -DCCACHE_ENABLE=0 /home/carlos/esp32_cmake/micropython/ports/esp32"...
-- Found Git: /usr/bin/git (found version "2.25.1")
-- Component directory /home/carlos/esp32_cmake/esp-idf/components/cmock does not contain a CMakeLists.txt file. No component will be added
-- Component directory /home/carlos/esp32_cmake/esp-idf/components/esp_phy does not contain a CMakeLists.txt file. No component will be added
-- Component directory /home/carlos/esp32_cmake/esp-idf/components/openthread does not contain a CMakeLists.txt file. No component will be added
-- IDF_TARGET not set, using default target: esp32
-- The C compiler identification is GNU 5.2.0
-- The CXX compiler identification is GNU 5.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/carlos/esp32/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /home/carlos/esp32/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /home/carlos/esp32/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -- broken
CMake Error at /usr/share/cmake-3.16/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler
"/home/carlos/esp32/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: /home/carlos/esp32_cmake/micropython/ports/esp32/build-GENERIC/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/ninja cmTC_3a112 && [1/2] Building C object CMakeFiles/cmTC_3a112.dir/testCCompiler.c.obj
[2/2] Linking C executable cmTC_3a112
FAILED: cmTC_3a112
: && /home/carlos/esp32/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -mlongcalls -Wno-frame-address CMakeFiles/cmTC_3a112.dir/testCCompiler.c.obj -o cmTC_3a112 && :
/home/carlos/esp32/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld: cannot find crt1-sim.o: 没有那个文件或目录
/home/carlos/esp32/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld: cannot find _vectors.o: 没有那个文件或目录
/home/carlos/esp32/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld: cannot find -lsim
/home/carlos/esp32/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld: cannot find -lhandlers-sim
/home/carlos/esp32/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld: cannot find -lhal
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):
/home/carlos/esp32_cmake/esp-idf/tools/cmake/project.cmake:307 (__project)
CMakeLists.txt:38 (project)
-- Configuring incomplete, errors occurred!
See also "/home/carlos/esp32_cmake/micropython/ports/esp32/build-GENERIC/CMakeFiles/CMakeOutput.log".
See also "/home/carlos/esp32_cmake/micropython/ports/esp32/build-GENERIC/CMakeFiles/CMakeError.log".
cmake failed with exit code 1
make: *** [Makefile:34:all] 错误 2
|