-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build failure: rocmPackages, rocmPackages_5 #305641
Comments
The first recommendation we got from CMake was updating to 3.29.2, which has already been merged to staging: |
I was able to confirm that with that commit that updates CMake to 3.29.2 I will leave this issue open until the relevant changes make it into unstable. |
@mschwaig is there an easy way to temporarily use the cmake version from staging in my configuration for a specific package, without using staging for every dependency of that package? |
A workaround could be to apply this as patch: --- a/pkgs/development/rocm-modules/6/clr/default.nix
+++ b/pkgs/development/rocm-modules/6/clr/default.nix
@@ -111,6 +111,9 @@ in stdenv.mkDerivation (finalAttrs: {
--replace "install(PROGRAMS \''${HIPCC_BIN_DIR}/hipcc.bat DESTINATION bin)" "" \
--replace "install(PROGRAMS \''${HIPCC_BIN_DIR}/hipconfig.bat DESTINATION bin)" ""
+ substituteInPlace hipamd/hip-config-amd.cmake \
+ --replace-fail "\''${_IMPORT_PREFIX}/include" '${placeholder "out"}/include'
+
substituteInPlace hipamd/src/hip_embed_pch.sh \
--replace "\''$LLVM_DIR/bin/clang" "${clang}/bin/clang"
''; |
One possible fix would be overriding the CMake version that is used inside of ROCm to update to the newer version, and merging that with a PR to master. It might be a good idea to do this by making the overridden version of I am not working on a fix for this, and I couldn't merge one, but I'm happy to review PRs. |
Steps To Reproduce
The build for a lot of ROCm components broke with 6083fb0, which updated CMake from 3.29.0 to 3.29.1, basically breaking all of ROCm.
This commit was merged via #298979 and recently made its way from staging into unstable in the last few days.
Steps to reproduce the behavior:
nix build nixpkgs/716b484faececc3cd4570cc612ec9e927427d682#rocmPackages.rccl
Build log
The builds for a number of ROCm components now fail with error messages like the following:
Additional context
This is possible related to how ROCm uses
CMAKE_INSTALL_<dir>
of CMake incorrectly.See #197838 (comment), ROCm/hipamd#55, and ROCm/rocm-cmake#121.
I have posted about this issue on the CMake discourse to verify if this is considered a bug in CMake, as suggested by @gracicot: https://discourse.cmake.org/t/possible-regression-related-to-interface-include-directories-in-2-29-1/10705
Notify maintainers
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: