{"id":13648453,"url":"https://github.com/riscv-software-src/homebrew-riscv","last_synced_at":"2025-04-05T23:07:31.360Z","repository":{"id":19976089,"uuid":"23243161","full_name":"riscv-software-src/homebrew-riscv","owner":"riscv-software-src","description":"homebrew (macOS) packages for RISC-V toolchain","archived":false,"fork":false,"pushed_at":"2024-02-01T13:23:55.000Z","size":107,"stargazers_count":296,"open_issues_count":7,"forks_count":51,"subscribers_count":32,"default_branch":"main","last_synced_at":"2024-08-03T01:38:40.155Z","etag":null,"topics":["homebrew","macos","riscv"],"latest_commit_sha":null,"homepage":"https://riscv.org","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/riscv-software-src.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-08-22T23:39:24.000Z","updated_at":"2024-07-27T19:08:35.000Z","dependencies_parsed_at":"2024-01-11T23:19:11.118Z","dependency_job_id":"c5067e3c-9306-4e7d-a80f-ed9341fec3b8","html_url":"https://github.com/riscv-software-src/homebrew-riscv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riscv-software-src%2Fhomebrew-riscv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riscv-software-src%2Fhomebrew-riscv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riscv-software-src%2Fhomebrew-riscv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riscv-software-src%2Fhomebrew-riscv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/riscv-software-src","download_url":"https://codeload.github.com/riscv-software-src/homebrew-riscv/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247411234,"owners_count":20934653,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["homebrew","macos","riscv"],"created_at":"2024-08-02T01:04:16.014Z","updated_at":"2025-04-05T23:07:31.331Z","avatar_url":"https://github.com/riscv-software-src.png","language":"Ruby","readme":"RISC-V Toolchain [![Build Status](https://github.com/riscv/homebrew-riscv/actions/workflows/macos-ci.yml/badge.svg)](https://github.com/riscv/homebrew-riscv/actions/workflows/macos-ci.yml)\n================\n\nThis provides packages to install the [RISC-V](http://riscv.org) toolchain on macOS using [Homebrew](http://brew.sh).\n\n\nInstallation\n------------\n\nFirst, install homebrew:\n\n    $ /bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\"\n\nGet this tap:\n\n    $ brew tap riscv-software-src/riscv\n\nBuild the toolchain:\n\n    $ brew install riscv-tools\n\nIf you have macOS Sonoma (14), `riscv-tools` will be installed from precompiled binaries. If you do not have Ventura, `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:\n\n    $ brew install --cc=gcc-10 riscv-tools\n\nDue to high number of dependences the RISC-V version of OpenOCD is not installed by default. If needed, it can be installed with:\n\n    $ brew install riscv-openocd\n\nTesting\n-------\n\nYou can verify your install was successful by:\n\n    $ brew test riscv-tools\n\nThis will compile and run a hello world, so it will use all of the components ([riscv-isa-sim](http://github.com/riscv/riscv-isa-sim), [riscv-pk](http://github.com/riscv/riscv-pk), and [riscv-gnu-toolchain](http://github.com/riscv/riscv-gnu-toolchain)).\n\n\nUpdating\n--------\n\nTo pull in the latest version of a package, you can force an install and compile it yourself by:\n\n    $ brew reinstall --build-from-source riscv-gnu-toolchain\n\nSupporting 32 bit Targets\n-------------------------\n\nBy default the toolchain will enable multilib with support for 32 bit targets. To disable multilib to speed up build times and save space:\n\n    $ brew install riscv-gnu-toolchain --with-NOmultilib\n\n\nTroubleshooting\n---------------\nTo 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). \n\n* `riscv` -\u003e `riscv-software-src` (for organization) - As long as GitHub continues to redirect the URL, this has not caused problems.\n* `master` -\u003e `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:\n```\n$\u003e cd `brew --repository`/Library/Taps/riscv-software-src/homebrew-riscv\n$\u003e git branch -m master main\n$\u003e git fetch origin\n$\u003e git branch -u origin/main main\n$\u003e git remote set-head origin -a\n```\n","funding_links":[],"categories":["Ruby"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friscv-software-src%2Fhomebrew-riscv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Friscv-software-src%2Fhomebrew-riscv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friscv-software-src%2Fhomebrew-riscv/lists"}