Without virtual/libelf: […] checking gelf.h usability... no checking gelf.h presence... no checking for gelf.h... no configure: error: libelf headers are required for building clippy. (Host only when cross-compiling.) […] With virtual/libelf: […] checking gelf.h usability... yes checking gelf.h presence... yes checking for gelf.h... yes checking for elf_memory in -lelf... yes checking for elf_getdata_rawchunk in -lelf... yes checking for gelf_getnote in -lelf... yes checking python interpreter /usr/bin/python3.9... /usr/bin/python3.9 (python3) […]
It's already fixed in https://github.com/gentoo/gentoo/commit/3edfba04e30181f28a122f734feea46426778ef0