Bug 215990 - make buildworld error revision: 311971
Summary: make buildworld error revision: 311971
Status: Closed Unable to Reproduce
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 11.0-STABLE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Mark Linimon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-12 10:27 UTC by Victor
Modified: 2017-05-23 15:08 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Victor 2017-01-12 10:27:49 UTC
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
Comment 1 Palle Girgensohn freebsd_committer freebsd_triage 2017-01-12 15:01:23 UTC
You can't build world in parallel, infortunately. Try building without -j5.
Comment 2 Victor 2017-01-13 08:26:44 UTC
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
Comment 3 tech-lists 2017-01-14 12:41:03 UTC
(In reply to Palle Girgensohn from comment #1)
You can make buildworld in parallel. See https://www.freebsd.org/doc/handbook/makeworld.html
Comment 4 Enji Cooper freebsd_committer freebsd_triage 2017-01-14 12:47:01 UTC
I think I know what it is. Is WITHOUT_HYPERV set in src.conf?
Comment 5 Enji Cooper freebsd_committer freebsd_triage 2017-01-14 12:57:00 UTC
(In reply to Ngie Cooper from comment #4)

Odd -- it should have been that, but in reality isn't that.
Comment 6 Enji Cooper freebsd_committer freebsd_triage 2017-01-14 13:02:58 UTC
(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.
Comment 7 Enji Cooper freebsd_committer freebsd_triage 2017-01-14 13:07:18 UTC
Also, which copy of make are using (bmake from base, bmake from ports, fmake)?
Comment 8 Enji Cooper freebsd_committer freebsd_triage 2017-01-14 13:08:06 UTC
(In reply to Ngie Cooper from comment #7)

And finally, could you divulge the contents of your make.conf and src.conf?
Comment 9 Mark Linimon freebsd_committer freebsd_triage 2017-05-20 21:59:45 UTC
Has this problem been resolved?