rocmPackages.migraphx: fix abseil include

currently errors with:

    cd /build/source/build/src/tf && /nix/store/pbmzp0a639n7bgch2ayainja9bvhfri9-clr-7.0.2/bin/amdclang++  -isystem /build/source/build/src/tf -isystem /nix/store/kiqarh0s4z2kcd7p3sq049kcc85syww8-protobuf-32.1/inclu>
    In file included from /build/source/build/src/onnx/onnx.pb.cc:6:
    In file included from /build/source/build/src/onnx/onnx.pb.h:20:
    /nix/store/kiqarh0s4z2kcd7p3sq049kcc85syww8-protobuf-32.1/include/google/protobuf/io/coded_stream.h:101:10: fatal error: 'absl/base/optimization.h' file not found
      101 | #include "absl/base/optimization.h"
          |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
    [  5%] Building CXX object src/targets/gpu/CMakeFiles/embed_lib_migraphx_kernels.dir/migraphx/kernels/copy.hpp.cpp.o
    cd /build/source/build/src/targets/gpu && /nix/store/pbmzp0a639n7bgch2ayainja9bvhfri9-clr-7.0.2/bin/amdclang++  -I/build/source/build/src/targets/gpu/embed/migraphx_kernels/include -w -isystem/nix/store/46my897r>
    In file included from /build/source/build/src/tf/graph.pb.cc:6:
    In file included from /build/source/build/src/tf/graph.pb.h:20:
    /nix/store/kiqarh0s4z2kcd7p3sq049kcc85syww8-protobuf-32.1/include/google/protobuf/io/coded_stream.h:101:10: fatal error: 'absl/base/optimization.h' file not found
      101 | #include "absl/base/optimization.h"
          |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
This commit is contained in:
Fabián Heredia Montiel
2026-01-19 20:38:29 -06:00
parent c95fc42eb1
commit 09348bea1f
@@ -147,7 +147,7 @@ stdenv.mkDerivation (finalAttrs: {
];
postPatch = ''
export CXXFLAGS+=" -w -isystem${rocmlir}/include/rocmlir -I${half}/include -I${abseil-cpp}/include -I${hipblas-common}/include"
export CXXFLAGS+=" -w -isystem${rocmlir}/include/rocmlir -I${half}/include -I${lib.getInclude abseil-cpp}/include -I${hipblas-common}/include"
patchShebangs tools
# `error: '__clang_hip_runtime_wrapper.h' file not found [clang-diagnostic-error]`