You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.
Generating esp8266.project.ld
LD build/smart_light.elf
/home/losingrose/esp/esp-aliyun/examples/solutions/smart_light/build/esp-aliyun/libesp-aliyun.a(wrapper_os.o):(.literal.HAL_ThreadCreate+0x4): undefined reference to pthread_create' /home/losingrose/esp/esp-aliyun/examples/solutions/smart_light/build/esp-aliyun/libesp-aliyun.a(wrapper_os.o):(.literal.HAL_ThreadDelete+0x0): undefined reference to pthread_exit'
/home/losingrose/esp/esp-aliyun/examples/solutions/smart_light/build/esp-aliyun/libesp-aliyun.a(wrapper_os.o):(.literal.HAL_ThreadDelete+0x4): undefined reference to pthread_cancel' /home/losingrose/esp/esp-aliyun/examples/solutions/smart_light/build/esp-aliyun/libesp-aliyun.a(wrapper_os.o):(.literal.HAL_ThreadDelete+0x8): undefined reference to pthread_join'
/home/losingrose/esp/esp-aliyun/examples/solutions/smart_light/build/esp-aliyun/libesp-aliyun.a(wrapper_os.o): In function HAL_ThreadCreate': /home/losingrose/esp/esp-aliyun/wrappers/wrapper_os.c:267: undefined reference to pthread_create'
/home/losingrose/esp/esp-aliyun/wrappers/wrapper_os.c:267: undefined reference to pthread_create' /home/losingrose/esp/esp-aliyun/examples/solutions/smart_light/build/esp-aliyun/libesp-aliyun.a(wrapper_os.o): In function HAL_ThreadDelete':
/home/losingrose/esp/esp-aliyun/wrappers/wrapper_os.c:267: undefined reference to pthread_exit' /home/losingrose/esp/esp-aliyun/wrappers/wrapper_os.c:267: undefined reference to pthread_cancel'
/home/losingrose/esp/esp-aliyun/wrappers/wrapper_os.c:267: undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status
make: *** [/home/losingrose/esp/ESP8266_RTOS_SDK/make/project.mk:510:/home/losingrose/esp/esp-aliyun/examples/solutions/smart_light/build/smart_light.elf] 错误 1
The text was updated successfully, but these errors were encountered:
1. 开发环境
Ubuntu 20
git rev-parse --short HEAD
来获取 commit id):1259029git rev-parse --short HEAD
来获取 commit id):6c438bcegit rev-parse --short HEAD
来获取 commit id):Toolchain version: crosstool-ng-1.22.0-100-ge567ec7
2. 问题描述
make编译失败。最后报错找不到pthread_create
Generating esp8266.project.ld
LD build/smart_light.elf
/home/losingrose/esp/esp-aliyun/examples/solutions/smart_light/build/esp-aliyun/libesp-aliyun.a(wrapper_os.o):(.literal.HAL_ThreadCreate+0x4): undefined reference to
pthread_create' /home/losingrose/esp/esp-aliyun/examples/solutions/smart_light/build/esp-aliyun/libesp-aliyun.a(wrapper_os.o):(.literal.HAL_ThreadDelete+0x0): undefined reference to
pthread_exit'/home/losingrose/esp/esp-aliyun/examples/solutions/smart_light/build/esp-aliyun/libesp-aliyun.a(wrapper_os.o):(.literal.HAL_ThreadDelete+0x4): undefined reference to
pthread_cancel' /home/losingrose/esp/esp-aliyun/examples/solutions/smart_light/build/esp-aliyun/libesp-aliyun.a(wrapper_os.o):(.literal.HAL_ThreadDelete+0x8): undefined reference to
pthread_join'/home/losingrose/esp/esp-aliyun/examples/solutions/smart_light/build/esp-aliyun/libesp-aliyun.a(wrapper_os.o): In function
HAL_ThreadCreate': /home/losingrose/esp/esp-aliyun/wrappers/wrapper_os.c:267: undefined reference to
pthread_create'/home/losingrose/esp/esp-aliyun/wrappers/wrapper_os.c:267: undefined reference to
pthread_create' /home/losingrose/esp/esp-aliyun/examples/solutions/smart_light/build/esp-aliyun/libesp-aliyun.a(wrapper_os.o): In function
HAL_ThreadDelete':/home/losingrose/esp/esp-aliyun/wrappers/wrapper_os.c:267: undefined reference to
pthread_exit' /home/losingrose/esp/esp-aliyun/wrappers/wrapper_os.c:267: undefined reference to
pthread_cancel'/home/losingrose/esp/esp-aliyun/wrappers/wrapper_os.c:267: undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status
make: *** [/home/losingrose/esp/ESP8266_RTOS_SDK/make/project.mk:510:/home/losingrose/esp/esp-aliyun/examples/solutions/smart_light/build/smart_light.elf] 错误 1
The text was updated successfully, but these errors were encountered: