Open 860git opened 2 months ago
Does this really occur for vcpkg install chromium-base
? The new diagnostic message should raise errors for CI but not for users.
But chromium-base
doesn't take part in CI...
Please try #39343.
Not yet...
It looks like gn failed is the actual failure and the spew of warnings above it are unrelated:
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
Command failed: F:/Downloads/curlvcpkg/vcpkg/installed/x64-windows/tools/gn/gn.exe gen F:/Downloads/curlvcpkg/vcpkg/buildtrees/chromium-base/x64-windows-dbg "--args= use_custom_libcxx=false clang_use_chrome_plugins=false forbid_non_component_debug_builds=false treat_warnings_as_errors=false use_lld=false clang_base_path=\"F:/Downloads/curlvcpkg/vcpkg/downloads/tools/clang/clang-15.0.6\" is_component_build=true is_debug=true symbol_level=2"
Working Directory: F:/Downloads/curlvcpkg/vcpkg/buildtrees/chromium-base/src/25ce732
Error code: 1
See logs for more information:
F:\Downloads\curlvcpkg\vcpkg\buildtrees\chromium-base\generate-x64-windows-dbg-out.log
gn.exe does not care about this new warning from dg0yt
Yeah, gn also fails on linux for this port.
Most gn
stuff in vpckg is fragile (if not broken) and mostly excluded from CI. Tensorflow is another example. skia is fairly okay and has a a test port, but there is still trouble with icu, vcpkg vs. Windows SDK.
Not yet...
Thanks for your reply, I will try other methods
You can refer to this document. Google has deleted this function in gn since October 2020. The gn used by vcpkg is from February 2024, which makes this function not found. To solve this issue , you can download a gn before 2020 locally, or wait until we upgrade chromium-base. https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/no_sources_assignment_filter.md
Yes, I see the info on the Internet that a version of gn before 2020 is needed. hope vcpkg can be used in the future.
It is probably better to not use the outdated and unmaintained vcpkg port of chromium base.
Package: chromium-base:x64-windows@86.0.4199.1#5
Host Environment
To Reproduce
vcpkg install chromium-base
Failure logsF:\Downloads\curlvcpkg\vcpkg\buildtrees\chromium-base\generate-x64-windows-dbg-out.log
``` ERROR at //build/config/BUILDCONFIG.gn:401:1: Unknown function. set_sources_assignment_filter(sources_assignment_filter) ^---------------------------- ```