Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 May 2023 09:14:31 +0200
From:      =?UTF-8?Q?Fernando_Apestegu=C3=ADa?= <fernape@freebsd.org>
To:        Craig Leres <leres@freebsd.org>
Cc:        ports-committers@freebsd.org, dev-commits-ports-all@freebsd.org,  dev-commits-ports-main@freebsd.org, ohartmann@walstatt.org
Subject:   Re: git: 0eb6406f6594 - main - devel/opencl: Update OpenCL to 3.0.14
Message-ID:  <CAGwOe2by65o0fFat0eQunsQHk7Sns9NG-qr_vrBQcBpA%2BtV_Cg@mail.gmail.com>
In-Reply-To: <5a8be5a0-e859-8311-8be8-7c42c684f5ff@freebsd.org>
References:  <202305030805.34385s1e032836@gitrepo.freebsd.org> <5a8be5a0-e859-8311-8be8-7c42c684f5ff@freebsd.org>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Thu, May 4, 2023 at 9:29 PM Craig Leres <leres@freebsd.org> wrote:

> On 5/3/23 01:05, Fernando Apesteguía wrote:
> > The branch main has been updated by fernape:
> >
> > URL:
> https://cgit.FreeBSD.org/ports/commit/?id=0eb6406f6594c96bef9b692cd7e4fa763a653cd7
> >
> > commit 0eb6406f6594c96bef9b692cd7e4fa763a653cd7
> > Author:     O. Hartmann<ohartmann@walstatt.org>
> > AuthorDate: 2023-05-02 10:38:39 +0000
> > Commit:     Fernando Apesteguía<fernape@FreeBSD.org>
> > CommitDate: 2023-05-03 08:01:08 +0000
> >
> >      devel/opencl: Update OpenCL to 3.0.14
> >
> >      PR:             271158
> >      Reported by:ohartmann@walstatt.org  (maintainer)
> > ---
>
> Unfortunately this breaks building devel/ocl-icd for me (see appended).
> Looks like some things ocl-icd was defining in (ocl-idcd)
> ocl_icd_loader.c are conflicting with a new version in (opencl)
> CL/cl_ext.h.
>

Can you try this patch
https://people.freebsd.org/~fernape/patches/devel_ocl-icd.patch

I was able to build in 12.4 {adm64,i386}, 13.1 amd64 and -current(ish) amd64

Cheers


>
> I took a stab at ifdef'ing out the enum that conflicts with the define
> but that just uncovers other incompatibilities; the problem is beyond my
> understanding of these packages.
>
> devel/ocl-icd is already at the last upstream release of ocl-icd.
>
> Note that this breaks building things like firefox and thunderbird.
>
>                 Craig
>
> ocl_icd_loader.c:895:3: error: expected identifier
>    CL_ICDL_OCL_VERSION=1,
>    ^
> /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=2,
>    ^
> /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=3,
>    ^
> /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=4,
>    ^
> /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.
>

