Debian Bug report logs - #995618
mesa: tries to uses non-available LLVM JIT on riscv64

version graph

Package: src:mesa; Maintainer for src:mesa is Debian X Strike Force <debian-x@lists.debian.org>;

Reported by: Aurelien Jarno <aurel32@debian.org>

Date: Sun, 3 Oct 2021 10:27:04 UTC

Severity: important

Tags: patch

Found in version mesa/21.2.2-1

Fixed in version mesa/21.2.3-1

Done: Timo Aaltonen <tjaalton@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, debian-riscv@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>:
Bug#995618; Package src:mesa. (Sun, 03 Oct 2021 10:27:05 GMT) (full text, mbox, link).


Acknowledgement sent to Aurelien Jarno <aurel32@debian.org>:
New Bug report received and forwarded. Copy sent to debian-riscv@lists.debian.org, Debian X Strike Force <debian-x@lists.debian.org>. (Sun, 03 Oct 2021 10:27:05 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Aurelien Jarno <aurel32@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: mesa: tries to uses non-available LLVM JIT on riscv64
Date: Sun, 03 Oct 2021 12:23:42 +0200
[Message part 1 (text/plain, inline)]
Source: mesa
Version: 21.2.2-1
Severity: important
Tags: patch
X-Debbugs-Cc: debian-riscv@lists.debian.org

Mesa version 20.3.4-1 enabled LLVM support on riscv64. However while
RISC-V is supported by LLVM, JIT is not yet supported. Support is being
worked on, and might be in LLVM 14 or 15.

This causes programs (e.g. gtk4, clutter, epiphany, etc.) to abort when
Mesa tries to execute JIT code through LLVM:

| 'generic' is not a recognized processor for this target (ignoring processor)
| 'generic' is not a recognized processor for this target (ignoring processor)
| WARNING: This target JIT is not designed for the host you are running.  If bad things happen, please choose a different -march switch.
| 'generic' is not a recognized processor for this target (ignoring processor)
| 'generic' is not a recognized processor for this target (ignoring processor)
| 'generic' is not a recognized processor for this target (ignoring processor)
| 'generic' is not a recognized processor for this target (ignoring processor)
| 'generic' is not a recognized processor for this target (ignoring processor)
| 'generic' is not a recognized processor for this target (ignoring processor)
| 'generic' is not a recognized processor for this target (ignoring processor)
| 'generic' is not a recognized processor for this target (ignoring processor)
| LLVM ERROR: Cannot select: 0x2aaab99e38: ch = store<(store 4 into %ir.1 + 4, basealign 16), trunc to i32> 0x2aaab99a28, 0x2aaab96330, 0x2aaab9a4b8, undef:i64
|   0x2aaab96330: i64,ch = load<(load 2 from %ir.0 + 6), zext from i16> 0x2aaab4c658, 0x2aaab9a658, undef:i64
|     0x2aaab9a658: i64 = add 0x2aaab95eb8, Constant:i64<6>
|       0x2aaab95eb8: i64,ch = CopyFromReg 0x2aaab4c658, Register:i64 %0
|         0x2aaab95e50: i64 = Register %0
|       0x2aaab99c30: i64 = Constant<6>
|     0x2aaab96058: i64 = undef
|   0x2aaab9a4b8: i64 = add nuw 0x2aaab95f88, Constant:i64<4>
|     0x2aaab95f88: i64,ch = CopyFromReg 0x2aaab4c658, Register:i64 %1
|       0x2aaab95f20: i64 = Register %1
|     0x2aaab96740: i64 = Constant<4>
|   0x2aaab96058: i64 = undef

The attached patch fixes that by reverting the corresponding changes.
Could you please include it in the next upload?

Thanks,
Aurelien
[mesa.riscv64.debdiff (text/plain, attachment)]

Reply sent to Timo Aaltonen <tjaalton@debian.org>:
You have taken responsibility. (Mon, 04 Oct 2021 12:36:03 GMT) (full text, mbox, link).


Notification sent to Aurelien Jarno <aurel32@debian.org>:
Bug acknowledged by developer. (Mon, 04 Oct 2021 12:36:03 GMT) (full text, mbox, link).


Message #10 received at 995618-close@bugs.debian.org (full text, mbox, reply):

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 995618-close@bugs.debian.org
Subject: Bug#995618: fixed in mesa 21.2.3-1
Date: Mon, 04 Oct 2021 12:33:53 +0000
Source: mesa
Source-Version: 21.2.3-1
Done: Timo Aaltonen <tjaalton@debian.org>

We believe that the bug you reported is fixed in the latest version of
mesa, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 995618@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Timo Aaltonen <tjaalton@debian.org> (supplier of updated mesa package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 04 Oct 2021 15:18:27 +0300
Source: mesa
Built-For-Profiles: noudeb
Architecture: source
Version: 21.2.3-1
Distribution: unstable
Urgency: medium
Maintainer: Debian X Strike Force <debian-x@lists.debian.org>
Changed-By: Timo Aaltonen <tjaalton@debian.org>
Closes: 995618
Changes:
 mesa (21.2.3-1) unstable; urgency=medium
 .
   [ Timo Aaltonen ]
   * New upstream release.
   * rules: Build with -O2 for ppc64el.
   * Build with llvm 13.
 .
   [ Aurelien Jarno ]
   * Disable LLVM support on riscv64, it doesn't have JIT. (Closes: #995618)
Checksums-Sha1:
 e94206712a91d222f45abc8ebe1958b500201861 5310 mesa_21.2.3-1.dsc
 34c1e73ed0cb52ec934883b64b4228f0fdc528da 24440112 mesa_21.2.3.orig.tar.gz
 7a204e27c352a13e34bbc3a0e2cce939259f22a0 109518 mesa_21.2.3-1.diff.gz
 ee6eb727a861702ecded0908adcf4e705fcacb25 10199 mesa_21.2.3-1_source.buildinfo
Checksums-Sha256:
 0a932d881e4a7615f34880e2dba0fc74b466be4d8cb5ddea9fd208d9b7bb8360 5310 mesa_21.2.3-1.dsc
 cd46ae3ae1f3a14ee1e0a13e47d0e0ae546ad31346527714f5f4733401e96698 24440112 mesa_21.2.3.orig.tar.gz
 84af3753a1bb43c0c34a32e29ddaeee192df9974d549e80b847d9726518cc346 109518 mesa_21.2.3-1.diff.gz
 6ce27c425003439d81108c1bcfa402a15080d1d9116e191e445932f8a74b092e 10199 mesa_21.2.3-1_source.buildinfo
Files:
 65f1ba4fedd93e0e828db37650bc5b6e 5310 graphics optional mesa_21.2.3-1.dsc
 32805366aa02642a6816373d361eb7e9 24440112 graphics optional mesa_21.2.3.orig.tar.gz
 29f571568447173a542eb1e746fa5a8b 109518 graphics optional mesa_21.2.3-1.diff.gz
 1278d22e7eb6c6d8633fffd9f87d6c7b 10199 graphics optional mesa_21.2.3-1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEdS3ifE3rFwGbS2Yjy3AxZaiJhNwFAmFa8S8ACgkQy3AxZaiJ
hNwT6g/+OEX09IBbFy+aeoNJTURGypRcjVcp4FTzo7h8oNXF2txkPrh4ry0eXxCU
yu6ZPrUIj6wMH+GL/Hx5LBwqDBVZtCKhIiDNB2d3aT8A7/wsjc1YR6BcXuQDetBt
dGdyOtRhV2uZy3ORhqYEiFov2JWXtu2DMbkEEbv7cMiDB92pSt/dVCEtwrHd1W8D
I1li1iDNWrqfVrB086XlQHw6rHYuArb8GB9biorvsdzTw6IcKP1oXRX5xjjiEy1F
33RI5lFanZLuNU92lFrH/LLbe3lmVefSeBAtg9/MAhCyELa/wznMEBmP6Qr+XXHr
4laog7XthJo0dAO2QQbPgEX0Olu5OnKb2d8iqcGBpMDzsUUQa91UCQrnTvC3tOdp
NKovsERYTKVEQwWU1oxxOa1LRwRDvzauR6LFI2PNg5dYS4QxRB04l66iqnMBiXlb
W2mQz6ULAEUkFQjq8ZJF8/Rkrlr7a67wswVV/Aw1tDpb5rCjsaUub4M2IAw4H849
YOFHt3jp9WhQ2cceqf6E9W/5wyTceWCzlNMfqpCmVhj67IbcREYl3BdLzPqfiDMd
rQYJ5ddeSmUSkoTisbPU2YX4X6ce13XpqjNA2052cOAttfKMaFALEfyOorcGkRVD
oHrqepzIj8XhXJyQTP3neQnDwo8pUSWoQXumV4QJSp7gFKOTXaQ=
=5IvE
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 02 Nov 2021 07:24:57 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Aug 8 01:17:03 2024; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.