Created attachment 376844 [details] emerge --info Hello, When I am trying to switch between profiles with/without x86_x32 support, gcc will fail to compile because ld can't find dev-libs/mpc and dev-libs/mpfr with the new targeted ABI_X86 support. For example, trying to compile sys-devel/gcc-4.7.3-r1 after switching from hardened/linux/amd64/x32 to hardened/linux/amd64: /usr/x86_64-pc-linux-gnux32/bin/ld: cannot find -lmpc /usr/x86_64-pc-linux-gnux32/bin/ld: cannot find -lmpfr Therefore, with the lack of handling different ABIs, I can't change of cross compile for another architecture/profile. Reproducible: Always Steps to reproduce: 1. Switching between x32 and no-x32 profile; 2. emerge package with deps to dev-libs/mpc and/or dev-libs/mpfr like sys-devel/gcc. For information, I tried to compile dev-libs/mpc and dev-libs/mpfr on there own, just after switching to no-x32 profile; mpfr succeed but mpc: checking for MPFR... no configure: error: libmpfr not found or uses a different ABI (including static vs shared). but mpfr's files were under /usr/lib64/ Thanks for support. (for my emerge --info, I switched back to hardened/linux/amd64/x32 profile until I found how to resolve the bug)
Commit message: Add multilib support http://sources.gentoo.org/dev-libs/mpfr/mpfr-3.1.2_p10.ebuild?rev=1.1
should be all set now in the tree; thanks for the report! Commit message: Add multilib support http://sources.gentoo.org/dev-libs/mpc/mpc-1.0.2-r1.ebuild?rev=1.1