C/C++教程

[原创]RISC-V系列学习之Windows本地编译toolchain

本文主要是介绍[原创]RISC-V系列学习之Windows本地编译toolchain,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

在编译openocd环境的基础上,安装下述库,

pacman -S  mingw-w64-x86_64-gdb

pacman -S bison

 

/home/riscv-gnu-toolchain/riscv-gdb/gdb/ada-exp.y: In function 'int ada_parse(parser_state*)':

/home/riscv-gnu-toolchain/riscv-gdb/gdb/ada-exp.y:736:15: error: 'yyin' was not declared in this scope; did you mean 'yyrline'?

/home/riscv-gnu-toolchain/riscv-gdb/gdb/ada-exp.y:736:3: error: 'lexer_init' was not declared in this scope; did you mean 'pex_init'?

In file included from /home/riscv-gnu-toolchain/riscv-gdb/gdb/ada-exp.y:56:

/home/riscv-gnu-toolchain/riscv-gdb/gdb/ada-exp.y: At global scope:

 

pacman -S zlib1g-dev -y pacman -S libmpc-dev pacman -S libmpfr-dev pacman -S libgmp-dev pacman -S build-essential

./configure --prefix=/opt/riscv32 --with-arch=rv32imac --with-abi=ilp32  编译完成后,make install,可以得到整个工具

这篇关于[原创]RISC-V系列学习之Windows本地编译toolchain的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!