Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 733018 - dev-libs/ocl-icd fails to compile
Summary: dev-libs/ocl-icd fails to compile
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-17 06:12 UTC by Agostino Sarubbo
Modified: 2021-08-29 06:48 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,16.02 KB, text/plain)
2020-07-17 06:12 UTC, Agostino Sarubbo
Details
other.tar.bz2 (other.tar.bz2,244 bytes, application/x-bzip-compressed-tar)
2020-07-17 06:12 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-07-17 06:12:24 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-libs/ocl-icd fails to compile.
Discovered on: amd64 (internal ref: tinderbox)

NOTE:
This machine uses a clang/LLVM toolchain.
If you think that this issue is strictly related to clang/LLVM please block bug 408963. If you think that this issue isstrictly related to the LLD linker, please block bug 731004.
Comment 1 Agostino Sarubbo gentoo-dev 2020-07-17 06:12:29 UTC
Created attachment 649656 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2020-07-17 06:12:32 UTC
Created attachment 649658 [details]
other.tar.bz2

other logs
Comment 3 Jonathan Stepp 2020-07-31 15:08:12 UTC
I am not sure if this is really a fix, but I was able to get the package to build by switching to ruby 2.5 (using eselect ruby set) from ruby 2.4.
Comment 4 Agostino Sarubbo gentoo-dev 2021-05-17 15:29:44 UTC
Dear treecleaner@:

I'm still able to reproduce this issue right now.

Since it has not been fixed for a long time, I'd suggest to evaluate if it is the case to remove this package from the tree. Thanks
Comment 5 Kobboi 2021-06-02 11:19:48 UTC
Are you sure you are reproducing the original problem? I am hitting

"libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-libs/ocl-icd-2.2.14/work/ocl-icd-2.2.14 -Wall -DICD_SUFFIX=\"2\" -O2 -march=znver3 -pipe -g -ggdb -c libdummy_icd_gen.c  -fPIC -DPIC -o .libs/libdummycl2_la-libdummy_icd_gen.o
In file included from run_dummy_icd_weak_gen.c:47:
/usr/include/CL/cl_gl_ext.h:18:9: note: ‘#pragma message: All OpenGL-related extensions have been moved into cl_gl.h.  Please include cl_gl.h directly.’
   18 | #pragma message("All OpenGL-related extensions have been moved into cl_gl.h.  Please include cl_gl.h directly.")
      |         ^~~~~~~
In file included from /var/tmp/portage/dev-libs/ocl-icd-2.2.14/work/ocl-icd-2.2.14/run_dummy_icd.c:42:
/usr/include/CL/cl_gl_ext.h:18:9: note: ‘#pragma message: All OpenGL-related extensions have been moved into cl_gl.h.  Please include cl_gl.h directly.’
   18 | #pragma message("All OpenGL-related extensions have been moved into cl_gl.h.  Please include cl_gl.h directly.")
      |         ^~~~~~~
In file included from run_dummy_icd_gen.c:45:
/usr/include/CL/cl_gl_ext.h:18:9: note: ‘#pragma message: All OpenGL-related extensions have been moved into cl_gl.h.  Please include cl_gl.h directly.’
   18 | #pragma message("All OpenGL-related extensions have been moved into cl_gl.h.  Please include cl_gl.h directly.")
      |         ^~~~~~~
run_dummy_icd_gen.c: In function ‘clCreateSubDevicesEXT’:
run_dummy_icd_gen.c:544:51: error: expected declaration specifiers before ‘CL_EXT_SUFFIX__VERSION_1_1’
  544 |                       cl_uint * /*num_devices*/ ) CL_EXT_SUFFIX__VERSION_1_1;;
      |                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~
run_dummy_icd_gen.c:544:78: error: expected declaration specifiers before ‘;’ token
  544 |                       cl_uint * /*num_devices*/ ) CL_EXT_SUFFIX__VERSION_1_1;;
      |                                                                              ^
run_dummy_icd_gen.c:546:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CL_EXT_SUFFIX__VERSION_1_1’
  546 | clRetainDeviceEXT( cl_device_id /*device*/ ) CL_EXT_SUFFIX__VERSION_1_1;;
      |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~
run_dummy_icd_gen.c:546:73: error: expected declaration specifiers before ‘;’ token
  546 | clRetainDeviceEXT( cl_device_id /*device*/ ) CL_EXT_SUFFIX__VERSION_1_1;;"

which I assume only started happening after the bump of dev-util/opencl-headers to 2021.04.29
Comment 6 James Le Cuirot gentoo-dev 2021-08-29 06:48:22 UTC
I haven't had any trouble since and there are no newer bug reports.