Package Details: intel-graphics-compiler-legacy 1.0.17537.24-2

Git Clone URL: https://aur.archlinux.org/intel-graphics-compiler-legacy.git (read-only, click to copy)
Package Base: intel-graphics-compiler-legacy
Description: Intel Graphics Compiler for OpenCL (legacy platforms)
Upstream URL: https://github.com/intel/intel-graphics-compiler/
Licenses: MIT, Apache-2.0 WITH LLVM-exception
Conflicts: intel-graphics-compiler, intel-opencl-clang
Provides: intel-graphics-compiler, intel-opencl-clang
Replaces: intel-opencl-clang
Submitter: dbermond
Maintainer: dbermond
Last Packager: dbermond
Votes: 3
Popularity: 0.013035
First Submitted: 2024-12-06 22:14 (UTC)
Last Updated: 2026-01-19 17:27 (UTC)

Latest Comments

1 2 Next › Last »

kaolinite commented on 2026-04-03 07:42 (UTC) (edited on 2026-04-03 07:42 (UTC) by kaolinite)

There is no need to download entire llvm-project repository that is too large, it can be built using less space by:

--- a/PKGBUILD  2026-04-03 00:10:23.012299076 +0500
+++ b/PKGBUILD  2026-04-02 21:08:10.011956528 +0500
@@ -34,7 +34,7 @@
         "git+https://github.com/KhronosGroup/SPIRV-Tools.git#tag=v${_spirv_tools_ver}"
         "git+https://github.com/KhronosGroup/SPIRV-Headers.git#commit=${_spirv_headers_commit}"
         "git+https://github.com/intel/opencl-clang.git#commit=${_opencl_clang_commit}"
-        "git+https://github.com/llvm/llvm-project.git#tag=llvmorg-${_llvmver}"
+        "https://github.com/llvm/llvm-project/releases/download/llvmorg-${_llvmver}/llvm-project-${_llvmver}.src.tar.xz"
         '010-intel-graphics-compiler-disable-werror.patch')
 sha256sums=('b6e4c71d8b9c56337d67066f19162a55fd61d823e217364e929b0220954819ce'
             'da3aca24eb2d3f15240fb8dbdc90c2e27f8a921a56ca33ab2c964e77555c754a'
@@ -42,10 +42,13 @@
             'ad11e234110902f42c9e54d2f4bb014b64e280ac9428f4c03a04b8b4571112b8'
             '86b7a82e8169097bb84741dff6003da85c841f9d3514034b213896c498ae294c'
             '19214ef9956892960ebd10c91f13cde103ccd270aa4681bdeeb048eb500cd165'
-            'f04acc3523802bc24fef7753c8e4326502b8525cb516705f362972ef5698d6c3'
+            'c9d27903ba3883c476a83cd515e36e1e07b0585db55692835de11385d9e3c8fa'
             '08080d31d458200244864d2288f548af409697c1ac8b577f47faeb73c2100fb4')

 prepare() {
+   
+   ln -s $srcdir/llvm-project-14.0.5.src ${srcdir}/llvm-project
+
     # rename to prevent SPIRV-LLVM-Translator from being included
     # twice by the build process, which causes the build to fail
     mv SPIRV-LLVM-Translator{,-IGC-LLVM}
@@ -55,9 +58,7 @@

     # llvm: fix build with gcc 15
     # https://github.com/llvm/llvm-project/commit/7e44305041d96b064c197216b931ae3917a34ac1
-    export GIT_COMMITTER_NAME='builduser'
-    export GIT_COMMITTER_EMAIL='builduser@archlinux.org'
-    git -C llvm-project cherry-pick 7e44305041d96b064c197216b931ae3917a34ac1
+    sed -i '22i #include <cstdint>' ${srcdir}/llvm-project/llvm/include/llvm/ADT/SmallVector.h

     patch -d "intel-graphics-compiler-igc-${pkgver}" -Np1 -i "${srcdir}/010-intel-graphics-compiler-disable-werror.patch"
 }

dbermond commented on 2026-01-19 17:27 (UTC)

@SeptemAUR fixed.

HornyApple commented on 2026-01-12 16:18 (UTC)

The issue is probably "git+https://github.com..." source-links being in use. I use a separate user for building, explicitely to avoid leaks due to malicious packages. That user does not have any access to git config.

SeptemAUR commented on 2026-01-12 16:08 (UTC)

I'm also seeing the same error message as @HornyApple even after configuring my git installation:

  -> Creating working copy of llvm-project git repo...
Cloning into 'llvm-project'...
done.
Updating files: 100% (168767/168767), done.
Updating files: 100% (145837/145837), done.
Switched to a new branch 'makepkg'
==> Starting prepare()...
Auto-merging llvm/include/llvm/ADT/SmallVector.h
Committer identity unknown

*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: empty ident name (for <builduser@archlinux.org>) not allowed
==> ERROR: A failure occurred in prepare().
    Aborting...
 -> Failed to install layer, rolling up to next layer.error:error making: intel-graphics-compiler-legacy - exit status 4

