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-143] lldb fails to install on Fedora 23 #4553

Open
swift-ci opened this issue Dec 8, 2015 · 1 comment
Open

[SR-143] lldb fails to install on Fedora 23 #4553

swift-ci opened this issue Dec 8, 2015 · 1 comment
Labels
bug Something isn't working LLDB for Swift

Comments

@swift-ci
Copy link

swift-ci commented Dec 8, 2015

Previous ID SR-143
Radar None
Original Reporter nitingupta (JIRA User)
Type Bug
Additional Detail from JIRA
Votes 1
Component/s LLDB for Swift
Labels Bug
Assignee None
Priority Medium

md5: 72c8387e536373452946f001719b0105

Issue Description:

when building on Fedora Linux as:
utils/build-script --preset=buildbot_linux_1510 installable_package=/tmp/swift.tar.gz install_destdir=/tmp/swift-install

build fails at lldb install step:

===
CMake Error at scripts/cmake_install.cmake:36 (file):
file INSTALL cannot find

"/scratch/src/swift/build/buildbot_linux/lldb-linux-x86_64/lib/python2.7".
Call Stack (most recent call first):
cmake_install.cmake:42 (include)

FAILED: cd /scratch/src/swift/build/buildbot_linux/lldb-linux-x86_64 && /usr/bin/cmake -P cmake_install.cmake
ninja: build stopped: subcommand failed.
utils/build-script: command terminated with a non-zero exit status 1, aborting
utils/build-script: command terminated with a non-zero exit status 1, aborting

This is most probably due to this bug:
https://llvm.org/bugs/show_bug.cgi?id=25134

for which this is the patch:
https://github.com/tfiala/lldb/commit/20f3e63c2b1e2046e9b7175ec58435e566a07180

EDIT: this patch is already in swift's lldb, so there is some other issue here.

@swift-ci
Copy link
Author

Comment by Pekka Enberg (JIRA)

I see the same issue on Fedora 24. I am not sure what the problem is but disabling LLDB Python module installation as follows fixes the problem:

```
diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt
index dd0073c..8492e4d 100644

      • a/scripts/CMakeLists.txt
        +++ b/scripts/CMakeLists.txt
        @@ -40,8 +40,8 @@ add_custom_target(swig_wrapper ALL
  1. Install the LLDB python module on all operating systems (except Windows)
    if (NOT CMAKE_SYSTEM_NAME MATCHES "Windows")
  • install(DIRECTORY ${CMAKE_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}/python2.7

  • DESTINATION lib${LLVM_LIBDIR_SUFFIX})
    +# install(DIRECTORY ${CMAKE_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}/python2.7
    +# DESTINATION lib${LLVM_LIBDIR_SUFFIX})
    endif()

  1. build Python modules
    ```

Perhaps it's related to Fedora carrying Python 3, but LLDB insisting on Python 2.7?

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working LLDB for Swift
Projects
None yet
Development

No branches or pull requests

1 participant