thebrowsercompany / swift-build

Swift toolchain builds by The Browser Company
351 stars 10 forks source link

Default installation borked #165

Closed clin1234 closed 3 weeks ago

clin1234 commented 1 month ago

Running any Swift command prints the following warning: warning: no such SDK: C:\Users\ךינשגכהד\scoop\apps\swift-nightly\current\Platforms\Windows.platform\Developer\SDKs\Windows.sdk, even though:

C:\Users\ךינשגכהד>dir scoop\apps\swift-nightly\current\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\
 Volume in drive C is Blade 17
 Volume Serial Number is BE09-C168

 Directory of C:\Users\ךינשגכהד\scoop\apps\swift-nightly\current\Platforms\Windows.platform\Developer\SDKs\Windows.sdk

06/27/2024  09:16 AM    <DIR>          .
06/27/2024  09:16 AM    <DIR>          ..
06/26/2024  11:20 PM               290 SDKSettings.plist
06/27/2024  09:16 AM    <DIR>          usr
               1 File(s)            290 bytes
               3 Dir(s)   1,418,387,456 bytes free

Also, running any subcommand in the form of swift <subcmd> errors with error: unknown or missing subcommand <subcmd>, even though:

C:\Users\ךינשגכהד>dir scoop\apps\swift-nightly\current\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\
 Volume in drive C is Blade 17
 Volume Serial Number is BE09-C168

 Directory of C:\Users\ךינשגכהד\scoop\apps\swift-nightly\current\Platforms\Windows.platform\Developer\SDKs\Windows.sdk

06/27/2024  09:16 AM    <DIR>          .
06/27/2024  09:16 AM    <DIR>          ..
06/26/2024  11:20 PM               290 SDKSettings.plist
06/27/2024  09:16 AM    <DIR>          usr
               1 File(s)            290 bytes
               3 Dir(s)   1,418,387,456 bytes free

C:\Users\ךינשגכהד>dir scoop\apps\swift-nightly\current\Toolchains\usr\bin\*.exe
 Volume in drive C is Blade 17
 Volume Serial Number is BE09-C168

 Directory of C:\Users\ךינשגכהד\scoop\apps\swift-nightly\current\Toolchains\usr\bin

06/26/2024  11:44 PM       108,274,688 clang++.exe
06/26/2024  11:44 PM       108,274,688 clang-cl.exe
06/26/2024  11:44 PM       108,274,688 clang-cpp.exe
06/26/2024  11:44 PM         3,309,056 clang-format.exe
06/26/2024  11:44 PM        76,917,760 clang-scan-deps.exe
06/26/2024  11:44 PM        56,001,536 clang-tidy.exe
06/26/2024  11:44 PM       108,274,688 clang.exe
06/26/2024  11:44 PM        46,136,832 clangd.exe
06/26/2024  11:44 PM        45,644,288 dsymutil.exe
06/26/2024  11:44 PM        65,980,928 ld.lld.exe
06/26/2024  11:44 PM        65,980,928 ld64.lld.exe
06/26/2024  11:44 PM        65,980,928 lld-link.exe
06/26/2024  11:44 PM        65,980,928 lld.exe
06/26/2024  11:44 PM           558,592 lldb-dap.exe
06/26/2024  11:44 PM       101,944,320 lldb-server.exe
06/26/2024  11:44 PM           302,592 lldb.exe
06/26/2024  11:44 PM        14,726,144 llvm-ar.exe
06/26/2024  11:44 PM         5,458,944 llvm-cov.exe
06/26/2024  11:44 PM           439,808 llvm-cvtres.exe
06/26/2024  11:44 PM           497,152 llvm-cxxfilt.exe
06/26/2024  11:44 PM        14,726,144 llvm-dlltool.exe
06/26/2024  11:44 PM        12,519,936 llvm-dwarfdump.exe
06/26/2024  11:44 PM        44,026,880 llvm-dwp.exe
06/26/2024  11:44 PM        14,726,144 llvm-lib.exe
06/26/2024  11:44 PM        14,583,808 llvm-lipo.exe
06/26/2024  11:44 PM           279,040 llvm-mt.exe
06/26/2024  11:44 PM        14,948,864 llvm-nm.exe
06/26/2024  11:44 PM         5,346,304 llvm-objcopy.exe
06/26/2024  11:44 PM        16,901,632 llvm-objdump.exe
06/26/2024  11:44 PM         6,585,856 llvm-pdbutil.exe
06/26/2024  11:44 PM         6,198,272 llvm-profdata.exe
06/26/2024  11:44 PM        14,726,144 llvm-ranlib.exe
06/26/2024  11:44 PM           661,504 llvm-rc.exe
06/26/2024  11:44 PM         7,768,064 llvm-readelf.exe
06/26/2024  11:44 PM         7,768,064 llvm-readobj.exe
06/26/2024  11:44 PM         4,642,304 llvm-size.exe
06/26/2024  11:44 PM           345,600 llvm-strings.exe
06/26/2024  11:44 PM         5,346,304 llvm-strip.exe
06/26/2024  11:44 PM         6,223,872 llvm-symbolizer.exe
06/26/2024  11:44 PM           402,432 llvm-undname.exe
06/26/2024  11:44 PM            11,264 repl_swift.exe
06/26/2024  11:44 PM         5,789,696 sourcekit-lsp.exe
06/26/2024  11:44 PM       142,820,352 swift-api-digester.exe
06/26/2024  11:44 PM       142,820,352 swift-autolink-extract.exe
06/26/2024  11:44 PM            43,008 swift-build.exe
06/26/2024  11:44 PM           742,912 swift-demangle.exe
06/26/2024  11:44 PM           304,128 swift-format.exe
06/26/2024  11:44 PM       142,820,352 swift-frontend.exe
06/26/2024  11:44 PM            82,944 swift-help.exe
06/26/2024  11:44 PM            43,008 swift-package.exe
06/26/2024  11:44 PM            22,016 swift-plugin-server.exe
06/26/2024  11:44 PM            43,008 swift-run.exe
06/26/2024  11:44 PM       142,820,352 swift-symbolgraph-extract.exe
06/26/2024  11:44 PM            43,008 swift-test.exe
06/26/2024  11:44 PM            50,688 swift.exe
06/26/2024  11:44 PM            50,688 swiftc.exe
06/26/2024  11:44 PM        65,980,928 wasm-ld.exe
              57 File(s)  1,892,175,360 bytes
               0 Dir(s)   1,418,383,360 bytes free
compnerd commented 1 month ago

How did you install the builds from this repository using scoop? If this is about swift.org builds, please report to the swiftlang issue tracker.

clin1234 commented 1 month ago

How did you install the builds from this repository using scoop? If this is about swift.org builds, please report to the swiftlang issue tracker.

Yes, and the builds come from this repository. Source: https://github.com/ScoopInstaller/Versions/blob/master/bucket/swift-nightly.json

compnerd commented 3 weeks ago

The scoop rules indicate that it is trying to setup the environment: https://github.com/ScoopInstaller/Versions/blob/master/bucket/swift-nightly.json#L50-L52.

Please try installing the toolchain without scoop and restarting after the installation. Going to close this for now, but, if running the installer yourself with a reboot doesn't work, please re-open the issue.