Created attachment 431432 [details] build.log All those colliding files are symlinks. # file /usr/include/CL/cl_gl_ext.h /usr/include/CL/cl_gl_ext.h: symbolic link to ../../lib64/OpenCL/global/include/CL-1.1/cl_gl_ext.h # qfile /usr/lib64/OpenCL/global/include/CL-1.1/cl_gl_ext.h app-eselect/eselect-opencl (/usr/lib64/OpenCL/global/include/CL-1.1/cl_gl_ext.h) I guess that those symlinks were installed by eselect-opencl at some point but portage somehow lost track of them?
Same happened here using profile default/linux/amd64/17.0 * This package will overwrite one or more files that may belong to other * packages (see list below). * * package app-eselect/eselect-opencl-1.1.0-r4 NOT merged * * Detected file collision(s): * * /usr/include/CL/opencl.h * /usr/include/CL/cl_platform.h * /usr/include/CL/cl.h * /usr/include/CL/cl_ext.h * /usr/include/CL/cl_gl.h * /usr/include/CL/cl_gl_ext.h Searching for package responsible for installation I found the following result: * Searching for /usr/include/CL/opencl.h ... app-eselect/eselect-opencl-1.1.0-r1 (/usr/lib64/OpenCL/global/include/CL/opencl.h) So just like Louis Sautier mentioned, it seems that emerge somehow are not removing old symlink files from the previous version of the package being upgraded.
I just run emerge -Cav eselect-opencl I verified that it leaves the symlinks created. So this confirms that those symlinks don't belong to app-eselect/eselect-opencl-1.1.0-r1. I just installed the new package release ignoring collisions.
I also encountered the same error. There might be another issue that describes this issue more accurately.