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
I use the compiler version as indicated by the build of esp-open-rtos : 4.8.5
$ xtensa-lx106-elf-gcc --version
xtensa-lx106-elf-gcc (crosstool-NG crosstool-ng-1.22.0-60-g37b07f6f) 4.8.5
However the c++ std::atomic compiles, but doesn't link. See below.
Missing library for : __atomic_compare_exchange_4
Any suggestions ?
LD build/nanoEsp8266.out
./build/program.a(main.o):(.text.ZNSt13__atomic_baseIjE21compare_exchange_weakERjjSt12memory_orderS2[std::__atomic_base::compare_exchange_weak(unsigned int&, unsigned int, std::memory_order, std::memory_order)]+0x0): undefined reference to __atomic_compare_exchange_4' ./build/program.a(main.o): In function std::__atomic_base::compare_exchange_weak(unsigned int&, unsigned int, std::memory_order, std::memory_order)':
main.cpp:(.text.ZNSt13__atomic_baseIjE21compare_exchange_weakERjjSt12memory_orderS2[std::__atomic_base::compare_exchange_weak(unsigned int&, unsigned int, std::memory_order, std::memory_order)]+0x36): undefined reference to `__atomic_compare_exchange_4'
collect2: error: ld returned 1 exit status
../esp-open-rtos/common.mk:232: recipe for target 'build/nanoEsp8266.out' failed
make: *** [build/nanoEsp8266.out] Error 1
The text was updated successfully, but these errors were encountered:
I use the compiler version as indicated by the build of esp-open-rtos : 4.8.5
$ xtensa-lx106-elf-gcc --version
xtensa-lx106-elf-gcc (crosstool-NG crosstool-ng-1.22.0-60-g37b07f6f) 4.8.5
However the c++ std::atomic compiles, but doesn't link. See below.
Missing library for : __atomic_compare_exchange_4
Any suggestions ?
LD build/nanoEsp8266.out
./build/program.a(main.o):(.text.ZNSt13__atomic_baseIjE21compare_exchange_weakERjjSt12memory_orderS2[std::__atomic_base::compare_exchange_weak(unsigned int&, unsigned int, std::memory_order, std::memory_order)]+0x0): undefined reference to
__atomic_compare_exchange_4' ./build/program.a(main.o): In function
std::__atomic_base::compare_exchange_weak(unsigned int&, unsigned int, std::memory_order, std::memory_order)':main.cpp:(.text.ZNSt13__atomic_baseIjE21compare_exchange_weakERjjSt12memory_orderS2[std::__atomic_base::compare_exchange_weak(unsigned int&, unsigned int, std::memory_order, std::memory_order)]+0x36): undefined reference to `__atomic_compare_exchange_4'
collect2: error: ld returned 1 exit status
../esp-open-rtos/common.mk:232: recipe for target 'build/nanoEsp8266.out' failed
make: *** [build/nanoEsp8266.out] Error 1
The text was updated successfully, but these errors were encountered: