Date: Sat, 10 Mar 2012 11:39:10 +0200 From: Ivan Klymenko <fidaj@ukr.net> To: "O. Hartmann" <ohartman@mail.zedat.fu-berlin.de> Cc: Current FreeBSD <freebsd-current@freebsd.org> Subject: Re: FreeBSD 10.0-CURRENT #0 r232730: buildworld broken with CLANG? Message-ID: <20120310113910.3f097c13@nonamehost.> In-Reply-To: <4F5A991F.4080502@mail.zedat.fu-berlin.de> References: <4F5A991F.4080502@mail.zedat.fu-berlin.de>
next in thread | previous in thread | raw e-mail | index | archive | help
=D0=92 Sat, 10 Mar 2012 00:58:23 +0100 "O. Hartmann" <ohartman@mail.zedat.fu-berlin.de> =D0=BF=D0=B8=D1=88=D0=B5= =D1=82: > I might have missed the point but since a week now I can't build > FreeBSD 10.0 CURRENT/amd64 with CLANG anymore. >=20 > Amongst other problems I was told that the code this momnet is > incapable to build properly with CLANG, but then several fixes where > merged. >=20 > Building world ends up everytime at the below shown stage. What's > wrong? If I missed something - please enlighten me. I have a similar problem, but with a different result. I noticed this only with the svn revision r232253 FreeBSD 10.0-CURRENT #0 r232717M make.conf: ... #For ccache .if (!empty(.CURDIR:M/usr/src*) || !empty(.CURDIR:M/usr/obj*)) && !defined(= NOCCACHE) CC:=3D${CC:C,^cc,/usr/local/libexec/ccache/world/clang,1} CXX:=3D${CXX:C,^c\+\+,/usr/local/libexec/ccache/world/clang++,1} .endif .if empty(.CURDIR:M/usr/ports/*) .if !defined(CC) || ${CC} =3D=3D "cc" CC=3D/usr/local/libexec/ccache/clang .endif .if !defined(CXX) || ${CXX} =3D=3D "c++" CXX=3D/usr/local/libexec/ccache/clang++ .endif .if !defined(CPP) || ${CPP} =3D=3D "cpp" CPP=3D/usr/local/libexec/ccache/clang -E .endif .endif # Don't die on warnings NO_WERROR=3D WERROR=3D # Don't forget this when using Jails! NO_FSCHG=3D .if ${CC:T} =3D=3D "clang" CFLAGS+=3D -Qunused-arguments -fcolor-diagnostics .endif ... ... /usr/local/libexec/ccache/world/clang -fpic -DPIC -O2 -mmmx -msse -msse2 -= msse3 -mssse3 -pipe -march=3Dnocona -I/usr/src/lib/libc/include -I/usr/src/= lib/libc/../../include -I/usr/src/lib/libc/amd64 -DNLS -D__DBINTERFACE_PRI= VATE -I/usr/src/lib/libc/../../contrib/gdtoa -DINET6 -I/usr/obj/usr/src/lib= /libc -I/usr/src/lib/libc/resolv -D_ACL_PRIVATE -DPOSIX_MISTAKE -DMALLOC_PR= ODUCTION -I/usr/src/lib/libc/../../contrib/tzcode/stdtime -I/usr/src/lib/li= bc/stdtime -I/usr/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN = -I/usr/src/lib/libc/rpc -DYP -DNS_CACHING -DSYMBOL_VERSIONING -std=3Dgnu99 = -fstack-protector -Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialized= -Wno-pointer-sign -Wno-tautological-compare -Wno-unused-value -Wno-parenth= eses-equality -Wno-unused-function -Wno-conversion -Wno-switch-enum -Wno-em= pty-body -c /usr/src/lib/libc/gen/getmntinfo.c -o getmntinfo.So distcc[60773] ERROR: compile /usr/.ccache/tmp/getgrent.tmp.nonamehost.60734= .i on localhost failed clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/i= nclude' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/.= ./../include' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/a= md64' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/.= ./../contrib/gdtoa' clang: warning: argument unused during compilation: '-I /usr/obj/usr/src/li= b/libc' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/r= esolv' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/.= ./../contrib/tzcode/stdtime' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/s= tdtime' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/l= ocale' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/r= pc' In file included from /usr/src/lib/libc/gen/getgrent.c:1: In file included from /usr/src/lib/libc/gen/getgrent.c:39: In file included from /usr/src/lib/libc/../../include/rpc/rpc.h:76: /usr/src/lib/libc/../../include/rpc/rpcb_clnt.h:69:8: error: unknown type n= ame 'rpcblist' extern rpcblist *rpcb_getmaps(const struct netconfig *, const char *); ^ 1 error generated. *** [getgrent.o] Error code 1 clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/i= nclude' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/.= ./../include' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/a= md64' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/.= ./../contrib/gdtoa' clang: warning: argument unused during compilation: '-I /usr/obj/usr/src/li= b/libc' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/r= esolv' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/.= ./../contrib/tzcode/stdtime' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/s= tdtime' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/l= ocale' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/r= pc' distcc[60803] ERROR: compile /usr/.ccache/tmp/getgrent.tmp.nonamehost.60756= .i on localhost failed clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/i= nclude' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/.= ./../include' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/a= md64' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/.= ./../contrib/gdtoa' clang: warning: argument unused during compilation: '-I /usr/obj/usr/src/li= b/libc' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/r= esolv' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/.= ./../contrib/tzcode/stdtime' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/s= tdtime' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/l= ocale' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/r= pc' In file included from /usr/src/lib/libc/gen/getgrent.c:1: In file included from /usr/src/lib/libc/gen/getgrent.c:39: In file included from /usr/src/lib/libc/../../include/rpc/rpc.h:76: /usr/src/lib/libc/../../include/rpc/rpcb_clnt.h:69:8: error: unknown type n= ame 'rpcblist' extern rpcblist *rpcb_getmaps(const struct netconfig *, const char *); ^ 1 error generated. *** [getgrent.So] Error code 1 clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/i= nclude' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/.= ./../include' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/a= md64' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/.= ./../contrib/gdtoa' clang: warning: argument unused during compilation: '-I /usr/obj/usr/src/li= b/libc' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/r= esolv' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/.= ./../contrib/tzcode/stdtime' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/s= tdtime' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/l= ocale' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/r= pc' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/i= nclude' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/.= ./../include' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/a= md64' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/.= ./../contrib/gdtoa' clang: warning: argument unused during compilation: '-I /usr/obj/usr/src/li= b/libc' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/r= esolv' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/.= ./../contrib/tzcode/stdtime' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/s= tdtime' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/l= ocale' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/r= pc' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/i= nclude' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/.= ./../include' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/a= md64' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/.= ./../contrib/gdtoa' clang: warning: argument unused during compilation: '-I /usr/obj/usr/src/li= b/libc' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/r= esolv' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/.= ./../contrib/tzcode/stdtime' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/s= tdtime' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/l= ocale' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/r= pc' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/i= nclude' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/.= ./../include' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/a= md64' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/.= ./../contrib/gdtoa' clang: warning: argument unused during compilation: '-I /usr/obj/usr/src/li= b/libc' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/r= esolv' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/.= ./../contrib/tzcode/stdtime' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/s= tdtime' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/l= ocale' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/r= pc' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/i= nclude' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/.= ./../include' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/a= md64' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/.= ./../contrib/gdtoa' clang: warning: argument unused during compilation: '-I /usr/obj/usr/src/li= b/libc' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/r= esolv' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/.= ./../contrib/tzcode/stdtime' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/s= tdtime' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/l= ocale' clang: warning: argument unused during compilation: '-I /usr/src/lib/libc/r= pc' 2 errors *** [lib/libc__L] Error code 2 1 error *** [libraries] Error code 2 1 error *** [_libraries] Error code 2 1 error *** [buildworld] Error code 2 Stop in /usr/src.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120310113910.3f097c13>