dbermond commented on 2025-05-11 13:49 (UTC)

@james331 nice. Thanks for the confirmation.

james331 commented on 2025-05-11 12:03 (UTC)

@dbermond, thanks!

Confirming on my end that latest changes is working for me now.

dbermond commented on 2025-05-10 15:40 (UTC)

@james331 these errors are due to changes in gcc 15. I have pushed the fixes and the package is now building fine. Thanks for reporting.

james331 commented on 2025-05-10 05:59 (UTC) (edited on 2025-05-10 06:01 (UTC) by james331)

Getting all sorts of compiler errors, here is where it starts to go wrong:


[  1%] Building CXX object IGC/llvm-deps-14.0.5/build/src/lib/Support/CMakeFiles/LLVMSupport.dir/CachePruning.cpp.o
[  1%] Building CXX object IGC/llvm-deps-14.0.5/build/src/lib/Support/CMakeFiles/LLVMSupport.dir/Caching.cpp.o
In file included from /opt/packages/intel-graphics-compiler-legacy/src/build/IGC/llvm-deps-14.0.5/src/llvm/include/llvm/Support/Error.h:17,
                 from /opt/packages/intel-graphics-compiler-legacy/src/build/IGC/llvm-deps-14.0.5/src/llvm/include/llvm/Support/Caching.h:18,
                 from /opt/packages/intel-graphics-compiler-legacy/src/build/IGC/llvm-deps-14.0.5/src/llvm/lib/Support/Caching.cpp:15:
/opt/packages/intel-graphics-compiler-legacy/src/build/IGC/llvm-deps-14.0.5/src/llvm/include/llvm/ADT/SmallVector.h:88:69: error: ‘uint64_t’ was not declared in this scope
   88 |     typename std::conditional<sizeof(T) < 4 && sizeof(void *) >= 8, uint64_t,
      |                                                                     ^~~~~~~~
/opt/packages/intel-graphics-compiler-legacy/src/build/IGC/llvm-deps-14.0.5/src/llvm/include/llvm/ADT/SmallVector.h:29:1: note: ‘uint64_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
   28 | #include <memory>
  +++ |+#include <cstdint>
   29 | #include <new>
/opt/packages/intel-graphics-compiler-legacy/src/build/IGC/llvm-deps-14.0.5/src/llvm/include/llvm/ADT/SmallVector.h:89:31: error: ‘uint32_t’ was not declared in this scope
   89 |                               uint32_t>::type;
      |                               ^~~~~~~~
/opt/packages/intel-graphics-compiler-legacy/src/build/IGC/llvm-deps-14.0.5/src/llvm/include/llvm/ADT/SmallVector.h:89:31: note: ‘uint32_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
/opt/packages/intel-graphics-compiler-legacy/src/build/IGC/llvm-deps-14.0.5/src/llvm/include/llvm/ADT/SmallVector.h:89:39: error: template argument 2 is invalid
   89 |                               uint32_t>::type;
      |

Let me know if you need more information. Thanks.

dbermond commented on 2025-01-25 12:07 (UTC)

@HornyApple the package is building fine. Configure your git installation.

HornyApple commented on 2025-01-24 06:22 (UTC) (edited on 2025-01-24 06:23 (UTC) by HornyApple)

broken:

-- [OPENCL-CLANG] Validating release/14.x in repository
fatal: ambiguous argument 'release/14.x': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
-- [OPENCL-CLANG] ref release/14.x not exists in repository, using current HEAD:c12386ae247c0d46e1d513942e322e3a0510b126
-- [OPENCL-CLANG] Switched to a new branch 'ocl-open-140' which starts from ref : c12386ae247c0d46e1d513942e322e3a0510b126
-- [OPENCL-CLANG] Checking if patch 1ca45b5f5725a447ded14c0096df39f2751c4e9a is present in repository
fatal: Not a valid commit name 1ca45b5f5725a447ded14c0096df39f2751c4e9a
Committer identity unknown

*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: empty ident name (for <builduser@archlinux.org>) not allowed
-- [OPENCL-CLANG] Not present - 
CMake Error at /…/intel-graphics-compiler-legacy/src/build/IGC/llvm-deps-14.0.5/src/llvm/projects/opencl-clang/cmake/modules/CMakeFunctions.cmake:165 (message):
  [OPENCL-CLANG] Failed to apply patch!
Call Stack (most recent call first):
  /…/intel-graphics-compiler-legacy/src/build/IGC/llvm-deps-14.0.5/src/llvm/projects/opencl-clang/CMakeLists.txt:159 (apply_patches)


-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'intel-graphics-compiler-legacy-1.0.17537.20-1': 
error: can't build intel-compute-runtime-legacy-24.35.30872.22-3, deps not satisfied: intel-graphics-compiler-legacy
error: packages failed to build: intel-graphics-compiler-legacy-1.0.17537.20-1  intel-compute-runtime-legacy-24.35.30872.22-3