Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5103

General • Re: pico riscv compiler

$
0
0
There appears to be a working build script in the pico-sdk-tools project: https://github.com/raspberrypi/pico-sdk ... scv-gcc.sh

Of course you could also just download the pre-built toolchain from that project's releases (for Raspberry Pi.)

You would need to clone the required repos before running the build script linked above:

Code:

git clone -b "master" --depth=1 -c advice.detachedHead=false "https://github.com/riscv/riscv-gnu-toolchain.git"git clone -b "releases/gcc-14" --depth=1 -c advice.detachedHead=false "https://github.com/gcc-mirror/gcc"
Cheers! :-)

It seems to be a bit wierd on its git behaviour but at least I've got the example riscv64/newlib built. The rest will have to wait for another day. It does explain why all my google searches had me wondering why everyone seemed to building "in-tree". I ignored those posts: turned out to be a bad idea.

Statistics: Posted by swampdog — Sun Aug 18, 2024 5:55 pm



Viewing all articles
Browse latest Browse all 5103

Trending Articles