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.
Created attachment 649656 [details] build.log build log and emerge --info
Created attachment 649658 [details] other.tar.bz2 other logs
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.
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
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
I haven't had any trouble since and there are no newer bug reports.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1cbb3783e9b490718ff2c1725d947aa368d9e0d commit b1cbb3783e9b490718ff2c1725d947aa368d9e0d Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2022-11-23 18:12:24 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2022-11-23 18:12:45 +0000 package.mask: Last rite dev-libs/ocl-icd Bug: https://bugs.gentoo.org/733018 Signed-off-by: Michał Górny <mgorny@gentoo.org> profiles/package.mask | 6 ++++++ 1 file changed, 6 insertions(+)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2016a1c654683cf978a7c9a9946b62987b8535d commit f2016a1c654683cf978a7c9a9946b62987b8535d Author: Jakov Smolić <jsmolic@gentoo.org> AuthorDate: 2022-12-31 18:08:15 +0000 Commit: Jakov Smolić <jsmolic@gentoo.org> CommitDate: 2022-12-31 18:08:15 +0000 dev-libs/ocl-icd: treeclean Closes: https://bugs.gentoo.org/733018 Closes: https://bugs.gentoo.org/736860 Closes: https://bugs.gentoo.org/643102 Signed-off-by: Jakov Smolić <jsmolic@gentoo.org> dev-libs/ocl-icd/Manifest | 2 - .../ocl-icd/files/ocl-icd-2.3.0-new-headers.patch | 94 ---------------------- dev-libs/ocl-icd/metadata.xml | 13 --- dev-libs/ocl-icd/ocl-icd-2.3.0.ebuild | 62 -------------- dev-libs/ocl-icd/ocl-icd-2.3.1.ebuild | 58 ------------- profiles/package.mask | 6 -- 6 files changed, 235 deletions(-)