Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 05 May 2023 07:41:36 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 271255] devel/ocl-icd: Broken after devel/opencl update
Message-ID:  <bug-271255-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271255

            Bug ID: 271255
           Summary: devel/ocl-icd: Broken after devel/opencl update
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: fernape@FreeBSD.org
                CC: ohartmann@walstatt.org
             Flags: maintainer-feedback?(ohartmann@walstatt.org)
                CC: ohartmann@walstatt.org

Created attachment 241989
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D241989&action=
=3Dedit
Patch to fix build

devel/ocl-icd is broken after the update in
0eb6406f6594c96bef9b692cd7e4fa763a653cd7.

ocl_icd_loader.c:895:3: error: expected identifier
   CL_ICDL_OCL_VERSION=3D1,
   ^
/usr/local/include/CL/cl_ext.h:3181:61: note: expanded from macro
'CL_ICDL_OCL_VERSION'
#define CL_ICDL_OCL_VERSION                                 1
                                                             ^
ocl_icd_loader.c:896:3: error: expected identifier
   CL_ICDL_VERSION=3D2,
   ^
/usr/local/include/CL/cl_ext.h:3182:61: note: expanded from macro
'CL_ICDL_VERSION'
#define CL_ICDL_VERSION                                     2
                                                             ^
ocl_icd_loader.c:897:3: error: expected identifier
   CL_ICDL_NAME=3D3,
   ^
/usr/local/include/CL/cl_ext.h:3183:61: note: expanded from macro
'CL_ICDL_NAME'
#define CL_ICDL_NAME                                        3
                                                             ^
ocl_icd_loader.c:898:3: error: expected identifier
   CL_ICDL_VENDOR=3D4,
   ^
/usr/local/include/CL/cl_ext.h:3184:61: note: expanded from macro
'CL_ICDL_VENDOR'
#define CL_ICDL_VENDOR                                      4
                                                             ^
ocl_icd_loader.c:899:3: error: typedef redefinition with different types
('enum cl_icdl_info' vs 'cl_uint' (aka 'unsigned int'))
} cl_icdl_info;
   ^
/usr/local/include/CL/cl_ext.h:3178:29: note: previous definition is here
typedef cl_uint             cl_icdl_info;
                             ^
ocl_icd_loader.c:901:15: error: static declaration of
'clGetICDLoaderInfoOCLICD' follows non-static declaration
static cl_int clGetICDLoaderInfoOCLICD(
               ^
/usr/local/include/CL/cl_ext.h:3197:1: note: previous declaration is here
clGetICDLoaderInfoOCLICD(
^
6 errors generated.

The attached patch fixes the build in 12.4 {adm64,i386}, {13.1,13.2} amd64 =
and
-current amd64

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-271255-7788>