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).
http://llvm.org/bugs/show_bug.cgi?id=15153
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.
python-2.7.10-r1.ebuild python-2.7.11-r2.ebuild python-3.3.5-r3.ebuild python-3.3.5-r8.ebuild python-3.4.3-r1.ebuild python-3.4.3-r7.ebuild python-3.5.0-r2.ebuild python-3.5.1-r2.ebuild 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.