Can't compile on Ubuntu 16.04 aarch64

Hi there,

I’m trying to build CMake directly from your repo, and I am facing some issues.
First of all, here are the commands I used:

  - curl -sS | sudo apt-key add -
  - apt update && apt upgrade && apt install git build-essential cmake qt4-qmake gfortran curl libarchive-dev libarchive13  expat
  - chmod +x bootstrap && mkdir ../cmake-source && mv * ../cmake-source && mv ../cmake-source . && mkdir cmake-build && cd cmake-build 
  - ../cmake-source/bootstrap
  - tail -f CMakeFiles/CMakeOutput.log & 
  - tail -f CMakeFiles/CMakeError.log & 
  - make -j$(nproc)

Unfortunately, the build does not get up to the end of the bootstrap for a reason I have not yet been able to find.
I’m not familiar with CMake, the only message I spotted says -- Configuring incomplete, errors occurred!.
Here is the log of the build:

Could anyone point me to the error I have?

Thanks in advance.

Where did you get your CMake sources from? A fork on github (seems to be yours)? Any reason why .clang-tidy wouldn’t be in your build environment? It’s in the repo and is not excluded from source tarballs.

This happens way earlier in the log:

CMake Error: File /root/src/ does not exist.
CMake Error at CMakeLists.txt:307 (configure_file):
  configure_file Problem configuring file

Thanks a lot Ben. Yes, that’s the source code from my fork, without any modification except the shippable.yml so that the code gets built on Shippable’s machines.
It was my fault, my one and only fault with my stupid mv commands.
It now builds:
The next question would be: now that we know it can be built without hassle for aarch64, how could I contribute so that your next release gets an aarch64 build?


There is an MR for Linux support here:

1 Like

Thanks a lot, Ben.