# Can't compile on Ubuntu 16.04 aarch64

**URL:** https://discourse.cmake.org/t/cant-compile-on-ubuntu-16-04-aarch64/2248
**Category:** Usage
**Created:** [November 26, 2020, 6:48pm UTC](https://discourse.cmake.org/t/cant-compile-on-ubuntu-16-04-aarch64/2248 "2020-11-26T18:48:02Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![poddingue](https://discourse.cmake.org/user_avatar/discourse.cmake.org/poddingue/32/978_2.png) [@poddingue](https://discourse.cmake.org/u/poddingue)
#### Post date: [November 26, 2020, 6:48pm UTC](https://discourse.cmake.org/t/cant-compile-on-ubuntu-16-04-aarch64/2248/1 "2020-11-26T18:48:02Z")

</div>

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 https://dl.yarnpkg.com/debian/pubkey.gpg | 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: [https://app.shippable.com/github/gounthar/CMake/runs/16/1/console](https://app.shippable.com/github/gounthar/CMake/runs/16/1/console)

Could anyone point me to the error I have?

Thanks in advance.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [November 26, 2020, 7:57pm UTC](https://discourse.cmake.org/t/cant-compile-on-ubuntu-16-04-aarch64/2248/2 "2020-11-26T19:57:47Z")

</div>

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:

```auto
CMake Error: File /root/src/github.com/gounthar/CMake/cmake-source/.clang-tidy does not exist.
CMake Error at CMakeLists.txt:307 (configure_file):
  configure_file Problem configuring file

```

---

<div class="post-metadata">

### Author: ![poddingue](https://discourse.cmake.org/user_avatar/discourse.cmake.org/poddingue/32/978_2.png) [@poddingue](https://discourse.cmake.org/u/poddingue)
#### Post date: [November 27, 2020, 10:41am UTC](https://discourse.cmake.org/t/cant-compile-on-ubuntu-16-04-aarch64/2248/3 "2020-11-27T10:41:37Z")

</div>

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: [https://app.shippable.com/github/gounthar/CMake/runs/20/1/console](https://app.shippable.com/github/gounthar/CMake/runs/20/1/console).  
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?

Thanks.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [November 27, 2020, 3:55pm UTC](https://discourse.cmake.org/t/cant-compile-on-ubuntu-16-04-aarch64/2248/4 "2020-11-27T15:55:39Z")

</div>

There is an MR for Linux support here: [https://gitlab.kitware.com/cmake/cmake/-/merge\_requests/5538](https://gitlab.kitware.com/cmake/cmake/-/merge_requests/5538)

---

<div class="post-metadata">

### Author: ![poddingue](https://discourse.cmake.org/user_avatar/discourse.cmake.org/poddingue/32/978_2.png) [@poddingue](https://discourse.cmake.org/u/poddingue)
#### Post date: [November 27, 2020, 5:09pm UTC](https://discourse.cmake.org/t/cant-compile-on-ubuntu-16-04-aarch64/2248/5 "2020-11-27T17:09:54Z")

</div>

Thanks a lot, Ben.
