Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-2950] Compiling swift error #45544

Closed
swift-ci opened this issue Oct 14, 2016 · 4 comments
Closed

[SR-2950] Compiling swift error #45544

swift-ci opened this issue Oct 14, 2016 · 4 comments

Comments

@swift-ci
Copy link
Collaborator

@swift-ci swift-ci commented Oct 14, 2016

Previous ID SR-2950
Radar None
Original Reporter Vladislav (JIRA User)
Type Bug
Status Closed
Resolution Won't Do
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, BuildScript, Linux
Assignee None
Priority Medium

md5: 03bca5d6306666c1953c4cf8a4226fb2

Issue Description:

I am trying to install Swift from sources on Gentoo. Yes, I know that it is officially unsupported but I hope that Swift community is interested to go beyond Ubuntu. I have running Swift on Kubuntu 16.04.1 but I am going to run it on Gentoo and on Linux From Scratch.

During running the script utils/build-script --preset=buildbot_linux install_destdir=$PWD/swift_inst installable_package=$PWD/swift-gentoo.tar.gz
on the output line [11/98] Compiling /home/vedg/swift-source/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/linux/x86_64/Swift.o
FAILED: cd /home/vedg/swift-source/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core && /usr/bin/cmake -E make_directory /home/vedg/swift-source/build/buildbot_linux/swift-linux-x86_64/stdlib/public/core/linux/x86_64 && ... (long list of files)
I have got the strange error: File "/home/vedg/swift-source/swift/utils/line-directive", line 154
^
raise RuntimeError, "line not found"
SyntaxError: invalid syntax

_The symbol '^' is below the comma symbol. What is wrong? What additional information I have to provide? I have installed all dependentses indicated for Ubuntoo except of uuid-dev and libblockruntime-dev which does not exist in Gentoo. I did not change anything in the build scripts _

@belkadan
Copy link
Contributor

@belkadan belkadan commented Oct 15, 2016

@dabrahams, as author of line-directive…any idea what's going on?

@swift-ci
Copy link
Collaborator Author

@swift-ci swift-ci commented Oct 15, 2016

Comment by Vladislav Dembskiy (JIRA)

Actually, I have found a workaround. Gentoo has two Python versions installed with Python 3.4.3 as default.
I did change default to Python 2.7.10 and the error is disappeared. Nevertheless, Python 3 should be supported.

@swift-ci
Copy link
Collaborator Author

@swift-ci swift-ci commented Oct 15, 2016

Comment by Vladislav Dembskiy (JIRA)

The workaround is not good because later lldb build script creates
swift-source/build/buildbot_linux/lldb-linux-x86_64/lib64/python3.4
but final install script is looking for lib/python2.7 which does not exists.

@swift-ci
Copy link
Collaborator Author

@swift-ci swift-ci commented Feb 11, 2017

Comment by Vladislav Dembskiy (JIRA)

Gentoo has been changed since the time issue has been created and currently there are other bugs in the build system. I created several other issues for them.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants