Created attachment 306163 [details] new ebuild I susspect this happens also with other gcc-4.7 versions. It seems this is to missing include that is not default with new gcc. Here is new abuild and small patch.
Created attachment 306165 [details, diff] patch for compiling with gcc-4.7.0_rc*
Please attach full build.log and paste your emerge --info for completeness. TIA
Created attachment 306175 [details] emerge --info
Created attachment 306177 [details] portage log file
It's just a case of missing #include <unistd.h> that was not needed with 4.6* and earlier. I don't know if this is gcc-4.7* bug or feature, but it seems that at least several packages are affected by it...
(In reply to comment #5) > It's just a case of missing #include <unistd.h> that was not needed with > 4.6* and earlier. > > I don't know if this is gcc-4.7* bug or feature, but it seems that at least > several packages are affected by it... It's a "feature" ;) and more than several are affected you can find a good estimate at fedora's ml[1]. Thanks again for the report. Assigning to the maintainers. [1] https://lists.fedoraproject.org/pipermail/devel/2011-December/160723.html
Reported upstream and fixed in CVS. Thanks.