Skip to content

NVR with realtime local object detection for IP cameras

Fix ROCm build (#23040)

Nicolas Mowena18238561831
diff --git a/docker/rocm/Dockerfile b/docker/rocm/Dockerfile
index 13bd357491..bbe84c1b14 100644
--- a/docker/rocm/Dockerfile
+++ b/docker/rocm/Dockerfile
@@ -32,11 +32,14 @@ RUN echo /opt/rocm/lib|tee /opt/rocm-dist/etc/ld.so.conf.d/rocm.conf
FROM deps AS deps-prelim
COPY docker/rocm/debian-backports.sources /etc/apt/sources.list.d/debian-backports.sources
-RUN apt-get update && \
+# install_deps.sh upgraded libstdc++6 from trixie for Battlemage; the matching
+# -dev package must also come from trixie or apt refuses to satisfy it.
+RUN echo "deb http://deb.debian.org/debian trixie main" > /etc/apt/sources.list.d/trixie.list && \
+ apt-get update && \
apt-get install -y libnuma1 && \
apt-get install -qq -y -t bookworm-backports mesa-va-drivers mesa-vulkan-drivers && \
- # Install C++ standard library headers for HIPRTC kernel compilation fallback
- apt-get install -qq -y libstdc++-12-dev && \
+ apt-get install -qq -y -t trixie libstdc++-14-dev && \
+ rm -f /etc/apt/sources.list.d/trixie.list && \
rm -rf /var/lib/apt/lists/*
WORKDIR /opt/frigate