[llvm-bugs] [Bug 27799] New: Fails to compile libclc

via llvm-bugs llvm-bugs at lists.llvm.org
Tue May 17 18:02:20 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=27799

            Bug ID: 27799
           Summary: Fails to compile libclc
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: OpenCL
          Assignee: unassignedclangbugs at nondot.org
          Reporter: rivanvx at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

$ 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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160518/0ef5264c/attachment-0001.html>


More information about the llvm-bugs mailing list