RISC-V MCU中文社区

编译SIRV-E-SDK实例程序报错

发表于 开源蜂鸟E203 2021-02-05 02:23:45
1
2992
0

按书本《手把手教你设计CPU——RISC-V处理器》19.3节使用SIRV-E-SDK实例程序,在编译demo_gpio时显示如下错误:

具体打印内容如下:

qin@qin-virtual-machine:~/prj/mcu/e200_opensource-master/sirv-e-sdk$ make software PROGRAM=demo_gpio BOARD=sirv-e203-arty

make -C software/demo_gpio BSP_BASE=/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp BOARD=sirv-e203-arty clean

make[1]: 进入目录“/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/software/demo_gpio”

rm -f demo_gpio /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/start.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/entry.o demo_gpio.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/drivers/plic/plic_driver.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/sirv-e203-arty/init.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/sirv_printf.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/stdlib/malloc.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/open.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/lseek.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/read.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/write.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/fstat.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/stat.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/close.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/link.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/unlink.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/execve.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/fork.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/getpid.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/kill.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/wait.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/isatty.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/times.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/sbrk.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/_exit.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/misc/write_hex.o

make[1]: 离开目录“/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/software/demo_gpio”

make -C software/demo_gpio CC=/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/work/build/riscv-gnu-toolchain/riscv32-unknown-elf/prefix/bin/riscv-none-embed-gcc RISCV_ARCH=rv32imac RISCV_ABI=ilp32 AR=/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/work/build/riscv-gnu-toolchain/riscv32-unknown-elf/prefix/bin/riscv-none-embed-ar BSP_BASE=/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp BOARD=sirv-e203-arty

make[1]: 进入目录“/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/software/demo_gpio”

/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/work/build/riscv-gnu-toolchain/riscv32-unknown-elf/prefix/bin/riscv-none-embed-gcc -O2 -DUSE_PLIC -DUSE_M_TIME -g -march=rv32imac -mabi=ilp32 -mcmodel=medany  -ffunction-sections -fdata-sections -fno-builtin-printf -fno-builtin-malloc -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/include -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/drivers/ -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/sirv-e203-arty -c -o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/start.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/start.S

/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/work/build/riscv-gnu-toolchain/riscv32-unknown-elf/prefix/bin/riscv-none-embed-gcc -O2 -DUSE_PLIC -DUSE_M_TIME -g -march=rv32imac -mabi=ilp32 -mcmodel=medany  -ffunction-sections -fdata-sections -fno-builtin-printf -fno-builtin-malloc -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/include -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/drivers/ -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/sirv-e203-arty -c -o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/entry.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/entry.S

/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/work/build/riscv-gnu-toolchain/riscv32-unknown-elf/prefix/bin/riscv-none-embed-gcc -O2 -DUSE_PLIC -DUSE_M_TIME -g -march=rv32imac -mabi=ilp32 -mcmodel=medany  -ffunction-sections -fdata-sections -fno-builtin-printf -fno-builtin-malloc -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/include -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/drivers/ -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/sirv-e203-arty -include sys/cdefs.h -c -o demo_gpio.o demo_gpio.c

/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/work/build/riscv-gnu-toolchain/riscv32-unknown-elf/prefix/bin/riscv-none-embed-gcc -O2 -DUSE_PLIC -DUSE_M_TIME -g -march=rv32imac -mabi=ilp32 -mcmodel=medany  -ffunction-sections -fdata-sections -fno-builtin-printf -fno-builtin-malloc -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/include -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/drivers/ -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/sirv-e203-arty -include sys/cdefs.h -c -o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/drivers/plic/plic_driver.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/drivers/plic/plic_driver.c

/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/work/build/riscv-gnu-toolchain/riscv32-unknown-elf/prefix/bin/riscv-none-embed-gcc -O2 -DUSE_PLIC -DUSE_M_TIME -g -march=rv32imac -mabi=ilp32 -mcmodel=medany  -ffunction-sections -fdata-sections -fno-builtin-printf -fno-builtin-malloc -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/include -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/drivers/ -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/sirv-e203-arty -include sys/cdefs.h -c -o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/sirv-e203-arty/init.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/sirv-e203-arty/init.c

