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

Bug#995618: marked as done (mesa: tries to uses non-available LLVM JIT on riscv64)



Your message dated Mon, 04 Oct 2021 12:33:53 +0000
with message-id <E1mXNAH-000J6m-4c@fasolo.debian.org>
and subject line Bug#995618: fixed in mesa 21.2.3-1
has caused the Debian Bug report #995618,
regarding mesa: tries to uses non-available LLVM JIT on riscv64
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
995618: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=995618
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
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
diff -u mesa-21.2.2/debian/changelog mesa-21.2.2/debian/changelog
--- mesa-21.2.2/debian/changelog
+++ mesa-21.2.2/debian/changelog
@@ -1,3 +1,9 @@
+mesa (21.2.2-1+riscv64) unreleased; urgency=medium
+
+  * Disable LLVM support on riscv64, it doesn't have JIT.
+
+ -- Aurelien Jarno <aurel32@debian.org>  Fri, 01 Oct 2021 19:21:24 +0000
+
 mesa (21.2.2-1) unstable; urgency=medium
 
   * New upstream release.
diff -u mesa-21.2.2/debian/control mesa-21.2.2/debian/control
--- mesa-21.2.2/debian/control
+++ mesa-21.2.2/debian/control
@@ -43,10 +43,10 @@
  libelf-dev [amd64 arm64 armel armhf i386 kfreebsd-amd64 kfreebsd-i386 mips64el mipsel powerpc ppc64 ppc64el riscv64 s390x sparc64],
  libwayland-dev (>= 1.15.0) [linux-any],
  libwayland-egl-backend-dev (>= 1.15.0) [linux-any],
- llvm-12-dev [amd64 arm64 armel armhf i386 mips64el mipsel powerpc ppc64 ppc64el riscv64 s390x sparc64],
- libclang-12-dev [amd64 arm64 armel armhf i386 mips64el mipsel powerpc ppc64 ppc64el riscv64 s390x sparc64],
- libclang-cpp12-dev [amd64 arm64 armel armhf i386 mips64el mipsel powerpc ppc64 ppc64el riscv64 s390x sparc64],
- libclc-12-dev [amd64 arm64 armel armhf i386 mips64el mipsel powerpc ppc64 ppc64el riscv64 s390x sparc64],
+ llvm-12-dev [amd64 arm64 armel armhf i386 mips64el mipsel powerpc ppc64 ppc64el s390x sparc64],
+ libclang-12-dev [amd64 arm64 armel armhf i386 mips64el mipsel powerpc ppc64 ppc64el s390x sparc64],
+ libclang-cpp12-dev [amd64 arm64 armel armhf i386 mips64el mipsel powerpc ppc64 ppc64el s390x sparc64],
+ libclc-12-dev [amd64 arm64 armel armhf i386 mips64el mipsel powerpc ppc64 ppc64el s390x sparc64],
  wayland-protocols (>= 1.9),
  zlib1g-dev,
  libglvnd-dev (>= 1.3.2),
@@ -412,7 +412,7 @@
 
 Package: mesa-opencl-icd
 Section: libs
-Architecture: amd64 arm64 armel armhf i386 mips64el mipsel powerpc ppc64 ppc64el riscv64 s390x sparc64
+Architecture: amd64 arm64 armel armhf i386 mips64el mipsel powerpc ppc64 ppc64el s390x sparc64
 Pre-Depends: ${misc:Pre-Depends}
 Depends:
  libclc-12,
diff -u mesa-21.2.2/debian/rules mesa-21.2.2/debian/rules
--- mesa-21.2.2/debian/rules
+++ mesa-21.2.2/debian/rules
@@ -54,7 +54,7 @@
 
   # radv/lavapipe needs LLVM and the Vulkan loader, so only build on the subset of
   # arches where we have LLVM enabled and where the Vulkan loader is built.
-  ifneq (,$(filter $(DEB_HOST_ARCH), amd64 arm64 armel armhf i386 mips64el mipsel powerpc ppc64 ppc64el riscv64 s390x sparc64))
+  ifneq (,$(filter $(DEB_HOST_ARCH), amd64 arm64 armel armhf i386 mips64el mipsel powerpc ppc64 ppc64el s390x sparc64))
 	VULKAN_DRIVERS += amd swrast
   endif
 
@@ -105,7 +105,7 @@
 
   # LLVM is required for building r300g, radeonsi and llvmpipe drivers.
   # It's also required for building OpenCL support.
-  ifneq (,$(filter $(DEB_HOST_ARCH), amd64 arm64 armel armhf i386 mips64el mipsel powerpc ppc64 ppc64el riscv64 s390x sparc64))
+  ifneq (,$(filter $(DEB_HOST_ARCH), amd64 arm64 armel armhf i386 mips64el mipsel powerpc ppc64 ppc64el s390x sparc64))
 	GALLIUM_DRIVERS += radeonsi
 	confflags_GALLIUM += -Dllvm=enabled
 	confflags_GALLIUM += -Dgallium-opencl=icd

--- End Message ---
--- Begin Message ---
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-----

--- End Message ---

Reply to: