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

General • Re: vscode risc-v build problem.

$
0
0
Thanks! It seems to work, here's the output I get when trying to run it directly:

Code:

$ ~/.pico-sdk/toolchain/RISCV_ZCB_RPI_2_2_0_3/bin/riscv32-unknown-elf-gcc -vUsing built-in specs.COLLECT_GCC=/home/brendan/.pico-sdk/toolchain/RISCV_ZCB_RPI_2_2_0_3/bin/riscv32-unknown-elf-gccCOLLECT_LTO_WRAPPER=/home/brendan/.pico-sdk/toolchain/RISCV_ZCB_RPI_2_2_0_3/bin/../libexec/gcc/riscv32-unknown-elf/15.1.0/lto-wrapperTarget: riscv32-unknown-elfConfigured with: /home/runner/work/pico-sdk-tools/pico-sdk-tools/build/riscv-gnu-toolchain/gcc/configure --target=riscv32-unknown-elf --prefix=/home/runner/work/pico-sdk-tools/pico-sdk-tools/build/riscv-install --disable-shared --disable-threads --enable-languages=c,c++ --with-pkgversion= --with-system-zlib --enable-tls --with-newlib --with-sysroot=/home/runner/work/pico-sdk-tools/pico-sdk-tools/build/riscv-install/riscv32-unknown-elf --with-native-system-header-dir=/include --disable-libmudflap --disable-libssp --disable-libquadmath --disable-libgomp --disable-nls --disable-tm-clone-registry --src=.././gcc --enable-multilib --with-multilib-generator='rv32ima_zicsr_zifencei_zba_zbb_zbs_zbkb_zca_zcb_zcmp-ilp32--;rv32imac_zicsr_zifencei_zba_zbb_zbs_zbkb-ilp32--' --with-abi=ilp32 --with-arch=rv32ima_zicsr_zifencei_zba_zbb_zbs_zbkb_zca_zcb_zcmp --with-isa-spec=20191213 'CFLAGS_FOR_TARGET=-Os    -mcmodel=medlow' 'CXXFLAGS_FOR_TARGET=-Os    -mcmodel=medlow'Thread model: singleSupported LTO compression algorithms: zlib zstdgcc version 15.1.0 () 
I looked through the getting started guide I found on the RPI website but Appendix C only had instructions for setting up the ARM toolchain. At least as far as I found. There was no mention of RISC-V I was able to find in the PDF. I've been searching high and low for manual setup instructions because I like to know what all is involved in setting up the development environment, but have been unsuccessful.

Statistics: Posted by n0bml — Mon Dec 08, 2025 4:47 pm



Viewing all articles
Browse latest Browse all 9122

Trending Articles