ch32v003f4p6, 編譯報(bào)錯(cuò):can't link RVE with other target

gcc選項(xiàng)如下:

image.png


編譯日志:

ninja:?Entering?directory?`output'
[1/3]?LINK?firmware
FAILED:?firmware
riscv-none-embed-gcc?-Wl,-TE:/RISC-V/CH32V003/Demo/Vendor/Ld/Link.ld?--specs=nano.specs?--specs=nosys.specs?-nostartfiles?-Xlinker?--gc-sections?-Wl,--print-memory-usage?-Wl,--cref?-lprintf?-Wl,-Map,firmware.map?obj/Application/libapp.a?obj/Vendor/libvendor.a??-o?firmware.elf
Memory?region?????????Used?Size??Region?Size??%age?Used
???????????FLASH:????????8172?B????????16?KB?????49.88%
?????????????RAM:?????????476?B?????????2?KB?????23.24c:/mounriver/mounriver_studio/toolchain/risc-v?embedded?gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe:?obj/Application/libapp.a(libapp.main.o):?can't?link?RVE?with?other?target
c:/mounriver/mounriver_studio/toolchain/risc-v?embedded?gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe:?failed?to?merge?target?specific?data?of?file?obj/Application/libapp.a(libapp.main.o)
c:/mounriver/mounriver_studio/toolchain/risc-v?embedded?gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe:?obj/Application/libapp.a(libapp.system_ch32v00x.o):?can't?link?RVE?with?other?target
c:/mounriver/mounriver_studio/toolchain/risc-v?embedded?gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe:?failed?to?merge?target?specific?data?of?file?obj/Application/libapp.a(libapp.system_ch32v00x.o)
c:/mounriver/mounriver_studio/toolchain/risc-v?embedded?gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe:?obj/Vendor/libvendor.a(libvendor.debug.o):?can't?link?RVE?with?other?target
c:/mounriver/mounriver_studio/toolchain/risc-v?embedded?gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe:?failed?to?merge?target?specific?data?of?file?obj/Vendor/libvendor.a(libvendor.debug.o)
c:/mounriver/mounriver_studio/toolchain/risc-v?embedded?gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe:?obj/Vendor/libvendor.a(libvendor.ch32v00x_dbgmcu.o):?can't?link?RVE?with?other?target
c:/mounriver/mounriver_studio/toolchain/risc-v?embedded?gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe:?failed?to?merge?target?specific?data?of?file?obj/Vendor/libvendor.a(libvendor.ch32v00x_dbgmcu.o)
c:/mounriver/mounriver_studio/toolchain/risc-v?embedded?gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe:?obj/Vendor/libvendor.a(libvendor.ch32v00x_dma.o):?can't?link?RVE?with?other?target
c:/mounriver/mounriver_studio/toolchain/risc-v?embedded?gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe:?failed?to?merge?target?specific?data?of?file?obj/Vendor/libvendor.a(libvendor.ch32v00x_dma.o)
c:/mounriver/mounriver_studio/toolchain/risc-v?embedded?gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe:?obj/Vendor/libvendor.a(libvendor.ch32v00x_gpio.o):?can't?link?RVE?with?other?target
c:/mounriver/mounriver_studio/toolchain/risc-v?embedded?gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe:?failed?to?merge?target?specific?data?of?file?obj/Vendor/libvendor.a(libvendor.ch32v00x_gpio.o)
c:/mounriver/mounriver_studio/toolchain/risc-v?embedded?gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe:?obj/Vendor/libvendor.a(libvendor.ch32v00x_i2c.o):?can't?link?RVE?with?other?target
c:/mounriver/mounriver_studio/toolchain/risc-v?embedded?gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe:?failed?to?merge?target?specific?data?of?file?obj/Vendor/libvendor.a(libvendor.ch32v00x_i2c.o)
c:/mounriver/mounriver_studio/toolchain/risc-v?embedded?gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe:?obj/Vendor/libvendor.a(libvendor.ch32v00x_misc.o):?can't?link?RVE?with?other?target
c:/mounriver/mounriver_studio/toolchain/risc-v?embedded?gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe:?failed?to?merge?target?specific?data?of?file?obj/Vendor/libvendor.a(libvendor.ch32v00x_misc.o)
c:/mounriver/mounriver_studio/toolchain/risc-v?embedded?gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe:?obj/Vendor/libvendor.a(libvendor.ch32v00x_rcc.o):?can't?link?RVE?with?other?target
c:/mounriver/mounriver_studio/toolchain/risc-v?embedded?gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe:?failed?to?merge?target?specific?data?of?file?obj/Vendor/libvendor.a(libvendor.ch32v00x_rcc.o)
c:/mounriver/mounriver_studio/toolchain/risc-v?embedded?gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe:?obj/Vendor/libvendor.a(libvendor.ch32v00x_usart.o):?can't?link?RVE?with?other?target
c:/mounriver/mounriver_studio/toolchain/risc-v?embedded?gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe:?failed?to?merge?target?specific?data?of?file?obj/Vendor/libvendor.a(libvendor.ch32v00x_usart.o)
collect2.exe:?error:?ld?returned?1?exit?status
%

ninja:?build?stopped:?subcommand?failed.


求教下是什么原因?

您好,看報(bào)錯(cuò)信息應(yīng)該是上圖中用到的庫(kù)不是同樣參數(shù)編譯的,您重新以同樣參數(shù)生成庫(kù)就可以了,如還有問(wèn)題,請(qǐng)聯(lián)系郵箱yangy@wch.cn


icon_rar.gifCH32V003_ninja.zip


并沒(méi)有使用其他庫(kù)。工程文件見(jiàn)附件,麻煩幫忙看下


您好,在ldflags里也加上-march=rv32ecxw -mabi=ilp32e


只有登錄才能回復(fù),可以選擇微信賬號(hào)登錄

国产91精品新入口,国产成人综合网在线播放,九热这里只有精品,本道在线观看,美女视频a美女视频,韩国美女激情视频,日本美女pvp视频