I\'m actually reading the LFS book (version 7.1) and I\'m blocked at page 53. Trying to compile gcc, I tried the following command:
./configure --target=$LFS_TGT
This issue is caused by dyanmic link library path issue when the test programs try to link against libmpc/libmpfr/libgmp.
Append below environment variable to allow ld link against the correct so file:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/mpc/lib/
Then try build gcc again.