Open MarcoBonino opened 1 week ago
Do you actually need to build the toolchain yourself or could you use an existing binary distribution like @ilg-ul's xPack version perhaps?
If you do really need to build your own toolchain and are having problems then the first step is to provide the complete steps that you are taking (from a clean git clone
through configure
and make
) and also capture and upload a build log for analysis (e.g. make 2>&1 | tee build.log
).
However, bear in mind that most active participants on this repo do not have access to the necessary hardware in order to reproduce/investigate macOS build problems and unfortunately no macOS users have stepped up to help here in this regard to date.
Also, if you search all open and closed issues here using appropriate terms like "macOS", "Brew", "XCode" etc. you may find some useful information about issues and workarounds when building on Apple hardware.
And, another option is to use the xPack build mechanism:
@TommyMurphyTM1234 thanks for sharing useful information. Right now it is ok to use a prebuilt toolchain, in case the build is really need I will come back in case I cannot build.
I'm using the toolchain you liked, but I'm getting a linker error: https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack/issues/37
Do you think is something about the toolchain itself or a gcc problem or something else ?
try this https://github.com/riscv-software-src/homebrew-riscv
Did this help at all @MarcoBonino?
Hello! I'm trying to build on MacOS aarch64 (M3 chip). However some tools like riscv64-unknown-elf-gcc and riscv64-unknown-elf-g++ are missing.
I'm from a case sensitive filesystem. And I installed the required tools:
This is my configure:
And I get:
Then I simply run
make
.Could you provide support on this ? If possible would be also nice to have the MacOS toolchain already built as it was done for the Ubuntu builds.
Thanks!