<div dir="ltr"><div><div><div><div>Hi,<br></div>I have installed llvm and clang version 3.6 <br></div>When I try to make libclc I get a bunch of errors as follows:<br><br>./generic/lib/math/clc_sqrt_impl.inc:34:23: error: passing '__constant char *'<br>      to parameter of type 'const char *' changes address space of pointer<br>  return val < ZERO ? __CLC_NAN : __clc_llvm_intr_sqrt(val);<br>                      ^~~~~~~~~<br>./generic/lib/math/clc_sqrt_impl.inc:24:19: note: expanded from macro<br>      '__CLC_NAN'<br>#define __CLC_NAN NAN<br>                  ^~~<br>./generic/include/clc/float/definitions.h:4:40: note: expanded from macro 'NAN'<br>#define NAN             __builtin_nanf("")<br>                                       ^~<br>In file included from ./generic/lib/math/<a href="http://clc_sqrt.cl:37">clc_sqrt.cl:37</a>:<br>In file included from ./generic/include/clc/math/gentype.inc:12:<br>./generic/lib/math/clc_sqrt_impl.inc:34:23: error: passing '__constant char *'<br>      to parameter of type 'const char *' changes address space of pointer<br>  return val < ZERO ? __CLC_NAN : __clc_llvm_intr_sqrt(val);<br>                      ^~~~~~~~~<br>./generic/lib/math/clc_sqrt_impl.inc:24:19: note: expanded from macro<br>      '__CLC_NAN'<br>#define __CLC_NAN NAN<br>                  ^~~<br>./generic/include/clc/float/definitions.h:4:40: note: expanded from macro 'NAN'<br>#define NAN             __builtin_nanf("")<br>                                       ^~<br>In file included from ./generic/lib/math/<a href="http://clc_sqrt.cl:37">clc_sqrt.cl:37</a>:<br>In file included from ./generic/include/clc/math/gentype.inc:18:<br>./generic/lib/math/clc_sqrt_impl.inc:34:23: error: passing '__constant char *'<br>      to parameter of type 'const char *' changes address space of pointer<br>  return val < ZERO ? __CLC_NAN : __clc_llvm_intr_sqrt(val);<br>                      ^~~~~~~~~<br>./generic/lib/math/clc_sqrt_impl.inc:24:19: note: expanded from macro<br>      '__CLC_NAN'<br>#define __CLC_NAN NAN<br>                  ^~~<br>./generic/include/clc/float/definitions.h:4:40: note: expanded from macro 'NAN'<br>#define NAN             __builtin_nanf("")<br>                                       ^~<br>In file included from ./generic/lib/math/<a href="http://clc_sqrt.cl:37">clc_sqrt.cl:37</a>:<br>In file included from ./generic/include/clc/math/gentype.inc:24:<br>./generic/lib/math/clc_sqrt_impl.inc:34:23: error: passing '__constant char *'<br>      to parameter of type 'const char *' changes address space of pointer<br>  return val < ZERO ? __CLC_NAN : __clc_llvm_intr_sqrt(val);<br>                      ^~~~~~~~~<br>./generic/lib/math/clc_sqrt_impl.inc:24:19: note: expanded from macro<br>      '__CLC_NAN'<br>#define __CLC_NAN NAN<br>                  ^~~<br>./generic/include/clc/float/definitions.h:4:40: note: expanded from macro 'NAN'<br>#define NAN             __builtin_nanf("")<br>                                       ^~<br>In file included from ./generic/lib/math/<a href="http://clc_sqrt.cl:37">clc_sqrt.cl:37</a>:<br>In file included from ./generic/include/clc/math/gentype.inc:30:<br>./generic/lib/math/clc_sqrt_impl.inc:34:23: error: passing '__constant char *'<br>      to parameter of type 'const char *' changes address space of pointer<br>  return val < ZERO ? __CLC_NAN : __clc_llvm_intr_sqrt(val);<br>                      ^~~~~~~~~<br>./generic/lib/math/clc_sqrt_impl.inc:24:19: note: expanded from macro<br>      '__CLC_NAN'<br>#define __CLC_NAN NAN<br>                  ^~~<br>./generic/include/clc/float/definitions.h:4:40: note: expanded from macro 'NAN'<br>#define NAN             __builtin_nanf("")<br>                                       ^~<br>In file included from ./generic/lib/math/<a href="http://clc_sqrt.cl:37">clc_sqrt.cl:37</a>:<br>In file included from ./generic/include/clc/math/gentype.inc:36:<br>./generic/lib/math/clc_sqrt_impl.inc:34:23: error: passing '__constant char *'<br>      to parameter of type 'const char *' changes address space of pointer<br>  return val < ZERO ? __CLC_NAN : __clc_llvm_intr_sqrt(val);<br>                      ^~~~~~~~~<br>./generic/lib/math/clc_sqrt_impl.inc:24:19: note: expanded from macro<br>      '__CLC_NAN'<br>#define __CLC_NAN NAN<br>                  ^~~<br>./generic/include/clc/float/definitions.h:4:40: note: expanded from macro 'NAN'<br>#define NAN             __builtin_nanf("")<br>                                       ^~<br>In file included from ./generic/lib/math/<a href="http://clc_sqrt.cl:37">clc_sqrt.cl:37</a>:<br>In file included from ./generic/include/clc/math/gentype.inc:50:<br>./generic/lib/math/clc_sqrt_impl.inc:34:23: error: passing '__constant char *'<br>      to parameter of type 'const char *' changes address space of pointer<br>  return val < ZERO ? __CLC_NAN : __clc_llvm_intr_sqrt(val);<br>                      ^~~~~~~~~<br>./generic/lib/math/clc_sqrt_impl.inc:27:33: note: expanded from macro<br>      '__CLC_NAN'<br>#define __CLC_NAN __builtin_nan("")<br>                                ^~<br>In file included from ./generic/lib/math/<a href="http://clc_sqrt.cl:37">clc_sqrt.cl:37</a>:<br>In file included from ./generic/include/clc/math/gentype.inc:56:<br>./generic/lib/math/clc_sqrt_impl.inc:34:23: error: passing '__constant char *'<br>      to parameter of type 'const char *' changes address space of pointer<br>  return val < ZERO ? __CLC_NAN : __clc_llvm_intr_sqrt(val);<br>                      ^~~~~~~~~<br>./generic/lib/math/clc_sqrt_impl.inc:27:33: note: expanded from macro<br>      '__CLC_NAN'<br>#define __CLC_NAN __builtin_nan("")<br>                                ^~<br>In file included from ./generic/lib/math/<a href="http://clc_sqrt.cl:37">clc_sqrt.cl:37</a>:<br>In file included from ./generic/include/clc/math/gentype.inc:62:<br>./generic/lib/math/clc_sqrt_impl.inc:34:23: error: passing '__constant char *'<br>      to parameter of type 'const char *' changes address space of pointer<br>  return val < ZERO ? __CLC_NAN : __clc_llvm_intr_sqrt(val);<br>                      ^~~~~~~~~<br>./generic/lib/math/clc_sqrt_impl.inc:27:33: note: expanded from macro<br>      '__CLC_NAN'<br>#define __CLC_NAN __builtin_nan("")<br>                                ^~<br>In file included from ./generic/lib/math/<a href="http://clc_sqrt.cl:37">clc_sqrt.cl:37</a>:<br>In file included from ./generic/include/clc/math/gentype.inc:68:<br>./generic/lib/math/clc_sqrt_impl.inc:34:23: error: passing '__constant char *'<br>      to parameter of type 'const char *' changes address space of pointer<br>  return val < ZERO ? __CLC_NAN : __clc_llvm_intr_sqrt(val);<br>                      ^~~~~~~~~<br>./generic/lib/math/clc_sqrt_impl.inc:27:33: note: expanded from macro<br>      '__CLC_NAN'<br>#define __CLC_NAN __builtin_nan("")<br>                                ^~<br>In file included from ./generic/lib/math/<a href="http://clc_sqrt.cl:37">clc_sqrt.cl:37</a>:<br>In file included from ./generic/include/clc/math/gentype.inc:74:<br>./generic/lib/math/clc_sqrt_impl.inc:34:23: error: passing '__constant char *'<br>      to parameter of type 'const char *' changes address space of pointer<br>  return val < ZERO ? __CLC_NAN : __clc_llvm_intr_sqrt(val);<br>                      ^~~~~~~~~<br>./generic/lib/math/clc_sqrt_impl.inc:27:33: note: expanded from macro<br>      '__CLC_NAN'<br>#define __CLC_NAN __builtin_nan("")<br>                                ^~<br>In file included from ./generic/lib/math/<a href="http://clc_sqrt.cl:37">clc_sqrt.cl:37</a>:<br>In file included from ./generic/include/clc/math/gentype.inc:80:<br>./generic/lib/math/clc_sqrt_impl.inc:34:23: error: passing '__constant char *'<br>      to parameter of type 'const char *' changes address space of pointer<br>  return val < ZERO ? __CLC_NAN : __clc_llvm_intr_sqrt(val);<br>                      ^~~~~~~~~<br>./generic/lib/math/clc_sqrt_impl.inc:27:33: note: expanded from macro<br>      '__CLC_NAN'<br>#define __CLC_NAN __builtin_nan("")<br>                                ^~<br>12 errors generated.<br>make: *** [nvptx--nvidiacl/lib/math/clc_sqrt.cl.bc] Error 1<br><br><br></div>I appreciate any help.<br><br></div></div>