Compilation of procps fails for gcc < 4.4 because -frename-registers does not work on that version (see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36209 for details). Furthermore, a wrong include path for cross-compilation is fixed. Reproducible: Always
Created attachment 184627 [details] Fix for arm and gcc < 4.4 + cross-compile include fix The patch fixes a bug for arm and gcc < 4.4. Furthermore, it contains a cross-compile include fix.
Comment on attachment 184627 [details] Fix for arm and gcc < 4.4 + cross-compile include fix these changes are no good if gcc is generating bad code, file a bug for that as for ncurses, using ROOT in src_* ebuilds is wrong. simply delete the -I paths and see if it works.
The gcc fix was submitted to bug #261111. The package cross-compiles even with the wrong ncurses include path. If a patch is appreciated, I will provide the according sed line.
yes, please post a sed to remove the -I to /usr/include/....
I took a look at the sources of procps and see that there are quite some includes refereing to ncurses.h. I think, removing the -I/usr/include is wrong. So how do we proceed here?
if you read the ebuild you'll see we already clobber CPPFLAGS. so whatever the package itself is doing is irrelevant. the gcc issue has its own bug which means there's nothing left here