Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 720986 - dev-libs/intel-neo-20.16.16582: Failure to build
Summary: dev-libs/intel-neo-20.16.16582: Failure to build
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Marek Szuba
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-04 19:01 UTC by Jan Vesely
Modified: 2020-07-18 11:01 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Vesely 2020-05-04 19:01:10 UTC
FAILED: offline_compiler/source/CMakeFiles/ocloc.dir/offline_compiler.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++    @offline_compiler/source/CMakeFiles/ocloc.dir/offline_compiler.cpp.o.rsp -MD -MT offline_compiler/source/CMakeFiles/ocloc.dir/offline_compiler.cpp.o -MF offline_compiler/source/CMakeFiles/ocloc.dir/offline_compiler.cpp.o.d -o offline_compiler/source/CMakeFiles/ocloc.dir/offline_compiler.cpp.o -c /var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/shared/offline_compiler/source/offline_compiler.cpp
In file included from /var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/opencl/source/api/dispatch.h:12,
                 from /var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/opencl/source/api/cl_types.h:9,
                 from /var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/opencl/source/helpers/validators.h:9,
                 from /var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/shared/offline_compiler/source/offline_compiler.cpp:20:
/usr/include/CL/cl_ext_intel.h:93:16: error: redefinition of ‘struct _cl_motion_estimation_desc_intel’
   93 | typedef struct _cl_motion_estimation_desc_intel {
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/opencl/source/api/dispatch.h:11,
                 from /var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/opencl/source/api/cl_types.h:9,
                 from /var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/opencl/source/helpers/validators.h:9,
                 from /var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/shared/offline_compiler/source/offline_compiler.cpp:20:
/usr/local/include/CL/cl_ext.h:202:16: note: previous definition of ‘struct _cl_motion_estimation_desc_intel’
  202 | typedef struct _cl_motion_estimation_desc_intel {
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/opencl/source/api/dispatch.h:12,
                 from /var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/opencl/source/api/cl_types.h:9,
                 from /var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/opencl/source/helpers/validators.h:9,
                 from /var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/shared/offline_compiler/source/offline_compiler.cpp:20:
/usr/include/CL/cl_ext_intel.h:98:3: error: conflicting declaration ‘typedef int cl_motion_estimation_desc_intel’
   98 | } cl_motion_estimation_desc_intel;
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/opencl/source/api/dispatch.h:11,
                 from /var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/opencl/source/api/cl_types.h:9,
                 from /var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/opencl/source/helpers/validators.h:9,
                 from /var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/shared/offline_compiler/source/offline_compiler.cpp:20:
/usr/local/include/CL/cl_ext.h:207:3: note: previous declaration as ‘typedef struct _cl_motion_estimation_desc_intel cl_motion_estimation_desc_intel’
  207 | } cl_motion_estimation_desc_intel;
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/opencl/source/api/cl_types.h:9,
                 from /var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/opencl/source/helpers/validators.h:9,
                 from /var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/shared/offline_compiler/source/offline_compiler.cpp:20:
/var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/opencl/source/api/dispatch.h:937:25: error: expected initializer before ‘CL_API_SUFFIX__VERSION_2_1’
  937 |     cl_int *errcodeRet) CL_API_SUFFIX__VERSION_2_1;
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/opencl/source/api/dispatch.h:943:25: error: expected initializer before ‘CL_API_SUFFIX__VERSION_2_1’
  943 |     cl_int *errcodeRet) CL_API_SUFFIX__VERSION_2_1;
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/opencl/source/api/dispatch.h:953:22: error: expected initializer before ‘CL_API_SUFFIX__VERSION_2_1’
  953 |     cl_event *event) CL_API_SUFFIX__VERSION_2_1;
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/opencl/source/api/dispatch.h:958:30: error: expected initializer before ‘CL_API_SUFFIX__VERSION_2_1’
  958 |     cl_ulong *hostTimestamp) CL_API_SUFFIX__VERSION_2_1;
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/opencl/source/api/dispatch.h:962:30: error: expected initializer before ‘CL_API_SUFFIX__VERSION_2_1’
  962 |     cl_ulong *hostTimestamp) CL_API_SUFFIX__VERSION_2_1;
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/opencl/source/api/dispatch.h:972:32: error: expected initializer before ‘CL_API_SUFFIX__VERSION_2_1’
  972 |     size_t *paramValueSizeRet) CL_API_SUFFIX__VERSION_2_1;
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/opencl/source/api/dispatch.h:977:36: error: expected initializer before ‘CL_API_SUFFIX__VERSION_2_1’
  977 |     cl_command_queue commandQueue) CL_API_SUFFIX__VERSION_2_1;
      |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/opencl/source/api/dispatch.h:983:21: error: expected initializer before ‘CL_API_SUFFIX__VERSION_2_2’
  983 |     void *userData) CL_API_SUFFIX__VERSION_2_2;
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/opencl/source/api/dispatch.h:989:28: error: expected initializer before ‘CL_API_SUFFIX__VERSION_2_2’
  989 |     const void *specValue) CL_API_SUFFIX__VERSION_2_2;
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/opencl/source/api/cl_types.h:9,
                 from /var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/opencl/source/helpers/validators.h:9,
                 from /var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/shared/offline_compiler/source/offline_compiler.cpp:20:
