打印

EmbeddedBuilder生成的工程编译报错

[复制链接]
1241|9
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
perseverance51|  楼主 | 2024-9-24 16:49 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 perseverance51 于 2024-9-24 16:52 编辑

软件版本:EmbeddedBuilder_v1.4.1.23782、
生成工程后,直接进行编译就报错,报错的这些链接文件很奇怪。


arm-none-eabi-gcc -mcpu=cortex-m23 -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections  -g3 -Wl,-Map,"UART_DMA_IDLE.map" -T gd32e23x_flash.ld -Xlinker --gc-sections -L"../ldscripts" --specs=nano.specs --specs=nosys.specs -o "UART_DMA_IDLE.elf"  ./src/gd32e23x_hal_init.o ./src/gd32e23x_hal_it.o ./src/main.o  ./firmware/cmsis/src/syscalls.o ./firmware/cmsis/src/system_gd32e23x.o  ./firmware/cmsis/gcc_startup/startup_gd32e23x.o  ./firmware/GD32E23x_standard_peripheral/Source/gd32e23x_adc.o ./firmware/GD32E23x_standard_peripheral/Source/gd32e23x_cmp.o ./firmware/GD32E23x_standard_peripheral/Source/gd32e23x_crc.o ./firmware/GD32E23x_standard_peripheral/Source/gd32e23x_dbg.o ./firmware/GD32E23x_standard_peripheral/Source/gd32e23x_dma.o ./firmware/GD32E23x_standard_peripheral/Source/gd32e23x_exti.o ./firmware/GD32E23x_standard_peripheral/Source/gd32e23x_fmc.o ./firmware/GD32E23x_standard_peripheral/Source/gd32e23x_fwdgt.o ./firmware/GD32E23x_standard_peripheral/Source/gd32e23x_gpio.o ./firmware/GD32E23x_standard_peripheral/Source/gd32e23x_i2c.o ./firmware/GD32E23x_standard_peripheral/Source/gd32e23x_misc.o ./firmware/GD32E23x_standard_peripheral/Source/gd32e23x_pmu.o ./firmware/GD32E23x_standard_peripheral/Source/gd32e23x_rcu.o ./firmware/GD32E23x_standard_peripheral/Source/gd32e23x_rtc.o ./firmware/GD32E23x_standard_peripheral/Source/gd32e23x_spi.o ./firmware/GD32E23x_standard_peripheral/Source/gd32e23x_syscfg.o ./firmware/GD32E23x_standard_peripheral/Source/gd32e23x_timer.o ./firmware/GD32E23x_standard_peripheral/Source/gd32e23x_usart.o ./firmware/GD32E23x_standard_peripheral/Source/gd32e23x_wwdgt.o  ./firmware/GD32E23x_hal_peripheral/Source/gd32e23x_hal_adc.o ./firmware/GD32E23x_hal_peripheral/Source/gd32e23x_hal_basetick.o ./firmware/GD32E23x_hal_peripheral/Source/gd32e23x_hal_cmp.o ./firmware/GD32E23x_hal_peripheral/Source/gd32e23x_hal_crc.o ./firmware/GD32E23x_hal_peripheral/Source/gd32e23x_hal_dma.o ./firmware/GD32E23x_hal_peripheral/Source/gd32e23x_hal_exti.o ./firmware/GD32E23x_hal_peripheral/Source/gd32e23x_hal_fmc.o ./firmware/GD32E23x_hal_peripheral/Source/gd32e23x_hal_fwdgt.o ./firmware/GD32E23x_hal_peripheral/Source/gd32e23x_hal_gpio.o ./firmware/GD32E23x_hal_peripheral/Source/gd32e23x_hal_i2c.o ./firmware/GD32E23x_hal_peripheral/Source/gd32e23x_hal_i2s.o ./firmware/GD32E23x_hal_peripheral/Source/gd32e23x_hal_irda.o ./firmware/GD32E23x_hal_peripheral/Source/gd32e23x_hal_nvic.o ./firmware/GD32E23x_hal_peripheral/Source/gd32e23x_hal_pmu.o ./firmware/GD32E23x_hal_peripheral/Source/gd32e23x_hal_pwmout.o ./firmware/GD32E23x_hal_peripheral/Source/gd32e23x_hal_rcu.o ./firmware/GD32E23x_hal_peripheral/Source/gd32e23x_hal_rtc.o ./firmware/GD32E23x_hal_peripheral/Source/gd32e23x_hal_smartcard.o ./firmware/GD32E23x_hal_peripheral/Source/gd32e23x_hal_smbus.o ./firmware/GD32E23x_hal_peripheral/Source/gd32e23x_hal_spi.o ./firmware/GD32E23x_hal_peripheral/Source/gd32e23x_hal_syscfg.o ./firmware/GD32E23x_hal_peripheral/Source/gd32e23x_hal_timer.o ./firmware/GD32E23x_hal_peripheral/Source/gd32e23x_hal_uart.o ./firmware/GD32E23x_hal_peripheral/Source/gd32e23x_hal_usrt.o ./firmware/GD32E23x_hal_peripheral/Source/gd32e23x_hal_wwdgt.o   
d:/gd32/embeddedbuilder_v1.4.1.23782/tools/gnu tools arm embedded/xpack-arm-none-eabi-gcc/9.2.1-1.1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: cannot find crti.o: No such file or directory
d:/gd32/embeddedbuilder_v1.4.1.23782/tools/gnu tools arm embedded/xpack-arm-none-eabi-gcc/9.2.1-1.1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: cannot find crtbegin.o: No such file or directory
d:/gd32/embeddedbuilder_v1.4.1.23782/tools/gnu tools arm embedded/xpack-arm-none-eabi-gcc/9.2.1-1.1/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: cannot find crt0.o: No such file or directory
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:62: UART_DMA_IDLE.elf] Error 1
"make -j8 all" terminated with exit code 2. Build might be incomplete.



使用特权

评论回复
沙发
yangxiaor520| | 2024-9-24 20:14 | 只看该作者
是不是工程配置没有正确,看看呢。

使用特权

评论回复
板凳
cr315| | 2024-9-25 11:02 | 只看该作者
缺少必要的头文件?

使用特权

评论回复
地板
两只袜子| | 2024-9-25 11:03 | 只看该作者
头文件的包含顺序有时会影响编译结果,尤其是当多个头文件之间存在依赖关系时。调整头文件的包含顺序,确保依赖关系正确。通常,系统头文件应先于库头文件包含,库头文件应先于用户头文件包含。

使用特权

评论回复
5
jcky001| | 2024-9-25 11:03 | 只看该作者
语法结构错误

使用特权

评论回复
6
elephant00| | 2024-9-25 11:03 | 只看该作者
编译器选项不匹配

使用特权

评论回复
7
onlycook| | 2024-9-25 14:56 | 只看该作者
源文件或项目文件可能已损坏。

使用特权

评论回复
8
duo点| | 2024-9-25 16:00 | 只看该作者
使用的库版本与代码或编译器不兼容。

使用特权

评论回复
9
王派oo| | 2024-9-30 13:30 | 只看该作者
生成工程后,直接进行编译就报错

使用特权

评论回复
10
王派oo| | 2024-9-30 13:30 | 只看该作者
生成工程后,直接进行编译就报错

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

4

主题

30

帖子

1

粉丝