<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""></div><div class="">Hi Zeinab,</div><div class=""><br class=""></div><div class="">Citing an email from Tom Stellard from 2 days ago:</div><div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><div class="">LLVM 3.6 is not supported in libclc trunk anymore.  If you</div><div class="">want to use libclc with LLVM 3.6, use this tagged version:</div><br class="Apple-interchange-newline"><div class=""><a href="http://llvm.org/viewvc/llvm-project/libclc/tags/36_COMPATIBLE/" class="">http://llvm.org/viewvc/llvm-project/libclc/tags/36_COMPATIBLE/</a> </div></blockquote><br class=""></div><div class="">Best,</div><div class=""><br class=""></div><div class=""> Jeroen</div><div class=""><br class=""></div><br class=""><div><blockquote type="cite" class=""><div class="">On 29 Jul 2015, at 09:15, Zeinab Ganjei <<a href="mailto:zzganjei@gmail.com" class="">zzganjei@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class=""><div class="">Hi,<br class=""></div>I have installed llvm and clang version 3.6 <br class=""></div>When I try to make libclc I get a bunch of errors as follows:<br class=""><br class="">./generic/lib/math/clc_sqrt_impl.inc:34:23: error: passing '__constant char *'<br class="">      to parameter of type 'const char *' changes address space of pointer<br class="">  return val < ZERO ? __CLC_NAN : __clc_llvm_intr_sqrt(val);<br class="">                      ^~~~~~~~~<br class="">./generic/lib/math/clc_sqrt_impl.inc:24:19: note: expanded from macro<br class="">      '__CLC_NAN'<br class="">#define __CLC_NAN NAN<br class="">                  ^~~<br class="">./generic/include/clc/float/definitions.h:4:40: note: expanded from macro 'NAN'<br class="">#define NAN             __builtin_nanf("")<br class="">                                       ^~<br class="">In file included from ./generic/lib/math/<a href="http://clc_sqrt.cl:37/" class="">clc_sqrt.cl:37</a>:<br class="">In file included from ./generic/include/clc/math/gentype.inc:12:<br class="">./generic/lib/math/clc_sqrt_impl.inc:34:23: error: passing '__constant char *'<br class="">      to parameter of type 'const char *' changes address space of pointer<br class="">  return val < ZERO ? __CLC_NAN : __clc_llvm_intr_sqrt(val);<br class="">                      ^~~~~~~~~<br class="">./generic/lib/math/clc_sqrt_impl.inc:24:19: note: expanded from macro<br class="">      '__CLC_NAN'<br class="">#define __CLC_NAN NAN<br class="">                  ^~~<br class="">./generic/include/clc/float/definitions.h:4:40: note: expanded from macro 'NAN'<br class="">#define NAN             __builtin_nanf("")<br class="">                                       ^~<br class="">In file included from ./generic/lib/math/<a href="http://clc_sqrt.cl:37/" class="">clc_sqrt.cl:37</a>:<br class="">In file included from ./generic/include/clc/math/gentype.inc:18:<br class="">./generic/lib/math/clc_sqrt_impl.inc:34:23: error: passing '__constant char *'<br class="">      to parameter of type 'const char *' changes address space of pointer<br class="">  return val < ZERO ? __CLC_NAN : __clc_llvm_intr_sqrt(val);<br class="">                      ^~~~~~~~~<br class="">./generic/lib/math/clc_sqrt_impl.inc:24:19: note: expanded from macro<br class="">      '__CLC_NAN'<br class="">#define __CLC_NAN NAN<br class="">                  ^~~<br class="">./generic/include/clc/float/definitions.h:4:40: note: expanded from macro 'NAN'<br class="">#define NAN             __builtin_nanf("")<br class="">                                       ^~<br class="">In file included from ./generic/lib/math/<a href="http://clc_sqrt.cl:37/" class="">clc_sqrt.cl:37</a>:<br class="">In file included from ./generic/include/clc/math/gentype.inc:24:<br class="">./generic/lib/math/clc_sqrt_impl.inc:34:23: error: passing '__constant char *'<br class="">      to parameter of type 'const char *' changes address space of pointer<br class="">  return val < ZERO ? __CLC_NAN : __clc_llvm_intr_sqrt(val);<br class="">                      ^~~~~~~~~<br class="">./generic/lib/math/clc_sqrt_impl.inc:24:19: note: expanded from macro<br class="">      '__CLC_NAN'<br class="">#define __CLC_NAN NAN<br class="">                  ^~~<br class="">./generic/include/clc/float/definitions.h:4:40: note: expanded from macro 'NAN'<br class="">#define NAN             __builtin_nanf("")<br class="">                                       ^~<br class="">In file included from ./generic/lib/math/<a href="http://clc_sqrt.cl:37/" class="">clc_sqrt.cl:37</a>:<br class="">In file included from ./generic/include/clc/math/gentype.inc:30:<br class="">./generic/lib/math/clc_sqrt_impl.inc:34:23: error: passing '__constant char *'<br class="">      to parameter of type 'const char *' changes address space of pointer<br class="">  return val < ZERO ? __CLC_NAN : __clc_llvm_intr_sqrt(val);<br class="">                      ^~~~~~~~~<br class="">./generic/lib/math/clc_sqrt_impl.inc:24:19: note: expanded from macro<br class="">      '__CLC_NAN'<br class="">#define __CLC_NAN NAN<br class="">                  ^~~<br class="">./generic/include/clc/float/definitions.h:4:40: note: expanded from macro 'NAN'<br class="">#define NAN             __builtin_nanf("")<br class="">                                       ^~<br class="">In file included from ./generic/lib/math/<a href="http://clc_sqrt.cl:37/" class="">clc_sqrt.cl:37</a>:<br class="">In file included from ./generic/include/clc/math/gentype.inc:36:<br class="">./generic/lib/math/clc_sqrt_impl.inc:34:23: error: passing '__constant char *'<br class="">      to parameter of type 'const char *' changes address space of pointer<br class="">  return val < ZERO ? __CLC_NAN : __clc_llvm_intr_sqrt(val);<br class="">                      ^~~~~~~~~<br class="">./generic/lib/math/clc_sqrt_impl.inc:24:19: note: expanded from macro<br class="">      '__CLC_NAN'<br class="">#define __CLC_NAN NAN<br class="">                  ^~~<br class="">./generic/include/clc/float/definitions.h:4:40: note: expanded from macro 'NAN'<br class="">#define NAN             __builtin_nanf("")<br class="">                                       ^~<br class="">In file included from ./generic/lib/math/<a href="http://clc_sqrt.cl:37/" class="">clc_sqrt.cl:37</a>:<br class="">In file included from ./generic/include/clc/math/gentype.inc:50:<br class="">./generic/lib/math/clc_sqrt_impl.inc:34:23: error: passing '__constant char *'<br class="">      to parameter of type 'const char *' changes address space of pointer<br class="">  return val < ZERO ? __CLC_NAN : __clc_llvm_intr_sqrt(val);<br class="">                      ^~~~~~~~~<br class="">./generic/lib/math/clc_sqrt_impl.inc:27:33: note: expanded from macro<br class="">      '__CLC_NAN'<br class="">#define __CLC_NAN __builtin_nan("")<br class="">                                ^~<br class="">In file included from ./generic/lib/math/<a href="http://clc_sqrt.cl:37/" class="">clc_sqrt.cl:37</a>:<br class="">In file included from ./generic/include/clc/math/gentype.inc:56:<br class="">./generic/lib/math/clc_sqrt_impl.inc:34:23: error: passing '__constant char *'<br class="">      to parameter of type 'const char *' changes address space of pointer<br class="">  return val < ZERO ? __CLC_NAN : __clc_llvm_intr_sqrt(val);<br class="">                      ^~~~~~~~~<br class="">./generic/lib/math/clc_sqrt_impl.inc:27:33: note: expanded from macro<br class="">      '__CLC_NAN'<br class="">#define __CLC_NAN __builtin_nan("")<br class="">                                ^~<br class="">In file included from ./generic/lib/math/<a href="http://clc_sqrt.cl:37/" class="">clc_sqrt.cl:37</a>:<br class="">In file included from ./generic/include/clc/math/gentype.inc:62:<br class="">./generic/lib/math/clc_sqrt_impl.inc:34:23: error: passing '__constant char *'<br class="">      to parameter of type 'const char *' changes address space of pointer<br class="">  return val < ZERO ? __CLC_NAN : __clc_llvm_intr_sqrt(val);<br class="">                      ^~~~~~~~~<br class="">./generic/lib/math/clc_sqrt_impl.inc:27:33: note: expanded from macro<br class="">      '__CLC_NAN'<br class="">#define __CLC_NAN __builtin_nan("")<br class="">                                ^~<br class="">In file included from ./generic/lib/math/<a href="http://clc_sqrt.cl:37/" class="">clc_sqrt.cl:37</a>:<br class="">In file included from ./generic/include/clc/math/gentype.inc:68:<br class="">./generic/lib/math/clc_sqrt_impl.inc:34:23: error: passing '__constant char *'<br class="">      to parameter of type 'const char *' changes address space of pointer<br class="">  return val < ZERO ? __CLC_NAN : __clc_llvm_intr_sqrt(val);<br class="">                      ^~~~~~~~~<br class="">./generic/lib/math/clc_sqrt_impl.inc:27:33: note: expanded from macro<br class="">      '__CLC_NAN'<br class="">#define __CLC_NAN __builtin_nan("")<br class="">                                ^~<br class="">In file included from ./generic/lib/math/<a href="http://clc_sqrt.cl:37/" class="">clc_sqrt.cl:37</a>:<br class="">In file included from ./generic/include/clc/math/gentype.inc:74:<br class="">./generic/lib/math/clc_sqrt_impl.inc:34:23: error: passing '__constant char *'<br class="">      to parameter of type 'const char *' changes address space of pointer<br class="">  return val < ZERO ? __CLC_NAN : __clc_llvm_intr_sqrt(val);<br class="">                      ^~~~~~~~~<br class="">./generic/lib/math/clc_sqrt_impl.inc:27:33: note: expanded from macro<br class="">      '__CLC_NAN'<br class="">#define __CLC_NAN __builtin_nan("")<br class="">                                ^~<br class="">In file included from ./generic/lib/math/<a href="http://clc_sqrt.cl:37/" class="">clc_sqrt.cl:37</a>:<br class="">In file included from ./generic/include/clc/math/gentype.inc:80:<br class="">./generic/lib/math/clc_sqrt_impl.inc:34:23: error: passing '__constant char *'<br class="">      to parameter of type 'const char *' changes address space of pointer<br class="">  return val < ZERO ? __CLC_NAN : __clc_llvm_intr_sqrt(val);<br class="">                      ^~~~~~~~~<br class="">./generic/lib/math/clc_sqrt_impl.inc:27:33: note: expanded from macro<br class="">      '__CLC_NAN'<br class="">#define __CLC_NAN __builtin_nan("")<br class="">                                ^~<br class="">12 errors generated.<br class="">make: *** [nvptx--nvidiacl/lib/math/clc_sqrt.cl.bc] Error 1<br class=""><br class=""><br class=""></div>I appreciate any help.<br class=""><br class=""></div></div>
_______________________________________________<br class="">Libclc-dev mailing list<br class=""><a href="mailto:Libclc-dev@pcc.me.uk" class="">Libclc-dev@pcc.me.uk</a><br class="">http://www.pcc.me.uk/cgi-bin/mailman/listinfo/libclc-dev<br class=""></div></blockquote></div><br class=""></body></html>