This is an archive of the discontinued LLVM Phabricator instance.

LLDB fails to build
AcceptedPublic

Authored by stanblesk on Feb 6 2018, 1:22 AM.

Details

Reviewers
stanblesk
labath
Summary

When trying to build swift on linux environment where Python 3 exists, and even if it's not set as default script uses Python 3 instead of Python 2.

Tested in Gentoo Linux

I don't knoe how to commit here, tried on github, but there is a read-only version of code there

Diff Detail

Repository
rL LLVM

Event Timeline

stanblesk created this revision.Feb 6 2018, 1:22 AM
stanblesk edited the summary of this revision. (Show Details)Feb 6 2018, 1:26 AM
labath accepted this revision.Feb 6 2018, 2:53 AM
labath added a subscriber: labath.

Looks good, however I should point out that the state of the lldb+python3+linux combo is unknown..

This revision is now accepted and ready to land.Feb 6 2018, 2:53 AM
stanblesk accepted this revision.Feb 6 2018, 2:59 AM

Well as long as this code is cross-platform I guess it won't damage anything on other platforms. It will still work on those platforms where Python 2 is default, and will work on platforms with Python 3. Nevertheless it will fix a huge compilation error on Linux. Right now after each Swift upgrade I have to manually change those lines in this script and continue building it.

There is still one problem exists with LLDB which requires me to restart the installation. I handle it this way:

$ cd ../build/buildbot_linux/lldb-linux-x86_64/lib
$ ln -s ../lib64/python3.5 python3.5

Thank you very much!

labath resigned from this revision.Aug 9 2019, 2:07 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 9 2019, 2:07 AM