From: bugzilla-daemon@freedesktop.org Subject: [Bug 105200] [r600g] Regression: ImageMagick OpenCL kernel no longer compiles Date: Fri, 23 Feb 2018 02:00:26 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1748218448==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id A5B766EE7D for ; Fri, 23 Feb 2018 02:00:26 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1748218448== Content-Type: multipart/alternative; boundary="15193512260.fBfe9202.25525" Content-Transfer-Encoding: 7bit --15193512260.fBfe9202.25525 Date: Fri, 23 Feb 2018 02:00:26 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D105200 --- Comment #2 from nixscripter@gmail.com --- It seems the libclc version I'm using was Feb 2nd. Good point ... and now that I've tried to compile SVN r325851, I see why it was held b= ack. First, I had to patch this: And this is after I did my little patch to avoid an LLVM syntax error: Index: utils/prepare-builtins.cpp =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- utils/prepare-builtins.cpp (revision 325851) +++ utils/prepare-builtins.cpp (working copy) @@ -105,7 +105,7 @@ exit(1); } - WriteBitcodeToFile(M, Out->os()); + WriteBitcodeToFile(*M, Out->os()); // Declare success. Out->keep(); And then... more address space issues: [...] WARNING: Linking two modules of different data layouts: 'r600--/lib/relational/isnormal.cl.cayman.bc' is 'e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v51= 2:512-v1024:1024-v2048:2048-n32:64-A5' whereas 'llvm-link' is 'e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v51= 2:512-v1024:1024-v2048:2048-n32:64' WARNING: Linking two modules of different data layouts: 'r600--/lib/relational/isnotequal.cl.cayman.bc' is 'e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v51= 2:512-v1024:1024-v2048:2048-n32:64-A5' whereas 'llvm-link' is 'e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v51= 2:512-v1024:1024-v2048:2048-n32:64' [...] Allocation instruction pointer not in the stack address space! %2 =3D alloca i32, align 4, addrspace(5) Allocation instruction pointer not in the stack address space! %3 =3D alloca i32, align 4, addrspace(5) Allocation instruction pointer not in the stack address space! %4 =3D alloca i32, align 4, addrspace(5) Allocation instruction pointer not in the stack address space! %5 =3D alloca i32, align 4, addrspace(5) Allocation instruction pointer not in the stack address space! %6 =3D alloca i32, align 4, addrspace(5) [...] Allocation instruction pointer not in the stack address space! %33 =3D alloca float, align 4, addrspace(5) /usr/bin/llvm-link: error: linked module is broken! make: *** [Makefile:3127: r600--/lib/builtins.link.cedar.bc] Error 1 --=20 You are receiving this mail because: You are the assignee for the bug.= --15193512260.fBfe9202.25525 Date: Fri, 23 Feb 2018 02:00:26 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Commen= t # 2 on bug 10520= 0 from nixscripter&= #64;gmail.com
It seems the libclc version I'm using was Feb 2nd. Good point

... and now that I've tried to compile SVN r325851, I see why it was held b=
ack.

First, I had to patch this:

And this is after I did my little patch to avoid an LLVM syntax error:

Index: utils/prepare-builtins.cpp
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- utils/prepare-builtins.cpp  (revision 325851)
+++ utils/prepare-builtins.cpp  (working copy)
@@ -105,7 +105,7 @@
     exit(1);
   }

-  WriteBitcodeToFile(M, Out->os());
+  WriteBitcodeToFile(*M, Out->os());

   // Declare success.
   Out->keep();


And then... more address space issues:

[...]
WARNING: Linking two modules of different data layouts:
'r600--/lib/relational/isnormal.cl.cayman.bc' is
'e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v51=
2:512-v1024:1024-v2048:2048-n32:64-A5'
whereas 'llvm-link' is
'e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v51=
2:512-v1024:1024-v2048:2048-n32:64'

WARNING: Linking two modules of different data layouts:
'r600--/lib/relational/isnotequal.cl.cayman.bc' is
'e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v51=
2:512-v1024:1024-v2048:2048-n32:64-A5'
whereas 'llvm-link' is
'e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v51=
2:512-v1024:1024-v2048:2048-n32:64'
[...]
Allocation instruction pointer not in the stack address space!
  %2 =3D alloca i32, align 4, addrspace(5)
Allocation instruction pointer not in the stack address space!
  %3 =3D alloca i32, align 4, addrspace(5)
Allocation instruction pointer not in the stack address space!
  %4 =3D alloca i32, align 4, addrspace(5)
Allocation instruction pointer not in the stack address space!
  %5 =3D alloca i32, align 4, addrspace(5)
Allocation instruction pointer not in the stack address space!
  %6 =3D alloca i32, align 4, addrspace(5)
[...]
Allocation instruction pointer not in the stack address space!
  %33 =3D alloca float, align 4, addrspace(5)
/usr/bin/llvm-link: error: linked module is broken!
make: *** [Makefile:3127: r600--/lib/builtins.link.cedar.bc] Error 1


You are receiving this mail because:
  • You are the assignee for the bug.
= --15193512260.fBfe9202.25525-- --===============1748218448== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1748218448==--