[-- Attachment #2 --]
<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 4, 2023 at 9:29 PM Craig Leres &lt;<a href="mailto:leres@freebsd.org">leres@freebsd.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 5/3/23 01:05, Fernando Apesteguía wrote:<br>
&gt; The branch main has been updated by fernape:<br>
&gt; <br>
&gt; URL:<a href="https://cgit.FreeBSD.org/ports/commit/?id=0eb6406f6594c96bef9b692cd7e4fa763a653cd7" rel="noreferrer" target="_blank">https://cgit.FreeBSD.org/ports/commit/?id=0eb6406f6594c96bef9b692cd7e4fa763a653cd7</a><br>;
&gt; <br>
&gt; commit 0eb6406f6594c96bef9b692cd7e4fa763a653cd7<br>
&gt; Author:     O. Hartmann&lt;<a href="mailto:ohartmann@walstatt.org" target="_blank">ohartmann@walstatt.org</a>&gt;<br>
&gt; AuthorDate: 2023-05-02 10:38:39 +0000<br>
&gt; Commit:     Fernando Apesteguía&lt;fernape@FreeBSD.org&gt;<br>
&gt; CommitDate: 2023-05-03 08:01:08 +0000<br>
&gt; <br>
&gt;      devel/opencl: Update OpenCL to 3.0.14<br>
&gt;      <br>
&gt;      PR:             271158<br>
&gt;      Reported <a href="mailto:by%3Aohartmann@walstatt.org" target="_blank">by:ohartmann@walstatt.org</a>  (maintainer)<br>
&gt; ---<br>
<br>
Unfortunately this breaks building devel/ocl-icd for me (see appended). <br>
Looks like some things ocl-icd was defining in (ocl-idcd) <br>
ocl_icd_loader.c are conflicting with a new version in (opencl) CL/cl_ext.h.<br></blockquote><div><br></div><div>Can you try this patch <a href="https://people.freebsd.org/~fernape/patches/devel_ocl-icd.patch">https://people.freebsd.org/~fernape/patches/devel_ocl-icd.patch</a></div><div><br></div><div>I was able to build in 12.4 {adm64,i386}, 13.1 amd64 and -current(ish) amd64</div><div><br></div><div>Cheers<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
I took a stab at ifdef&#39;ing out the enum that conflicts with the define <br>
but that just uncovers other incompatibilities; the problem is beyond my <br>
understanding of these packages.<br>
<br>
devel/ocl-icd is already at the last upstream release of ocl-icd.<br>
<br>
Note that this breaks building things like firefox and thunderbird.<br>
<br>
                Craig<br>
<br>
ocl_icd_loader.c:895:3: error: expected identifier<br>
   CL_ICDL_OCL_VERSION=1,<br>
   ^<br>
/usr/local/include/CL/cl_ext.h:3181:61: note: expanded from macro <br>
&#39;CL_ICDL_OCL_VERSION&#39;<br>
#define CL_ICDL_OCL_VERSION                                 1<br>
                                                             ^<br>
ocl_icd_loader.c:896:3: error: expected identifier<br>
   CL_ICDL_VERSION=2,<br>
   ^<br>
/usr/local/include/CL/cl_ext.h:3182:61: note: expanded from macro <br>
&#39;CL_ICDL_VERSION&#39;<br>
#define CL_ICDL_VERSION                                     2<br>
                                                             ^<br>
ocl_icd_loader.c:897:3: error: expected identifier<br>
   CL_ICDL_NAME=3,<br>
   ^<br>
/usr/local/include/CL/cl_ext.h:3183:61: note: expanded from macro <br>
&#39;CL_ICDL_NAME&#39;<br>
#define CL_ICDL_NAME                                        3<br>
                                                             ^<br>
ocl_icd_loader.c:898:3: error: expected identifier<br>
   CL_ICDL_VENDOR=4,<br>
   ^<br>
/usr/local/include/CL/cl_ext.h:3184:61: note: expanded from macro <br>
&#39;CL_ICDL_VENDOR&#39;<br>
#define CL_ICDL_VENDOR                                      4<br>
                                                             ^<br>
ocl_icd_loader.c:899:3: error: typedef redefinition with different types <br>
(&#39;enum cl_icdl_info&#39; vs &#39;cl_uint&#39; (aka &#39;unsigned int&#39;))<br>
} cl_icdl_info;<br>
   ^<br>
/usr/local/include/CL/cl_ext.h:3178:29: note: previous definition is here<br>
typedef cl_uint             cl_icdl_info;<br>
                             ^<br>
ocl_icd_loader.c:901:15: error: static declaration of <br>
&#39;clGetICDLoaderInfoOCLICD&#39; follows non-static declaration<br>
static cl_int clGetICDLoaderInfoOCLICD(<br>
               ^<br>
/usr/local/include/CL/cl_ext.h:3197:1: note: previous declaration is here<br>
clGetICDLoaderInfoOCLICD(<br>
^<br>
6 errors generated.<br>
</blockquote></div></div>
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGwOe2by65o0fFat0eQunsQHk7Sns9NG-qr_vrBQcBpA%2BtV_Cg>