microsoft / microsoft/onnxruntime

[Bug] ppc64le,aarch64,loongarch64,riscv64: Test failure `DeviceDiscoveryTest.HasCpuDevice`

Open
#26,187 4 comments 0 reactions 1 assignee Assigned to @edgchen1 View on GitHub
build
Dominant language
C++
Stars
21.9k
Forks
4.2k
Avg merge
4d 11h
Merged PRs (30d)
184

Description

### Describe the issue

Hi, when building `onnxruntime v1.23.0` for Alpine Linux I appear to be running into a test failure on ppc64le for `DeviceDiscoveryTest.HasCpuDevice`. Opening this ticket to track the issue.

[**Build Log** (gitlab.alpinelinux.org)](https://gitlab.alpinelinux.org/leso-kn/aports/-/jobs/2031450) (ppc64le)

**EDIT** 2025-09-29: This seems to also affect aarch64.
[Pipeline log at gitlab.alpinelinux.org](https://gitlab.alpinelinux.org/leso-kn/aports/-/jobs/2031484) (aarch64)

**EDIT** 2025-10-07: It also appears to affect riscv64 and loongarch64.
[Pipeline log at gitlab.alpinelinux.org](https://gitlab.alpinelinux.org/leso-kn/aports/-/jobs/2042969) (riscv64)
[Pipeline log at gitlab.alpinelinux.org](https://gitlab.alpinelinux.org/leso-kn/aports/-/jobs/2042963) (loongarch64)

### Urgency

_No response_

### Target platform

Alpine Linux edge (ppc64le, musl)

### Build script

https://gitlab.alpinelinux.org/alpine/aports/-/blob/7ddfe3f29ea80275dba55cd36ba7b7e08331d671/testing/onnxruntime/APKBUILD

### Error / output

```log
[ FAILED ] 1 test, listed below:
[ FAILED ] DeviceDiscoveryTest.HasCpuDevice
1 FAILED TEST
YOU HAVE 8 DISABLED TESTS
88% tests passed, 1 tests failed out of 8
Total Test time (real) = 136.44 sec
The following tests FAILED:
1 - onnxruntime_test_all (Failed)
Errors while running CTest
>>> ERROR: onnxruntime: check failed
```

Full Log: [job log on gitlab.alpinelinux.org](https://gitlab.alpinelinux.org/leso-kn/aports/-/jobs/2031450)

### Visual Studio Version

_No response_

### GCC / Compiler Version

15.2.0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.