While I was building llvm for both x86 and x86_64, at some point binutils headers (plugin-api.h) could not be found. To solve this, I had to build binutils-libs also for both x86 and x86_64. This dependency should be expressed in ebuild. Reproducible: Always Steps to Reproduce: 1. USE="multitarget abi_x86_32 abi_x86_64" emerge llvm 2. 3. Actual Results: Building process interrupted, compiler can't find plugin-api.h Expected Results: Building process completed mesa +opencl dependency.
Please attach a build log. 'emerge --info' would also be appreciated. A few early notes: 1. this is purely about MULTILIB_USEDEP and not multitarget, 2. binutils-libs and the specific header you mention are only required for the gold plugin, 3. ...and we attempt to disable building this plugin for non-native ABIs. So either the old method of disabling it stopped working at some point (in which version?), or you are using some non-standard configuration. In either case, build log would be of great help.