Created attachment 555926 [details] wireguard-0.0.20181119 build.log This might be related to https://bugs.gentoo.org/671650 but I'm not sure and I didn't want to pollute it.
Created attachment 555930 [details] emerge --info
*** Bug 680118 has been marked as a duplicate of this bug. ***
I'm pretty sure it's bug #671760 where latest elfutils requires >=binutils-2.32 to be active. You seem to have binutils-2.31. Can you test with 2.32?
I had both version installed (2.31 and 2.32) at the same time and the compilation failed. Uninstalling binutils-2.31 and using binutils-2.32 solved the issue for me.
Same, issue fixed for me too.
*** This bug has been marked as a duplicate of bug 671760 ***
*** Bug 689304 has been marked as a duplicate of this bug. ***