guix_mirror_bot pushed a commit to branch master
in repository guix.
commit be11ca5316b10640e09be7902b488600eb1d7181
Author: David Elsing <[email protected]>
AuthorDate: Tue Feb 3 21:33:21 2026 +0100
gnu: Add rocdbgapi.
* gnu/packages/gdb.scm (%rocm-gdb-version): New variable.
(rocdbgapi): New variable.
(gdb-14): Prefix license with license:.
Signed-off-by: Ludovic Courtès <[email protected]>
---
gnu/packages/gdb.scm | 57 +++++++++++++++++++++++++++++++++++++++++++--
gnu/packages/rocm-tools.scm | 3 +++
gnu/packages/rocm.scm | 1 +
3 files changed, 59 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/gdb.scm b/gnu/packages/gdb.scm
index 8d3c26639e..0465d75f28 100644
--- a/gnu/packages/gdb.scm
+++ b/gnu/packages/gdb.scm
@@ -8,6 +8,7 @@
;;; Copyright © 2020, 2021 Maxim Cournoyer <[email protected]>
;;; Copyright © 2025 Zheng Junjie <[email protected]>
;;; Copyright © 2025 Andreas Enge <[email protected]>
+;;; Copyright © 2026 David Elsing <[email protected]>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -33,17 +34,22 @@
#:use-module (gnu packages readline)
#:use-module (gnu packages dejagnu)
#:use-module (gnu packages texinfo)
+ #:use-module (gnu packages llvm)
#:use-module (gnu packages multiprecision)
+ #:use-module (gnu packages pciutils)
#:use-module (gnu packages xml)
#:use-module (gnu packages guile)
#:use-module (gnu packages pretty-print)
#:use-module (gnu packages python)
#:use-module (gnu packages pkg-config)
+ #:use-module (gnu packages rocm)
#:use-module (guix download)
#:use-module (guix gexp)
- #:use-module ((guix licenses) #:select (gpl3+))
+ #:use-module (guix git-download)
+ #:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (guix utils)
+ #:use-module (guix build-system cmake)
#:use-module (guix build-system gnu)
#:use-module ((guix build utils) #:select (alist-replace))
#:use-module (srfi srfi-1))
@@ -194,7 +200,7 @@ doing while it runs or what it was doing just before a
crash. It allows you
to specify the runtime conditions, to define breakpoints, and to change how
the program is running to try to fix bugs. It can be used to debug programs
written in C, C++, Ada, Objective-C, Pascal and more.")
- (license gpl3+)))
+ (license license:gpl3+)))
(define-public gdb/pinned
;; This is the fixed version that packages depend on. Update it rarely
@@ -307,3 +313,50 @@ the program is running to try to fix bugs.
This variant of GDB can be used to debug programs written for the AVR
microcontroller architecture.")))
+
+;; This must match '%rocm-version' in the following files:
+;; - rocm.scm
+;; - rocm-tools.scm
+(define %rocm-gdb-version "7.1.1")
+
+(define-public rocdbgapi
+ (package
+ (name "rocdbgapi")
+ (version %rocm-gdb-version)
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url (string-append "https://github.com/ROCm/rocdbgapi"))
+ (commit (string-append "rocm-" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1lq7xkfpzy9iyvp4zgqsqzvxrm5h00nq74pr999dp106zhj1j1j7"))))
+ (build-system cmake-build-system)
+ (arguments
+ (list
+ #:tests? #f ; no tests
+ #:build-type "Release"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'set-pci.ids-path
+ (lambda _
+ (substitute* "CMakeLists.txt"
+ (("/usr/share/hwdata")
+ (string-append
+ #$(this-package-native-input "hwdata")
+ "/share/hwdata"))))))))
+ (inputs
+ (list rocm-comgr
+ rocr-runtime))
+ (native-inputs
+ (list hwdata
+ rocm-cmake))
+ (synopsis "AMD Debugger API")
+ (description "The AMD Debugger API is a library that provides all
+the support necessary for a debugger and other tools to perform low
+level control of the execution and inspection of execution state of
+AMD's commercially available GPU architectures.")
+ (home-page "https://github.com/ROCm/ROCdbgapi")
+ (license license:expat)))
diff --git a/gnu/packages/rocm-tools.scm b/gnu/packages/rocm-tools.scm
index 5b8baca0ea..35776b595b 100644
--- a/gnu/packages/rocm-tools.scm
+++ b/gnu/packages/rocm-tools.scm
@@ -22,12 +22,14 @@
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (gnu packages llvm)
+ #:use-module (gnu packages pciutils)
#:use-module (gnu packages perl)
#:use-module (gnu packages rocm))
;; The components are tightly integrated and can only be upgraded as a unit. If
;; you want to upgrade ROCm, bump this version number and the version number in
;; - rocm.scm
+;; - gdb.scm
;; and update the hashes of the affected packages.
(define %rocm-version "7.1.1")
@@ -80,3 +82,4 @@
translate CUDA source code into portable HIP C++.")
(home-page "https://github.com/ROCm/HIPIFY")
(license license:ncsa)))
+
diff --git a/gnu/packages/rocm.scm b/gnu/packages/rocm.scm
index 56b2a66490..8e64fa1e0c 100644
--- a/gnu/packages/rocm.scm
+++ b/gnu/packages/rocm.scm
@@ -53,6 +53,7 @@
;; The components are tightly integrated and can only be upgraded as a unit. If
;; you want to upgrade ROCm, bump this version number and the version number in
;; - rocm-tools.scm
+;; - gdb.scm
;; and update the hashes of the affected packages.
(define %rocm-version "7.1.1")