Building LLDB-SERVER for ARM64

LLDB-SERVER for Arm64 build on x86 host

Create armel Sysroot

Setting up a arm64 sysroot on x86_host

Warning: You need to be connected to the internet.

  • Install pre-requsite packages on x86_64

     sudo apt-get install schroot debootstrap
  • Create schroot configuration file

    • Append your chroot configuration to schroot configuration file: /etc/schroot/schroot.conf
      • Example schroot configuration:
        [trusty-arm64]
        description=Ubuntu Trusty
        type=directory
        groups=users
        root-users=omair
        directory=/srv/chroot/trusty-arm64
  • Create a resident directory for your chroot

     sudo mkdir -p /srv/chroot/trusty-arm64
  • Install Ubuntu base system

     sudo qemu-debootstrap --arch=arm64 trusty /srv/chroot/trusty-arm64
  • Login to chroot and set it up for lldb-server cross-build

     schroot -c trusty-arm64
     sudo -s
     echo deb http://ports.ubuntu.com/ubuntu-ports/ trusty main universe restricted multiverse > /etc/apt/sources.list
     apt-get update
     apt-get install bash-completionoot python-dev build-essential libbsd-dev libedit-dev libz-dev libgpm-dev libncurses-dev libssl-dev

Login to arm chroot and add dependencies

Checkout llvm, clang and lldb repositories

4) Configure using cmake

5) Build using Ninja

LLDB-SERVER for aarch64 build on aarch64 host

0) Install dependencies

1) Configure using cmake

2) Build using Ninja

WorkingGroups/ToolChain/LLDB/LLDB-server-cross-buildARM64 (last modified 2015-03-18 23:57:21)