- Code: Select all
#!/bin/sh
BUILD_ROOT="/cef-source-4951"
export CEF_USE_GN=1
export GN_DEFINES="is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome"
export CEF_ARCHIVE_FORMAT=tar.bz2
# Target: CEF 101.0.16+g31bd240+chromium-101.0.4951.64 / Chromium 101.0.4951.64
python3 "$BUILD_ROOT/automate-git.py" --download-dir="$BUILD_ROOT" --branch=4951 --checkout=31bd240 --x64-build --no-build --no-distrib
I then tried to build using the following script:
- Code: Select all
#!/bin/sh
BUILD_ROOT="/cef-source-4951"
export CEF_USE_GN=1
export GN_DEFINES="is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome"
export CEF_ARCHIVE_FORMAT=tar.bz2
python3 "$BUILD_ROOT/automate-git.py" --download-dir="$BUILD_ROOT" --x64-build --no-update --force-config --force-build
This failed after a few minutes with the following output (last 75 lines only):
- Code: Select all
...
[3389/51302] OBJC obj/third_party/google_toolbox_for_mac/google_toolbox_for_mac/GTMUILocalizer.o
[3390/51302] LINK ./brotli
FAILED: brotli brotli.dSYM/Contents/Info.plist brotli.dSYM/Contents/Resources/DWARF/brotli
TOOL_VERSION=1652997135 ../../build/toolchain/apple/linker_driver.py -Wcrl,strippath,/Applications/Xcode13.2.1/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip -Wcrl,installnametoolpath,/Applications/Xcode13.2.1/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool ../../third_party/llvm-build/Release+Asserts/bin/clang++ -Wcrl,dsym,. -Wcrl,dsymutilpath,../../tools/clang/dsymutil/bin/dsymutil -Werror -fuse-ld=lld -Wl,-fatal_warnings -Wl,--icf=all -Wl,--color-diagnostics -Wl,-mllvm,-instcombine-lower-dbg-declare=0 -flto=thin -Wl,--thinlto-jobs=all -Wl,-cache_path_lto,thinlto-cache -Wl,--thinlto-cache-policy=cache_size=10\%:cache_size_bytes=40g:cache_size_files=100000 -Wl,-mllvm,-import-instr-limit=5 -fwhole-program-vtables -arch x86_64 -no-canonical-prefixes -Wl,-dead_strip -Wl,-no_data_in_code_info -Wl,-no_function_starts -nostdlib++ -isysroot ../../../../../../../../../../../../Applications/Xcode13.2.1/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -mmacosx-version-min=10.11.0 -Wl,--lto-O0 -Wl,-ObjC -Wcrl,strip,-x,-S -o "./brotli" "@./brotli.rsp"
ld64.lld: error: directory not found for option -L/usr/local/lib
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
Traceback (most recent call last):
File "../../build/toolchain/apple/linker_driver.py", line 387, in <module>
LinkerDriver(sys.argv).run()
File "../../build/toolchain/apple/linker_driver.py", line 129, in run
subprocess.check_call(compiler_driver_args, env=env)
File "/Applications/Xcode13.2.1/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['../../third_party/llvm-build/Release+Asserts/bin/clang++', '-Werror', '-fuse-ld=lld', '-Wl,-fatal_warnings', '-Wl,--icf=all', '-Wl,--color-diagnostics', '-Wl,-mllvm,-instcombine-lower-dbg-declare=0', '-flto=thin', '-Wl,--thinlto-jobs=all', '-Wl,-cache_path_lto,thinlto-cache', '-Wl,--thinlto-cache-policy=cache_size=10%:cache_size_bytes=40g:cache_size_files=100000', '-Wl,-mllvm,-import-instr-limit=5', '-fwhole-program-vtables', '-arch', 'x86_64', '-no-canonical-prefixes', '-Wl,-dead_strip', '-Wl,-no_data_in_code_info', '-Wl,-no_function_starts', '-nostdlib++', '-isysroot', '../../../../../../../../../../../../Applications/Xcode13.2.1/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk', '-mmacosx-version-min=10.11.0', '-Wl,--lto-O0', '-Wl,-ObjC', '-o', './brotli', '@./brotli.rsp']' returned non-zero exit status 1.
[3391/51302] CXX obj/third_party/dawn/src/dawn/common/common/Math.o
[3392/51302] CXX obj/third_party/dawn/src/dawn/cpp/webgpu_cpp.o
[3393/51302] CXX obj/third_party/dawn/src/dawn/common/common/Assert.o
[3394/51302] CXX obj/third_party/icu/icui18n/number_longnames.o
[3395/51302] CXX obj/third_party/dawn/src/dawn/common/common/DynamicLib.o
[3396/51302] CXX obj/third_party/dawn/src/dawn/platform/static/EventTracer.o
[3397/51302] ACTION //third_party/dawn/src/dawn/native:utils_gen__json_tarball(//build/toolchain/mac:clang_x64)
[3398/51302] ACTION //third_party/crashpad/crashpad/util:mig(//build/toolchain/mac:clang_x64)
[3399/51302] CXX obj/third_party/dawn/src/dawn/common/common/Log.o
[3400/51302] CXX obj/third_party/dawn/src/dawn/platform/static/WorkerThread.o
[3401/51302] CXX obj/third_party/dawn/src/dawn/common/common/SystemUtils.o
[3402/51302] ACTION //net/base/registry_controlled_domains:registry_controlled_domains(//build/toolchain/mac:clang_x64)
[3403/51302] ACTION //third_party/catapult/tracing:generate_about_tracing(//build/toolchain/mac:clang_x64)
ninja: build stopped: subcommand failed.
--> Download Directory: /cef-source-4951
--> Depot Tools Directory: /cef-source-4951/depot_tools
--> CEF Branch: master
--> CEF URL: https://bitbucket.org/chromiumembedded/cef.git
--> CEF Source Directory: /cef-source-4951/cef
--> Reading /cef-source-4951/cef/CHROMIUM_BUILD_COMPATIBILITY.txt
--> CEF Output Directory: /cef-source-4951/out_master
--> Writing /cef-source-4951/chromium/.gclient
-------- Running "git config --get remote.origin.url" in "/cef-source-4951/chromium/src"...
--> Chromium URL: https://chromium.googlesource.com/chromium/src.git
--> Moving directory /cef-source-4951/chromium/src/out to /cef-source-4951/out_4951
--> Creating directory /cef-source-4951/chromium/src/out
--> Writing /cef-source-4951/chromium/src/out/cef.branch
--> CEF_ARCHIVE_FORMAT=tar.bz2
--> CEF_USE_GN=1
--> GN_DEFINES=is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome
--> GCLIENT_PY3=1
--> DEPOT_TOOLS_UPDATE=0
-------- Running "/Applications/Xcode13.2.1/Xcode.app/Contents/Developer/usr/bin/python3 /cef-source-4951/chromium/src/cef/tools/gclient_hook.py" in "/cef-source-4951/chromium/src/cef"...
--> /cef-source-4951/chromium/src/out/Debug_GN_x64/args.gn contents:
chrome_pgo_phase=0
clang_use_chrome_plugins=false
dcheck_always_on=true
enable_background_mode=false
enable_basic_printing=true
enable_nacl=false
enable_print_preview=true
enable_resource_allowlist_generation=false
enable_widevine=true
ffmpeg_branding="Chrome"
forbid_non_component_debug_builds=false
is_component_build=false
is_debug=false
is_official_build=true
optimize_webui=true
proprietary_codecs=true
target_cpu="x64"
use_allocator="none"
use_allocator_shim=false
-------- Running "ninja -C out/Debug_GN_x64 cefclient" in "/cef-source-4951/chromium/src"...
Traceback (most recent call last):
File "/cef-source-4951/automate-git.py", line 1483, in <module>
run(command + build_path + target, chromium_src_dir, depot_tools_dir,
File "/cef-source-4951/automate-git.py", line 69, in run
return subprocess.check_call(
File "/Applications/Xcode13.2.1/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ninja', '-C', 'out/Debug_GN_x64', 'cefclient']' returned non-zero exit status 1.
One thing I notice with reference to this line:
- Code: Select all
...
ld64.lld: error: directory not found for option -L/usr/local/lib
...
is that there is no such directory as /usr/local/lib on my system. However, it seems that the build was neverthless able to continue until the ninja subcommand failure
Can anyone help me to understand why the build is failing or how to proceed? Thanks in advance for any help you can provide.