编译最新的sdk v4.0 老是报错,查看是stdatomic.h文件里报错

137502805@qq.com
Posts: 12
Joined: Thu Feb 13, 2020 6:10 am

编译最新的sdk v4.0 老是报错,查看是stdatomic.h文件里报错

Postby 137502805@qq.com » Thu Feb 13, 2020 6:16 am

In file included from /home/bruce/esp-idf-v4.0/components/driver/spi_master.c:140:0:
/home/bruce/esp-idf-v4.0/components/newlib/include/stdatomic.h: In function 'atomic_flag_test_and_set_explicit':
/home/bruce/esp-idf-v4.0/components/newlib/include/stdatomic.h:246:2: error: implicit declaration of function '__c11_atomic_exchange' [-Werror=implicit-function-declaration]
__c11_atomic_exchange(object, desired, order)
^
/home/bruce/esp-idf-v4.0/components/newlib/include/stdatomic.h:312:17: note: in expansion of macro 'atomic_exchange_explicit'
return ((_Bool)atomic_exchange_explicit(&__object->__flag, 1, __order));
^
/home/bruce/esp-idf-v4.0/components/newlib/include/stdatomic.h: In function 'atomic_flag_clear_explicit':
/home/bruce/esp-idf-v4.0/components/newlib/include/stdatomic.h:260:2: error: implicit declaration of function '__c11_atomic_store' [-Werror=implicit-function-declaration]
__c11_atomic_store(object, desired, order)
^
/home/bruce/esp-idf-v4.0/components/newlib/include/stdatomic.h:319:2: note: in expansion of macro 'atomic_store_explicit'
atomic_store_explicit(&__object->__flag, 0, __order);
^
/home/bruce/esp-idf-v4.0/components/driver/spi_master.c: In function 'spi_bus_free':
/home/bruce/esp-idf-v4.0/components/newlib/include/stdatomic.h:258:2: error: implicit declaration of function '__c11_atomic_load' [-Werror=implicit-function-declaration]
__c11_atomic_load(object, order)
^
我也没找到这些函数的定义,请问该如何解决?

137502805@qq.com
Posts: 12
Joined: Thu Feb 13, 2020 6:10 am

Re: 编译最新的sdk v4.0 老是报错,查看是stdatomic.h文件里报错

Postby 137502805@qq.com » Fri Feb 14, 2020 3:20 am

不好意思,是工具链的问题,需要更新最新的工具链 :lol:

hacper
Posts: 1
Joined: Sun Mar 01, 2020 2:33 pm

Re: 编译最新的sdk v4.0 老是报错,查看是stdatomic.h文件里报错

Postby hacper » Sun Mar 01, 2020 2:47 pm

请问一下,你的工具链怎么安装好的?我在windows上折腾许久,开发工具一直按照失败。。。。

xufei66884300
Posts: 2
Joined: Tue Mar 03, 2020 5:51 pm

Re: 编译最新的sdk v4.0 老是报错,查看是stdatomic.h文件里报错

Postby xufei66884300 » Wed Mar 04, 2020 6:04 pm

您好,最新的工具链可以在哪里下?

xufei66884300
Posts: 2
Joined: Tue Mar 03, 2020 5:51 pm

Re: 编译最新的sdk v4.0 老是报错,查看是stdatomic.h文件里报错

Postby xufei66884300 » Thu Mar 05, 2020 5:24 am

137502805@qq.com wrote:
Fri Feb 14, 2020 3:20 am
不好意思,是工具链的问题,需要更新最新的工具链 :lol:
你好,需要哪个版本的工具链,我用的8.10的,编译时候也会报错。

137502805@qq.com
Posts: 12
Joined: Thu Feb 13, 2020 6:10 am

Re: 编译最新的sdk v4.0 老是报错,查看是stdatomic.h文件里报错

Postby 137502805@qq.com » Fri Mar 06, 2020 12:04 am

xufei66884300 wrote:
Thu Mar 05, 2020 5:24 am
137502805@qq.com wrote:
Fri Feb 14, 2020 3:20 am
不好意思,是工具链的问题,需要更新最新的工具链 :lol:
你好,需要哪个版本的工具链,我用的8.10的,编译时候也会报错。
您好,我用的是linux环境下的,就是官网提供的最新编译链。

Who is online

Users browsing this forum: No registered users and 8 guests