<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Fails to compile libclc"
href="https://llvm.org/bugs/show_bug.cgi?id=27799">27799</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Fails to compile libclc
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>OpenCL
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>rivanvx@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>$ make -j1
LLVM-CC nvptx--nvidiacl/lib/math/fdim.cl.bc
In file included from ./generic/lib/math/fdim.cl:1:
./generic/include/clc/clc.h:5:26: warning: unsupported OpenCL extension
'cl_clang_storage_class_specifiers' - ignoring [-Wignored-pragmas]
#pragma OPENCL EXTENSION cl_clang_storage_class_specifiers : enable
^
./generic/include/clc/clc.h:8:26: warning: unsupported OpenCL extension
'cl_khr_fp64' - ignoring [-Wignored-pragmas]
#pragma OPENCL EXTENSION cl_khr_fp64 : enable
^
In file included from ./generic/lib/math/fdim.cl:1:
In file included from ./generic/include/clc/clc.h:15:
./generic/include/clc/clctypes.h:82:45: error: use of type 'double' requires
cl_khr_fp64 extension to be enabled
typedef __attribute__((ext_vector_type(2))) double double2;
^
./generic/include/clc/clctypes.h:83:45: error: use of type 'double' requires
cl_khr_fp64 extension to be enabled
typedef __attribute__((ext_vector_type(3))) double double3;
^
./generic/include/clc/clctypes.h:84:45: error: use of type 'double' requires
cl_khr_fp64 extension to be enabled
typedef __attribute__((ext_vector_type(4))) double double4;
^
./generic/include/clc/clctypes.h:85:45: error: use of type 'double' requires
cl_khr_fp64 extension to be enabled
typedef __attribute__((ext_vector_type(8))) double double8;
^
./generic/include/clc/clctypes.h:86:46: error: use of type 'double' requires
cl_khr_fp64 extension to be enabled
typedef __attribute__((ext_vector_type(16))) double double16;
^
In file included from ./generic/lib/math/fdim.cl:1:
In file included from ./generic/include/clc/clc.h:18:
./generic/include/clc/convert.h:56:1: error: use of type 'double' requires
cl_khr_fp64 extension to be enabled
_CLC_VECTOR_CONVERT_TO_SUFFIX(_rtn)
^
./generic/include/clc/convert.h:53:3: note: expanded from macro
'_CLC_VECTOR_CONVERT_TO_SUFFIX'
_CLC_VECTOR_CONVERT_TO(_sat##ROUND) \
^
./generic/include/clc/convert.h:45:3: note: expanded from macro
'_CLC_VECTOR_CONVERT_TO'
_CLC_VECTOR_CONVERT_TO1(SUFFIX) \
^
./generic/include/clc/convert.h:33:3: note: expanded from macro
'_CLC_VECTOR_CONVERT_TO1'
_CLC_VECTOR_CONVERT_FROM(char, SUFFIX) \
^
./generic/include/clc/convert.h:26:39: note: expanded from macro
'_CLC_VECTOR_CONVERT_FROM'
_CLC_VECTOR_CONVERT_DECL(FROM_TYPE, double, SUFFIX)
^
./generic/include/clc/convert.h:56:1: error: use of type 'double' requires
cl_khr_fp64 extension to be enabled
./generic/include/clc/convert.h:53:3: note: expanded from macro
'_CLC_VECTOR_CONVERT_TO_SUFFIX'
_CLC_VECTOR_CONVERT_TO(_sat##ROUND) \
^
./generic/include/clc/convert.h:45:3: note: expanded from macro
'_CLC_VECTOR_CONVERT_TO'
_CLC_VECTOR_CONVERT_TO1(SUFFIX) \
^
./generic/include/clc/convert.h:34:3: note: expanded from macro
'_CLC_VECTOR_CONVERT_TO1'
_CLC_VECTOR_CONVERT_FROM(uchar, SUFFIX) \
^
./generic/include/clc/convert.h:26:39: note: expanded from macro
'_CLC_VECTOR_CONVERT_FROM'
_CLC_VECTOR_CONVERT_DECL(FROM_TYPE, double, SUFFIX)
^
./generic/include/clc/convert.h:56:1: error: use of type 'double' requires
cl_khr_fp64 extension to be enabled
./generic/include/clc/convert.h:53:3: note: expanded from macro
'_CLC_VECTOR_CONVERT_TO_SUFFIX'
_CLC_VECTOR_CONVERT_TO(_sat##ROUND) \
^
./generic/include/clc/convert.h:45:3: note: expanded from macro
'_CLC_VECTOR_CONVERT_TO'
_CLC_VECTOR_CONVERT_TO1(SUFFIX) \
^
./generic/include/clc/convert.h:35:3: note: expanded from macro
'_CLC_VECTOR_CONVERT_TO1'
_CLC_VECTOR_CONVERT_FROM(int, SUFFIX) \
^
./generic/include/clc/convert.h:26:39: note: expanded from macro
'_CLC_VECTOR_CONVERT_FROM'
_CLC_VECTOR_CONVERT_DECL(FROM_TYPE, double, SUFFIX)
^
./generic/include/clc/convert.h:56:1: error: use of type 'double' requires
cl_khr_fp64 extension to be enabled
./generic/include/clc/convert.h:53:3: note: expanded from macro
'_CLC_VECTOR_CONVERT_TO_SUFFIX'
_CLC_VECTOR_CONVERT_TO(_sat##ROUND) \
^
./generic/include/clc/convert.h:45:3: note: expanded from macro
'_CLC_VECTOR_CONVERT_TO'
_CLC_VECTOR_CONVERT_TO1(SUFFIX) \
^
./generic/include/clc/convert.h:36:3: note: expanded from macro
'_CLC_VECTOR_CONVERT_TO1'
_CLC_VECTOR_CONVERT_FROM(uint, SUFFIX) \
^
./generic/include/clc/convert.h:26:39: note: expanded from macro
'_CLC_VECTOR_CONVERT_FROM'
_CLC_VECTOR_CONVERT_DECL(FROM_TYPE, double, SUFFIX)
^
./generic/include/clc/convert.h:56:1: error: use of type 'double' requires
cl_khr_fp64 extension to be enabled
./generic/include/clc/convert.h:53:3: note: expanded from macro
'_CLC_VECTOR_CONVERT_TO_SUFFIX'
_CLC_VECTOR_CONVERT_TO(_sat##ROUND) \
^
./generic/include/clc/convert.h:45:3: note: expanded from macro
'_CLC_VECTOR_CONVERT_TO'
_CLC_VECTOR_CONVERT_TO1(SUFFIX) \
^
./generic/include/clc/convert.h:37:3: note: expanded from macro
'_CLC_VECTOR_CONVERT_TO1'
_CLC_VECTOR_CONVERT_FROM(short, SUFFIX) \
^
./generic/include/clc/convert.h:26:39: note: expanded from macro
'_CLC_VECTOR_CONVERT_FROM'
_CLC_VECTOR_CONVERT_DECL(FROM_TYPE, double, SUFFIX)
^
./generic/include/clc/convert.h:56:1: error: use of type 'double' requires
cl_khr_fp64 extension to be enabled
./generic/include/clc/convert.h:53:3: note: expanded from macro
'_CLC_VECTOR_CONVERT_TO_SUFFIX'
_CLC_VECTOR_CONVERT_TO(_sat##ROUND) \
^
./generic/include/clc/convert.h:45:3: note: expanded from macro
'_CLC_VECTOR_CONVERT_TO'
_CLC_VECTOR_CONVERT_TO1(SUFFIX) \
^
./generic/include/clc/convert.h:38:3: note: expanded from macro
'_CLC_VECTOR_CONVERT_TO1'
_CLC_VECTOR_CONVERT_FROM(ushort, SUFFIX) \
^
./generic/include/clc/convert.h:26:39: note: expanded from macro
'_CLC_VECTOR_CONVERT_FROM'
_CLC_VECTOR_CONVERT_DECL(FROM_TYPE, double, SUFFIX)
^
./generic/include/clc/convert.h:56:1: error: use of type 'double' requires
cl_khr_fp64 extension to be enabled
./generic/include/clc/convert.h:53:3: note: expanded from macro
'_CLC_VECTOR_CONVERT_TO_SUFFIX'
_CLC_VECTOR_CONVERT_TO(_sat##ROUND) \
^
./generic/include/clc/convert.h:45:3: note: expanded from macro
'_CLC_VECTOR_CONVERT_TO'
_CLC_VECTOR_CONVERT_TO1(SUFFIX) \
^
./generic/include/clc/convert.h:39:3: note: expanded from macro
'_CLC_VECTOR_CONVERT_TO1'
_CLC_VECTOR_CONVERT_FROM(long, SUFFIX) \
^
./generic/include/clc/convert.h:26:39: note: expanded from macro
'_CLC_VECTOR_CONVERT_FROM'
_CLC_VECTOR_CONVERT_DECL(FROM_TYPE, double, SUFFIX)
^
./generic/include/clc/convert.h:56:1: error: use of type 'double' requires
cl_khr_fp64 extension to be enabled
./generic/include/clc/convert.h:53:3: note: expanded from macro
'_CLC_VECTOR_CONVERT_TO_SUFFIX'
_CLC_VECTOR_CONVERT_TO(_sat##ROUND) \
^
./generic/include/clc/convert.h:45:3: note: expanded from macro
'_CLC_VECTOR_CONVERT_TO'
_CLC_VECTOR_CONVERT_TO1(SUFFIX) \
^
./generic/include/clc/convert.h:40:3: note: expanded from macro
'_CLC_VECTOR_CONVERT_TO1'
_CLC_VECTOR_CONVERT_FROM(ulong, SUFFIX) \
^
./generic/include/clc/convert.h:26:39: note: expanded from macro
'_CLC_VECTOR_CONVERT_FROM'
_CLC_VECTOR_CONVERT_DECL(FROM_TYPE, double, SUFFIX)
^
./generic/include/clc/convert.h:56:1: error: use of type 'double' requires
cl_khr_fp64 extension to be enabled
./generic/include/clc/convert.h:53:3: note: expanded from macro
'_CLC_VECTOR_CONVERT_TO_SUFFIX'
_CLC_VECTOR_CONVERT_TO(_sat##ROUND) \
^
./generic/include/clc/convert.h:45:3: note: expanded from macro
'_CLC_VECTOR_CONVERT_TO'
_CLC_VECTOR_CONVERT_TO1(SUFFIX) \
^
./generic/include/clc/convert.h:41:3: note: expanded from macro
'_CLC_VECTOR_CONVERT_TO1'
_CLC_VECTOR_CONVERT_FROM(float, SUFFIX)
^
./generic/include/clc/convert.h:26:39: note: expanded from macro
'_CLC_VECTOR_CONVERT_FROM'
_CLC_VECTOR_CONVERT_DECL(FROM_TYPE, double, SUFFIX)
^
./generic/include/clc/convert.h:56:1: error: use of type 'double' requires
cl_khr_fp64 extension to be enabled
./generic/include/clc/convert.h:53:3: note: expanded from macro
'_CLC_VECTOR_CONVERT_TO_SUFFIX'
_CLC_VECTOR_CONVERT_TO(_sat##ROUND) \
^
./generic/include/clc/convert.h:46:28: note: expanded from macro
'_CLC_VECTOR_CONVERT_TO'
_CLC_VECTOR_CONVERT_FROM(double, SUFFIX)
^
./generic/include/clc/convert.h:56:1: error: use of type 'double' requires
cl_khr_fp64 extension to be enabled
./generic/include/clc/convert.h:53:3: note: expanded from macro
'_CLC_VECTOR_CONVERT_TO_SUFFIX'
_CLC_VECTOR_CONVERT_TO(_sat##ROUND) \
^
./generic/include/clc/convert.h:46:28: note: expanded from macro
'_CLC_VECTOR_CONVERT_TO'
_CLC_VECTOR_CONVERT_FROM(double, SUFFIX)
^
./generic/include/clc/convert.h:56:1: error: use of type 'double' requires
cl_khr_fp64 extension to be enabled
./generic/include/clc/convert.h:53:3: note: expanded from macro
'_CLC_VECTOR_CONVERT_TO_SUFFIX'
_CLC_VECTOR_CONVERT_TO(_sat##ROUND) \
^
./generic/include/clc/convert.h:46:28: note: expanded from macro
'_CLC_VECTOR_CONVERT_TO'
_CLC_VECTOR_CONVERT_FROM(double, SUFFIX)
^
./generic/include/clc/convert.h:56:1: error: use of type 'double' requires
cl_khr_fp64 extension to be enabled
./generic/include/clc/convert.h:53:3: note: expanded from macro
'_CLC_VECTOR_CONVERT_TO_SUFFIX'
_CLC_VECTOR_CONVERT_TO(_sat##ROUND) \
^
./generic/include/clc/convert.h:46:28: note: expanded from macro
'_CLC_VECTOR_CONVERT_TO'
_CLC_VECTOR_CONVERT_FROM(double, SUFFIX)
^
./generic/include/clc/convert.h:56:1: error: use of type 'double' requires
cl_khr_fp64 extension to be enabled
./generic/include/clc/convert.h:53:3: note: expanded from macro
'_CLC_VECTOR_CONVERT_TO_SUFFIX'
_CLC_VECTOR_CONVERT_TO(_sat##ROUND) \
^
./generic/include/clc/convert.h:46:28: note: expanded from macro
'_CLC_VECTOR_CONVERT_TO'
_CLC_VECTOR_CONVERT_FROM(double, SUFFIX)
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 warnings and 20 errors generated.
Makefile:471: recipe for target 'nvptx--nvidiacl/lib/math/fdim.cl.bc' failed
make: *** [nvptx--nvidiacl/lib/math/fdim.cl.bc] Error 1
Broke recently, I can bisect if necessary.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>