New issue
Advanced search Search tips

Issue 924225 link

Starred by 2 users

Issue metadata

Status: Untriaged
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 3
Type: Bug



Sign in to add a comment

"File not found" error from clang on macOS for files that are present

Project Member Reported by thakis@chromium.org, Today (10 hours ago)

Issue description

"[chromium-dev] Build chromium on Mac failed." mentions two people whose builds fail with "file not found" errors: https://groups.google.com/a/chromium.org/forum/#!searchin/chromium-dev/"Build$20chromium$20on$20Mac$20failed."%7Csort:date/chromium-dev/6WGKHT7pUf4/SRBlhgiOEwAJ


I'm seeing the same in a local win/cross build on my mac, with these args.gn:

$ cat args.gn 
target_os = "win"
target_cpu = "x64"
is_component_build = true
symbol_level = 0



Maybe "build without goma" is all that it takes to trigger this.


My local repro is `time caffeinate ninja -C out/gnwin  -j 1 obj/third_party/blink/renderer/core/layout/layout/layout_quote.obj` (I tried to build  blink_core.dll first; most of the build completes, but the last ~400 build steps out of 17k build steps have this issue.)


I guess I'll debug a bit locally.

I'm at pinned clang 351477, but https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/N4vDAAUemRE reported it at 350768 already.
 

Comment 1 by thakis@chromium.org, Today (10 hours ago)

