You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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?
Attachment: Download
Additional Detail from JIRA
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.
The text was updated successfully, but these errors were encountered: