Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

esp8266编译报错:error: 'multiple definition of `os_htole16'' #202

Open
frPhoenix opened this issue Dec 6, 2020 · 2 comments
Open

esp8266编译报错:error: 'multiple definition of `os_htole16'' #202

frPhoenix opened this issue Dec 6, 2020 · 2 comments

Comments

@frPhoenix
Copy link

一、环境

  • esp-aliyun 版本(git rev-parse --short HEAD commit id):8b8eeada3

  • ESP8266_RTOS_SDK 版本(git rev-parse --short HEAD commit id): a768f1ce9

二、问题

App "smart_light" version: v2.0-85-g8b8eead LD build/smart_light.elf /Users/phoenix/esp2/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/8.4.0/../../../../xtensa-lx106-elf/bin/ld: /Users/phoenix/esp2/ESP8266_RTOS_SDK/components/esp8266/lib/libsmartconfig.a(sc_ieee80211.o): in function os_htole16':
(.text.os_htole16+0x0): multiple definition of os_htole16'; /Users/phoenix/esp2/ESP8266_RTOS_SDK/AliyunProject/esp-aliyun/examples/solutions/smart_light/build/esp-aliyun/libesp-aliyun.a(os_misc.o):/Users/phoenix/esp2/ESP8266_RTOS_SDK/AliyunProject/esp-aliyun/iotkit-embedded/dev_bind/impl/os/os_misc.c:26: first defined here

@yuanjianmin
Copy link

请使用release/v3.3或者tag v3.3进行编译.

@ljm996054544
Copy link

ESP8266_RTOS_SDK 版本 v3.3
esp-aliyun 版本 master
d:/app/msys32/opt/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/8.4.0/../../../../xtensa-lx106-elf/bin/ld.exe: E:/Desktop/git/ESP8266_RTOS_SDK/components/esp8266/lib\libsmartconfig.a(sc_ieee80211.o): in functionos_htole16':
(.text.os_htole16+0x0): multiple definition of os_htole16'; E:/Desktop/git/ESP8266_RTOS_SDK_v3.3/esp-aliyun_master/examples/solutions/smart_light/build/esp-aliyun_master\libesp-aliyun_master.a(os_misc.o):E:/Desktop/git/ESP8266_RTOS_SDK_v3.3/esp-aliyun_master/iotkit-embedded/dev_bind/impl/os/os_misc.c:26: first defined here d:/app/msys32/opt/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/8.4.0/../../../../xtensa-lx106-elf/bin/ld.exe: E:/Desktop/git/ESP8266_RTOS_SDK/components/esp8266/lib\libsmartconfig.a(sc_ieee80211.o): in function os_le16toh':
(.text.os_le16toh+0x0): multiple definition of os_le16toh'; E:/Desktop/git/ESP8266_RTOS_SDK_v3.3/esp-aliyun_master/examples/solutions/smart_light/build/esp-aliyun_master\libesp-aliyun_master.a(os_misc.o):E:/Desktop/git/ESP8266_RTOS_SDK_v3.3/esp-aliyun_master/iotkit-embedded/dev_bind/impl/os/os_misc.c:42: first defined here d:/app/msys32/opt/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/8.4.0/../../../../xtensa-lx106-elf/bin/ld.exe: warning: alignment 1 of symbol zero_mac' in E:/Desktop/git/ESP8266_RTOS_SDK/components/esp8266/lib\libsmartconfig.a(sc_ieee80211.o) is smaller than 4 in E:/Desktop/git/ESP8266_RTOS_SDK_v3.3/esp-aliyun_master/examples/solutions/smart_light/build/esp-aliyun_master\libesp-aliyun_master.a(zconfig_protocol.o)
collect2.exe: error: ld returned 1 exit status `

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants