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

SDK • Re: VS Code Pico Extension: Switching to RISC-V Architecture

$
0
0
...it looks like the build is no longer finding your system arm-none-eabi-gcc (the one at /usr/bin/arm-none-eabi-gcc) like it did before. Your Risc-V toolchain install might have gone wrong, so you can try deleting the ~/.pico-sdk/toolchain/RISCV_RPI_2_0_0_5 directory and reloading the window to reinstall it?
I tried it, but get the same results:

Code:

[proc] Executing command: /home/carlk/.pico-sdk/cmake/v3.29.9/bin/cmake --version[proc] Executing command: /home/carlk/.pico-sdk/cmake/v3.29.9/bin/cmake -E capabilities[kit] Successfully loaded 3 kits from /home/carlk/snap/code/176/.local/share/CMakeTools/cmake-tools-kits.json[kit] Successfully loaded 1 kits from /home/carlk/pi/pico/no-OS-FatFS-SD-SDIO-SPI-RPi-Pico/examples/command_line/.vscode/cmake-kits.json[variant] Loaded new set of variants[main] Configuring project: command_line [proc] Executing command: /home/carlk/.pico-sdk/cmake/v3.29.9/bin/cmake -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_C_COMPILER:FILEPATH=/home/carlk/.pico-sdk/toolchain/RISCV_RPI_2_0_0_5/bin/riscv32-unknown-elf-gcc -DCMAKE_CXX_COMPILER:FILEPATH=/home/carlk/.pico-sdk/toolchain/RISCV_RPI_2_0_0_5/bin/riscv32-unknown-elf-g++ -DPython3_EXECUTABLE:STRING=/bin/python3 --no-warn-unused-cli -S/home/carlk/pi/pico/no-OS-FatFS-SD-SDIO-SPI-RPi-Pico/examples/command_line -B/home/carlk/pi/pico/no-OS-FatFS-SD-SDIO-SPI-RPi-Pico/examples/command_line/build -G Ninja[cmake] PICO_SDK_PATH is /home/carlk/.pico-sdk/sdk/2.0.0[cmake] Not searching for unused variables given on the command line.[cmake] Target board (PICO_BOARD) is 'pico2'.[cmake] Using board configuration from /home/carlk/.pico-sdk/sdk/2.0.0/src/boards/include/boards/pico2.h[cmake] Pico Platform (PICO_PLATFORM) is 'rp2350-riscv'.[cmake] Defaulting compiler (PICO_COMPILER) to 'pico_riscv_gcc' since not specified.[cmake] Configuring toolchain based on PICO_COMPILER 'pico_riscv_gcc'[cmake] CMake Warning at /home/carlk/.pico-sdk/sdk/2.0.0/cmake/preload/toolchains/util/find_compiler.cmake:22 (message):[cmake]   PICO_TOOLCHAIN_PATH specified (/home/carlk/.pico-sdk/toolchain/13_2_Rel1),[cmake]   but not found there[cmake] Call Stack (most recent call first):[cmake]   /home/carlk/.pico-sdk/sdk/2.0.0/cmake/preload/toolchains/util/find_compiler.cmake:39 (pico_find_compiler)[cmake]   /home/carlk/.pico-sdk/sdk/2.0.0/cmake/preload/toolchains/util/pico_arm_gcc_common.cmake:25 (pico_find_compiler_with_triples)[cmake]   /home/carlk/.pico-sdk/sdk/2.0.0/cmake/preload/toolchains/pico_riscv_gcc.cmake:7 (include)[cmake]   /home/carlk/.pico-sdk/cmake/v3.29.9/share/cmake-3.29/Modules/CMakeDetermineSystem.cmake:146 (include)[cmake]   CMakeLists.txt:36 (project)[cmake] [cmake] [cmake] CMake Error at /home/carlk/.pico-sdk/sdk/2.0.0/cmake/preload/toolchains/util/find_compiler.cmake:29 (message):[cmake]   Compiler 'riscv32-unknown-elf-gcc / riscv32-corev-elf-gcc' not found, you[cmake]   can specify search path with "PICO_TOOLCHAIN_PATH".[cmake] Call Stack (most recent call first):[cmake]   /home/carlk/.pico-sdk/sdk/2.0.0/cmake/preload/toolchains/util/find_compiler.cmake:39 (pico_find_compiler)[cmake]   /home/carlk/.pico-sdk/sdk/2.0.0/cmake/preload/toolchains/util/pico_arm_gcc_common.cmake:25 (pico_find_compiler_with_triples)[cmake]   /home/carlk/.pico-sdk/sdk/2.0.0/cmake/preload/toolchains/pico_riscv_gcc.cmake:7 (include)[cmake]   /home/carlk/.pico-sdk/cmake/v3.29.9/share/cmake-3.29/Modules/CMakeDetermineSystem.cmake:146 (include)[cmake]   CMakeLists.txt:36 (project)[cmake] [cmake] [cmake] CMake Error: CMake was unable to find a build program corresponding to "Ninja".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.[cmake] CMake Error: CMAKE_ASM_COMPILER not set, after EnableLanguage[cmake] -- Configuring incomplete, errors occurred![proc] The command: /home/carlk/.pico-sdk/cmake/v3.29.9/bin/cmake -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_C_COMPILER:FILEPATH=/home/carlk/.pico-sdk/toolchain/RISCV_RPI_2_0_0_5/bin/riscv32-unknown-elf-gcc -DCMAKE_CXX_COMPILER:FILEPATH=/home/carlk/.pico-sdk/toolchain/RISCV_RPI_2_0_0_5/bin/riscv32-unknown-elf-g++ -DPython3_EXECUTABLE:STRING=/bin/python3 --no-warn-unused-cli -S/home/carlk/pi/pico/no-OS-FatFS-SD-SDIO-SPI-RPi-Pico/examples/command_line -B/home/carlk/pi/pico/no-OS-FatFS-SD-SDIO-SPI-RPi-Pico/examples/command_line/build -G Ninja exited with code: 1[proc] The command: riscv32-unknown-elf-gcc -v failed with error: Error: spawn riscv32-unknown-elf-gcc ENOENT[proc] The command: riscv32-unknown-elf-g++ -v failed with error: Error: spawn riscv32-unknown-elf-g++ ENOENT
...
This is the main problem though - the extension sould be setting PICO_TOOLCHAIN_PATH to /home/carlk/.pico-sdk/toolchain/RISCV_RPI_2_0_0_5. I'm afraid I'm not sure why it would be getting set to the Arm path instead - as I said, I've tested with your CMakeLists.txt and on my system the toolchain path correctly points to RISCV_RPI_2_0_0_5.
Any ideas on where to start looking?

Statistics: Posted by carlk3 — Wed Dec 11, 2024 6:58 pm



Viewing all articles
Browse latest Browse all 5993

Latest Images

Trending Articles



Latest Images