<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - [r600g] Regression: ImageMagick OpenCL kernel no longer compiles"
href="https://bugs.freedesktop.org/show_bug.cgi?id=105200#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - [r600g] Regression: ImageMagick OpenCL kernel no longer compiles"
href="https://bugs.freedesktop.org/show_bug.cgi?id=105200">bug 105200</a>
from <span class="vcard"><a class="email" href="mailto:nixscripter@gmail.com" title="nixscripter@gmail.com">nixscripter@gmail.com</a>
</span></b>
<pre>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 back.
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
===================================================================
--- 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-v512: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-v512: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-v512: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-v512:512-v1024:1024-v2048:2048-n32:64'
[...]
Allocation instruction pointer not in the stack address space!
%2 = alloca i32, align 4, addrspace(5)
Allocation instruction pointer not in the stack address space!
%3 = alloca i32, align 4, addrspace(5)
Allocation instruction pointer not in the stack address space!
%4 = alloca i32, align 4, addrspace(5)
Allocation instruction pointer not in the stack address space!
%5 = alloca i32, align 4, addrspace(5)
Allocation instruction pointer not in the stack address space!
%6 = alloca i32, align 4, addrspace(5)
[...]
Allocation instruction pointer not in the stack address space!
%33 = 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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>