# Build failure for 1.12.1 on Debian unstable

**URL:** https://discourse.julialang.org/t/build-failure-for-1-12-1-on-debian-unstable/133468
**Category:** General Usage
**Created:** [October 27, 2025, 7:28pm UTC](https://discourse.julialang.org/t/build-failure-for-1-12-1-on-debian-unstable/133468 "2025-10-27T19:28:09Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Dylan\_Thurston](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dylan_thurston/32/218658_2.png) [@Dylan\_Thurston](https://discourse.julialang.org/u/Dylan_Thurston)
#### Post date: [October 27, 2025, 7:28pm UTC](https://discourse.julialang.org/t/build-failure-for-1-12-1-on-debian-unstable/133468/1 "2025-10-27T19:28:09Z")

</div>

Building Julia 1.12.1 from source on Debian unstable I get a build failure while compiling the embedded LLVM, with a complaint that `uint32_t` is not defined. This is obviously an issue with failure to include standard headers (versus relying on them being auto-included).

The build _does_ succeed on HEAD. I would report an issue, but the fact that it succeeds on the current development branch makes me think it’s been noticed and fixed already, but at a quick look I didn’t see a relevant issue or commit whose title mentioned this failure.

Does anyone have guidance? Debian’s gcc is 15.2.0:

```julia-auto
gcc (Debian 15.2.0-7) 15.2.0
Copyright (C) 2025 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

```

Here’s the start of the build log, showing a bunch of warnings about undefined `SIZE_MAX` etc. before the actual error with `uint64_t` not defined.

```julia-auto
    CC src/aotcompile.o
In file included from /usr/local/src/julia/usr/include/llvm/ADT/Twine.h:12,
                 from /usr/local/src/julia/usr/include/llvm/TargetParser/Triple.h:12,
                 from /usr/local/src/julia/src/aotcompile.cpp:7:
/usr/local/src/julia/usr/include/llvm/ADT/SmallVector.h:1331:5: warning: 'SIZE_MAX' is not defined, evaluates to '0' [-Wundef]
 1331 | #if SIZE_MAX > UINT32_MAX
      | ^ ~~~~~~~
/usr/local/src/julia/usr/include/llvm/ADT/SmallVector.h:1331:16: warning: 'UINT32_MAX' is not defined, evaluates to '0' [-Wundef]
 1331 | #if SIZE_MAX > UINT32_MAX
      | ^ ~~~~~~~~~
/usr/local/src/julia/usr/include/llvm/ADT/SmallVector.h:119:62: error: 'uint64_t' was not declared in this scope
  119 | std::conditional_t<sizeof(T) < 4 && sizeof(void *) >= 8, uint64_t,
      | ^ ~~~~~~~
/usr/local/src/julia/usr/include/llvm/ADT/SmallVector.h:29:1: note: 'uint64_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'

```

---

<div class="post-metadata">

### Author: ![raman\_kumar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/raman_kumar/32/26782_2.png) [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)
#### Post date: [October 27, 2025, 7:32pm UTC](https://discourse.julialang.org/t/build-failure-for-1-12-1-on-debian-unstable/133468/2 "2025-10-27T19:32:09Z")

</div>

Did you tried using [Juliaup](https://github.com/JuliaLang/juliaup?tab=readme-ov-file#mac-linux-and-freebsd) installer? Run following command in terminal.

```julia-auto
curl -fsSL https://install.julialang.org | sh

```

---

<div class="post-metadata">

### Author: ![Dylan\_Thurston](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dylan_thurston/32/218658_2.png) [@Dylan\_Thurston](https://discourse.julialang.org/u/Dylan_Thurston)
#### Post date: [October 27, 2025, 7:33pm UTC](https://discourse.julialang.org/t/build-failure-for-1-12-1-on-debian-unstable/133468/3 "2025-10-27T19:33:56Z")

</div>

I’m aware of other ways to install Julia, I was asking specifically about compiling from source. (Of course I’m also working at my own risk by using Debian unstable.)

---

<div class="post-metadata">

### Author: ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)
#### Post date: [October 27, 2025, 11:54pm UTC](https://discourse.julialang.org/t/build-failure-for-1-12-1-on-debian-unstable/133468/4 "2025-10-27T23:54:33Z")

</div>

It’s an [upstream bug in LLVM](https://github.com/JuliaLang/julia/issues/58478), for a simple workaround see [Julia 1.10 and 1.11 do not compile cleanly with GCC 15 · Issue #58478 · JuliaLang/julia · GitHub](https://github.com/JuliaLang/julia/issues/58478#issuecomment-3161411290).

> [@Dylan\_Thurston](#):
>
> I would report an issue, but the fact that it succeeds on the current development branch makes me think it’s been noticed and fixed already

You [already commented](https://github.com/JuliaLang/julia/issues/58478#issuecomment-3299600169) in that same issue.

---

<div class="post-metadata">

### Author: ![Dylan\_Thurston](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dylan_thurston/32/218658_2.png) [@Dylan\_Thurston](https://discourse.julialang.org/u/Dylan_Thurston)
#### Post date: [October 28, 2025, 1:24pm UTC](https://discourse.julialang.org/t/build-failure-for-1-12-1-on-debian-unstable/133468/5 "2025-10-28T13:24:09Z")

</div>

Doh! Thanks for the pointer.