../../third_party/llvm-build/Release+Asserts/bin/clang-cl /nologo -imsvc../../third_party/depot_tools/win_toolchain/vs_files/818a152b3f1da991c1725d85be19a0f27af6bab4/win_sdk/Include/10.0.17763.0/um -imsvc../../third_party/depot_tools/win_toolchain/vs_files/818a152b3f1da991c1725d85be19a0f27af6bab4/win_sdk/Include/10.0.17763.0/shared -imsvc../../third_party/depot_tools/win_toolchain/vs_files/818a152b3f1da991c1725d85be19a0f27af6bab4/win_sdk/Include/10.0.17763.0/winrt -imsvc../../third_party/depot_tools/win_toolchain/vs_files/818a152b3f1da991c1725d85be19a0f27af6bab4/win_sdk/Include/10.0.17763.0/ucrt -imsvc../../third_party/depot_tools/win_toolchain/vs_files/818a152b3f1da991c1725d85be19a0f27af6bab4/VC/Tools/MSVC/14.16.27023/include -imsvc../../third_party/depot_tools/win_toolchain/vs_files/818a152b3f1da991c1725d85be19a0f27af6bab4/VC/Tools/MSVC/14.16.27023/atlmfc/include -DUSE_AURA=1 -DNO_TCMALLOC -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -DCR_CLANG_REVISION=\"351477-1\" -D_HAS_NODISCARD -D_HAS_EXCEPTIONS=0 -DCOMPONENT_BUILD -D__STD_C -D_CRT_RAND_S -D_CRT_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_DEPRECATE -D_ATL_NO_OPENGL -D_WINDOWS -DCERT_CHAIN_PARA_HAS_EXTRA_FIELDS -DPSAPI_VERSION=2 -DWIN32 -D_SECURE_ATL -D_USING_V110_SDK71_ -DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP -DWIN32_LEAN_AND_MEAN -DNOMINMAX -D_UNICODE -DUNICODE -DNTDDI_VERSION=0x0A000002 -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -D_HAS_ITERATOR_DEBUGGING=0 -DUSING_V8_SHARED -DBLINK_CORE_IMPLEMENTATION=1 -DWEBP_EXTERN=extern -DUSE_EGL -DBLINK_IMPLEMENTATION=1 -DINSIDE_BLINK -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUSE_CHROMIUM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DUCHAR_TYPE=wchar_t -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DPROTOBUF_USE_DLLS -DBORINGSSL_SHARED_LIBRARY -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DWEBRTC_CHROMIUM_BUILD -DWEBRTC_WIN -DABSL_ALLOCATOR_NOTHROW=1 -DNO_MAIN_THREAD_WRAPPING -DSK_HAS_PNG_LIBRARY -DSK_HAS_WEBP_LIBRARY -DSK_HAS_JPEG_LIBRARY -DSKIA_DLL -DGR_GL_IGNORE_ES3_MSAA=0 -DSKCMS_API=__declspec\(dllexport\) -DSK_SUPPORT_GPU=1 -DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\" -DGR_GL_FUNCTION_TYPE=__stdcall -DUSING_V8_SHARED -DV8_ENABLE_CHECKS -DV8_DEPRECATION_WARNINGS -DLEVELDB_PLATFORM_CHROMIUM=1 -DDeleteFile=DeleteFileW -DLEVELDB_PLATFORM_CHROMIUM=1 -DLEVELDB_SHARED_LIBRARY -D__STD_C -D_CRT_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_DEPRECATE -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -DWTF_USE_WEBAUDIO_FFMPEG=1 -DSUPPORT_WEBGL2_COMPUTE_CONTEXT=1 -DWTF_USE_DEFAULT_RENDER_THEME=1 -DUSE_LIBJPEG_TURBO=1 -DPNG_USE_DLL -DPNG_NO_MODULEDEF -DUSING_V8_SHARED -DV8_ENABLE_CHECKS -DV8_DEPRECATION_WARNINGS -DLIBXSLT_STATIC -I../.. -Igen -I../../third_party/libyuv/include -I../../third_party/libwebp/src -I../../third_party/wtl/include -I../../third_party/khronos -I../../gpu -I../../third_party/ced/src -I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -I../../third_party/protobuf/src -I../../third_party/protobuf/src -Igen/protoc_out -I../../third_party/boringssl/src/include -I../../third_party/webrtc_overrides -I../../third_party/webrtc -Igen/third_party/webrtc -I../../third_party/abseil-cpp -I../../skia/config -I../../skia/ext -I../../third_party/skia/include/c -I../../third_party/skia/include/config -I../../third_party/skia/include/core -I../../third_party/skia/include/docs -I../../third_party/skia/include/effects -I../../third_party/skia/include/encode -I../../third_party/skia/include/gpu -I../../third_party/skia/include/pathops -I../../third_party/skia/include/ports -I../../third_party/skia/include/utils -I../../third_party/skia/include/codec -I../../third_party/skia/src/gpu -I../../third_party/skia/src/sksl -I../../third_party/skia/modules/skottie/include -I../../third_party/angle/include -I../../third_party/angle/src/common/third_party/base -Igen/angle -I../../v8/include -Igen/v8/include -I../../third_party/libwebm/source -I../../third_party/leveldatabase -I../../third_party/leveldatabase/src -I../../third_party/leveldatabase/src/include -I../../third_party/blink/renderer/platform/wtf/os-win32 -I../../third_party/libjpeg_turbo -I../../third_party/iccjpeg -I../../third_party/libpng -I../../third_party/zlib -I../../third_party/ots/include -I../../v8/include -Igen/v8/include -I../../third_party/libxml/src/include -I../../third_party/libxml/win32/include -I../../third_party/libxslt/src -I../../third_party/snappy/src -I../../third_party/snappy/win32 /utf-8 /X -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -fcolor-diagnostics -fmerge-all-constants -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -no-canonical-prefixes -fcomplete-member-pointers /Gy /FS /bigobj /d2FastFail /Zc:sizedDealloc- -fmsc-version=1911 /Zc:dllexportInlines- -m64 /Brepro /W4 -Wimplicit-fallthrough -Wthread-safety /WX /wd4091 /wd4127 /wd4251 /wd4275 /wd4312 /wd4324 /wd4351 /wd4355 /wd4503 /wd4589 /wd4611 /wd4100 /wd4121 /wd4244 /wd4505 /wd4510 /wd4512 /wd4610 /wd4838 /wd4995 /wd4996 /wd4456 /wd4457 /wd4458 /wd4459 /wd4200 /wd4201 /wd4204 /wd4221 /wd4245 /wd4267 /wd4305 /wd4389 /wd4702 /wd4701 /wd4703 /wd4661 /wd4706 /wd4715 -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-ignored-pragma-optimize /Od /Ob0 /GF /MDd -Xclang -add-plugin -Xclang find-bad-constructs -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wexit-time-destructors /wd4305 /wd4324 /wd4714 /wd4800 /wd4996 -Xclang -add-plugin -Xclang blink-gc-plugin -Wglobal-constructors /FI../../third_party/blink/renderer/core/precompile_core.h -Wno-inconsistent-missing-override -Wconversion -Wno-float-conversion -Wno-sign-conversion -Wno-implicit-float-conversion -Wno-implicit-int-conversion -Wno-shorten-64-to-32 /wd4344 /wd4706 /wd4291 -DLIBXML_STATIC= /Fpobj/third_party/blink/renderer/core/layout/layout_cc.pch /Yu../../third_party/blink/renderer/core/precompile_core.h -Wno-undefined-bool-conversion -Wno-tautological-undefined-compare /TP /wd4577 /GR- /c ../../third_party/blink/renderer/core/layout/layout_quote.cc /Foobj/third_party/blink/renderer/core/layout/layout/layout_quote.obj /Fd"obj/third_party/blink/renderer/core/layout/layout_cc.pdb" -v

prints


