The glibc common.eblit calls multilib_env_setup from multilib.eclass that overrides LIBDIR_* values using some fancy hardcoded logic. As a result, the correct LIBDIR_* values from the current profile are being ignored and glibc does not compile correctly on my profile. The multilib.eclass describes multilib_env_setup as intended for cross-compiling. Why is it called on regular host builds then?
Patch on gentoo-dev: https://archives.gentoo.org/gentoo-dev/message/a32582f62f9a198b15113700605d3d4b
Two months with no reply, committed now. commit ffc59b9e2bbe9ad89a1ab60e3a147785fe944141 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: Sat Jul 9 00:03:15 2016 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: Sat Sep 3 13:05:55 2016 sys-libs/glibc: Do not reset multilib vars unless cross-compiling, #588368 Do not call multilib_env_reset unless cross-compiling, in order to prevent the function from redefining profile-defined variables such as LIBDIR_*.
*** Bug 464916 has been marked as a duplicate of this bug. ***