/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/work/build/riscv-gnu-toolchain/riscv32-unknown-elf/prefix/bin/riscv-none-embed-gcc -O2 -DUSE_PLIC -DUSE_M_TIME -g -march=rv32imac -mabi=ilp32 -mcmodel=medany  -ffunction-sections -fdata-sections -fno-builtin-printf -fno-builtin-malloc -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/include -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/drivers/ -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/sirv-e203-arty -include sys/cdefs.h -c -o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/sirv_printf.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/sirv_printf.c

/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/work/build/riscv-gnu-toolchain/riscv32-unknown-elf/prefix/bin/riscv-none-embed-gcc -O2 -DUSE_PLIC -DUSE_M_TIME -g -march=rv32imac -mabi=ilp32 -mcmodel=medany  -ffunction-sections -fdata-sections -fno-builtin-printf -fno-builtin-malloc -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/include -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/drivers/ -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/sirv-e203-arty -include sys/cdefs.h -c -o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/stdlib/malloc.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/stdlib/malloc.c

/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/work/build/riscv-gnu-toolchain/riscv32-unknown-elf/prefix/bin/riscv-none-embed-gcc -O2 -DUSE_PLIC -DUSE_M_TIME -g -march=rv32imac -mabi=ilp32 -mcmodel=medany  -ffunction-sections -fdata-sections -fno-builtin-printf -fno-builtin-malloc -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/include -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/drivers/ -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/sirv-e203-arty -include sys/cdefs.h -c -o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/open.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/open.c

/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/work/build/riscv-gnu-toolchain/riscv32-unknown-elf/prefix/bin/riscv-none-embed-gcc -O2 -DUSE_PLIC -DUSE_M_TIME -g -march=rv32imac -mabi=ilp32 -mcmodel=medany  -ffunction-sections -fdata-sections -fno-builtin-printf -fno-builtin-malloc -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/include -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/drivers/ -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/sirv-e203-arty -include sys/cdefs.h -c -o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/lseek.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/lseek.c

/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/work/build/riscv-gnu-toolchain/riscv32-unknown-elf/prefix/bin/riscv-none-embed-gcc -O2 -DUSE_PLIC -DUSE_M_TIME -g -march=rv32imac -mabi=ilp32 -mcmodel=medany  -ffunction-sections -fdata-sections -fno-builtin-printf -fno-builtin-malloc -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/include -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/drivers/ -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/sirv-e203-arty -include sys/cdefs.h -c -o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/read.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/read.c

/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/work/build/riscv-gnu-toolchain/riscv32-unknown-elf/prefix/bin/riscv-none-embed-gcc -O2 -DUSE_PLIC -DUSE_M_TIME -g -march=rv32imac -mabi=ilp32 -mcmodel=medany  -ffunction-sections -fdata-sections -fno-builtin-printf -fno-builtin-malloc -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/include -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/drivers/ -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/sirv-e203-arty -include sys/cdefs.h -c -o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/write.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/write.c

/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/work/build/riscv-gnu-toolchain/riscv32-unknown-elf/prefix/bin/riscv-none-embed-gcc -O2 -DUSE_PLIC -DUSE_M_TIME -g -march=rv32imac -mabi=ilp32 -mcmodel=medany  -ffunction-sections -fdata-sections -fno-builtin-printf -fno-builtin-malloc -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/include -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/drivers/ -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/sirv-e203-arty -include sys/cdefs.h -c -o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/fstat.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/fstat.c

/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/work/build/riscv-gnu-toolchain/riscv32-unknown-elf/prefix/bin/riscv-none-embed-gcc -O2 -DUSE_PLIC -DUSE_M_TIME -g -march=rv32imac -mabi=ilp32 -mcmodel=medany  -ffunction-sections -fdata-sections -fno-builtin-printf -fno-builtin-malloc -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/include -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/drivers/ -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/sirv-e203-arty -include sys/cdefs.h -c -o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/stat.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/stat.c

/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/work/build/riscv-gnu-toolchain/riscv32-unknown-elf/prefix/bin/riscv-none-embed-gcc -O2 -DUSE_PLIC -DUSE_M_TIME -g -march=rv32imac -mabi=ilp32 -mcmodel=medany  -ffunction-sections -fdata-sections -fno-builtin-printf -fno-builtin-malloc -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/include -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/drivers/ -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/sirv-e203-arty -include sys/cdefs.h -c -o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/close.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/close.c

