The config script for lilypond is not finding Python.h. Please fix by adding: --with-python-include="$(python_get_includedir)" to the econf section of the ebuild. Reproducible: Always
Please attach the build log and your emerge --info.
Created attachment 309953 [details] Build Log
Created attachment 309955 [details] emerge --info
Your CFLAGS are a bit extreme when building lilypond. In particular, the -floop-strip option is causing the problem since it doesn't exist in the gcc version you're using. Build lilypond with sane CFLAGS such as the ones in your attached emerge --info and it should work fine.
(In reply to comment #4) > Your CFLAGS are a bit extreme when building lilypond. In particular, the > -floop-strip option is causing the problem since it doesn't exist in the gcc > version you're using. > > Build lilypond with sane CFLAGS such as the ones in your attached emerge > --info and it should work fine. Actually I guess those appear to be getting pulled from somewhere else.
Namely, what does `python-config --cflags` output on your system?
I have some flags in /etc/make.conf that are commented out, and that I only uses on a specific package. Perhaps I had those options turned on when I compiled python at some time. That looks to be where it is getting those build flags from. Although -floop-strip is incorrect. If I built it with those options turned on it would be -floop-strip-mine. I'll try rebuilding python with correct flags to see if that changes anything.
Python config is: -I/usr/include/python2.7 -I/usr/include/python2.7 -fno-strict-aliasing -O2 -march=native -mfpmath=sse -ftree-vectorize -fomit-frame-pointer -pipe -fprefetch-loop-arrays -floop-block -floop-strip-mine -floop-interchange -fwrapv -DNDEBUG So I did apparently build it with those flags enabled. It would seem then that the flag string from python config is getting truncated somewhere.
Rebuilding Python fixed it. Feel free to close. Thanks.
This actually was a real bug which has been adressed in bug 415793 *** This bug has been marked as a duplicate of bug 415793 ***