Changing the systemwide gcc version will cause env-update to fail every time to add the new gcc's library directory to /etc/ld.so.conf Reproducible: Always Steps to Reproduce: 1. Install Gentoo with uClibc stage3. 2. Install a different version of gcc than the one the stage3 was shipped with. 3. Switch over to the new gcc with gcc-config Actual Results: /etc/ld.so.conf does not include /usr/lib/gcc/$toolchain/$gcc_version. Re-running env-update and ldconfig will not fix this. One of the consequences of this is inability to run binaries linked dynamically against the C++ standard library. Expected Results: /etc/ld.so.conf should include /usr/lib/gcc/$toolchain/$gcc_version Adding /usr/lib/gcc/$toolchain/$gcc_version to /etc/ld.so.conf and running ldconfig seems to fix the issue if /lib and /usr/lib will be uncommented from the file. Also, /etc/ld.so.conf.d directory is missing in stage3 and this is required to build kernels with genkernel. Making this directory in advance give the system an opportunity to generate a file called 05gcc-x86_64-gentoo-linux-uclibc.conf at some point (not exactly sure when) that contains the line missing from ld.so.conf.
Please submit emerge --info output.
why do you think genkernel requires /etc/ld.so.conf.d ? did you create that dir *before* running gcc-config ? if you delete that dir and then run gcc-config, do things work correctly ?
this is a long standing unconfirmed bug that i can't reproduce. i'm going to close it NEEDINFO. if something is going on here, i can't make sense of it without more clues.