Giter Site home page Giter Site logo

ch32v003-makefile-example's People

Contributors

gregdavill avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ch32v003-makefile-example's Issues

Some issues I ran into trying this

Hi Greg,

I know from what you mentioned on Mastodon that this is untested since you currently don't have hardware but I think you said it compiled for you. There must be some differences in compiler versions because when I tried to follow the README, I ran into several issues.

  • The xPack compiler I downloaded xpack-riscv-none-elf-gcc-12.2.0-1 seems to have different naming riscv-none-elf- vs riscv-none-embed- you have in the Makefile.
  • It seems the CSR access instructions now seem to be their own extension and require a different -march=rv32ec_zicsr flag. Without the _zicsr the CSR instructions failed to compile.
  • My attempt unfortunately failed when linking, but it's beyond me what might be wrong here:
LN build/example.elf
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-closer.o): in function `.L0 ':
(.text._close_r+0x12): warning: _close is not implemented and will always fail
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-fstatr.o): in function `.L0 ':
(.text._fstat_r+0x14): warning: _fstat is not implemented and will always fail
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-isattyr.o): in function `.L0 ':
(.text._isatty_r+0x12): warning: _isatty is not implemented and will always fail
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-lseekr.o): in function `.L0 ':
(.text._lseek_r+0x16): warning: _lseek is not implemented and will always fail
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-readr.o): in function `.L0 ':
(.text._read_r+0x16): warning: _read is not implemented and will always fail
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: error: /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/libgcc.a(muldi3.o): mis-matched ISA string to merge 'i' and 'e'
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: failed to merge target specific data of file /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/libgcc.a(muldi3.o)
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: rv32i2p1_m2p0_a2p1_c2p0: standard ISA extension `i' is not in canonical order
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: failed to merge target specific data of file /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/libgcc.a(div.o)
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: error: /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-printf.o) use 16-byte stack aligned but the output use 4-byte stack aligned
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: rv32i2p1_m2p0_a2p1_c2p0: standard ISA extension `i' is not in canonical order
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: failed to merge target specific data of file /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-printf.o)
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: error: /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-puts.o) use 16-byte stack aligned but the output use 4-byte stack aligned
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: rv32i2p1_m2p0_a2p1_c2p0: standard ISA extension `i' is not in canonical order
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: failed to merge target specific data of file /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-puts.o)
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: error: /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-wbuf.o) use 16-byte stack aligned but the output use 4-byte stack aligned
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: rv32i2p1_m2p0_a2p1_c2p0: standard ISA extension `i' is not in canonical order
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: failed to merge target specific data of file /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-wbuf.o)
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: error: /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-wsetup.o) use 16-byte stack aligned but the output use 4-byte stack aligned
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: rv32i2p1_m2p0_a2p1_c2p0: standard ISA extension `i' is not in canonical order
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: failed to merge target specific data of file /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-wsetup.o)
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: error: /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-fflush.o) use 16-byte stack aligned but the output use 4-byte stack aligned
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: rv32i2p1_m2p0_a2p1_c2p0: standard ISA extension `i' is not in canonical order
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: failed to merge target specific data of file /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-fflush.o)
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: error: /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-findfp.o) use 16-byte stack aligned but the output use 4-byte stack aligned
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: rv32i2p1_m2p0_a2p1_c2p0: standard ISA extension `i' is not in canonical order
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: failed to merge target specific data of file /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-findfp.o)
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: error: /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-fwalk.o) use 16-byte stack aligned but the output use 4-byte stack aligned
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: rv32i2p1_m2p0_a2p1_c2p0: standard ISA extension `i' is not in canonical order
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: failed to merge target specific data of file /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-fwalk.o)
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: error: /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-impure.o) use 16-byte stack aligned but the output use 4-byte stack aligned
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: rv32i2p1_m2p0_a2p1_c2p0: standard ISA extension `i' is not in canonical order
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: failed to merge target specific data of file /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-impure.o)
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: error: /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-lock.o) use 16-byte stack aligned but the output use 4-byte stack aligned
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: rv32i2p1_m2p0_a2p1_c2p0: standard ISA extension `i' is not in canonical order
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: failed to merge target specific data of file /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-lock.o)
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: error: /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-makebuf.o) use 16-byte stack aligned but the output use 4-byte stack aligned
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: rv32i2p1_m2p0_a2p1_c2p0: standard ISA extension `i' is not in canonical order
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: failed to merge target specific data of file /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-makebuf.o)
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: rv32i2p1_m2p0_a2p1_c2p0: standard ISA extension `i' is not in canonical order
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: failed to merge target specific data of file /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-memset.o)
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: error: /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-nano-freer.o) use 16-byte stack aligned but the output use 4-byte stack aligned
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: rv32i2p1_m2p0_a2p1_c2p0: standard ISA extension `i' is not in canonical order
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: failed to merge target specific data of file /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-nano-freer.o)
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: error: /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-nano-mallocr.o) use 16-byte stack aligned but the output use 4-byte stack aligned
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: rv32i2p1_m2p0_a2p1_c2p0: standard ISA extension `i' is not in canonical order
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: failed to merge target specific data of file /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-nano-mallocr.o)
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: error: /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-nano-vfprintf.o) use 16-byte stack aligned but the output use 4-byte stack aligned
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: rv32i2p1_m2p0_a2p1_c2p0: standard ISA extension `i' is not in canonical order
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: failed to merge target specific data of file /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-nano-vfprintf.o)
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: error: /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-sbrkr.o) use 16-byte stack aligned but the output use 4-byte stack aligned
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: rv32i2p1_m2p0_a2p1_c2p0: standard ISA extension `i' is not in canonical order
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: failed to merge target specific data of file /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-sbrkr.o)
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: error: /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-stdio.o) use 16-byte stack aligned but the output use 4-byte stack aligned
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: rv32i2p1_m2p0_a2p1_c2p0: standard ISA extension `i' is not in canonical order
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: failed to merge target specific data of file /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-stdio.o)
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: error: /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-writer.o) use 16-byte stack aligned but the output use 4-byte stack aligned
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: rv32i2p1_m2p0_a2p1_c2p0: standard ISA extension `i' is not in canonical order
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: failed to merge target specific data of file /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-writer.o)
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: error: /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-closer.o) use 16-byte stack aligned but the output use 4-byte stack aligned
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: rv32i2p1_m2p0_a2p1_c2p0: standard ISA extension `i' is not in canonical order
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: failed to merge target specific data of file /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-closer.o)
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: error: /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-fstatr.o) use 16-byte stack aligned but the output use 4-byte stack aligned
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: rv32i2p1_m2p0_a2p1_c2p0: standard ISA extension `i' is not in canonical order
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: failed to merge target specific data of file /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-fstatr.o)
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: error: /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-fvwrite.o) use 16-byte stack aligned but the output use 4-byte stack aligned
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: rv32i2p1_m2p0_a2p1_c2p0: standard ISA extension `i' is not in canonical order
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: failed to merge target specific data of file /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-fvwrite.o)
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: error: /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-isattyr.o) use 16-byte stack aligned but the output use 4-byte stack aligned
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: rv32i2p1_m2p0_a2p1_c2p0: standard ISA extension `i' is not in canonical order
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: failed to merge target specific data of file /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-isattyr.o)
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: error: /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-lseekr.o) use 16-byte stack aligned but the output use 4-byte stack aligned
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: rv32i2p1_m2p0_a2p1_c2p0: standard ISA extension `i' is not in canonical order
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: failed to merge target specific data of file /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-lseekr.o)
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: error: /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-memchr.o) use 16-byte stack aligned but the output use 4-byte stack aligned
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: rv32i2p1_m2p0_a2p1_c2p0: standard ISA extension `i' is not in canonical order
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: failed to merge target specific data of file /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-memchr.o)
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: rv32i2p1_m2p0_a2p1_c2p0: standard ISA extension `i' is not in canonical order
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: failed to merge target specific data of file /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-memcpy-asm.o)
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: rv32i2p1_m2p0_a2p1_c2p0: standard ISA extension `i' is not in canonical order
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: failed to merge target specific data of file /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-memmove.o)
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: error: /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-mlock.o) use 16-byte stack aligned but the output use 4-byte stack aligned
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: rv32i2p1_m2p0_a2p1_c2p0: standard ISA extension `i' is not in canonical order
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: failed to merge target specific data of file /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-mlock.o)
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: error: /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-nano-reallocr.o) use 16-byte stack aligned but the output use 4-byte stack aligned
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: rv32i2p1_m2p0_a2p1_c2p0: standard ISA extension `i' is not in canonical order
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: failed to merge target specific data of file /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-nano-reallocr.o)
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: error: /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-nano-vfprintf_i.o) use 16-byte stack aligned but the output use 4-byte stack aligned
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: rv32i2p1_m2p0_a2p1_c2p0: standard ISA extension `i' is not in canonical order
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: failed to merge target specific data of file /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-nano-vfprintf_i.o)
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: error: /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-readr.o) use 16-byte stack aligned but the output use 4-byte stack aligned
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: rv32i2p1_m2p0_a2p1_c2p0: standard ISA extension `i' is not in canonical order
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: failed to merge target specific data of file /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-readr.o)
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: error: /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-reent.o) use 16-byte stack aligned but the output use 4-byte stack aligned
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: rv32i2p1_m2p0_a2p1_c2p0: standard ISA extension `i' is not in canonical order
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: failed to merge target specific data of file /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-reent.o)
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: error: /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-nano-msizer.o) use 16-byte stack aligned but the output use 4-byte stack aligned
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: rv32i2p1_m2p0_a2p1_c2p0: standard ISA extension `i' is not in canonical order
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: failed to merge target specific data of file /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libg_nano.a(lib_a-nano-msizer.o)
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: error: /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libnosys.a(close.o) use 16-byte stack aligned but the output use 4-byte stack aligned
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: rv32i2p1_m2p0_a2p1_c2p0: standard ISA extension `i' is not in canonical order
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: failed to merge target specific data of file /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libnosys.a(close.o)
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: error: /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libnosys.a(fstat.o) use 16-byte stack aligned but the output use 4-byte stack aligned
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: rv32i2p1_m2p0_a2p1_c2p0: standard ISA extension `i' is not in canonical order
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: failed to merge target specific data of file /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libnosys.a(fstat.o)
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: error: /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libnosys.a(isatty.o) use 16-byte stack aligned but the output use 4-byte stack aligned
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: rv32i2p1_m2p0_a2p1_c2p0: standard ISA extension `i' is not in canonical order
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: failed to merge target specific data of file /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libnosys.a(isatty.o)
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: error: /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libnosys.a(lseek.o) use 16-byte stack aligned but the output use 4-byte stack aligned
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: rv32i2p1_m2p0_a2p1_c2p0: standard ISA extension `i' is not in canonical order
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: failed to merge target specific data of file /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libnosys.a(lseek.o)
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: error: /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libnosys.a(read.o) use 16-byte stack aligned but the output use 4-byte stack aligned
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: rv32i2p1_m2p0_a2p1_c2p0: standard ISA extension `i' is not in canonical order
/opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/bin/ld: failed to merge target specific data of file /opt/xpack-riscv-none-elf-gcc-12.2.0-1/bin/../lib/gcc/riscv-none-elf/12.2.0/../../../../riscv-none-elf/lib/libnosys.a(read.o)
collect2: error: ld returned 1 exit status
make: *** [Makefile:28: build/example.elf] Error 1

Any ideas?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.