Date: Thu, 23 May 2013 10:33:33 +0000 From: "Eggert, Lars" <lars@netapp.com> To: Dimitry Andric <dim@freebsd.org> Cc: "current@freebsd.org" <current@freebsd.org> Subject: Re: ccache issues during buildworld on recent -CURRENT Message-ID: <743F375A-F0C1-466E-8E34-E1319FFD9045@netapp.com> In-Reply-To: <519CADE5.5020908@FreeBSD.org> References: <7DBA8962-9108-489E-81EA-ECE8D72698D1@netapp.com> <519CADE5.5020908@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, On May 22, 2013, at 13:37, Dimitry Andric <dim@freebsd.org> wrote: > Can you try to figure out which copy of clang ccache finds and runs? I enabled CCACHE_LOGFILE, and it seems that it runs /usr/bin/clang: [2013-05-23T12:25:36.810346 48913] Command line: /usr/local/libexec/ccache/= clang --sysroot=3D/home/elars/obj/usr/home/elars/src/tmp -B/home/elars/obj/= usr/home/elars/src/tmp/usr/bin -E -M -I/usr/home/elars/src/lib/clang/libcla= ngbasic/../../../contrib/llvm/include -I/usr/home/elars/src/lib/clang/libcl= angbasic/../../../contrib/llvm/tools/clang/include -I/usr/home/elars/src/li= b/clang/libclangbasic/../../../contrib/llvm/tools/clang/lib/Basic -I. -I/us= r/home/elars/src/lib/clang/libclangbasic/../../../contrib/llvm/../../lib/cl= ang/include -DLLVM_ON_UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS -D__STDC= _CONSTANT_MACROS -DCLANG_ENABLE_ARCMT -DCLANG_ENABLE_REWRITER -DCLANG_ENABL= E_STATIC_ANALYZER -DLLVM_DEFAULT_TARGET_TRIPLE=3D"x86_64-unknown-freebsd10.= 0" -DLLVM_HOSTTRIPLE=3D"x86_64-unknown-freebsd10.0" -DDEFAULT_SYSROOT=3D"" = /usr/home/elars/src/lib/clang/libclangbasic/../../../contrib/llvm/tools/cla= ng/lib/Basic/Builtins.cpp /usr/home/elars/src/lib/clang/libclangbasic/../..= /../contrib/llvm/tools/clang/lib/Basic/CharInfo.cpp /usr/home/elars/src/lib= /clang/libclangbasic/../../../contrib/llvm/tools/clang/lib/Basic/Diagnostic= .cpp /usr/home/elars/src/lib/clang/libclangbasic/../../../contrib/llvm/tool= s/clang/lib/Basic/DiagnosticIDs.cpp /usr/home/elars/src/lib/clang/libclangb= asic/../../../contrib/llvm/tools/clang/lib/Basic/FileManager.cpp /usr/home/= elars/src/lib/clang/libclangbasic/../../../contrib/llvm/tools/clang/lib/Bas= ic/FileSystemStatCache.cpp /usr/home/elars/src/lib/clang/libclangbasic/../.= ./../contrib/llvm/tools/clang/lib/Basic/IdentifierTable.cpp /usr/home/elars= /src/lib/clang/libclangbasic/../../../contrib/llvm/tools/clang/lib/Basic/La= ngOptions.cpp /usr/home/elars/src/lib/clang/libclangbasic/../../../contrib/= llvm/tools/clang/lib/Basic/Module.cpp /usr/home/elars/src/lib/clang/libclan= gbasic/../../../contrib/llvm/tools/clang/lib/Basic/ObjCRuntime.cpp /usr/hom= e/elars/src/lib/clang/libclangbasic/../../../contrib/llvm/tools/clang/lib/B= asic/OpenMPKinds.cpp /usr/home/elars/src/lib/clang/libclangbasic/../../../c= ontrib/llvm/tools/clang/lib/Basic/OperatorPrecedence.cpp /usr/home/elars/sr= c/lib/clang/libclangbasic/../../../contrib/llvm/tools/clang/lib/Basic/Sourc= eLocation.cpp /usr/home/elars/src/lib/clang/libclangbasic/../../../contrib/= llvm/tools/clang/lib/Basic/SourceManer.cpp /usr/home/elars/src/lib/clang/li= bclangbasic/../../../contrib/llvm/tools/clang/lib/Basic/TargetInfo.cpp /usr= /home/elars/src/lib/clang/libclangbasic/../../../contrib/llvm/tools/clang/l= ib/Basic/Targets.cpp /usr/home/elars/src/lib/clang/libclangbasic/../../../c= ontrib/llvm/tools/clang/lib/Basic/TokenKinds.cpp /usr/home/elars/src/lib/cl= ang/libclangbasic/../../../contrib/llvm/tools/clang/lib/Basic/Version.cpp /= usr/home/elars/src/lib/clang/libclangbasic/../../../contrib/llvm/tools/clan= g/lib/Basic/VersionTuple.cpp [2013-05-23T12:25:36.810373 48913] Hostname: stanley.muccbc.hq.netapp.com [2013-05-23T12:25:36.810380 48913] Working directory: (null) [2013-05-23T12:25:36.810399 48913] Failed; falling back to running the real= compiler [2013-05-23T12:25:36.810405 48913] Executing /usr/bin/clang --sysroot=3D/ho= me/elars/obj/usr/home/elars/src/tmp -B/home/elars/obj/usr/home/elars/src/tm= p/usr/bin -E -M -I/usr/home/elars/src/lib/clang/libclangbasic/../../../cont= rib/llvm/include -I/usr/home/elars/src/lib/clang/libclangbasic/../../../con= trib/llvm/tools/clang/include -I/usr/home/elars/src/lib/clang/libclangbasic= /../../../contrib/llvm/tools/clang/lib/Basic -I. -I/usr/home/elars/src/lib/= clang/libclangbasic/../../../contrib/llvm/../../lib/clang/include -DLLVM_ON= _UNIX -DLLVM_ON_FREEBSD -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -DCL= ANG_ENABLE_ARCMT -DCLANG_ENABLE_REWRITER -DCLANG_ENABLE_STATIC_ANALYZER -DL= LVM_DEFAULT_TARGET_TRIPLE=3D"x86_64-unknown-freebsd10.0" -DLLVM_HOSTTRIPLE= =3D"x86_64-unknown-freebsd10.0" -DDEFAULT_SYSROOT=3D"" /usr/home/elars/src/= lib/clang/libclangbasic/../../../contrib/llvm/tools/clang/lib/Basic/Builtin= s.cpp /usr/home/elars/src/lib/clang/libclangbasic/../../../contrib/llvm/too= ls/clang/lib/Basic/CharInfo.cpp /usr/home/elars/src/lib/clang/libclangbasic= /../../../contrib/llvm/tools/clang/lib/Basic/Diagnostic.cpp /usr/home/elars= /src/lib/clang/libclangbasic/../../../contrib/llvm/tools/clang/lib/Basic/Di= agnosticIDs.cpp /usr/home/elars/src/lib/clang/libclangbasic/../../../contri= b/llvm/tools/clang/lib/Basic/FileManager.cpp /usr/home/elars/src/lib/clang/= libclangbasic/../../../contrib/llvm/tools/clang/lib/Basic/FileSystemStatCac= he.cpp /usr/home/elars/src/lib/clang/libclangbasic/../../../contrib/llvm/to= ols/clang/lib/Basic/IdentifierTable.cpp /usr/home/elars/src/lib/clang/libcl= angbasic/../../../contrib/llvm/tools/clang/lib/Basic/LangOptions.cpp /usr/h= ome/elars/src/lib/clang/libclangbasic/../../../contrib/llvm/tools/clang/lib= /Basic/Module.cpp /usr/home/elars/src/lib/clang/libclangbasic/../../../cont= rib/llvm/tools/clang/lib/Basic/ObjCRuntime.cpp /usr/home/elars/src/lib/clan= g/libclangbasic/../../../contrib/llvm/tools/clang/lib/Basic/OpenMPKinds.cpp= /usr/home/elars/src/lib/clang/libclangbasic/../../../contrib/llvm/tools/cl= ang/lib/Basic/OperatorPrecedence.cpp /usr/home/elars/src/lib/clang/libclang= basic/../../../contrib/llvm/tools/clang/lib/Basic/SourceLocation.cpp /usr/h= ome/elars/src/lib/clang/libclangbasic/../../../contrib/llvm/tools/clang/lib= /Basic/SourceManager.cpp /usr/home/elars/src/lib/clang/libclangbasic/../../= ../contrib/llvm/tools/clang/lib/Basic/TargetInfo.cpp /usr/home/elars/src/li= b/clang/libclangbasic/../../../contrib/llvm/tools/clang/lib/Basic/Targets.c= pp /usr/home/elars/src/lib/clang/libclangbasic/../../../contrib/llvm/tools/= clang/lib/Basic/TokenKinds.cpp /usr/home/elars/src/lib/clang/libclangbasic/= ../../../contrib/llvm/tools/clang/lib/Basic/Version.cpp /usr/home/elars/src= /lib/clang/libclangbasic/../../../contrib/llvm/tools/clang/lib/Basic/Versio= nTuple.cpp [2013-05-23T12:25:36.810473 48913] Acquired lock /var/db/ccache/f/stats.loc= k [2013-05-23T12:25:36.810641 48913] Releasing lock /var/db/ccache/f/stats.lo= ck [2013-05-23T12:25:36.810649 48913] Unlink /var/db/ccache/f/stats.lock (as-t= mp) [2013-05-23T12:25:36.811008 48913] Result: called for preprocessing =20 > Since emmintrin.h is an internal header, normally it should find it in > /usr/include/clang/$VERSION. During the later stages of buildworld, > this directory will be located under ${WORLDTMP}. >=20 > It looks like this clang invocation uses --sysroot, so maybe you can > check whether the file: >=20 > /home/elars/obj/usr/home/elars/src/tmp/usr/include/clang/3.3/emmintrin.h >=20 > exists. That file does exist: [elars@stanley ~/src]$ ll /home/elars/obj/usr/home/elars/src/tmp/usr/includ= e/clang/3.3/emmintrin.h -rwxr-xr-x 1 elars wheel 40792 May 3 14:02 /home/elars/obj/usr/home/ela= rs/src/tmp/usr/include/clang/3.3/emmintrin.h* Lars=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?743F375A-F0C1-466E-8E34-E1319FFD9045>