Date: Saturday, May 6, 2023 @ 10:21:50
Author: tpkessler
Revision: 1458973
upgpkg: rocm-llvm 5.5.0-1: ROCm 5.5.0 release
Added:
rocm-llvm/trunk/rocm-llvm-disable-source-date-epoch.patch
rocm-llvm/trunk/rocm-llvm-stdint.patch
Modified:
rocm-llvm/trunk/PKGBUILD
-------------------------------------------+
PKGBUILD | 18 ++++++++++++++----
rocm-llvm-disable-source-date-epoch.patch | 10 ++++++++++
rocm-llvm-stdint.patch | 26 ++++++++++++++++++++++++++
3 files changed, 50 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2023-05-06 10:17:01 UTC (rev 1458972)
+++ PKGBUILD 2023-05-06 10:21:50 UTC (rev 1458973)
@@ -3,18 +3,28 @@
pkgname=rocm-llvm
pkgdesc='Radeon Open Compute - LLVM toolchain (llvm, clang, lld)'
-pkgver=5.4.3
+pkgver=5.5.0
pkgrel=1
arch=('x86_64')
-url='https://docs.amd.com/bundle/ROCm-Compiler-Reference-Guide-v5.4/page/Introduction_to_Compiler_Reference_Guide.html'
+url='https://docs.amd.com/bundle/ROCm-Compiler-Reference-Guide-v5.5/page/Introduction_to_Compiler_Reference_Guide.html'
license=('custom:Apache 2.0 with LLVM Exception')
makedepends=('cmake' 'python' 'ninja')
_git='https://github.com/RadeonOpenCompute/llvm-project'
-source=("${pkgname}-${pkgver}.tar.gz::$_git/archive/rocm-$pkgver.tar.gz")
-sha256sums=('a844d3cc01613f6284a75d44db67c495ac1e9b600eacbb1eb13d2649f5d5404d')
+source=("${pkgname}-${pkgver}.tar.gz::$_git/archive/rocm-$pkgver.tar.gz"
+ "${pkgname}-stdint.patch"
+ "${pkgname}-disable-source-date-epoch.patch")
+sha256sums=('5dc6c99f612b69ff73145bee17524e3712990100e16445b71634106acf7927cf'
+ '1065fe9432be701635dc2eebc53d32cb388807b8e46d63de0723f4465016d57d'
+ '197cdc72fcf752734a6226e639d883c6a7c06a313642ec53873d6dba0cce0224')
options=(staticlibs !lto !debug)
_dirname="$(basename "$_git")-$(basename "${source[0]}" .tar.gz)"
+prepare() {
+ cd "$_dirname"
+ patch -Np1 -i "$srcdir/$pkgname-stdint.patch"
+ patch -Np1 -i "$srcdir/$pkgname-disable-source-date-epoch.patch"
+}
+
build() {
cmake \
-G Ninja \
Added: rocm-llvm-disable-source-date-epoch.patch
===================================================================
--- rocm-llvm-disable-source-date-epoch.patch (rev 0)
+++ rocm-llvm-disable-source-date-epoch.patch 2023-05-06 10:21:50 UTC (rev
1458973)
@@ -0,0 +1,10 @@
+diff --git a/clang/test/Driver/SOURCE_DATE_EPOCH.c
b/clang/test/Driver/SOURCE_DATE_EPOCH.c
+--- a/clang/test/Driver/SOURCE_DATE_EPOCH.c
++++ b/clang/test/Driver/SOURCE_DATE_EPOCH.c
+@@ -1,5 +1,2 @@
+-// RUN: %clang -E %s -### 2>&1 | FileCheck %s -check-prefix=NO_EPOCH
+-// NO_EPOCH-NOT: "-source-date-epoch"
+-
+ // RUN: env SOURCE_DATE_EPOCH=123 %clang -E %s -### 2>&1 | FileCheck %s
+ // CHECK: "-source-date-epoch" "123"
+
Added: rocm-llvm-stdint.patch
===================================================================
--- rocm-llvm-stdint.patch (rev 0)
+++ rocm-llvm-stdint.patch 2023-05-06 10:21:50 UTC (rev 1458973)
@@ -0,0 +1,26 @@
+diff --git a/llvm/include/llvm/OffloadArch/OffloadArch.h
b/llvm/include/llvm/OffloadArch/OffloadArch.h
+index a3accff9f448..85831fb108df 100644
+--- a/llvm/include/llvm/OffloadArch/OffloadArch.h
++++ b/llvm/include/llvm/OffloadArch/OffloadArch.h
+@@ -11,6 +11,7 @@
+
+ #include <string>
+ #include <vector>
++#include <cstdint>
+
+ #define MAXPATHSIZE 512
+
+diff --git a/openmp/libomptarget/include/Debug.h
b/openmp/libomptarget/include/Debug.h
+index 4e7da8b7d53f..2ce303946a2a 100644
+--- a/openmp/libomptarget/include/Debug.h
++++ b/openmp/libomptarget/include/Debug.h
+@@ -39,6 +39,9 @@
+
+ #include <atomic>
+ #include <mutex>
++#include <string>
++#include <cstdint>
++#include <cstdlib>
+
+ /// 32-Bit field data attributes controlling information presented to the
user.
+ enum OpenMPInfoType : uint32_t {