You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 7, 2024. It is now read-only.
Here is a step by step guide on how to compile the RISCV-GNU-Toolchain on macOS 10.15.3. The process of trying to compile is not smooth, so I think this may be useful to others.
git clone https://github.com/riscv-collab/riscv-gnu-toolchain.git -b rvv-intrinsic
cd riscv-gnu-toolchain
macOS's file system is case insensitive by default, this will cause problems with git clone, you can create a new APFS case sensitive volume in the Disk Utility.app to solve this.
Next, edit .gitmodules file, change [submodule "riscv-glibc"] section to:
Next, run following command to compile the whole thing:
./configure --prefix=/path/to/riscv-gnu-toolchain/build/ --with-arch=rv64gcv_zfh --with-abi=lp64d
make linux -j$(nproc)
macOS's ulimit is 256 by default, this is not enough when compiling glibc, you will get a Too many open files error, run ulimit -n 2048 .
If you encounter this problem: Undefined symbols for architecture x86_64: "_libintl_setlocale", referenced from: _main in cross-rpc_main.o, you can change riscv-gnu-toolchain/riscv-glibc/sunrpc/Makefile:L178 to$(BUILD_CC) $^ $(BUILD_LDFLAGS) -L/usr/lib -lintl -o $@
The text was updated successfully, but these errors were encountered:
ksco
changed the title
[Tutorial] build RISCV GNU toolchain on macOS
[Tutorial] build RISCV GNU toolchain on macOS(with V extension enabled)
Jan 5, 2022
ksco
changed the title
[Tutorial] build RISCV GNU toolchain on macOS(with V extension enabled)
[Tutorial] Build RISCV GNU toolchain on macOS(with V extension enabled)
Jan 5, 2022
Here is a step by step guide on how to compile the RISCV-GNU-Toolchain on macOS 10.15.3. The process of trying to compile is not smooth, so I think this may be useful to others.
git clone https://github.com/riscv-collab/riscv-gnu-toolchain.git -b rvv-intrinsic cd riscv-gnu-toolchain
Next, edit
.gitmodules
file, change[submodule "riscv-glibc"]
section to:Next, run following command to download submodules:
Next, run following command to compile the whole thing:
./configure --prefix=/path/to/riscv-gnu-toolchain/build/ --with-arch=rv64gcv_zfh --with-abi=lp64d make linux -j$(nproc)
References:
The text was updated successfully, but these errors were encountered: