完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
截取了一部分日志
/root/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/13.2.0/../../../../riscv32-esp-elf/bin/ld: esp-idf/pthread/libpthread.a(pthread_rwlock.c.obj): in function `pthread_rwlock_unlock': /mnt/work/esp-idf/components/pthread/pthread_rwlock.c:301:(.text.pthread_rwlock_unlock+0x8a): warning: pthread_cond_broadcast is not implemented and will always fail /root/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/13.2.0/../../../../riscv32-esp-elf/bin/ld: esp-idf/pthread/libpthread.a(pthread_rwlock.c.obj): in function `pthread_rwlock_destroy': /mnt/work/esp-idf/components/pthread/pthread_rwlock.c:130:(.text.pthread_rwlock_destroy+0x30): warning: pthread_cond_destroy is not implemented and will always fail /root/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/13.2.0/../../../../riscv32-esp-elf/bin/ld: esp-idf/pthread/libpthread.a(pthread_cond_var.c.obj): in function `s_check_and_init_if_static': /mnt/work/esp-idf/components/pthread/pthread_cond_var.c:45:(.text.s_check_and_init_if_static+0x40): warning: pthread_cond_init is not implemented and will always fail /root/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/13.2.0/../../../../riscv32-esp-elf/bin/ld: esp-idf/pthread/libpthread.a(pthread_cond_var.c.obj): in function `pthread_cond_wait': /mnt/work/esp-idf/components/pthread/pthread_cond_var.c:94:(.text.pthread_cond_wait+0x6): warning: pthread_cond_timedwait is not implemented and will always fail /root/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/13.2.0/../../../../riscv32-esp-elf/bin/ld: esp-idf/pthread/libpthread.a(pthread_rwlock.c.obj): in function `pthread_rwlock_rdlock': /mnt/work/esp-idf/components/pthread/pthread_rwlock.c:181:(.text.pthread_rwlock_rdlock+0x5a): warning: pthread_cond_wait is not implemented and will always fail /root/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/13.2.0/../../../../riscv32-esp-elf/bin/ld: esp-idf/pthread/libpthread.a(pthread.c.obj): in function `esp_pthread_set_cfg': /mnt/work/esp-idf/components/pthread/pthread.c:135:(.text.esp_pthread_set_cfg+0x1a): warning: pthread_getspecific is not implemented and will always fail /root/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/13.2.0/../../../../riscv32-esp-elf/bin/ld: /root/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/13.2.0/../../../../riscv32-esp-elf/lib/rv32imc_zicsr_zifencei/ilp32/no-rtti/libnosys.a(pthread.o): in function `__pthread_failed': /builds/idf/crosstool-NG/.build/riscv32-esp-elf/src/newlib/libgloss/libnosys/pthread.c:16: multiple definition of `pthread_cond_init'; esp-idf/pthread/libpthread.a(pthread_cond_var.c.obj):/mnt/work/esp-idf/components/pthread/pthread_cond_var.c:218: first defined here /root/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/13.2.0/../../../../riscv32-esp-elf/bin/ld: /root/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/13.2.0/../../../../riscv32-esp-elf/lib/rv32imc_zicsr_zifencei/ilp32/no-rtti/libnosys.a(pthread.o): in function `__pthread_failed': /builds/idf/crosstool-NG/.build/riscv32-esp-elf/src/newlib/libgloss/libnosys/pthread.c:16: multiple definition of `pthread_condattr_setpshared'; esp-idf/pthread/libpthread.a(pthread_cond_var.c.obj):/mnt/work/esp-idf/components/pthread/pthread_cond_var.c:200: first defined here /root/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/13.2.0/../../../../riscv32-esp-elf/bin/ld: /root/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/13.2.0/../../../../riscv32-esp-elf/lib/rv32imc_zicsr_zifencei/ilp32/no-rtti/libnosys.a(pthread.o): in function `__pthread_failed': /builds/idf/crosstool-NG/.build/riscv32-esp-elf/src/newlib/libgloss/libnosys/pthread.c:16: multiple definition of `pthread_condattr_getpshared'; esp-idf/pthread/libpthread.a(pthread_cond_var.c.obj):/mnt/work/esp-idf/components/pthread/pthread_cond_var.c:194: first defined here /root/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/13.2.0/../../../../riscv32-esp-elf/bin/ld: /root/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/13.2.0/../../../../riscv32-esp-elf/lib/rv32imc_zicsr_zifencei/ilp32/no-rtti/libnosys.a(pthread.o): in function `__pthread_failed': /builds/idf/crosstool-NG/.build/riscv32-esp-elf/src/newlib/libgloss/libnosys/pthread.c:16: multiple definition of `pthread_condattr_setclock'; esp-idf/pthread/libpthread.a(pthread_cond_var.c.obj):/mnt/work/esp-idf/components/pthread/pthread_cond_var.c:212: first defined here /root/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/13.2.0/../../../../riscv32-esp-elf/bin/ld: /root/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/13.2.0/../../../../riscv32-esp-elf/lib/rv32imc_zicsr_zifencei/ilp32/no-rtti/libnosys.a(pthread.o): in function `__pthread_failed': /builds/idf/crosstool-NG/.build/riscv32-esp-elf/src/newlib/libgloss/libnosys/pthread.c:16: multiple definition of `pthread_condattr_getclock'; esp-idf/pthread/libpthread.a(pthread_cond_var.c.obj):/mnt/work/esp-idf/components/pthread/pthread_cond_var.c:206: first defined here /root/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/13.2.0/../../../../riscv32-esp-elf/bin/ld: /root/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/13.2.0/../../../../riscv32-esp-elf/lib/rv32imc_zicsr_zifencei/ilp32/no-rtti/libnosys.a(pthread.o): in function `__pthread_failed': /builds/idf/crosstool-NG/.build/riscv32-esp-elf/src/newlib/libgloss/libnosys/pthread.c:16: multiple definition of `pthread_condattr_destroy'; esp-idf/pthread/libpthread.a(pthread_cond_var.c.obj):/mnt/work/esp-idf/components/pthread/pthread_cond_var.c:188: first defined here |
|
相关推荐
1个回答
|
|
|
从您提供的日志信息来看,错误和警告主要与pthread库有关。这里是一些可能的原因和解决方法:
1. **警告信息**:`pthread_cond_broadcast is not implemented and will always fail` 表示在pthread库中,`pthread_cond_broadcast` 函数没有实现,并且总是失败。这可能是因为您正在使用的ESP-IDF版本或者编译环境不支持该函数。 **解决方法**:尝试更新ESP-IDF到最新版本,或者检查您的编译环境是否支持该函数。 2. **链接错误**:如果除了警告之外,您还遇到了链接错误,这可能是因为链接器无法找到所需的pthread库或者相关函数。 **解决方法**:确保您的项目正确链接了pthread库。在ESP-IDF中,通常不需要手动链接pthread库,因为它会自动被包含在编译过程中。但是,如果您在项目中手动指定了链接器标志,可能需要检查这些标志是否正确。 3. **版本兼容性问题**:如果您使用的ESP-IDF版本与您的硬件或编译器版本不兼容,可能会导致问题。 **解决方法**:确保您的ESP-IDF版本与您的硬件和编译器版本兼容。您可以通过查看ESP-IDF的文档或发布说明来了解不同版本的兼容性信息。 4. **编译选项问题**:有时候,编译选项设置不当也可能导致问题。 **解决方法**:检查您的编译选项,确保它们适用于您的项目和硬件。特别是,检查是否启用了对pthread库的支持。 5. **代码问题**:如果问题仍然存在,可能需要检查您的代码,看看是否有不正确的使用pthread库的地方。 **解决方法**:审查您的代码,确保您正确地使用了pthread库的函数和数据结构。 6. **环境问题**:有时候,开发环境的问题也可能导致编译或链接错误。 **解决方法**:尝试清理您的开发环境,例如删除编译生成的中间文件,然后重新编译项目。 如果上述方法都不能解决问题,您可能需要提供更多的错误信息或者考虑在ESP-IDF的官方论坛或者社区寻求帮助。在那里,您可以找到更多关于ESP32开发的问题和解决方案。 |
|
|
|
|
只有小组成员才能发言,加入小组>>
933 浏览 0 评论
1653 浏览 0 评论
请问一下我想用ESP8685直接替换ESP8266而不用写程序,可以让ESP8685直接通过之前ESP8266的外挂的flash运行程序吗
1284 浏览 1 评论
1218 浏览 1 评论
4959 浏览 2 评论
为blufi_device设置自定义名称,但是无法修改,为什么?
1249浏览 4评论
请问ESP32-S2-WROOM怎么获得ESP32-S2外接FLASH的唯一序列号?
927浏览 3评论
2329浏览 3评论
ESP-IDF的VScode插件的build按钮点击会报错的原因?
2524浏览 3评论
ESP-Jumpstart例程中第5个工程:5_cloud连接报错是哪里的问题?
1051浏览 2评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-1 18:34 , Processed in 0.567209 second(s), Total 75, Slave 57 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
576
