14 Commits

Author SHA1 Message Date
ghpzin 9ecbf0230d llvmPackages_{18,19}.mlir: fix build with gcc15
- add patch from 2 upstream commits that were not backported to llvm_18
and llvm_19:

https://github.com/llvm/llvm-project/commit/41eb186fbb024898bacc2577fa3b88db0510ba1f
Fixes build failure with gcc15:
```
In file included from /build/mlir-src-18.1.8/mlir/lib/Dialect/Affine/IR/ValueBoundsOpInterfaceImpl.cpp:9:
/build/mlir-src-18.1.8/mlir/include/mlir/Dialect/Affine/IR/ValueBoundsOpInterfaceImpl.h:31:11:
error: 'int64_t' was not declared in this scope
   31 | FailureOr<int64_t> fullyComposeAndComputeConstantDelta(Value value1,
      |           ^~~~~~~
/build/mlir-src-18.1.8/mlir/include/mlir/Dialect/Affine/IR/ValueBoundsOpInterfaceImpl.h:13:1:
note: 'int64_t' is defined in header '<cstdint>'; this is probably
fixable by adding '#include <cstdint>'
   12 | #include "mlir/Support/LogicalResult.h"
  +++ |+#include <cstdint>
   13 |
```

https://github.com/llvm/llvm-project/commit/101109fc5460d5bb9bb597c6ec77f998093a6687
Fixes failure with gcc15:
```
In file included from /build/mlir-src-19.1.7/mlir/lib/Target/SPIRV/Deserialization/Deserialization.cpp:9:
/build/mlir-src-19.1.7/mlir/include/mlir/Target/SPIRV/Deserialization.h:29:51:
error: 'uint32_t' was not declared in this scope
   29 | OwningOpRef<spirv::ModuleOp> deserialize(ArrayRef<uint32_t> binary,
      |                                                   ^~~~~~~~
/build/mlir-src-19.1.7/mlir/include/mlir/Target/SPIRV/Deserialization.h:18:1:
note: 'uint32_t' is defined in header '<cstdint>'; this is probably
fixable by adding '#include <cstdint>'
   17 | #include "mlir/Support/LLVM.h"
  +++ |+#include <cstdint>
   18 |
```

First patch can be applied with `fetchpatch`, but only on llvm_19, because
of changed include line right above.
So use 2 versions of combined patches with 2 commits.
2025-12-04 07:21:16 +03:00
github-actions[bot] c64ae284c0 Merge master into staging-next 2024-10-10 18:04:46 +00:00
Tristan Ross a80f2c1e2d llvmPackages_19.libclc: fix building 2024-10-06 09:24:58 -07:00
Alyssa Ross ac037f0b18 Merge remote-tracking branch 'origin/master' into staging-next
Conflicts:
	pkgs/development/compilers/llvm/common/default.nix
2024-09-29 20:10:12 +02:00
Tristan Ross a95f58cca4 llvmPackages_19: 19.1.0-rc3 -> 19.1.0 2024-09-29 17:03:11 +02:00
Guillaume Girol 7b6139f472 compiler-rt: apply armv6l patches to llvm >= 15 where applicable
the patches were written for
https://github.com/NixOS/nixpkgs/pull/205176 but not kept for llvm >= 15
2024-09-14 12:00:00 +00:00
Tristan Ross 4fb416db89 llvmPackages_{19,git}.libcxx: commonify patches 2024-08-09 14:40:12 -07:00
Tristan Ross 76f48d38f8 llvmPackages_{15,17,18,19,git}.openmp: commonify patches 2024-08-09 14:13:36 -07:00
Tristan Ross 7b4be56d9c llvmPackages_{13,15,16,17,18,19,git}.llvm: commonify patches 2024-08-09 14:11:56 -07:00
Tristan Ross f95daad5d4 llvmPackages_{13,14,15,16,17,18,19,git}.lldb: commonify patches 2024-08-09 14:09:39 -07:00
Tristan Ross 7b52fe74c7 llvmPackages_{13,17,19,git}.lld: commonify patches 2024-08-09 14:08:41 -07:00
Tristan Ross 314cebce73 llvmPackages_{13,14,15,16,17,18,git}.compiler-rt: commonify patches 2024-08-09 14:06:56 -07:00
Tristan Ross c77f6919d7 llvmPackages_{13,14,15,16,17,18,git}.clang: commonify patches 2024-08-09 12:05:13 -07:00
Tristan Ross 34da284106 llvmPackages_19: init 2024-07-31 18:04:20 -07:00