#1035500 libhwloc-dev ships uncompilable headers

Package:
libhwloc-dev
Source:
libhwloc-dev
Description:
Hierarchical view of the machine - static libs and headers
Submitter:
Steve Langasek
Date:
2025-09-01 19:51:05 UTC
Severity:
normal
Tags:
#1035500#5
Date:
2023-05-04 09:31:19 UTC
From:
To:
Hi Samuel,

As part of an investigation to establish the feasibility of moving 32-bit
archs to 64-bit time_t, I am running an analysis of all header files in the
archive to determine which libraries' ABIs are affected.  This requires the
headers in question to be compilable.

libhwloc-dev ships header files which have includes that are not satisfied
by its dependencies.  For my purposes, I've worked around these unusable
headers by adding quirks to my scripts, but it seems worth reporting as a
bug that headers are being shipped that aren't usable.

- /usr/include/hwloc/cuda*.h include cuda.h from nvidia-cuda-dev, which a)
  is not depended on, b) is only available on amd64, arm64, and ppc64el.

- /usr/include/hwloc/nvml.h includes nvml.h from libnvidia-ml-dev, same
  as above.

- /usr/include/hwloc/levelzero.h includes level_zero/ze_api.h which does not
  exist in Debian.

- /usr/include/hwloc/opencl.h includes CL/cl.h from opencl-c-headers.

- /usr/include/hwloc/openfabrics-verbs.h includes infiniband/verbs.h from
  libibverbs-dev.

- /usr/include/hwloc/rsmi.h includes rocm_smi/rocm_smi.h which doesn't exist
  in Debian.

#1035500#10
Date:
2023-05-04 12:33:38 UTC
From:
To:
Hello,

Steve Langasek, le jeu. 04 mai 2023 11:31:19 +0200, a ecrit:

Yes, all of these are only useful in the respective particular cases.

Samuel

#1035500#19
Date:
2025-09-01 19:49:41 UTC
From:
To:
close 1035500
thanks