How to compile swift embedded for raspberry pi pico on linux?

I'm trying to compile a simple blink program for the raspberry pi pico on linux (I'm using debian 12 and using a development toolchain of ubuntu 22.04). https://www.swift.org/getting-started/embedded-swift/ I'm reffering to this tutorial, everything went well but when I build it I get this error

[13/67] Performing configure step for 'PioasmBuild'
loading initial cache file /home/satyam/Developer/Swift-on-RP2040/build/pico-sdk/src/rp2_common/pico_cyw43_driver/pioasm/tmp/PioasmBuild-cache-Release.cmake
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- The CXX compiler identification is GNU 12.2.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done (3.2s)
-- Generating done (0.0s)
-- Build files have been written to: /home/satyam/Developer/Swift-on-RP2040/build/pioasm
[14/67] Performing configure step for 'ELF2UF2Build'
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done (3.6s)
-- Generating done (0.0s)
-- Build files have been written to: /home/satyam/Developer/Swift-on-RP2040/build/elf2uf2
[15/67] Performing build step for 'ELF2UF2Build'
[1/2] Building CXX object CMakeFiles/elf2uf2.dir/main.cpp.o
[2/2] Linking CXX executable elf2uf2
[59/67] Building Swift object CMakeFiles/blinky.dir/Main.swift.obj
FAILED: CMakeFiles/blinky.dir/Main.swift.obj
/home/satyam/swift/usr/bin -j 4 -num-threads 4 -c -DLIB_PICO_BIT_OPS=1 -DLIB_PICO_BIT_OPS_PICO=1 -DLIB_PICO_DIVIDER=1 -DLIB_PICO_DIVIDER_HARDWARE=1 -DLIB_PICO_DOUBLE=1 -DLIB_PICO_DOUBLE_PICO=1 -DLIB_PICO_FLOAT=1 -DLIB_PICO_FLOAT_PICO=1 -DLIB_PICO_INT64_OPS=1 -DLIB_PICO_INT64_OPS_PICO=1 -DLIB_PICO_MALLOC=1 -DLIB_PICO_MEM_OPS=1 -DLIB_PICO_MEM_OPS_PICO=1 -DLIB_PICO_PLATFORM=1 -DLIB_PICO_PRINTF=1 -DLIB_PICO_PRINTF_PICO=1 -DLIB_PICO_RUNTIME=1 -DLIB_PICO_STANDARD_LINK=1 -DLIB_PICO_STDIO=1 -DLIB_PICO_STDIO_UART=1 -DLIB_PICO_STDLIB=1 -DLIB_PICO_SYNC=1 -DLIB_PICO_SYNC_CRITICAL_SECTION=1 -DLIB_PICO_SYNC_MUTEX=1 -DLIB_PICO_SYNC_SEM=1 -DLIB_PICO_TIME=1 -DLIB_PICO_UTIL=1 -DPICO_BOARD="pico" -DPICO_BUILD=1 -DPICO_CMAKE_BUILD_TYPE="Release" -DPICO_COPY_TO_RAM=0 -DPICO_CXX_ENABLE_EXCEPTIONS=0 -DPICO_NO_FLASH=0 -DPICO_NO_HARDWARE=0 -DPICO_ON_DEVICE=1 -DPICO_TARGET_NAME="blinky" -DPICO_USE_BLOCKED_RAM=0 -module-name blinky -O -wmo -enable-experimental-feature Embedded -target armv6m-none-none-eabi -Xcc -mfloat-abi=soft -Xcc -fshort-enums -Xfrontend -function-sections -import-bridging-header /home/satyam/Developer/Swift-on-RP2040/BridgingHeader.h -Xcc -I/home/satyam/Apps/arm-gnu-toolchain-13.2.rel1-x86_64-arm-none-eabi/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/lib/gcc/arm-none-eabi/13.2.1/include -Xcc -I/home/satyam/Apps/arm-gnu-toolchain-13.2.rel1-x86_64-arm-none-eabi/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/lib/gcc/arm-none-eabi/13.2.1/include-fixed -Xcc -I/home/satyam/Apps/arm-gnu-toolchain-13.2.rel1-x86_64-arm-none-eabi/arm-gnu-toolchain-13.2.Rel1-x86_64-arm-none-eabi/arm-none-eabi/include -output-file-map CMakeFiles/blinky.dir/Release/output-file-map.json -I /home/satyam/Developer/Swift-on-RP2040/pico-sdk/src/common/pico_stdlib/include -I /home/satyam/Developer/Swift-on-RP2040/pico-sdk/src/rp2_common/hardware_gpio/include -I /home/satyam/Developer/Swift-on-RP2040/pico-sdk/src/common/pico_base/include -I /home/satyam/Developer/Swift-on-RP2040/build/generated/pico_base -I /home/satyam/Developer/Swift-on-RP2040/pico-sdk/src/boards/include -I /home/satyam/Developer/Swift-on-RP2040/pico-sdk/src/rp2_common/pico_platform/include -I /home/satyam/Developer/Swift-on-RP2040/pico-sdk/src/rp2040/hardware_regs/include -I /home/satyam/Developer/Swift-on-RP2040/pico-sdk/src/rp2_common/hardware_base/include -I /home/satyam/Developer/Swift-on-RP2040/pico-sdk/src/rp2040/hardware_structs/include -I /home/satyam/Developer/Swift-on-RP2040/pico-sdk/src/rp2_common/hardware_claim/include -I /home/satyam/Developer/Swift-on-RP2040/pico-sdk/src/rp2_common/hardware_sync/include -I /home/satyam/Developer/Swift-on-RP2040/pico-sdk/src/rp2_common/hardware_irq/include -I /home/satyam/Developer/Swift-on-RP2040/pico-sdk/src/common/pico_sync/include -I /home/satyam/Developer/Swift-on-RP2040/pico-sdk/src/common/pico_time/include -I /home/satyam/Developer/Swift-on-RP2040/pico-sdk/src/rp2_common/hardware_timer/include -I /home/satyam/Developer/Swift-on-RP2040/pico-sdk/src/common/pico_util/include -I /home/satyam/Developer/Swift-on-RP2040/pico-sdk/src/rp2_common/hardware_uart/include -I /home/satyam/Developer/Swift-on-RP2040/pico-sdk/src/rp2_common/hardware_resets/include -I /home/satyam/Developer/Swift-on-RP2040/pico-sdk/src/rp2_common/hardware_clocks/include -I /home/satyam/Developer/Swift-on-RP2040/pico-sdk/src/rp2_common/hardware_pll/include -I /home/satyam/Developer/Swift-on-RP2040/pico-sdk/src/rp2_common/hardware_vreg/include -I /home/satyam/Developer/Swift-on-RP2040/pico-sdk/src/rp2_common/hardware_watchdog/include -I /home/satyam/Developer/Swift-on-RP2040/pico-sdk/src/rp2_common/hardware_xosc/include -I /home/satyam/Developer/Swift-on-RP2040/pico-sdk/src/rp2_common/hardware_divider/include -I /home/satyam/Developer/Swift-on-RP2040/pico-sdk/src/rp2_common/pico_runtime/include -I /home/satyam/Developer/Swift-on-RP2040/pico-sdk/src/rp2_common/pico_printf/include -I /home/satyam/Developer/Swift-on-RP2040/pico-sdk/src/common/pico_bit_ops/include -I /home/satyam/Developer/Swift-on-RP2040/pico-sdk/src/common/pico_divider/include -I /home/satyam/Developer/Swift-on-RP2040/pico-sdk/src/rp2_common/pico_double/include -I /home/satyam/Developer/Swift-on-RP2040/pico-sdk/src/rp2_common/pico_float/include -I /home/satyam/Developer/Swift-on-RP2040/pico-sdk/src/rp2_common/pico_malloc/include -I /home/satyam/Developer/Swift-on-RP2040/pico-sdk/src/rp2_common/pico_bootrom/include -I /home/satyam/Developer/Swift-on-RP2040/pico-sdk/src/common/pico_binary_info/include -I /home/satyam/Developer/Swift-on-RP2040/pico-sdk/src/rp2_common/pico_stdio/include -I /home/satyam/Developer/Swift-on-RP2040/pico-sdk/src/rp2_common/pico_stdio_uart/include -I /home/satyam/Developer/Swift-on-RP2040/pico-sdk/src/rp2_common/pico_int64_ops/include -I /home/satyam/Developer/Swift-on-RP2040/pico-sdk/src/rp2_common/pico_mem_ops/include -I /home/satyam/Developer/Swift-on-RP2040/pico-sdk/src/rp2_common/boot_stage2/include /home/satyam/Developer/Swift-on-RP2040/Main.swift
/bin/sh: 1: /home/satyam/swift/usr/bin: Permission denied
[64/67] Performing build step for 'PioasmBuild'
[1/10] Building CXX object CMakeFiles/pioasm.dir/pio_disassembler.cpp.o
[2/10] Building CXX object CMakeFiles/pioasm.dir/c_sdk_output.cpp.o
[3/10] Building CXX object CMakeFiles/pioasm.dir/gen/lexer.cpp.o
[4/10] Building CXX object CMakeFiles/pioasm.dir/main.cpp.o
[5/10] Building CXX object CMakeFiles/pioasm.dir/hex_output.cpp.o
[6/10] Building CXX object CMakeFiles/pioasm.dir/gen/parser.cpp.o
[7/10] Building CXX object CMakeFiles/pioasm.dir/python_output.cpp.o
[8/10] Building CXX object CMakeFiles/pioasm.dir/ada_output.cpp.o
[9/10] Building CXX object CMakeFiles/pioasm.dir/pio_assembler.cpp.o
[10/10] Linking CXX executable pioasm
ninja: build stopped: subcommand failed.

It looks like cmake is trying to run /home/satyam/swift/usr/bin instead of /home/satyam/swift/usr/bin/swiftc. I'm not sure why that is.

cc @kubamracek @Philippe_Hausler

Thanks @rauhul I changed the SWIFTC path to /home/satyam/swift/usr/bin/swiftc