3348|2

6

帖子

0

TA的资源

一粒金砂(中级)

楼主
 

求助,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

最新回复

固件编译失败,是该需要升级了吧   详情 回复 发表于 2021-7-11 20:37
点赞 关注
 
 

回复
举报

1万

帖子

25

TA的资源

版主

沙发
 

新版本更换了工具链,可能存在一些问题,还没有试过。

 
 
 

回复

6822

帖子

0

TA的资源

五彩晶圆(高级)

板凳
 

固件编译失败,是该需要升级了吧

 
 
 

回复
您需要登录后才可以回帖 登录 | 注册

随便看看
查找数据手册?

EEWorld Datasheet 技术支持

相关文章 更多>>
关闭
站长推荐上一条 1/7 下一条

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

About Us 关于我们 客户服务 联系方式 器件索引 网站地图 最新更新 手机版

站点相关: 国产芯 安防电子 汽车电子 手机便携 工业控制 家用电子 医疗电子 测试测量 网络通信 物联网

北京市海淀区中关村大街18号B座15层1530室 电话:(010)82350740 邮编:100190

电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2025 EEWORLD.com.cn, Inc. All rights reserved
快速回复 返回顶部 返回列表