Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
嵌入式技术综合讨论
eclipse cdt build 出错
发布于 2013-05-26 16:10:50 浏览:6827
订阅该版
刚下载的 eclipse cdt,按照wiki说明,下载插件,新建项目,编译失败. 控制台信息: ```16:06:23 **** Incremental Build of configuration scons for project STRIVEV31 **** make all scons --max-drift=1 --implicit-deps-unchanged scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... scons: building associated VariantDir targets: build arm-none-eabi-gcc -o buildapplication.o -c -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections -O0 -gdwarf-2 -DRT_USING_MINILIBC -DUSE_STDPERIPH_DRIVER -DSTM32F10X_HD -I. "-IK:mcuRT-Thread toolChainRT-Thread 1.1.0" "-IK:mcuRT-Thread toolChainRT-Thread 1.1.0include" "-IK:mcuRT-Thread toolChainRT-Thread 1.1.0libcpuarmcortex-m3" "-IK:mcuRT-Thread toolChainRT-Thread 1.1.0libcpuarmcommon" "-IK:mcuRT-Thread toolChainRT-Thread 1.1.0componentsfinsh" "-IK:mcuRT-Thread toolChainRT-Thread 1.1.0componentslibcminilibc" -ILibrariesSTM32F10x_StdPeriph_Driverinc "-IK:mcuRT-Thread toolChainRT-Thread 1.1.0LibrariesSTM32F10x_StdPeriph_Driverinc" -ILibrariesCMSISCM3DeviceSupportSTSTM32F10x "-IK:mcuRT-Thread toolChainRT-Thread 1.1.0LibrariesCMSISCM3DeviceSupportSTSTM32F10x" "-IK:mcuRT-Thread toolChainRT-Thread 1.1.0componentsCMSISInclude" application.c scons: *** [buildapplication.o] scons: building terminated because of errors. make: *** [all] Error 2 16:06:25 Build Finished (took 1s.997ms)``` 直接在cmd中执行: ```K:mcuRT-Thread toolChainarm-2011.03in>arm-none-eabi-gcc -o buildapplication.o -c -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections -O0 -gdwarf-2 -DRT_USING_MINILIBC -DUSE_STDPERIPH_DRIVER -DSTM32F10X_HD -I. "-IK:mcuRT-Thre ad toolChainRT-Thread 1.1.0" "-IK:mcuRT-Thread toolChainRT-Thread 1.1.0include" "-IK:mcuRT-Thread toolChainRT-Thread 1.1.0libcpuarmcortex-m3" "-IK:mcuRT-Thread toolChainRT-Thread 1.1.0libcpuarmcommon" "-IK:mcuRT-Thread to olChainRT-Thread 1.1.0componentsfinsh" "-IK:mcuRT-Thread toolChainRT-Thread 1.1.0componentslibcminilibc" -ILibrariesSTM32F10x_StdPeriph_Driverinc "-IK:mcuRT-Thread toolChainRT-Thread 1.1.0LibrariesSTM32F10x_StdPeriph_Driver inc" -ILibrariesCMSISCM3DeviceSupportSTSTM32F10x "-IK:mcuRT-Thread toolChainRT-Thread 1.1.0LibrariesCMSISCM3DeviceSupportSTSTM32F10x" "-IK:mcuRT-Thread toolChainRT-Thread 1.1.0componentsCMSISInclude" application.c arm-none-eabi-gcc: application.c: No such file or directory arm-none-eabi-gcc: no input files``` 这会是什么原因? windows2008 x64系统
查看更多
9
个回答
默认排序
按发布时间排序
mostone
2013-05-26
这家伙很懒,什么也没写!
重新测试了一下 cmd,加上执行路径,成功生成 application.o, 这种情况,要在 eclipse 里作什么设置? ``` K:mcuRT-Thread toolChainworkspaceSTRIVEV31>....arm-2011.03inarm-none-eabi-gcc -o buildapplication.o -c -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections -O0 -gdwarf-2 -DRT_USING_MINILIBC -DUSE_STDPERIPH_DRIVER -DSTM32F10 X_HD -I. "-IK:mcuRT-Thread toolChainRT-Thread 1.1.0" "-IK:mcuRT-Thread toolChainRT-Thread 1.1.0include" "-IK:mcuRT-Thread toolChainRT-Thread 1.1.0libcpuarmcortex-m3" "-IK:mcuRT-Thread toolChainRT-Thread 1.1.0libcpuarmcomm on" "-IK:mcuRT-Thread toolChainRT-Thread 1.1.0componentsfinsh" "-IK:mcuRT-Thread toolChainRT-Thread 1.1.0componentslibcminilibc" -ILibrariesSTM32F10x_StdPeriph_Driverinc "-IK:mcuRT-Thread toolChainRT-Thread 1.1.0LibrariesS TM32F10x_StdPeriph_Driverinc" -ILibrariesCMSISCM3DeviceSupportSTSTM32F10x "-IK:mcuRT-Thread toolChainRT-Thread 1.1.0LibrariesCMSISCM3DeviceSupportSTSTM32F10x" "-IK:mcuRT-Thread toolChainRT-Thread 1.1.0componentsCMSISInc lude" application.c ```
mostone
2013-05-26
这家伙很懒,什么也没写!
自己找到原因了,路径问题,修改 rtconfig.py ``` if PLATFORM == 'gcc': # toolchains PREFIX = '../../arm-2011.03/bin/arm-none-eabi-' ``` 但 link 也有问题,可能还要改路径...
bernard
2013-05-26
这家伙很懒,什么也没写!
不是这样改的吧,看看RT-Thread中scons的用法吧 不过一般CDT+RTT插件会去环境变量中设置个路径
mostone
2013-05-26
这家伙很懒,什么也没写!
>不是这样改的吧,看看RT-Thread中scons的用法吧 > >不过一般CDT+RTT插件会去环境变量中设置个路径 --- 我的理解也是如此,builder应该会读取RTT中关于gnu gcc的目录,但我确实设置过了.可结果是不行,加了相对路径后,则可以生成 object 文件,在后面的 link 出错了又. 环境: ``` OS:windows 2008 eclipse: Eclipse IDE for C/C++ Developers Version: Juno Service Release 2 Build id: 20130225-0426 RTT Plugin: org.rt-thread.configurator_1.0.0.201201311954.jar org.rt-thread.wizard_1.0.0.201201140012.jar utils.7z GNU GCC: arm-2011.03-42-arm-none-eabi-i686-mingw32.tar.bz2 RT-Thread preference: GNU GCC directory = K:mcuRT-Thread toolChainarm-2011.03in K:mcuRT-Thread toolChainworkspaceSTRIVEV31>java -version java version "1.7.0_10" Java(TM) SE Runtime Environment (build 1.7.0_10-b18) Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode) ```
mostone
2013-05-26
这家伙很懒,什么也没写!
现在是这个错误: ``` ../../arm-2011.03/bin/arm-none-eabi-gcc -o rtthread-stm32.axf -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections -Wl,--gc-sections,-Map=rtthread-stm32.map,-cref,-u,Reset_Handler -T stm32_rom.ld buildapplication.o buildstartup.o buildoard.o buildstm32f10x_it.o build tc.o buildusart.o buildserial.o buildled.o buildsrcclock.o buildsrcdevice.o buildsrcidle.o buildsrcipc.o buildsrcirq.o buildsrckservice.o buildsrcmem.o buildsrcmempool.o buildsrcobject.o buildsrcscheduler.o buildsrc hread.o buildsrc imer.o buildlibcpuarmcortex-m3cpuport.o buildlibcpuarmcortex-m3context_gcc.o buildlibcpuarmcommonacktrace.o buildlibcpuarmcommondiv0.o buildlibcpuarmcommonshowmem.o buildcomponentsfinshcmd.o buildcomponentsfinshfinsh_compiler.o buildcomponentsfinshfinsh_error.o buildcomponentsfinshfinsh_heap.o buildcomponentsfinshfinsh_init.o buildcomponentsfinshfinsh_node.o buildcomponentsfinshfinsh_ops.o buildcomponentsfinshfinsh_parser.o buildcomponentsfinshfinsh_token.o buildcomponentsfinshfinsh_var.o buildcomponentsfinshfinsh_vm.o buildcomponentsfinshshell.o buildcomponentsfinshsymbol.o buildcomponentslibcminilibcctype.o buildcomponentslibcminilibcmath.o buildcomponentslibcminilibcqsort.o buildcomponentslibcminilibc and.o buildcomponentslibcminilibcstdlib.o buildcomponentslibcminilibcstring.o buildcomponentslibcminilibc ime.o buildspLibrariesCMSISCM3DeviceSupportSTSTM32F10xsystem_stm32f10x.o buildspLibrariesSTM32F10x_StdPeriph_Driversrcstm32f10x_crc.o buildspLibrariesSTM32F10x_StdPeriph_Driversrcstm32f10x_rcc.o buildspLibrariesSTM32F10x_StdPeriph_Driversrcstm32f10x_wwdg.o buildspLibrariesSTM32F10x_StdPeriph_Driversrcstm32f10x_pwr.o buildspLibrariesSTM32F10x_StdPeriph_Driversrcstm32f10x_exti.o buildspLibrariesSTM32F10x_StdPeriph_Driversrcstm32f10x_bkp.o buildspLibrariesSTM32F10x_StdPeriph_Driversrcstm32f10x_i2c.o buildspLibrariesSTM32F10x_StdPeriph_Driversrcstm32f10x_adc.o buildspLibrariesSTM32F10x_StdPeriph_Driversrcstm32f10x_dac.o buildspLibrariesSTM32F10x_StdPeriph_Driversrcstm32f10x_rtc.o buildspLibrariesSTM32F10x_StdPeriph_Driversrcstm32f10x_fsmc.o buildspLibrariesSTM32F10x_StdPeriph_Driversrcstm32f10x_tim.o buildspLibrariesSTM32F10x_StdPeriph_Driversrcstm32f10x_iwdg.o buildspLibrariesSTM32F10x_StdPeriph_Driversrcstm32f10x_spi.o buildspLibrariesSTM32F10x_StdPeriph_Driversrcstm32f10x_flash.o buildspLibrariesSTM32F10x_StdPeriph_Driversrcstm32f10x_sdio.o buildspLibrariesSTM32F10x_StdPeriph_Driversrcstm32f10x_gpio.o buildspLibrariesSTM32F10x_StdPeriph_Driversrcstm32f10x_usart.o buildspLibrariesSTM32F10x_StdPeriph_Driversrcstm32f10x_dbgmcu.o buildspLibrariesSTM32F10x_StdPeriph_Driversrcstm32f10x_dma.o buildspLibrariesSTM32F10x_StdPeriph_Driversrcstm32f10x_can.o buildspLibrariesSTM32F10x_StdPeriph_Driversrcstm32f10x_cec.o buildspLibrariesSTM32F10x_StdPeriph_Driversrcmisc.o buildspLibrariesCMSISCM3DeviceSupportSTSTM32F10xstartupgcc_ride7startup_stm32f10x_hd.o k:/mcu/rt-thread toolchain/arm-2011.03/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/lib/thumb2libc.a: file not recognized: File truncated ``` 有点不明白,怎么出来这个 libc.a, 命令行中似乎没有这个文件.
grissiom
2013-05-27
这家伙很懒,什么也没写!
这个是 C 库,工具链提供的…… 工具链没安好?
mostone
2013-05-27
这家伙很懒,什么也没写!
查了一下相关目录,只看到一个libgcc.a,没有libc.a,这是什么情况?
grissiom
2013-05-28
这家伙很懒,什么也没写!
不在 k:/mcu/rt-thread toolchain/arm-2011.03/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/lib/thumb2\libc.a 么?……
mostone
2013-05-28
这家伙很懒,什么也没写!
>不在 k:/mcu/rt-thread toolchain/arm-2011.03/bin/../lib/gcc/arm-none-eabi/4.5.2/../../../../arm-none-eabi/lib/thumb2libc.a 么?…… --- [s:166] 我竟然看错目录了,这个目录下确实有个 0 字节的 libc.a, 我下的是压缩包,检查了一下,这个文件竟然是个链接,指向 libg.a. 改为 gnu tar for windows 代替 7-zip 重新解压,问题解决. 非常感谢各位的支持, thank you very much!
撰写答案
登录
注册新账号
关注者
0
被浏览
6.8k
关于作者
mostone
这家伙很懒,什么也没写!
提问
4
回答
9
被采纳
0
关注TA
发私信
相关问题
1
开新板块了! 迅速占领第一帖!
2
有想玩点阵做电子钟的没?手上有屏
3
LED点阵屏硬件保护研究笔记
4
USB相关、Android、Arduino
5
Arduino即将发布ARM平台新产品
6
关于开关电源的同步整流技术
7
rt_thread_wizard使用教程
8
[转]开源如何盈利
9
FM3系列MCU的IO操作笔记。
10
转一个xoolhaha 的寻一起开发的帖子
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
env中添加lvgl软件包后,keil编译包--c99错误
2
【NXP-MCXA153】 定时器驱动移植
3
GD32F450 看门狗驱动适配
4
【NXP-MCXA153】看门狗驱动移植
5
RT-Thread Studio V2.2.9 Release Note
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
USB
DMA
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
FAL
rt-smart
ESP8266
I2C_IIC
UART
WIZnet_W5500
ota在线升级
PWM
freemodbus
flash
cubemx
packages_软件包
BSP
潘多拉开发板_Pandora
定时器
ADC
GD32
flashDB
socket
中断
编译报错
Debug
rt_mq_消息队列_msg_queue
SFUD
keil_MDK
msh
ulog
C++_cpp
MicroPython
本月问答贡献
踩姑娘的小蘑菇
7
个答案
2
次被采纳
a1012112796
18
个答案
1
次被采纳
红枫
5
个答案
1
次被采纳
Ryan_CW
5
个答案
1
次被采纳
张世争
4
个答案
1
次被采纳
本月文章贡献
YZRD
3
篇文章
6
次点赞
catcatbing
3
篇文章
6
次点赞
lizimu
2
篇文章
10
次点赞
qq1078249029
2
篇文章
2
次点赞
xnosky
2
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部