When merging tla, configure would fail complaining that "cc" cannot produce executables. I rectified this by adding '--with-cc="$(which gcc)" ' to the configure options. I do not have access to ther Gentoo systems, so I cannot confirm that this bug is general and not specific to my installation.
probably the environment not setup right.