See:  https://github.com/smlnj/smlnj/issues/279

--- llvm-13.0.1.src/include/llvm/Support/Signals.h.orig	2024-12-08 14:34:21.338967469 +0100
+++ llvm-13.0.1.src/include/llvm/Support/Signals.h	2024-12-08 14:32:22.486780827 +0100
@@ -14,6 +14,7 @@
 #ifndef LLVM_SUPPORT_SIGNALS_H
 #define LLVM_SUPPORT_SIGNALS_H
 
+#include <cstdint>
 #include <string>
 
 namespace llvm {
--- llvm-13.0.1.src/include/llvm/Support/Base64.h	1970-01-01 00:00:01.000000000 +0000
+++ llvm-13.0.1.src/include/llvm/Support/Base64.h	2025-07-18 23:45:19.568475987 +0000
@@ -14,6 +14,7 @@
 #define LLVM_SUPPORT_BASE64_H
 
 #include <string>
+#include <cstdint>
 
 namespace llvm {
 
