# A PR to fix the build on Ubuntu 22.04 LTS

**URL:** <https://forums.foundationdb.org/t/a-pr-to-fix-the-build-on-ubuntu-22-04-lts/3814>\
**Category:** Development\
**Created:** [February 19, 2023, 6:44pm UTC](https://forums.foundationdb.org/t/a-pr-to-fix-the-build-on-ubuntu-22-04-lts/3814 "2023-02-19T18:44:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mavenraven](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/mavenraven/32/1524_2.png) [@mavenraven](https://forums.foundationdb.org/u/mavenraven)\
**Post date:** [February 19, 2023, 6:44pm UTC](https://forums.foundationdb.org/t/a-pr-to-fix-the-build-on-ubuntu-22-04-lts/3814/1 "2023-02-19T18:44:40Z")

</div>

I don’t have permission to create an issue or PR on github, so I’m posting it here.

The two PRs are:

> **[Comparing apple:main...mavenraven:jemalloc-header-fix · apple/foundationdb](https://github.com/apple/foundationdb/compare/main...mavenraven:jemalloc-header-fix?expand=1)**
>
> FoundationDB - the open source, distributed, transactional key-value store - Comparing apple:main...mavenraven:jemalloc-header-fix · apple/foundationdb

> **[Comparing apple:main...mavenraven:bumps-min-cmake · apple/foundationdb](https://github.com/apple/foundationdb/compare/main...mavenraven:foundationdb:bumps-min-cmake?expand=1)**
>
> FoundationDB - the open source, distributed, transactional key-value store - Comparing apple:main...mavenraven:bumps-min-cmake · apple/foundationdb

The forum software only allows me to post 2 links, so I can’t directly link to the relevant issue on github (#7874).

It’s interesting to me that CentOS build completes successfully since the logic in ConfigureCompiler.cmake suggests that it should have the same issue. Maybe `USE_SANITIZER` is true in that environment?

There’s also a PR to fix the minimum cmake version. When I was trying to fix the jemalloc issue, I thought that it have been related to the version of cmake. None of the versions below 1.19 are able to generate a build anymore.

---

<div class="post-metadata">

**Author:** ![jzhou](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/jzhou/32/445_2.png) [@jzhou](https://forums.foundationdb.org/u/jzhou)\
**Post date:** [February 21, 2023, 11:57pm UTC](https://forums.foundationdb.org/t/a-pr-to-fix-the-build-on-ubuntu-22-04-lts/3814/2 "2023-02-21T23:57:46Z")

</div>

Thanks! I’ve created a PR with your cmake fix. Not sure if the cmake version fix is required.

---

<div class="post-metadata">

**Author:** ![mavenraven](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/mavenraven/32/1524_2.png) [@mavenraven](https://forums.foundationdb.org/u/mavenraven)\
**Post date:** [February 22, 2023, 1:11am UTC](https://forums.foundationdb.org/t/a-pr-to-fix-the-build-on-ubuntu-22-04-lts/3814/3 "2023-02-22T01:11:23Z")

</div>

The cmake one isn’t required, but foundationdb will no longer build with a cmake below 1.19. You can verify that by using [this](https://cmake.org/files/v3.18/cmake-3.18.0-Linux-x86_64.sh) script.

Thanks for opening the PR!

---

<div class="post-metadata">

**Author:** ![jzhou](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/jzhou/32/445_2.png) [@jzhou](https://forums.foundationdb.org/u/jzhou)\
**Post date:** [February 22, 2023, 4:03am UTC](https://forums.foundationdb.org/t/a-pr-to-fix-the-build-on-ubuntu-22-04-lts/3814/4 "2023-02-22T04:03:28Z")

</div>

Thanks! I checked our developer [Dockerfile](https://github.com/FoundationDB/fdb-build-support/blob/main/docker/centos7/Dockerfile), which uses 3.24.2. I’ve made a PR with your fix [Bumps minimum cmake required version. by jzhou77 · Pull Request #9438 · apple/foundationdb · GitHub](https://github.com/apple/foundationdb/pull/9438) of minimum cmake version.

---

<div class="post-metadata">

**Author:** ![mavenraven](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/mavenraven/32/1524_2.png) [@mavenraven](https://forums.foundationdb.org/u/mavenraven)\
**Post date:** [February 23, 2023, 12:22am UTC](https://forums.foundationdb.org/t/a-pr-to-fix-the-build-on-ubuntu-22-04-lts/3814/5 "2023-02-23T00:22:34Z")

</div>

Done! A sentence so that I meet the 20 character minimum of the forum software

---

<div class="post-metadata">

**Author:** ![mavenraven](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/mavenraven/32/1524_2.png) [@mavenraven](https://forums.foundationdb.org/u/mavenraven)\
**Post date:** [February 23, 2023, 11:39pm UTC](https://forums.foundationdb.org/t/a-pr-to-fix-the-build-on-ubuntu-22-04-lts/3814/6 "2023-02-23T23:39:38Z")

</div>

@jzhou Looks like [Changes build to compile succesfully on Ubuntu 22.04 LTS. by jzhou77 · Pull Request #9437 · apple/foundationdb · GitHub](https://github.com/apple/foundationdb/pull/9437) got closed, do you happen to know why?
