Re: ccache issues during buildworld on recent -CURRENT

From: Eggert, Lars <lars_at_netapp.com>
Date: Thu, 23 May 2013 10:33:33 +0000
Hi,

On May 22, 2013, at 13:37, Dimitry Andric <dim_at_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=/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/libclangbasic/../../../contrib/llvm/include -I/usr/home/elars/src/lib/clang/libclangbasic/../../../contrib/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 -DCLANG_ENABLE_ARCMT -DCLANG_ENABLE_REWRITER -DCLANG_ENABLE_STATIC_ANALYZER -DLLVM_DEFAULT_TARGET_TRIPLE="x86_64-unknown-freebsd10.0" -DLLVM_HOSTTRIPLE="x86_64-unknown-freebsd10.0" -DDEFAULT_SYSROOT="" /usr/home/elars/src/lib/clang/libclangbasic/../../../contrib/llvm/tools/clang/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/tools/clang/lib/Basic/DiagnosticIDs.cpp /usr/home/elars/src/lib/clang/libclangbasic/../../../contrib/llvm/tools/clang/lib/Basic/FileManager.cpp /usr/home/elars/src/lib/clang/libclangbasic/../../../contrib/llvm/tools/clang/lib/Basic/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/LangOptions.cpp /usr/home/elars/src/lib/clang/libclangbasic/../../../contrib/llvm/tools/clang/lib/Basic/Module.cpp /usr/home/elars/src/lib/clang/libclangbasic/../../../contrib/llvm/tools/clang/lib/Basic/ObjCRuntime.cpp /usr/home/elars/src/lib/clang/libclangbasic/../../../contrib/llvm/tools/clang/lib/Basic/OpenMPKinds.cpp /usr/home/elars/src/lib/clang/libclangbasic/../../../contrib/llvm/tools/clang/lib/Basic/OperatorPrecedence.cpp /usr/home/elars/src/lib/clang/libclangbasic/../../../contrib/llvm/tools/clang/lib/Basic/SourceLocation.cpp /usr/home/elars/src/lib/clang/libclangbasic/../../../contrib/llvm/tools/clang/lib/Basic/SourceManer.cpp /usr/home/elars/src/lib/clang/libclangbasic/../../../contrib/llvm/tools/clang/lib/Basic/TargetInfo.cpp /usr/home/elars/src/lib/clang/libclangbasic/../../../contrib/llvm/tools/clang/lib/Basic/Targets.cpp /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/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=/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/libclangbasic/../../../contrib/llvm/include -I/usr/home/elars/src/lib/clang/libclangbasic/../../../contrib/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 -DCLANG_ENABLE_ARCMT -DCLANG_ENABLE_REWRITER -DCLANG_ENABLE_STATIC_ANALYZER -DLLVM_DEFAULT_TARGET_TRIPLE="x86_64-unknown-freebsd10.0" -DLLVM_HOSTTRIPLE="x86_64-unknown-freebsd10.0" -DDEFAULT_SYSROOT="" /usr/home/elars/src/lib/clang/libclangbasic/../../../contrib/llvm/tools/clang/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/tools/clang/lib/Basic/DiagnosticIDs.cpp /usr/home/elars/src/lib/clang/libclangbasic/../../../contrib/llvm/tools/clang/lib/Basic/FileManager.cpp /usr/home/elars/src/lib/clang/libclangbasic/../../../contrib/llvm/tools/clang/lib/Basic/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/LangOptions.cpp /usr/home/elars/src/lib/clang/libclangbasic/../../../contrib/llvm/tools/clang/lib/Basic/Module.cpp /usr/home/elars/src/lib/clang/libclangbasic/../../../contrib/llvm/tools/clang/lib/Basic/ObjCRuntime.cpp /usr/home/elars/src/lib/clang/libclangbasic/../../../contrib/llvm/tools/clang/lib/Basic/OpenMPKinds.cpp /usr/home/elars/src/lib/clang/libclangbasic/../../../contrib/llvm/tools/clang/lib/Basic/OperatorPrecedence.cpp /usr/home/elars/src/lib/clang/libclangbasic/../../../contrib/llvm/tools/clang/lib/Basic/SourceLocation.cpp /usr/home/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/lib/clang/libclangbasic/../../../contrib/llvm/tools/clang/lib/Basic/Targets.cpp /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/VersionTuple.cpp
[2013-05-23T12:25:36.810473 48913] Acquired lock /var/db/ccache/f/stats.lock
[2013-05-23T12:25:36.810641 48913] Releasing lock /var/db/ccache/f/stats.lock
[2013-05-23T12:25:36.810649 48913] Unlink /var/db/ccache/f/stats.lock (as-tmp)
[2013-05-23T12:25:36.811008 48913] Result: called for preprocessing       

> 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}.
> 
> It looks like this clang invocation uses --sysroot, so maybe you can
> check whether the file:
> 
> /home/elars/obj/usr/home/elars/src/tmp/usr/include/clang/3.3/emmintrin.h
> 
> exists.

That file does exist:

[elars_at_stanley ~/src]$ ll /home/elars/obj/usr/home/elars/src/tmp/usr/include/clang/3.3/emmintrin.h
-rwxr-xr-x  1 elars  wheel  40792 May  3 14:02 /home/elars/obj/usr/home/elars/src/tmp/usr/include/clang/3.3/emmintrin.h*

Lars
Received on Thu May 23 2013 - 08:33:39 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:38 UTC