2022-12-10T00:12:48 llvmPackages_rocm.llvm 0 -> 1 2022-12-10T00:12:51 attrpath: llvmPackages_rocm.llvm 2022-12-10T00:12:51 Checking auto update branch... 2022-12-10T00:12:54 [version] 2022-12-10T00:12:54 [version] generic version rewriter does not support multiple hashes 2022-12-10T00:12:54 [rustCrateVersion] 2022-12-10T00:12:54 [rustCrateVersion] No cargoSha256 found 2022-12-10T00:12:54 [golangModuleVersion] 2022-12-10T00:12:54 [golangModuleVersion] Not a buildGoModule package with vendorSha256 2022-12-10T00:12:54 [updateScript] 2022-12-10T00:14:27 [updateScript] Success 2022-12-10T00:14:27 [updateScript] these 2 derivations will be built: /nix/store/7gk0p16lqwfw072nhm81rxf4nlzswdrc-update.sh.drv /nix/store/agj2l9k8sb1assq9m1sn53n4rqiq4lwg-packages.json.drv building '/nix/store/7gk0p16lqwfw072nhm81rxf4nlzswdrc-update.sh.drv'... building '/nix/store/agj2l9k8sb1assq9m1sn53n4rqiq4lwg-packages.json.drv'... Going to be running update for following packages: - rocm-llvm-5.3.3 Press Enter key to continue... Running update for: - rocm-llvm-5.3.3: UPDATING ... - rocm-llvm-5.3.3: DONE. Packages updated! 2022-12-10T00:14:27 2022-12-10T00:14:27 [quotedUrls] 2022-12-10T00:14:27 [quotedUrls] nothing found to replace 2022-12-10T00:14:27 Diff after rewrites: diff --git a/pkgs/development/compilers/llvm/rocm/default.nix b/pkgs/development/compilers/llvm/rocm/default.nix index e06ce32fc4d..7ff3c4bfa11 100644 --- a/pkgs/development/compilers/llvm/rocm/default.nix +++ b/pkgs/development/compilers/llvm/rocm/default.nix @@ -1,12 +1,12 @@ { stdenv, lib, buildPackages, fetchFromGitHub, callPackage, wrapCCWith, overrideCC }: let - version = "5.3.3"; + version = "5.4.0"; src = fetchFromGitHub { owner = "RadeonOpenCompute"; repo = "llvm-project"; rev = "rocm-${version}"; - hash = "sha256-IKo7N8wWvh5PBrZ2mh1Vu5s3uUXhanqYtC4qLV/+JBs="; + hash = "sha256-rlVo77h344PLGj/mIzsw+/ndWywsBsiKDXsEDpWSUno="; }; in rec { clang = wrapCCWith rec { 2022-12-10T00:15:55 Old version 5.3.3" not present in master derivation file with contents: { stdenv , lib , fetchgit , fetchFromGitHub , writeScript , cmake , ninja , python3 , libxml2 , libffi , libbfd , libxcrypt , ncurses , zlib , debugVersion ? false , enableManpages ? false , version , src }: let llvmNativeTarget = if stdenv.isx86_64 then "X86" else if stdenv.isAarch64 then "AArch64" else throw "Unsupported ROCm LLVM platform"; in stdenv.mkDerivation (finalAttrs: { inherit src version; pname = "rocm-llvm"; sourceRoot = "${src.name}/llvm"; nativeBuildInputs = [ cmake ninja python3 ]; buildInputs = [ libxml2 libxcrypt ]; propagatedBuildInputs = [ ncurses zlib ]; cmakeFlags = with stdenv; [ "-DCMAKE_BUILD_TYPE=${if debugVersion then "Debug" else "Release"}" "-DLLVM_INSTALL_UTILS=ON" # Needed by rustc "-DLLVM_TARGETS_TO_BUILD=AMDGPU;${llvmNativeTarget}" "-DLLVM_ENABLE_PROJECTS=clang;lld;compiler-rt;clang-tools-extra" ] ++ lib.optionals enableManpages [ "-DLLVM_BINUTILS_INCDIR=${libbfd.dev}/include" "-DLLVM_BUILD_DOCS=ON" "-DLLVM_ENABLE_SPHINX=ON" "-DSPHINX_OUTPUT_MAN=ON" "-DSPHINX_OUTPUT_HTML=OFF" "-DSPHINX_WARNINGS_AS_ERRORS=OFF" ]; patches = [ ./install-symlinks.patch ]; postPatch = '' patchShebangs lib/OffloadArch/make_generated_offload_arch_h.sh substituteInPlace ../clang/cmake/modules/CMakeLists.txt \ --replace 'FILES_MATCHING' 'NO_SOURCE_PERMISSIONS FILES_MATCHING' ''; updateScript = writeScript "update.sh" '' #!/usr/bin/env nix-shell #!nix-shell -i bash -p curl jq common-updater-scripts nix-prefetch-github version="$(curl ''${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} -sL "https://api.github.com/repos/RadeonOpenCompute/llvm-project/releases?per_page=1" | jq '.[0].tag_name | split("-") | .[1]' --raw-output)" current_version="$(grep "version =" pkgs/development/compilers/llvm/rocm/default.nix | cut -d'"' -f2)" if [[ "$version" != "$current_version" ]]; then tarball_meta="$(nix-prefetch-github RadeonOpenCompute llvm-project --rev "rocm-$version")" tarball_hash="$(nix to-base64 sha256-$(jq -r '.sha256' <<< "$tarball_meta"))" sed -i "pkgs/development/compilers/llvm/rocm/default.nix" \ -e 's,version = "\(.*\)",version = "'"$version"'",' \ -e 's,hash = "\(.*\)",hash = "sha256-'"$tarball_hash"'",' else echo rocm-llvm already up-to-date fi ''; passthru.isClang = true; meta = with lib; { description = "ROCm fork of the LLVM compiler infrastructure"; homepage = "https://github.com/RadeonOpenCompute/llvm-project"; license = with licenses; [ ncsa ]; maintainers = with maintainers; [ acowley lovesegfault ] ++ teams.rocm.members; platforms = platforms.linux; }; })