/var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/opencl/source/api/dispatch.h:1247:5: error: ‘KHRpfn_clCloneKernel’ does not name a type; did you mean ‘KHRpfn_clCreateKernel’?
 1247 |     KHRpfn_clCloneKernel clCloneKernel;
      |     ^~~~~~~~~~~~~~~~~~~~
      |     KHRpfn_clCreateKernel
/var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/opencl/source/api/dispatch.h:1248:5: error: ‘KHRpfn_clCreateProgramWithIL’ does not name a type; did you mean ‘KHRpfn_clCreateProgramWithBinary’?
 1248 |     KHRpfn_clCreateProgramWithIL clCreateProgramWithIL;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     KHRpfn_clCreateProgramWithBinary
/var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/opencl/source/api/dispatch.h:1249:5: error: ‘KHRpfn_clEnqueueSVMMigrateMem’ does not name a type; did you mean ‘KHRpfn_clEnqueueSVMFree’?
 1249 |     KHRpfn_clEnqueueSVMMigrateMem clEnqueueSVMMigrateMem;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     KHRpfn_clEnqueueSVMFree
/var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/opencl/source/api/dispatch.h:1250:5: error: ‘KHRpfn_clGetDeviceAndHostTimer’ does not name a type; did you mean ‘KHRpfn_clGetDeviceInfo’?
 1250 |     KHRpfn_clGetDeviceAndHostTimer clGetDeviceAndHostTimer;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     KHRpfn_clGetDeviceInfo
/var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/opencl/source/api/dispatch.h:1251:5: error: ‘KHRpfn_clGetHostTimer’ does not name a type
 1251 |     KHRpfn_clGetHostTimer clGetHostTimer;
      |     ^~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/opencl/source/api/dispatch.h:1252:5: error: ‘KHRpfn_clGetKernelSubGroupInfo’ does not name a type; did you mean ‘KHRpfn_clGetKernelSubGroupInfoKHR’?
 1252 |     KHRpfn_clGetKernelSubGroupInfo clGetKernelSubGroupInfo;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     KHRpfn_clGetKernelSubGroupInfoKHR
/var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/opencl/source/api/dispatch.h:1253:5: error: ‘KHRpfn_clSetDefaultDeviceCommandQueue’ does not name a type; did you mean ‘KHRpfn_clReleaseCommandQueue’?
 1253 |     KHRpfn_clSetDefaultDeviceCommandQueue clSetDefaultDeviceCommandQueue;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     KHRpfn_clReleaseCommandQueue
/var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/opencl/source/api/dispatch.h:1256:5: error: ‘KHRpfn_clSetProgramReleaseCallback’ does not name a type
 1256 |     KHRpfn_clSetProgramReleaseCallback clSetProgramReleaseCallback;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-libs/intel-neo-20.16.16582/work/compute-runtime-20.16.16582/opencl/source/api/dispatch.h:1257:5: error: ‘KHRpfn_clSetProgramSpecializationConstant’ does not name a type
 1257 |     KHRpfn_clSetProgramSpecializationConstant clSetProgramSpecializationConstant;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Reproducible: Always

Steps to Reproduce:
1. sudo emerge -1 =intel-neo-20.16.16582

Actual Results:  
Fails to build

