can't compile qemu 0.5.5 due to lost #include <errno.h> in target-i386/helper2.c, adding this #include solves the problem. Problem may be releated to something else? ;/ Reproducible: Always Steps to Reproduce: Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040420-r0, 2.6.6-love1)
Created attachment 31570 [details, diff] Patch wich adds #include <errno.h> in target-i386/helper2.c whoops, forget about patch, fixing ;)
I'll take a look, how it fails w/out it?
/tmp/portage/qemu-0.5.5/work/qemu-0.5.5/target-i386/helper2.c: In function `modify_ldt': /tmp/portage/qemu-0.5.5/work/qemu-0.5.5/target-i386/helper2.c:38: error: `errno' undeclared (first use in this function) /tmp/portage/qemu-0.5.5/work/qemu-0.5.5/target-i386/helper2.c:38: error: (Each undeclared identifier is reported only once /tmp/portage/qemu-0.5.5/work/qemu-0.5.5/target-i386/helper2.c:38: error: for each function it appears in.) make[1]: *** [helper2.o] Error 1 make[1]: Leaving directory `/tmp/portage/qemu-0.5.5/work/qemu-0.5.5/i386-user' make: *** [all] Error 1 with something like this ;)
which targets did you enable?
which targets did you enable? Strangely enough I did a grep for errno in the qemu tree and in that file errno isn't present a all. looks like you have somewhat messed up includes, maybe bogus kernel includes?
yes, my kernel-headers is broken ;) sorry