GNU nano 2.8.7 File: /var/tmp/portage/dev-libs/klibc-2.0.4-r2/temp/build.log ## sorry truncated... distcc[11581] (dcc_build_somewhere) Warning: failed to distribute, running locally instead In file included from ^[[01m^[[K/var/tmp/portage/dev-libs/klibc-2.0.4-r2/work/klibc-2.0.4/linux/include/uapi/linux/time.h:4:0^[[m^[[K, from ^[[01m^[[K/var/tmp/portage/dev-libs/klibc-2.0.4-r2/work/klibc-2.0.4/usr/klibc/../include/sys/time.h:11^[[m^[[K, from ^[[01m^[[K/var/tmp/portage/dev-libs/klibc-2.0.4-r2/work/klibc-2.0.4/usr/klibc/../include/sys/select.h:9^[[m^[[K, from ^[[01m^[[K/var/tmp/portage/dev-libs/klibc-2.0.4-r2/work/klibc-2.0.4/usr/klibc/../include/unistd.h:13^[[m^[[K, from ^[[01m^[[Kusr/klibc/shm_open.c:10^[[m^[[K: ^[[01m^[[K/var/tmp/portage/dev-libs/klibc-2.0.4-r2/work/klibc-2.0.4/linux/include/uapi/linux/types.h:9:2:^[[m^[[K ^[[01;35m^[[Kwarning: ^[[m^[[K#warning "Atte$ #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders" ^[[01;32m^[[K ^^[[m^[[K In file included from ^[[01m^[[K/var/tmp/portage/dev-libs/klibc-2.0.4-r2/work/klibc-2.0.4/linux/include/uapi/linux/time.h:4:0^[[m^[[K, from ^[[01m^[[K/var/tmp/portage/dev-libs/klibc-2.0.4-r2/work/klibc-2.0.4/usr/klibc/../include/sys/time.h:11^[[m^[[K, from ^[[01m^[[K/var/tmp/portage/dev-libs/klibc-2.0.4-r2/work/klibc-2.0.4/usr/klibc/../include/sys/select.h:9^[[m^[[K, from ^[[01m^[[K/var/tmp/portage/dev-libs/klibc-2.0.4-r2/work/klibc-2.0.4/usr/klibc/../include/unistd.h:13^[[m^[[K, from ^[[01m^[[Kusr/klibc/mmap.c:9^[[m^[[K: ^[[01m^[[K/var/tmp/portage/dev-libs/klibc-2.0.4-r2/work/klibc-2.0.4/linux/include/uapi/linux/types.h:9:2:^[[m^[[K ^[[01;35m^[[Kwarning: ^[[m^[[K#warning "Atte$ #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders" ^[[01;32m^[[K ^^[[m^[[K KLIBCCC usr/klibc/shm_unlink.o distcc[11593] (dcc_build_somewhere) Warning: failed to distribute, running locally instead In file included from ^[[01m^[[K/var/tmp/portage/dev-libs/klibc-2.0.4-r2/work/klibc-2.0.4/linux/include/uapi/asm-generic/signal.h:4:0^[[m^[[K, from ^[[01m^[[K/var/tmp/portage/dev-libs/klibc-2.0.4-r2/work/klibc-2.0.4/linux/arch/arm64/include/uapi/asm/signal.h:25^[[m^[[K, from ^[[01m^[[K/var/tmp/portage/dev-libs/klibc-2.0.4-r2/work/klibc-2.0.4/usr/include/arch/arm64/klibc/archsignal.h:11^[[m^[[K, from ^[[01m^[[K/var/tmp/portage/dev-libs/klibc-2.0.4-r2/work/klibc-2.0.4/usr/klibc/../include/signal.h:14^[[m^[[K, from ^[[01m^[[Kusr/klibc/sigsuspend.c:5^[[m^[[K: ^[[01m^[[K/var/tmp/portage/dev-libs/klibc-2.0.4-r2/work/klibc-2.0.4/linux/include/uapi/linux/types.h:9:2:^[[m^[[K ^[[01;35m^[[Kwarning: ^[[m^[[K#warning "Atte$ #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders" from ^[[01m^[[Kusr/klibc/sigsuspend.c:5^[[m^[[K: ^[[01m^[[K/var/tmp/portage/dev-libs/klibc-2.0.4-r2/work/klibc-2.0.4/linux/include/uapi/linux/types.h:9:2:^[[m^[[K ^[[01;35m^[[Kwarning: ^[[m^[[K#warning "Atte$ #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders" ^[[01;32m^[[K ^^[[m^[[K KLIBCCC usr/klibc/memcpy.o ^[[01m^[[Kusr/klibc/sigsuspend.c:8:31:^[[m^[[K ^[[01;31m^[[Kfatal error: ^[[m^[[Kklibc/havesyscall.h: No such file or directory compilation terminated. distcc[11489] ERROR: compile usr/klibc/sigsuspend.c on localhost failed distcc[11604] (dcc_build_somewhere) Warning: failed to distribute, running locally instead /var/tmp/portage/dev-libs/klibc-2.0.4-r2/work/klibc-2.0.4/scripts/Kbuild.klibc:254: recipe for target 'usr/klibc/sigsuspend.o' failed make[2]: *** [usr/klibc/sigsuspend.o] Error 1 make[2]: *** Waiting for unfinished jobs.... In file included from ^[[01m^[[K/var/tmp/portage/dev-libs/klibc-2.0.4-r2/work/klibc-2.0.4/linux/include/uapi/linux/time.h:4:0^[[m^[[K, from ^[[01m^[[K/var/tmp/portage/dev-libs/klibc-2.0.4-r2/work/klibc-2.0.4/usr/klibc/../include/sys/time.h:11^[[m^[[K, from ^[[01m^[[K/var/tmp/portage/dev-libs/klibc-2.0.4-r2/work/klibc-2.0.4/usr/klibc/../include/sys/select.h:9^[[m^[[K, from ^[[01m^[[K/var/tmp/portage/dev-libs/klibc-2.0.4-r2/work/klibc-2.0.4/usr/klibc/../include/unistd.h:13^[[m^[[K, from ^[[01m^[[Kusr/klibc/shm_unlink.c:10^[[m^[[K: ^[[01m^[[K/var/tmp/portage/dev-libs/klibc-2.0.4-r2/work/klibc-2.0.4/linux/include/uapi/linux/types.h:9:2:^[[m^[[K ^[[01;35m^[[Kwarning: ^[[m^[[K#warning "Atte$ #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders" ^[[01;32m^[[K ^^[[m^[[K /var/tmp/portage/dev-libs/klibc-2.0.4-r2/work/klibc-2.0.4/./Kbuild:8: recipe for target 'all' failed make[1]: *** [all] Error 2 Makefile:119: recipe for target 'klibc' failed make: *** [klibc] Error 2 * ERROR: dev-libs/klibc-2.0.4-r2::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=dev-libs/klibc-2.0.4-r2::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-libs/klibc-2.0.4-r2::gentoo'`. * The complete build log is located at '/var/log/portage/dev-libs:klibc-2.0.4-r2:20171030-195646.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-libs/klibc-2.0.4-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-libs/klibc-2.0.4-r2/temp/environment'. * Working directory: '/var/tmp/portage/dev-libs/klibc-2.0.4-r2/work/klibc-2.0.4' * S: '/var/tmp/portage/dev-libs/klibc-2.0.4-r2/work/klibc-2.0.4'
Please change title to "dev-libs/klib build fails with distcc". Can you guys kindly disable distcc for that ebuild? https://marc.info/?l=gentoo-user&m=148544875109876&w=2 The following worked for me: FEATURES="-distcc" emerge -1v --nodeps =dev-libs/klibc-2.0.4-r2 Thanks, Daniel
I don't use distcc, but have same problem. find . -name havesyscall.h doesn't find it in sources. Though i'm unsure, it seems that it must be generated - there are both perl and shell scripts with such name. gcc-6.4.0, glibc latest stable. Kernel: active is 4.11.9. Though i upgraded to 4.13, all new kernels are installed with USE='-symlink'.
Problem seems to come fron ebuild's own build sequence. When i simply ran "make" from workdir, it was ok.
please retry with 2.0.4-r3
I just emerged 2.0.4-r3: https://bugs.gentoo.org/653642