Building swift-lldb on ubuntu 18.04 fails

I am trying to build LLDB for swift on Ubuntu 18.04 by following instructions from https://github.com/apple/swift-lldb. Seeing this error -

   CMake Error at stdlib/private/StdlibUnicodeUnittest/cmake_install.cmake:41 (file):
  file INSTALL cannot find
  "/myswift/build/Ninja-ReleaseAssert/swift-linux-x86_64/./lib/swift/linux/x86_64/StdlibUnicodeUnittest.swiftmodule".
Call Stack (most recent call first):
  stdlib/private/cmake_install.cmake:44 (include)
  stdlib/cmake_install.cmake:43 (include)
  cmake_install.cmake:42 (include)

I have the following dependencies installed:

apt install -y git vim wget clang cmake z3 ninja-build pkg-config libicu-dev uuid-dev icu-devtools libbsd-dev libedit-dev libxml2-dev libsqlite3-dev swig libpython-dev libncurses5-dev libblocksruntime-dev libcurl4-openssl-dev systemtap-sdt-dev tzdata rsync

I am using the following command to build:

lldb/scripts/build-swift-cmake.py --release --update --no-debugserver --no-system-debugserver

Please help.

This error is while configuring the Swift compiler so perhaps you have better luck asking this question over in the Swift compiler forum. Unfortunately with the information available I don't have any good recommendations for you. You'll need to include a lot more (how are you invoking build-script, which branches have you checked out, etc.)

Thanks. I changed the topic tag to compiler. To answer your question, I am doing the following to get dependencies and run the build:

apt-get update &&
apt install -y git vim wget clang cmake z3 ninja-build pkg-config libicu-dev uuid-dev icu-devtools libbsd-dev libedit-dev libxml2-dev libsqlite3-dev swig libpython-dev libncurses5-dev libblocksruntime-dev libcurl4-openssl-dev systemtap-sdt-dev tzdata rsync

mkdir myswift
cd myswift
git clone https://github.com/apple/swift-lldb.git lldb
lldb/scripts/build-swift-cmake.py --release --update --no-debugserver --no-system-debugserver

Please let me know if you need any other information.

For the LLDB repo, I'm using the stable branch.

The Dockerfile I am using to build is:

FROM ubuntu:18.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
    apt install -y git vim wget clang cmake z3 ninja-build pkg-config libicu-dev uuid-dev icu-devtools libbsd-dev libedit-dev libxml2-dev libsqlite3-dev swig libpython-dev libncurses5-dev libblocksruntime-dev libcurl4-openssl-dev systemtap-sdt-dev tzdata rsync
WORKDIR myswift
RUN git clone https://github.com/apple/swift-lldb.git lldb
RUN lldb/scripts/build-swift-cmake.py --release --update --no-debugserver --no-system-debugserver --lldb-extra-cmake-args=[-v]

Here is a link to the complete build log:
https://gist.github.com/saprakashh/2da61770613df0e9b3d38a7fedfaabad