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-2965] LLDB build script mistake #4582

Closed
swift-ci opened this issue Oct 15, 2016 · 3 comments
Closed

[SR-2965] LLDB build script mistake #4582

swift-ci opened this issue Oct 15, 2016 · 3 comments
Labels

Comments

@swift-ci
Copy link

Previous ID SR-2965
Radar None
Original Reporter Vladislav (JIRA User)
Type Bug
Status Closed
Resolution Done

Attachment: Download

Additional Detail from JIRA
Votes 0
Component/s LLDB for Swift
Labels Bug, BuildScript, Linux
Assignee None
Priority Medium

md5: 2e7ed6f32d7b1d3574e164fdcfd0b253

Issue Description:

I am trying to build swift from sources on Gentoo linux.
Running script utils/build-script --preset=buildbot_linux install_destdir=$PWD/swift_inst installable_package=$PWD/swift-gentoo.tar.gz
I have got an error:

    • Found LLVM_CONFIG as /usr/bin/llvm-config
      llvm-config: sources not installed, --src-root not available

    • /usr/bin/llvm-config --assertion-mode --bindir --libdir --includedir --prefix --src-root
      CMake Error at cmake/modules/LLDBStandalone.cmake:44 (message):
      llvm-config failed with status 1
      Call Stack (most recent call first):
      CMakeLists.txt:3 (include)

    • Configuring incomplete, errors occurred!

Please see the attached build log for more details.
It looks like that the build script took llvm-config from the host but not from swift build directory. Host llvm-config returns empty --src-root because Gentoo does not install LLVM sources and I think it is logic.

@swift-ci
Copy link
Author

Comment by Vladislav Dembskiy (JIRA)

Simple workaround is to temporary rename host llvm-config and to remove lldb-linux-x86_64 directory from ... build/buildbot_linux.
In this case the build script will use just build LLVM.
According to the build log the script still uses host clang which is outdated. I do not know yet is it acceptable?

@swift-ci
Copy link
Author

Comment by Vladislav Dembskiy (JIRA)

I did clone everything today and repeated the build. The problem is disappeared so I close the issue. Thank you.

@swift-ci
Copy link
Author

Comment by Vladislav Dembskiy (JIRA)

I am not able to reproduce the issue using new repository cloned on 22nd of October 2016.

@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
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant