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: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2020-07-17 06:12 UTC by Agostino Sarubbo
Modified: 2022-12-31 18:31 UTC (History)
4 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.
Comment 7 Larry the Git Cow gentoo-dev 2022-11-23 18:12:48 UTC
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(+)
Comment 8 Larry the Git Cow gentoo-dev 2022-12-31 18:31:58 UTC
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(-)