Hi, when rebuilding the world audit 311971 error appears #make -j5 buildworld --- __vdso_gettc.o --- /usr/src/lib/libc/x86/sys/__vdso_gettc.c:50:10: fatal error: 'dev/hyperv/hyperv.h' file not found #include <dev/hyperv/hyperv.h> ^ 1 error generated. *** [__vdso_gettc.o] Error code 1 make[4]: stopped in /usr/src/lib/libc 1 error make[4]: stopped in /usr/src/lib/libc *** [lib/libc__L] Error code 2 make[3]: stopped in /usr/src 1 error make[3]: stopped in /usr/src *** [libraries] Error code 2 make[2]: stopped in /usr/src 1 error make[2]: stopped in /usr/src *** [_libraries] Error code 2 make[1]: stopped in /usr/src 1 error make[1]: stopped in /usr/src *** [buildworld] Error code 2 make: stopped in /usr/src 1 error make: stopped in /usr/src #uname -a FreeBSD ns1 11.0-STABLE FreeBSD 11.0-STABLE #0 r310624M: Tue Dec 27 12:30:45 MSK 2016 #cat /etc/src.conf WITHOUT_LIB32=true WITHOUT_BLUETOOTH=true WITHOUT_GAMES=true WITHOUT_FLOPPY=true CC=clang CXX=clang++ CPP=clang-cpp #svnlite info Path: . Working Copy Root Path: /usr/src URL: https://svn0.ru.freebsd.org/base/stable/11 Relative URL: ^/stable/11 Repository Root: https://svn0.ru.freebsd.org/base Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f Revision: 311971 Node Kind: directory Schedule: normal Last Changed Author: delphij Last Changed Rev: 311967 Last Changed Date: 2017-01-12 11:12:11 +0300 (чт, 12 янв. 2017) #cat /usr/src/lib/libc/x86/sys/__vdso_gettc.c #ifdef __amd64__ #include <dev/hyperv/hyperv.h> #endif but the file does not exist #ls -a /usr/src/sys/dev/hyperv/ . include pcib utilities it is in the directory ls -a /usr/src/sys/dev/hyperv/include/ . .. hyperv_busdma.h hyperv.h vmbus_xact.h vmbus.h
You can't build world in parallel, infortunately. Try building without -j5.
I tried to compile the world without -j5, but the error persists #chflags -R noschg /usr/obj/usr #rm -rf /usr/obj #make cleandir #make cleandir #make buildworld ... clang -O2 -pipe -march=nehalem -I/usr/src/lib/libc/include -I/usr/src/lib/libc/../../include -I/usr/src/lib/libc/amd64 -DNLS -D__DBINTERFACE_PRIVATE -I/usr/src/lib/libc/../../contrib/gdtoa -I/usr/src/lib/libc/../../contrib/libc-vis -DINET6 -I/usr/obj/usr/src/lib/libc -I/usr/src/lib/libc/resolv -D_ACL_PRIVATE -DPOSIX_MISTAKE -I/usr/src/lib/libc/../libmd -I/usr/src/lib/libc/../../contrib/jemalloc/include -I/usr/src/lib/libc/../../contrib/tzcode/stdtime -I/usr/src/lib/libc/stdtime -I/usr/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/usr/src/lib/libc/rpc -DYP -DNS_CACHING -DSYMBOL_VERSIONING -MD -MF.depend.xdr_sizeof.o -MTxdr_sizeof.o -std=gnu99 -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Qunused-arguments -I/usr/src/lib/libutil -I/usr/src/lib/msun/amd64 -I/usr/src/lib/msun/x86 -I/usr/src/lib/msun/src -c /usr/src/lib/libc/xdr/xdr_sizeof.c -o xdr_sizeof.o clang -O2 -pipe -march=nehalem -I/usr/src/lib/libc/include -I/usr/src/lib/libc/../../include -I/usr/src/lib/libc/amd64 -DNLS -D__DBINTERFACE_PRIVATE -I/usr/src/lib/libc/../../contrib/gdtoa -I/usr/src/lib/libc/../../contrib/libc-vis -DINET6 -I/usr/obj/usr/src/lib/libc -I/usr/src/lib/libc/resolv -D_ACL_PRIVATE -DPOSIX_MISTAKE -I/usr/src/lib/libc/../libmd -I/usr/src/lib/libc/../../contrib/jemalloc/include -I/usr/src/lib/libc/../../contrib/tzcode/stdtime -I/usr/src/lib/libc/stdtime -I/usr/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/usr/src/lib/libc/rpc -DYP -DNS_CACHING -DSYMBOL_VERSIONING -MD -MF.depend.xdr_stdio.o -MTxdr_stdio.o -std=gnu99 -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Qunused-arguments -I/usr/src/lib/libutil -I/usr/src/lib/msun/amd64 -I/usr/src/lib/msun/x86 -I/usr/src/lib/msun/src -c /usr/src/lib/libc/xdr/xdr_stdio.c -o xdr_stdio.o clang -O2 -pipe -march=nehalem -I/usr/src/lib/libc/include -I/usr/src/lib/libc/../../include -I/usr/src/lib/libc/amd64 -DNLS -D__DBINTERFACE_PRIVATE -I/usr/src/lib/libc/../../contrib/gdtoa -I/usr/src/lib/libc/../../contrib/libc-vis -DINET6 -I/usr/obj/usr/src/lib/libc -I/usr/src/lib/libc/resolv -D_ACL_PRIVATE -DPOSIX_MISTAKE -I/usr/src/lib/libc/../libmd -I/usr/src/lib/libc/../../contrib/jemalloc/include -I/usr/src/lib/libc/../../contrib/tzcode/stdtime -I/usr/src/lib/libc/stdtime -I/usr/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/usr/src/lib/libc/rpc -DYP -DNS_CACHING -DSYMBOL_VERSIONING -MD -MF.depend.__vdso_gettc.o -MT__vdso_gettc.o -std=gnu99 -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Qunused-arguments -I/usr/src/lib/libutil -I/usr/src/lib/msun/amd64 -I/usr/src/lib/msun/x86 -I/usr/src/lib/msun/src -c /usr/src/lib/libc/x86/sys/__vdso_gettc.c -o __vdso_gettc.o /usr/src/lib/libc/x86/sys/__vdso_gettc.c:50:10: fatal error: 'dev/hyperv/hyperv.h' file not found #include <dev/hyperv/hyperv.h> ^ 1 error generated. *** Error code 1 Stop. make[4]: stopped in /usr/src/lib/libc *** Error code 1 Stop. make[3]: stopped in /usr/src *** Error code 1 Stop. make[2]: stopped in /usr/src *** Error code 1 Stop. make[1]: stopped in /usr/src *** Error code 1 Stop. make: stopped in /usr/src #clang -v FreeBSD clang version 3.9.1 (tags/RELEASE_391/final 289601) (based on LLVM 3.9.1) Target: x86_64-unknown-freebsd11.0 Thread model: posix InstalledDir: /usr/bin
(In reply to Palle Girgensohn from comment #1) You can make buildworld in parallel. See https://www.freebsd.org/doc/handbook/makeworld.html
I think I know what it is. Is WITHOUT_HYPERV set in src.conf?
(In reply to Ngie Cooper from comment #4) Odd -- it should have been that, but in reality isn't that.
(In reply to Ngie Cooper from comment #5) If the issue is deterministic, could you please try this patch? https://people.freebsd.org/~ngie/conditionalize-hyperv-and-acpi-use-in-__vdso_gettc.c It won't fix scenarios where your header installation into ${WORLDTMP} is stale, or you're running into another issue hidden somewhere in your error logs, but it's worth a shot.
Also, which copy of make are using (bmake from base, bmake from ports, fmake)?
(In reply to Ngie Cooper from comment #7) And finally, could you divulge the contents of your make.conf and src.conf?
Has this problem been resolved?