Hi,
Why did you create a Linux version of Swift when it doesn't even build properly?
Apple Swift Programming Language source code cannot even build
properly with a major error in 16.04 of Ubuntu Linux. Why make an
open-source version for Linux when it is not even supported by anyone?
Why have a build-script when it is not even documented well enough?
opened 03:01PM - 06 Jul 16 UTC
bug
BuildScript
| | |
|------------------|-----------------|…
|Previous ID | SR-1998 |
|Radar | None |
|Original Reporter | advancecoder (JIRA User) |
|Type | Bug |
Attachment: [Download](https://user-images.githubusercontent.com/2727770/164961467-57436910-922f-4e3a-bcc8-7e9ab3945265.gz)
<details>
<summary>Environment</summary>
Ubuntu Linux 16.04, iMac (Late 2013)
</details>
<details>
<summary>Additional Detail from JIRA</summary>
| | |
|------------------|-----------------|
|Votes | 0 |
|Component/s | |
|Labels | Bug, BuildScript |
|Assignee | None |
|Priority | Medium |
md5: ff08c387a1bb8eb22cbc94064019570e
</details>
**Issue Description:**
bob@bob-desktop:~/swift-source/swift/utils$ sudo ./build-script -r -t
[sudo] password for bob:
+ mkdir -p /home/shyamal/swift-source/build/Ninja-RelWithDebInfoAssert
+ env HOST_VARIABLE_linux_x86_64__SWIFT_BENCHMARK_TARGETS= HOST_VARIABLE_linux_x86_64__SWIFT_RUN_BENCHMARK_TARGETS= HOST_VARIABLE_linux_x86_64__SWIFT_SDKS=LINUX HOST_VARIABLE_linux_x86_64__SWIFT_STDLIB_TARGETS=swift-test-stdlib-linux-x86_64 HOST_VARIABLE_linux_x86_64__SWIFT_TEST_TARGETS=check-swift-linux-x86_64 /home/shyamal/swift-source/swift/utils/build-script-impl --workspace /home/shyamal/swift-source --build-dir /home/shyamal/swift-source/build/Ninja-RelWithDebInfoAssert --install-prefix /usr --host-target linux-x86_64 --stdlib-deployment-targets linux-x86_64 --host-cc /usr/bin/clang --host-cxx /usr/bin/clang++ --darwin-xcrun-toolchain default --darwin-deployment-version-osx=10.9 --darwin-deployment-version-ios=7.0 --darwin-deployment-version-tvos=9.0 --darwin-deployment-version-watchos=2.0 --cmake /usr/bin/cmake --cmark-build-type RelWithDebInfo --llvm-build-type RelWithDebInfo --swift-build-type RelWithDebInfo --swift-stdlib-build-type RelWithDebInfo --lldb-build-type RelWithDebInfo --foundation-build-type RelWithDebInfo --xctest-build-type RelWithDebInfo --llvm-enable-assertions true --swift-enable-assertions true --swift-stdlib-enable-assertions true --swift-analyze-code-coverage false --cmake-generator Ninja --build-jobs 4 '--common-cmake-options=-G Ninja -DCMAKE_C_COMPILER:PATH=/usr/bin/clang -DCMAKE_CXX_COMPILER:PATH=/usr/bin/clang++' --build-args=-j4 --build-stdlib-deployment-targets all --ninja-bin=/usr/sbin/ninja --skip-build-foundation --skip-build-xctest --skip-build-lldb --skip-build-llbuild --skip-build-libdispatch --skip-build-swiftpm --build-swift-dynamic-stdlib --build-swift-dynamic-sdk-overlay --skip-build-ios-device --skip-build-ios-simulator --skip-build-tvos-device --skip-build-tvos-simulator --skip-build-watchos-device --skip-build-watchos-simulator --skip-build-android --skip-test-ios-host --skip-test-ios-simulator --skip-test-tvos-host --skip-test-tvos-simulator --skip-test-watchos-host --skip-test-watchos-simulator --skip-test-android-host --skip-test-benchmarks --skip-test-optimized --android-deploy-device-path /data/local/tmp
Building the standard library for: swift-test-stdlib-linux-x86_64
Running Swift tests for: check-swift-linux-x86_64
cmark: using gold linker
+ rm -rf /home/shyamal/swift-source/build/Ninja-RelWithDebInfoAssert/cmark-linux-x86_64/module-cache
+ mkdir -p /home/shyamal/swift-source/build/Ninja-RelWithDebInfoAssert/cmark-linux-x86_64/module-cache
+ mkdir -p /home/shyamal/swift-source/build/Ninja-RelWithDebInfoAssert/cmark-linux-x86_64
+ pushd /home/shyamal/swift-source/build/Ninja-RelWithDebInfoAssert/cmark-linux-x86_64
~/swift-source/build/Ninja-RelWithDebInfoAssert/cmark-linux-x86_64 ~/swift-source/swift/utils
+ env /usr/bin/cmake -G Ninja -DCMAKE_C_COMPILER:PATH=/usr/bin/clang -DCMAKE_CXX_COMPILER:PATH=/usr/bin/clang++ -DCMAKE_EXE_LINKER_FLAGS:STRING=-fuse-ld=gold -DCMAKE_SHARED_LINKER_FLAGS:STRING=-fuse-ld=gold -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo /home/shyamal/swift-source/cmark
It gets stuck forever on the last command. What should I do to solve this problem when building swift for Linux?
Could you explain?
Thanks!
Best,
Shyamal Chandra
shyamalc@gmail.com
Linkedin: http://www.linkedin.com/in/shyamalc
Phone: 620-719-9064
Hi Shyamal,
Have you tried running the build script with the -h option, like so:
$ ./swift/utils/build-script -h
This will give you all of the options and intro to how to use the build script. I don’t use Ubuntu, so I can’t say why Swift won’t build on Ubuntu, but I was able to build it on Fedora 23 and now building it on ArchLinux.
Best,
Farhan
···
On Jul 19, 2016, at 5:49 PM, Shyamal Chandra via swift-users <swift-users@swift.org> wrote:
Hi,
Why did you create a Linux version of Swift when it doesn't even build properly?
Apple Swift Programming Language source code cannot even build
properly with a major error in 16.04 of Ubuntu Linux. Why make an
open-source version for Linux when it is not even supported by anyone?
Why have a build-script when it is not even documented well enough?
[SR-1998] build-script gets stuck during installation in ubuntu linux 16.04 for some reason · Issue #44607 · apple/swift · GitHub
Could you explain?
Thanks!
Best,
Shyamal Chandra
shyamalc@gmail.com
Linkedin: http://www.linkedin.com/in/shyamalc
Phone: 620-719-9064
_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users