/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/work/build/riscv-gnu-toolchain/riscv32-unknown-elf/prefix/bin/riscv-none-embed-gcc -O2 -DUSE_PLIC -DUSE_M_TIME -g -march=rv32imac -mabi=ilp32 -mcmodel=medany  -ffunction-sections -fdata-sections -fno-builtin-printf -fno-builtin-malloc -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/include -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/drivers/ -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/sirv-e203-arty -include sys/cdefs.h -c -o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/link.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/link.c

/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/work/build/riscv-gnu-toolchain/riscv32-unknown-elf/prefix/bin/riscv-none-embed-gcc -O2 -DUSE_PLIC -DUSE_M_TIME -g -march=rv32imac -mabi=ilp32 -mcmodel=medany  -ffunction-sections -fdata-sections -fno-builtin-printf -fno-builtin-malloc -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/include -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/drivers/ -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/sirv-e203-arty -include sys/cdefs.h -c -o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/unlink.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/unlink.c

/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/work/build/riscv-gnu-toolchain/riscv32-unknown-elf/prefix/bin/riscv-none-embed-gcc -O2 -DUSE_PLIC -DUSE_M_TIME -g -march=rv32imac -mabi=ilp32 -mcmodel=medany  -ffunction-sections -fdata-sections -fno-builtin-printf -fno-builtin-malloc -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/include -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/drivers/ -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/sirv-e203-arty -include sys/cdefs.h -c -o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/execve.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/execve.c

/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/work/build/riscv-gnu-toolchain/riscv32-unknown-elf/prefix/bin/riscv-none-embed-gcc -O2 -DUSE_PLIC -DUSE_M_TIME -g -march=rv32imac -mabi=ilp32 -mcmodel=medany  -ffunction-sections -fdata-sections -fno-builtin-printf -fno-builtin-malloc -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/include -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/drivers/ -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/sirv-e203-arty -include sys/cdefs.h -c -o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/fork.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/fork.c

/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/work/build/riscv-gnu-toolchain/riscv32-unknown-elf/prefix/bin/riscv-none-embed-gcc -O2 -DUSE_PLIC -DUSE_M_TIME -g -march=rv32imac -mabi=ilp32 -mcmodel=medany  -ffunction-sections -fdata-sections -fno-builtin-printf -fno-builtin-malloc -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/include -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/drivers/ -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/sirv-e203-arty -include sys/cdefs.h -c -o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/getpid.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/getpid.c

/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/work/build/riscv-gnu-toolchain/riscv32-unknown-elf/prefix/bin/riscv-none-embed-gcc -O2 -DUSE_PLIC -DUSE_M_TIME -g -march=rv32imac -mabi=ilp32 -mcmodel=medany  -ffunction-sections -fdata-sections -fno-builtin-printf -fno-builtin-malloc -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/include -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/drivers/ -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/sirv-e203-arty -include sys/cdefs.h -c -o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/kill.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/kill.c

/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/work/build/riscv-gnu-toolchain/riscv32-unknown-elf/prefix/bin/riscv-none-embed-gcc -O2 -DUSE_PLIC -DUSE_M_TIME -g -march=rv32imac -mabi=ilp32 -mcmodel=medany  -ffunction-sections -fdata-sections -fno-builtin-printf -fno-builtin-malloc -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/include -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/drivers/ -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/sirv-e203-arty -include sys/cdefs.h -c -o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/wait.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/wait.c

/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/work/build/riscv-gnu-toolchain/riscv32-unknown-elf/prefix/bin/riscv-none-embed-gcc -O2 -DUSE_PLIC -DUSE_M_TIME -g -march=rv32imac -mabi=ilp32 -mcmodel=medany  -ffunction-sections -fdata-sections -fno-builtin-printf -fno-builtin-malloc -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/include -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/drivers/ -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/sirv-e203-arty -include sys/cdefs.h -c -o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/isatty.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/isatty.c

