#1104743 cpuinfo not supported on ppc64el nor s390x

#1104743#5
Date:
2025-05-05 14:25:38 UTC
From:
To:
Hello,

cpuinfo is not supported on ppc64el nor s390x.

When reading build log at:
https://buildd.debian.org/status/fetch.php?pkg=cpuinfo&arch=ppc64el&ver=0.0%7Egit20250327.39ea79a-1&stamp=1744265534&raw=0

CMake Warning at CMakeLists.txt:99 (MESSAGE):
  Target processor architecture "ppc64le" is not supported in cpuinfo.
  cpuinfo will compile, but cpuinfo_initialize() will always fail.

https://buildd.debian.org/status/fetch.php?pkg=cpuinfo&arch=s390x&ver=0.0%7Egit20250327.39ea79a-1&stamp=1744265502&raw=0

CMake Warning at CMakeLists.txt:99 (MESSAGE):
  Target processor architecture "s390x" is not supported in cpuinfo.  cpuinfo
  will compile, but cpuinfo_initialize() will always fail.

Please consider disabling those architectures from builds.

Regards

#1104743#10
Date:
2025-05-06 15:41:54 UTC
From:
To:
Hi,

Thank you for raising this. However, cpuinfo is a (often unconditional)
B-D of some other packages, e.g. pytorch and onnxruntime.

In other words, they require cpuinfo to build, but does not actually
use it on all platforms.

"dak rm -BRn --architecture=s390x,ppc64el cpuinfo” shows:

 # Broken Build-Depends:
 onnxruntime: libcpuinfo-dev (0.0~git20240830.fa1c679 >=)
 pthreadpool: libcpuinfo-dev
 pytorch: libcpuinfo-dev (0.0~git20230113.6481e8b~ >=)
 pytorch-cuda/contrib: libcpuinfo-dev (0.0~git20230113.6481e8b~ >=)
 ruy: libcpuinfo-dev (0.0~git20220617.082deff-2 >=)
 xnnpack: libcpuinfo-dev (0.0~git20231104.d6860c4~ >=)

Removal of cpuinfo binary packages on these platforms would typically
require patching of all these packages. I would not recommend doing
so especially when we are facing the trixie hard freeze very soon.

Thanks,
Shengqi Chen