#include "..." search starts here:
#include <...> search starts here:
 ../..
 gen
 ../../third_party/libyuv/include
 ../../third_party/libwebp/src
 ../../third_party/wtl/include
 ../../third_party/khronos
 ../../gpu
 ../../third_party/ced/src
 ../../third_party/icu/source/common
 ../../third_party/icu/source/i18n
 ../../third_party/protobuf/src
 ../../third_party/boringssl/src/include
 ../../third_party/webrtc_overrides
 ../../third_party/webrtc
 ../../third_party/abseil-cpp
 ../../skia/config
 ../../skia/ext
 ../../third_party/skia/include/c
 ../../third_party/skia/include/config
 ../../third_party/skia/include/core
 ../../third_party/skia/include/docs
 ../../third_party/skia/include/effects
 ../../third_party/skia/include/encode
 ../../third_party/skia/include/gpu
 ../../third_party/skia/include/pathops
 ../../third_party/skia/include/ports
 ../../third_party/skia/include/utils
 ../../third_party/skia/include/codec
 ../../third_party/skia/src/gpu
 ../../third_party/skia/src/sksl
 ../../third_party/skia/modules/skottie/include
 ../../third_party/angle/include
 ../../third_party/angle/src/common/third_party/base
 gen/angle
 ../../v8/include
 gen/v8/include
 ../../third_party/libwebm/source
 ../../third_party/leveldatabase
 ../../third_party/leveldatabase/src
 ../../third_party/leveldatabase/src/include
 ../../third_party/libjpeg_turbo
 ../../third_party/iccjpeg
 ../../third_party/libpng
 ../../third_party/zlib
 ../../third_party/ots/include
 ../../third_party/libxml/src/include
 ../../third_party/libxml/win32/include
 ../../third_party/libxslt/src
 ../../third_party/snappy/src
 ../../third_party/snappy/win32
 ../../third_party/llvm-build/Release+Asserts/lib/clang/9.0.0/include
 ../../third_party/depot_tools/win_toolchain/vs_files/818a152b3f1da991c1725d85be19a0f27af6bab4/win_sdk/Include/10.0.17763.0/um
 ../../third_party/depot_tools/win_toolchain/vs_files/818a152b3f1da991c1725d85be19a0f27af6bab4/win_sdk/Include/10.0.17763.0/shared
 ../../third_party/depot_tools/win_toolchain/vs_files/818a152b3f1da991c1725d85be19a0f27af6bab4/win_sdk/Include/10.0.17763.0/winrt
 ../../third_party/depot_tools/win_toolchain/vs_files/818a152b3f1da991c1725d85be19a0f27af6bab4/win_sdk/Include/10.0.17763.0/ucrt
 ../../third_party/depot_tools/win_toolchain/vs_files/818a152b3f1da991c1725d85be19a0f27af6bab4/VC/Tools/MSVC/14.16.27023/include
 ../../third_party/depot_tools/win_toolchain/vs_files/818a152b3f1da991c1725d85be19a0f27af6bab4/VC/Tools/MSVC/14.16.27023/atlmfc/include
End of search list.
In file included from ../../third_party/blink/renderer/core/layout/layout_quote.cc:29:
In file included from ../../third_party/blink/renderer/core/layout/layout_view.h:29:
In file included from ../../third_party/blink/renderer/core/layout/layout_block_flow.h:47:
In file included from ../../third_party/blink/renderer/core/layout/line/trailing_objects.h:29:
In file included from ../../third_party/blink/renderer/core/layout/api/line_layout_text.h:9:
In file included from ../../third_party/blink/renderer/core/frame/local_frame.h:49:
In file included from ../../third_party/blink/renderer/core/loader/frame_loader.h:42:
../../third_party/blink/renderer/core/frame/csp/content_security_policy.h(43,10):  fatal error: 'third_party/blink/renderer/platform/network/content_security_policy_parsers.h' file not found
#include "third_party/blink/renderer/platform/network/content_security_policy_parsers.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



Yet:

$ ls ../../third_party/blink/renderer/platform/network/content_security_policy_parsers.h
../../third_party/blink/renderer/platform/network/content_security_policy_parsers.h



If I remove the /Fp /Yu flags, then the error goes away. So somehow related to precompiled headers.

Comment 2 by thakis@chromium.org, Today (3 hours ago)

Also repros with my locally-built clang-cl. Run script attached, will debug more tomorrow hopefully.
run.sh
12.4 KB View Download

Comment 3 by thakis@chromium.org, Today (3 hours ago)

Coarse window from prebuilts:

346388-5 good
347735-1 bad

Comment 4 by thakis@chromium.org, Today (3 hours ago)

Reverting r347205 (and 348006 to make that revert go through, but that's outside the range) makes things work again.

Comment 5 by thakis@chromium.org, Today (2 hours ago)

Reverting them locally, that is.

Sign in to add a comment