/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/work/build/riscv-gnu-toolchain/riscv32-unknown-elf/prefix/bin/riscv-none-embed-gcc -O2 -DUSE_PLIC -DUSE_M_TIME -g -march=rv32imac -mabi=ilp32 -mcmodel=medany  -ffunction-sections -fdata-sections -fno-builtin-printf -fno-builtin-malloc -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/include -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/drivers/ -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/sirv-e203-arty -include sys/cdefs.h -c -o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/times.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/times.c

/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/work/build/riscv-gnu-toolchain/riscv32-unknown-elf/prefix/bin/riscv-none-embed-gcc -O2 -DUSE_PLIC -DUSE_M_TIME -g -march=rv32imac -mabi=ilp32 -mcmodel=medany  -ffunction-sections -fdata-sections -fno-builtin-printf -fno-builtin-malloc -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/include -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/drivers/ -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/sirv-e203-arty -include sys/cdefs.h -c -o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/sbrk.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/sbrk.c

/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/work/build/riscv-gnu-toolchain/riscv32-unknown-elf/prefix/bin/riscv-none-embed-gcc -O2 -DUSE_PLIC -DUSE_M_TIME -g -march=rv32imac -mabi=ilp32 -mcmodel=medany  -ffunction-sections -fdata-sections -fno-builtin-printf -fno-builtin-malloc -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/include -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/drivers/ -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/sirv-e203-arty -include sys/cdefs.h -c -o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/_exit.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/_exit.c

/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/work/build/riscv-gnu-toolchain/riscv32-unknown-elf/prefix/bin/riscv-none-embed-gcc -O2 -DUSE_PLIC -DUSE_M_TIME -g -march=rv32imac -mabi=ilp32 -mcmodel=medany  -ffunction-sections -fdata-sections -fno-builtin-printf -fno-builtin-malloc -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/include -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/drivers/ -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/sirv-e203-arty -include sys/cdefs.h -c -o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/misc/write_hex.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/misc/write_hex.c

/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/work/build/riscv-gnu-toolchain/riscv32-unknown-elf/prefix/bin/riscv-none-embed-gcc -O2 -DUSE_PLIC -DUSE_M_TIME -g -march=rv32imac -mabi=ilp32 -mcmodel=medany  -ffunction-sections -fdata-sections -fno-builtin-printf -fno-builtin-malloc -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/include -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/drivers/ -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env -I/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/sirv-e203-arty /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/start.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/entry.o demo_gpio.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/drivers/plic/plic_driver.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/sirv-e203-arty/init.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/sirv_printf.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/stdlib/malloc.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/open.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/lseek.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/read.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/write.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/fstat.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/stat.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/close.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/link.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/unlink.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/execve.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/fork.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/getpid.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/kill.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/wait.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/isatty.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/times.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/sbrk.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/sys/_exit.o /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/libwrap/misc/write_hex.o -o demo_gpio -T /home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/sirv-e203-arty/link.lds -nostartfiles -Wl,--gc-sections -Wl,--wrap=scanf -Wl,--wrap=malloc -Wl,--wrap=printf  -Wl,--check-sections -L/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env

/home/qin/prj/mcu/gnu-mcu-eclipse/riscv-none-gcc/7.2.0-4-20180606-1631/bin/../lib/gcc/riscv-none-embed/7.2.0/../../../../riscv-none-embed/bin/ld:/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/sirv-e203-arty/link.lds:1: ignoring invalid character `#' in expression

/home/qin/prj/mcu/gnu-mcu-eclipse/riscv-none-gcc/7.2.0-4-20180606-1631/bin/../lib/gcc/riscv-none-embed/7.2.0/../../../../riscv-none-embed/bin/ld:/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/sirv-e203-arty/link.lds:1: syntax error

collect2: error: ld returned 1 exit status

make[1]: *** [/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/bsp/env/common.mk:68:demo_gpio] 错误 1

make[1]: 离开目录“/home/qin/prj/mcu/e200_opensource-master/sirv-e-sdk/software/demo_gpio”

make: *** [Makefile:206:software] 错误 2

求解答是什么问题

喜欢0
用户评论 (1)
文超

文超 实名认证

懒的都不写签名

积分
问答
粉丝
关注
  • RV-STAR 开发板
  • RISC-V处理器设计系列课程
  • 培养RISC-V大学土壤 共建RISC-V教育生态
RV-STAR 开发板