Expected Results:  
Builds OK.
Comment 1 Jan Vesely 2020-05-04 19:01:48 UTC
$ emerge --info intel-neo
Portage 2.3.89 (python 3.7.7-final-0, default/linux/amd64/17.1, gcc-9.3.0, glibc-2.30-r8, 5.6.10-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.6.10-gentoo-x86_64-Intel-R-_Core-TM-_i7-6700HQ_CPU_@_2.60GHz-with-gentoo-2.6
KiB Mem:    12163284 total,   8611628 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Mon, 04 May 2020 12:45:02 +0000
Head commit of repository gentoo: d65436722ae2c3f2b4f345b9527d6985b273be8f

sh bash 5.0_p17
ld GNU ld (Gentoo 2.33.1 p2) 2.33.1
app-shells/bash:          5.0_p17::gentoo
dev-lang/perl:            5.30.1::gentoo
dev-lang/python:          2.7.18::gentoo, 3.6.10-r2::gentoo, 3.7.7-r2::gentoo, 3.8.2-r2::gentoo
dev-util/cmake:           3.16.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.33.1-r1::gentoo
sys-devel/gcc:            8.4.0::gentoo, 9.3.0::gentoo
sys-devel/gcc-config:     2.2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.6::gentoo (virtual/os-headers)
sys-libs/glibc:           2.30-r8::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git
    sync-user: portage:portage
    priority: -1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE PUEL Intel-SDP intel-ucode NVIDIA-CUDA NVIDIA-r2 freedist MSttfEULA no-source-code linux-fw-redistributable"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -mtune=native -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -mtune=native -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_GB en_US en"
MAKEOPTS="-j8"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl aio amd64 apng bash-completion berkdb bluetooth branding bzip2 cairo caps chroot cilk clang cli client cloudprint clutter colord colordiff connection-sharing crypt cryptsetup cscope css ctype cups curl custom-optimization d3d9 dav1d dbus dga dns-over-tls dnssec dri dri3 drm dts dv dvi eds egl enca evdev exif expat faac faad fdt ffmpeg filter flac fontconfig fortran fpm fpx gbm gd gdbm gdm gif gimp git gles gles2 glib gmp gnome gnome-keyring gnome-online-accounts gnutls google googledrive gpg gphoto2 gpm graphics graphite gstreamer gtk gtk3 hardened hddtemp hdri highlight hostonly hpn http2 hwaccel hwdb hybrid iconv icu id3tag idle imagemagick initramfs inspector introspection ipv6 ithreads jemalloc jit jpeg jpeg2k json justify lapack lcms ldns libdrm libglvnd libinput libkms libnotify libtirpc llvm logrotate lto lvm mad mbox mikmod minizip mktemp mng modern-top mount mp3 mp4 mpeg mpx mtp multicall multilib multitarget musepack mysqli nat nautilus ncurses networkmanager nls nptl nvenc ocl-icd ocl20 office ogg openal opencl opengl openmp opus osmesa p2p pam parallel-compiler pcap pch pcre pcre16 pdf pdfimport pkcs11 playlist png policykit postproc postscript publishers pulseaudio pwquality quicktime raw readline reencrypt rtc samba science screencast sdl2 seccomp secure-delete sha512 smp sockets source-highlight speex spell split-usr sqlite srv ssl staging svc svg syslog system-ffmpeg system-harfbuzz system-icu system-jpeg system-jsoncpp system-libevent system-libvpx system-llvm system-sqlite systemd sysvipc t1lib tci telepathy terminal theora threads threadsafe tiff timezone tor-hardening tordns truetype udev uefi unicode upower usb user-session uvm v4l vaapi vdo vdpau vim-syntax virgl vorbis vulkan wavpack wayland wayland-compositor webgl webp widevine wmf x264 x265 xattr xcb xcomposite xfs xkb xml xmp xmpp xpm xrandr xv xvid xwayland zip zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel" APACHE2_MODULES="alias auth_digest authn_anon authn_default authn_file authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd dir env expires ext_filter file_cache filter headers ident imagemap include info log_config mem_cache mime mime_magic negotiation proxy rewrite setenvif so status unique_id userdir vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc efi-64 multiboot" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en-GB en-US en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer pdfimport" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python3_7" QEMU_SOFTMMU_TARGETS="i386 x86_64 arm ppc aarch64" RUBY_TARGETS="ruby25" USERLAND="GNU" VIDEO_CARDS="nouveau intel i965 iris" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-libs/intel-neo-20.10.16087::gentoo was built with the following:
USE="vaapi" ABI_X86="(64)"
Comment 2 Marek Szuba gentoo-dev 2020-05-05 12:39:55 UTC
I see from the first error in your output that you have got a second, different set of OpenCL headers present in /usr/local. That is what causes at least the struct-redefinition errors, and possibly the others. Could try again with that copy removed, please?
Comment 3 Jan Vesely 2020-05-05 14:32:18 UTC
(In reply to Marek Szuba from comment #2)
> I see from the first error in your output that you have got a second,
> different set of OpenCL headers present in /usr/local. That is what causes
> at least the struct-redefinition errors, and possibly the others. Could try
> again with that copy removed, please?

Thanks! I missed those. probably leftovers from old beignet installation.
I'm not sure why those headers got picked up before /usr/include/CL or the build local ones, but feel free to close as INVALID/NOTABUG.
Comment 4 Marek Szuba gentoo-dev 2020-05-05 14:47:32 UTC
OK. That said, could you possibly open an upstream issue about this? NEO cmake *has* got an option for specifying where to find OpenCL headers, which the ebuild sets to /usr/include - so it really should NOT try to use the headers from /usr/local/include.
Comment 5 Jan Vesely 2020-05-12 23:42:34 UTC
(In reply to Marek Szuba from comment #4)
> OK. That said, could you possibly open an upstream issue about this? NEO
> cmake *has* got an option for specifying where to find OpenCL headers, which
> the ebuild sets to /usr/include - so it really should NOT try to use the
> headers from /usr/local/include.

I don't think there's much NEO can do about it.
gcc -xc -v - gives:
ignoring nonexistent directory "/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include
 /usr/local/include
 /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include-fixed
 /usr/include
End of search list.

so it will always search /usr/local/include before /usr/include.
Comment 6 Marek Szuba gentoo-dev 2020-07-18 11:01:07 UTC
Well, not much to be done from our side anyway.