@Anonymous , without more details on the circumstances / facts, cannot really be sure of the answer. But generally, any foreign earned income that is excluded from US taxes is not eligible for foreign tax credit thereon. This is because generally the purpose of the foreign earned income exclusion is to ameliorate effects of double taxation.
If you need a more specific answer that addresses your particular situation, then please provide more details including the income source country.