I can’t build dev-python/bsddb3 in src_compile phase, this is true for both versions in the tree (6.1.1 and 6.2.4). Reproducible: Always I had as python_targets the 2.7 and 3.4 versions enabled.
Created attachment 475338 [details] build.log for 6.1.1
Created attachment 475340 [details] build.log for 6.2.4
Created attachment 475342 [details] emerge --info
Created attachment 475344 [details] emerge --info from a system building bsddb3 successfully This output came from a friend which succeeded to build the package without any issue.
Tried with both gcc 6.2 and 6.3, it still fails.
I can reproduce this. This should be due to python itself being compiled with not-gcc. Can you try re-emerging dev-lang/python with gcc (`CC=gcc CXX=g++ emerge -av dev-lang/python`), and see if that helps? That said, it sounds like a python bug. I've filed http://bugs.python.org/msg298248
No, it did not change anything, I emerged python 2 and 3 with CC=gcc CXX=g++ it didnt work.
I finally cleaned my system and got back to a uniform gcc use, and could confirm that by re-emerging python:2.7, python:3.5 and sys-level/db prior to bsddb3, it could be fixed. I can also confirm that one or all of these were directly responsible as I triggered the error again before re-emerging them. Since clang/gcc mixing are not suggested officially I'll mark this bug as wontfix.