Bug#1070815: libdrm-intel1 should be compiled for arm64

2024-05-09 Thread Vladimir Smirnov
Package: libdrm-intel1
Version: 2.4.120-2
Severity: wishlist
Tags: patch
X-Debbugs-Cc: civil.o...@gmail.com

Dear Maintainer,

   * What led up to the situation?

 I recently got an Ampere Altra board and I've decided to try getting
 Intel Arc 750 working on it. While that requires vendor-specific kernel
 patches (Workaround for Altra's PCIe Errata) and recent kernel
 (6.9.0-rc6 with drm-next/xe), I managed to get it working.

   * What exactly did you do (or not do) that was effective (or
 ineffective)?

 One of the obstacles I had, was that libdrm-intel1 is not compiled on
 arm64 systems in debian (testing or unstable or experimental). Upstream
 actually have nothing that prevents you from compiling it and only
 requires to add arm64 in control for libdrm-intel1.

   * What was the outcome of this action?

 I've actually managed to build libdrm-intel1 on aarch64.


-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: arm64 (aarch64)

Kernel: Linux 6.9.0-rc6+ (SMP w/64 CPU threads)
Kernel taint flags: TAINT_USER
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libdrm-intel1 depends on:
ii  libc6  2.38-7
ii  libdrm22.4.120-3
ii  libpciaccess0  0.17-3+b1

libdrm-intel1 recommends no packages.

libdrm-intel1 suggests no packages.

-- no debconf information

-- patch that I've applied to make it build:
--- libdrm-2.4.120.old/debian/control   2024-02-08 08:49:20.0 +0100
+++ libdrm-2.4.120/debian/control   2024-05-09 10:30:48.688180370 +0200
@@ -24,7 +24,7 @@
 Architecture: linux-any hurd-any
 Depends:
  libdrm2 (= ${binary:Version}),
- libdrm-intel1 (= ${binary:Version}) [amd64 i386 hurd-i386 x32],
+ libdrm-intel1 (= ${binary:Version}) [arm64 amd64 i386 hurd-i386 x32],
  libdrm-radeon1 (= ${binary:Version}),
  libdrm-nouveau2 (= ${binary:Version}) [linux-any],
  libdrm-amdgpu1 (= ${binary:Version}),
@@ -104,7 +104,7 @@
  This is a udeb, or a microdeb, for the debian-installer.

 Package: libdrm-intel1
-Architecture: amd64 i386 hurd-i386 x32
+Architecture: arm64 amd64 i386 hurd-i386 x32
 Depends:
  ${shlibs:Depends},
  ${misc:Depends},



Bug#1019056: clang-14 fails to run with "Illegal Instruction"

2022-09-03 Thread Vladimir Smirnov
Package: clang-14
Version: 1:14.0.6-2
Severity: important
X-Debbugs-Cc: civil.o...@gmail.com

Dear Maintainer,

When I'm trying to run clang-14 (actually happens for all clang
versions) it wails with Illegal Instruction. Full stacktrace:

# clang-14
PLEASE submit a bug report to
https://github.com/llvm/llvm-project/issues/ and include the crash
backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: clang-14
1. Compilation construction
#0 0x003fc9ac0b0c llvm::sys::PrintStackTrace(llvm::raw_ostream&,
int) (/usr/lib/riscv64-linux-gnu/libLLVM-14.so.1+0xe7db0c)
Illegal instruction


I expect it to actually run and work fine. Also I'm sure it used to work
some time ago, but I haven't used that board for a few months and after
package upgrade it starts to fail consistently.

-- System Information:
Debian Release: bookworm/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
merged-usr: no
Architecture: riscv64

Kernel: Linux 5.10.4 (SMP w/2 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages clang-14 depends on:
ii  binutils2.38.90.20220713-2
ii  libatomic1  12.2.0-1
ii  libc6   2.34-7
ii  libc6-dev   2.34-7
ii  libclang-common-14-dev  1:14.0.6-2
ii  libclang-cpp14  1:14.0.6-2
ii  libclang1-141:14.0.6-2
ii  libgcc-12-dev   12.2.0-1
ii  libgcc-s1   12.2.0-1
ii  libllvm14   1:14.0.6-2
ii  libobjc-12-dev  12.2.0-1
ii  libstdc++-12-dev12.2.0-1
ii  libstdc++6  12.2.0-1
ii  llvm-14-linker-tools1:14.0.6-2

Versions of packages clang-14 recommends:
ii  llvm-14-dev  1:14.0.6-2
ii  python3  3.10.6-1

Versions of packages clang-14 suggests:
pn  clang-14-doc  

-- no debconf information