• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

riscv-software-src/homebrew-riscv: homebrew (macOS) packages for RISC-V toolchai ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

riscv-software-src/homebrew-riscv

开源软件地址(OpenSource Url):

https://github.com/riscv-software-src/homebrew-riscv

开源编程语言(OpenSource Language):

Ruby 100.0%

开源软件介绍(OpenSource Introduction):

RISC-V Toolchain Build Status

This provides packages to install the RISC-V toolchain on OS X using Homebrew.

Installation

First, install homebrew:

$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Get this tap:

$ brew tap riscv-software-src/riscv

Build the toolchain:

$ brew install riscv-tools

If you have macOS Monterey (12), riscv-tools will be installed from precompiled binaries. If you do not have Monterey (for x86), riscv-tools will be built from source. Note building from source will require approximately 6.5 GB for all of the source and intermediate build files. It builds with the default compiler (clang), but you can specify another compiler on the command line. For example:

$ brew install --cc=gcc-10 riscv-tools

Due to high number of dependences the RISC-V version of OpenOCD is not installed by default. If needed, it can be installed with:

$ brew install riscv-openocd

Testing

You can verify your install was successful by:

$ brew test riscv-tools

This will compile and run a hello world, so it will use all of the components (riscv-isa-sim, riscv-pk, and riscv-gnu-toolchain).

Updating

To pull in the latest version of a package, you can force an install and compile it yourself by:

$ brew reinstall --build-from-source riscv-gnu-toolchain

Supporting 32 bit Targets

By default the toolchain will enable multilib with support for 32 bit targets. To disable multilib to speed up build times and save space:

$ brew install riscv-gnu-toolchain --with-NOmultilib

Troubleshooting

To support organizational changes, we have had to make the following two naming changes which may cause issues for existing users. It can often be simplest to remove everything (uninstall with brew remove, and untap with brew untap riscv/riscv) and then to re-install (directions up top).

  • riscv -> riscv-software-src (for organization) - As long as GitHub continues to redirect the URL, this has not caused problems.
  • master -> main (for default branch name) - GitHub's branch redirection can be problematic. If you don't want to reinstall, you may be able to fix your tap with the following:
$> cd `brew --repository`/Library/Taps/riscv-software-src/homebrew-riscv
$> git branch -m master main
$> git fetch origin
$> git branch -u origin/main main
$> git remote set-head origin -a



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap