[原創]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,可以得到整個工具


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM