LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   regression on -current with ocl-icd (https://www.linuxquestions.org/questions/slackware-14/regression-on-current-with-ocl-icd-4175697200/)

nobodino 07-02-2021 09:30 PM

regression on -current with ocl-icd
 
ocl-icd doesn't build anymore on -current:
--------------------
/usr/include/CL/cl_ext.h:284:1: error: old-style parameter declarations in prototyped function definition
284 | clCreateSubDevicesEXT(cl_device_id in_device,
| ^~~~~~~~~~~~~~~~~~~~~
run_dummy_icd_gen.c:540:23: error: parameter name omitted
540 | clCreateSubDevicesEXT(cl_device_id /*in_device*/,
| ^~~~~~~~~~~~
run_dummy_icd_gen.c:541:23: error: parameter name omitted
541 | const cl_device_partition_property_ext * /* properties */,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
run_dummy_icd_gen.c:542:23: error: parameter name omitted
542 | cl_uint /*num_entries*/,
| ^~~~~~~
run_dummy_icd_gen.c:543:23: error: parameter name omitted
543 | cl_device_id * /*out_devices*/,
| ^~~~~~~~~~~~~~
run_dummy_icd_gen.c:544:23: error: parameter name omitted
544 | cl_uint * /*num_devices*/ ) CL_EXT_SUFFIX__VERSION_1_1;;
| ^~~~~~~~~
run_dummy_icd_gen.c:1627: error: expected '{' at end of input
1627 | }
|
run_dummy_icd_gen.c:1627: warning: control reaches end of non-void function [-Wreturn-type]
1627 | }
|
make[2]: *** [Makefile:918: run_dummy_icd_through_our_ICDL-run_dummy_icd_gen.o] Error 1
make[2]: Leaving directory '/tmp/ocl-icd-2.3.0'
make[1]: *** [Makefile:1024: all-recursive] Error 1
make[1]: Leaving directory '/tmp/ocl-icd-2.3.0'
make: *** [Makefile:592: all] Error 2
---------------------

USUARIONUEVO 07-02-2021 10:32 PM

We need this patch (tested and works)

https://raw.githubusercontent.com/ar...-headers.patch

nobodino 07-03-2021 01:18 AM

ok thanks.


All times are GMT -5. The time now is 09:05 AM.