Bug 213708 - buildworld fail
Summary: buildworld fail
Status: Closed Feedback Timeout
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 11.0-STABLE
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-22 18:33 UTC by Ivan Rozhuk
Modified: 2017-03-11 23:13 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Rozhuk 2016-10-22 18:33:06 UTC
/etc/make.conf
# C Lang
CC=clang
CXX=clang++
CPP=clang-cpp


make -j4 -s -DALWAYS_CHECK_MAKE buildworld
make[1]: "/usr/src/Makefile.inc1" line 144: SYSTEM_COMPILER: Determined that CC=clang matches the source tree.  Not bootstrapping a cross-compiler.
--------------------------------------------------------------
>>> World build started on Sat Oct 22 03:50:16 MSK 2016
--------------------------------------------------------------

--------------------------------------------------------------
>>> Rebuilding the temporary build tree
--------------------------------------------------------------

--------------------------------------------------------------
>>> stage 1.1: legacy release compatibility shims
--------------------------------------------------------------
===> tools/build (obj,includes,all,install)
--------------------------------------------------------------
>>> stage 1.2: bootstrap tools
--------------------------------------------------------------
...
--------------------------------------------------------------
>>> stage 2.1: cleaning up the object tree
--------------------------------------------------------------
...
--------------------------------------------------------------
>>> stage 2.2: rebuilding the object tree
--------------------------------------------------------------
...
--------------------------------------------------------------
>>> stage 2.3: build tools
--------------------------------------------------------------
...
--------------------------------------------------------------
>>> stage 3: cross tools
--------------------------------------------------------------
===> gnu/usr.bin/binutils (obj,all,install)
===> gnu/usr.bin/binutils/doc (obj)
===> gnu/usr.bin/binutils/libiberty (obj)
===> gnu/usr.bin/binutils/libbfd (obj)
===> gnu/usr.bin/binutils/libopcodes (obj)
===> gnu/usr.bin/binutils/libbinutils (obj)
===> gnu/usr.bin/binutils/as (obj)
===> gnu/usr.bin/binutils/ld (obj)
===> gnu/usr.bin/binutils/objdump (obj)
===> gnu/usr.bin/binutils/doc (all)
===> gnu/usr.bin/binutils/libiberty (all)
===> gnu/usr.bin/binutils/libbfd (all)
===> gnu/usr.bin/binutils/libopcodes (all)
===> gnu/usr.bin/binutils/libbinutils (all)
===> gnu/usr.bin/binutils/as (all)
===> gnu/usr.bin/binutils/ld (all)
===> gnu/usr.bin/binutils/objdump (all)
===> gnu/usr.bin/binutils/doc (install)
===> gnu/usr.bin/binutils/libiberty (install)
===> gnu/usr.bin/binutils/libbfd (install)
===> gnu/usr.bin/binutils/libopcodes (install)
===> gnu/usr.bin/binutils/libbinutils (install)
===> gnu/usr.bin/binutils/as (install)
===> gnu/usr.bin/binutils/ld (install)
===> gnu/usr.bin/binutils/objdump (install)
===> lib/libelftc (obj,all,install)
===> lib/libpe (obj,all,install)
===> usr.bin/elfcopy (obj,all,install)
===> usr.bin/nm (obj,all,install)
===> usr.bin/size (obj,all,install)
===> usr.bin/strings (obj,all,install)
===> usr.bin/addr2line (obj,all,install)
===> sys/boot/usb/tools (obj,all,install)

--------------------------------------------------------------
>>> stage 4.1: building includes
--------------------------------------------------------------
...
--------------------------------------------------------------
>>> stage 4.2: building libraries
--------------------------------------------------------------
===> gnu/lib/libssp/libssp_nonshared (obj,all,install)
===> gnu/lib/libgcc (obj,all,install)
===> lib/libcompiler_rt (obj,all,install)
===> gnu/lib/csu (obj,all,install)
===> lib/csu (obj,all,install)
===> lib/libcompiler_rt (obj,all,install)
===> lib/libc (obj,all,install)
===> lib/csu/amd64 (obj)
===> lib/csu/amd64 (all)
===> lib/libc_nonshared (obj,all,install)
===> lib/csu/amd64 (install)
/usr/src/lib/libc/sys/__vdso_gettimeofday.c:43:27: error: too many arguments to function call, expected single argument 'vdso_th', have 2 arguments
        error = __vdso_gettc(th, &tc);
                ~~~~~~~~~~~~     ^~~
/usr/include/sys/vdso.h:65:1: note: '__vdso_gettc' declared here
u_int __vdso_gettc(const struct vdso_timehands *vdso_th);
^
1 error generated.
--- __vdso_gettimeofday.o ---
*** [__vdso_gettimeofday.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 ---
*** [lib/libc__L] Error code 2

make[3]: stopped in /usr/src
1 error




OK if:
/etc/make.conf
# C Lang
#CC=clang
#CXX=clang++
#CPP=clang-cpp

make -j4 -s -DALWAYS_CHECK_MAKE buildworld
make[1]: "/usr/src/Makefile.inc1" line 144: SYSTEM_COMPILER: Determined that CC=cc matches the source tree.  Not bootstrapping a cross-compiler.
--------------------------------------------------------------
>>> World build started on Sat Oct 22 20:36:32 MSK 2016
--------------------------------------------------------------

--------------------------------------------------------------
>>> Rebuilding the temporary build tree
--------------------------------------------------------------
--------------------------------------------------------------
>>> stage 1.1: legacy release compatibility shims
--------------------------------------------------------------
===> tools/build (obj,includes,all,install)
--------------------------------------------------------------
>>> stage 1.2: bootstrap tools
--------------------------------------------------------------
...