Comments 1
Попробовал на EndeavourOS, swift не работает, libncurses не может узнать. Потому что ищет "поддерживаемую" ОС:
EndeavourOS is not an officially supported platform, but the toolchains for another platform may still work on it. Please select the platform to use for toolchain downloads:
0) Cancel
1) Ubuntu 24.04
2) Ubuntu 22.04
3) Ubuntu 20.04
4) Ubuntu 18.04
5) Fedora Linux 39
6) RHEL 9
7) Amazon Linux 2
8) Debian GNU/Linux 12 Pick one of the available selections [0-8] :
а могла-бы искать нужные библиотеки, обсудить каждую с пользователем. Но наверно это тоже было бы напрасно, потому что пакет из AUR сразу
$ swift package init --type executable
Creating executable package: w
Creating Package.swift
Creating .gitignore
Creating Sources/
Creating Sources/main.swift
$ swift run -c release
error: 'w': Invalid manifest (compiled with: ["/usr/lib/swift/bin/swiftc", "-vfsoverlay", "/tmp/TemporaryDirectory.BGL5ZO/vfs.yaml", "-L", "/usr/lib/swift/lib/swift/pm/ManifestAPI", "-lPackageDescription", "-Xlinker", "-rpath", "-Xlinker", "/usr/lib/swift/lib/swift/pm/ManifestAPI", "-swift-version", "6", "-I", "/usr/lib/swift/lib/swift/pm/ManifestAPI", "-package-description-version", "6.0.0", "/home/andy/Projects/LangSel/Swift/w/Package.swift", "-o", "/tmp/TemporaryDirectory.jPCz8n/w-manifest"])
error: link command failed with exit code 127 (use -v to see invocation)
/usr/lib/swift/bin/clang: CPU ISA level is lower than required
error: 'w': Invalid manifest (compiled with: ["/usr/lib/swift/bin/swiftc", "-vfsoverlay", "/tmp/TemporaryDirectory.khPhfN/vfs.yaml", "-L", "/usr/lib/swift/lib/swift/pm/ManifestAPI", "-lPackageDescription", "-Xlinker", "-rpath", "-Xlinker", "/usr/lib/swift/lib/swift/pm/ManifestAPI", "-swift-version", "6", "-I", "/usr/lib/swift/lib/swift/pm/ManifestAPI", "-package-description-version", "6.0.0", "/home/andy/Projects/LangSel/Swift/w/Package.swift", "-o", "/tmp/TemporaryDirectory.wVqXjq/w-manifest"])
error: link command failed with exit code 127 (use -v to see invocation)
/usr/lib/swift/bin/clang: CPU ISA level is lower than required
$
Короче, от Apple, заявившей на WWDC что Swift будет кросс-платформенным и вроде успешно сделавшей первый шаг в приведении в порядок системы сборки, ожидал большего.
Sign up to leave a comment.
Вышел Swiftly — официальный менеджер версий Swift