We need to throughly look through all the scattered magics. For libomptarget: a. generic plugins require libelf + libffi, b. CUDA plugin requires libelf + CUDA (only amd64 & ppc64). That said, I'm not sure if there's any point in building libomptarget without any plugins.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6bd35597bac4453dbdd861daba54b9228558a4df commit 6bd35597bac4453dbdd861daba54b9228558a4df Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2018-01-20 08:05:03 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2018-01-20 08:54:38 +0000 sys-libs/libomp: Add flags to control offloading (to 6+) Add USE=offload to control building libomptarget for offloading. When enabled, build the native offloading plugin unconditionally. Also add USE=cuda to support building the CUDA plugin. Closes: https://bugs.gentoo.org/645048 sys-libs/libomp/libomp-6.0.9999.ebuild | 28 +++++++++++++++++++++++----- sys-libs/libomp/libomp-9999.ebuild | 30 ++++++++++++++++++++++++------ sys-libs/libomp/metadata.xml | 2 ++ 3 files changed, 49 insertions(+), 11 deletions(-)