Created attachment 318740 [details]
emerge fail log
=dev-lang/python-2.7.3-r2 fails tests with clang-3.1-r4, I tested also 2.7.3-r1, which fails too.
See http://bugs.python.org/issue9852. According to that bug, this appears to be an issue in clang (since it works when compiled at -O0).
If someone can try this with libffi-3.0.12, that would be awesome.
python 2.7.6 passes tests with clang-3.4.2 and libffi-3.0.13-r1.
python-2.7.6 builds and passes tests fine, libffi 3.0.13-r1.
I had initial failures due to timezone tests. Be sure to have a valid /etc/localtime to make these tests pass.
all build with clang 3.5.0 (current stable) and FEATURES=test enabled for me.
I can also confirm with 3.7. Thanks for testing.