[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1065695: libhsa-runtime-dev: endianness detection in fails on arm64 and ppc64el



Package: libhsa-runtime-dev
Version: 5.7.1-1
Severity: normal
X-Debbugs-Cc: cgmb@slerp.xyz

Dear Maintainer,

The endianness detection logic in hsa/hsa.h fails on arm64 and ppc64el,
which leads to build failures in rccl on those platforms [1].

The current logic is:

    // Try to detect CPU endianness
    #if !defined(LITTLEENDIAN_CPU) && !defined(BIGENDIAN_CPU)
    #if defined(__i386__) || defined(__x86_64__) || defined(_M_IX86) || \
        defined(_M_X64)
    #define LITTLEENDIAN_CPU
    #endif
    #endif

This code should probably check if __BYTE_ORDER__ is defined, and if its value
is __ORDER_LITTLE_ENDIAN__ or __ORDER_BIG_ENDIAN__ before giving up.

Sincerely,
Cory Bloor

[1]: https://buildd.debian.org/status/fetch.php?pkg=rccl&arch=ppc64el&ver=5.4.3-2%7Eexp1&stamp=1709357300&raw=0

-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.6.15-amd64 (SMP w/32 CPU threads; PREEMPT)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages libhsa-runtime-dev depends on:
ii  libhsa-runtime64-1  5.7.1-1

libhsa-runtime-dev recommends no packages.

libhsa-runtime-dev suggests no packages.

-- no debconf information


Reply to: