If the /usr partition is created under a different mount point and symlinked to rather than being directly under the root filesystem, the symlinks in /usr/lib will no longer point to their proper counterparts in /lib. This is due to the links being relative links rather than absolute links. Reproducible: Always Steps to Reproduce: 1. Follow installation instructions through first 8 steps, creating the usr partition under another mount point, with a symlink in the root pointing to it (eg. ln -sf /data/usr /usr) 2. emerge sync && scripts/bootstrap.sh Actual Results: /usr/lib/gcc-lib/i586-pc-linux-gnu/3.2.2/../../../../i586-pc-linux-gnu/bin/ld: cannot find -ldl Expected Results: Portage should have compiled properly Changing the symbolic links from pointing to ../../lib/libraryname to /lib/libraryname solves this problem.
forwarding to the portage team since it is more their area of responsibility
*** This bug has been marked as a duplicate of 55620 ***