Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 635942 - dev-libs/klibc-2.0.4-r2 - fatal error: klibc/havesyscall.h: No such file or directory
Summary: dev-libs/klibc-2.0.4-r2 - fatal error: klibc/havesyscall.h: No such file or d...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM64 Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-30 20:48 UTC by Michael Lawrence
Modified: 2018-04-21 08:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Lawrence 2017-10-30 20:48:14 UTC
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'
Comment 1 Daniel Santos 2017-11-05 23:11:46 UTC
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
Comment 2 Nikita Zlobin 2017-11-28 12:54:08 UTC
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'.
Comment 3 Nikita Zlobin 2017-11-28 18:50:45 UTC
Problem seems to come fron ebuild's own build sequence.
When i simply ran "make" from workdir, it was ok.
Comment 4 Pacho Ramos gentoo-dev 2018-04-17 15:01:21 UTC
please retry with 2.0.4-r3
Comment 5 augustin 2018-04-21 02:00:29 UTC
I just emerged 2.0.4-r3: 
https://bugs.gentoo.org/653642