完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我曾尝试在 Mac OS Yosemite 上按照 http://tuanpm.net/post/109019196894/esp8266-development-kit-on-mac-os-yosemite-and 构建 esp8266 corss 编译器
不幸遇到错误。 第一次构建错误: 代码:全选[INFO ] Installing binutils for host [ERROR] /Volumes/ESPTools/esp-open-sdk/crosstool-NG/.build/src/binutils-2.24/gas/as.c:224:14: error: use of undeclared identifier 'TARGET_ALIAS' [ERROR] /Volumes/ESPTools/esp-open-sdk/crosstool-NG/.build/src/binutils-2.24/gas/as.c:635:5: error: use of undeclared identifier 'TARGET_ALIAS' [ERROR] /Volumes/ESPTools/esp-open-sdk/crosstool-NG/.build/src/binutils-2.24/gas/as.c:648:40: error: use of undeclared identifier 'TARGET_ALIAS' [ERROR] /Volumes/ESPTools/esp-open-sdk/crosstool-NG/.build/src/binutils-2.24/gas/as.c:649:44: error: use of undeclared identifier 'TARGET_CANONICAL' [ERROR] /Volumes/ESPTools/esp-open-sdk/crosstool-NG/.build/src/binutils-2.24/gas/as.c:650:43: error: use of undeclared identifier 'TARGET_CPU' [ERROR] make[7]: *** [as.o] Error 1 [ERROR] make[6]: *** [all-recursive] Error 1 [ERROR] make[5]: *** [all] Error 2 [ERROR] make[4]: *** [all-gas] Error 2 [ERROR] make[3]: *** [all] Error 2 [ERROR] [ERROR] >> [ERROR] >> Build failed in step 'Installing binutils for host' [ERROR] >> called in step '(top-level)' [ERROR] >> [ERROR] >> Error happened in: CT_DoExecLog[scripts/functions@216] [ERROR] >> called from: do_binutils_backend[scripts/build/binutils/binutils.sh@233] [ERROR] >> called from: do_binutils_for_host[scripts/build/binutils/binutils.sh@98] [ERROR] >> called from: main[scripts/crosstool-NG.sh@638] [ERROR] >> [ERROR] >> For more info on this error, look at the file: 'build.log' [ERROR] >> There is a list of known issues, some with workarounds, in: [ERROR] >> 'share/doc/crosstool-ng/ct-ng.1.20.0/B - Known issues.txt' [ERROR] [ERROR] (elapsed: 7:45.99) [07:46] / make[2]: *** [build] Error 1 make[1]: *** [_toolchain] Error 2 make: *** [/esptools/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc] Error 2 |
|
相关推荐
1个回答
|
|
NG/.build/src/binutils-2.24/gas/config/tc-i386.c:44:2: error: #error "TARGET_ALIAS undefined for this target"
这个错误可能是由于crosstool-NG版本不兼容导致的,建议升级crosstool-NG版本或尝试使用其他方法构建esp8266 cross编译器。 如果升级crosstool-NG无法解决问题,可以尝试使用Espressif官方提供的编译器,具体步骤如下: 1.下载Espressif官方提供的编译器: $ git clone -b lx106 git://github.com/jcmvbkbc/crosstool-NG.git $ cd crosstool-NG $ ./bootstrap && ./configure --prefix=$PWD && make install 2.下载ESP8266 SDK: $ git clone https://github.com/espressif/ESP8266_NONOS_SDK.git 3.配置编译器并编译: $ export PATH=$PWD/bin:$PATH $ cd ESP8266_NONOS_SDK $ make STANDALONE=y SDK_PATH=$PWD COMPILER_PATH=$PWD/../crosstool-NG/builds/xtensa-lx106-elf/bin/xtensa-lx106-elf- all |
|
|
|
只有小组成员才能发言,加入小组>>
961 浏览 1 评论
552浏览 6评论
461浏览 5评论
有没有办法在不使用混杂模式的情况下实现Wifi驱动程序接收缓冲区访问中断呢?
446浏览 5评论
447浏览 4评论
417浏览 4评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-26 16:33 , Processed in 1.012634 second(s), Total 79, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号