Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 905867 - www-client/chromium-113.0.5672.63[libcxx]: early failure in tools/clang/scripts/update.py
Summary: www-client/chromium-113.0.5672.63[libcxx]: early failure in tools/clang/scrip...
Status: RESOLVED DUPLICATE of bug 905798
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-07 10:09 UTC by Alexander Sergeyev
Modified: 2023-05-07 10:12 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,10.21 KB, text/x-log)
2023-05-07 10:11 UTC, Alexander Sergeyev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Sergeyev 2023-05-07 10:09:16 UTC
Chromium fails to build with USE=libcxx due to an error related to clang revision -- the relevant part of the build log as follows:

ERROR at //build/config/compiler/BUILD.gn:1407:22: Script returned non-zero exit code.
    clang_revision = exec_script("//tools/clang/scripts/update.py",
                     ^----------
Current dir: /var/tmp/portage/www-client/chromium-113.0.5672.63/work/chromium-113.0.5672.63/out/Release/
Command: python3.11 /var/tmp/portage/www-client/chromium-113.0.5672.63/work/chromium-113.0.5672.63/tools/clang/scripts/update.py --print-revision --verify-version=17
Returned 1 and printed out:

The expected clang version is llvmorg-17-init-4759-g547e3456-1 but the actual version is
Did you run "gclient sync"?

The installed version is clang is 16.0.3, 17.x is currently masked. As can be seen in the script output above, the actual version is shown as an empty string:

https://github.com/chromium/chromium/blob/113.0.5672.63/tools/clang/scripts/update.py#L360

The stamp file seems to be "third_party/llvm-build/Release+Asserts/cr_build_revision" in the source tree:

https://github.com/chromium/chromium/blob/113.0.5672.63/tools/clang/scripts/update.py#L54

And it's indeed contains only a newline:

# hexdump -C /var/tmp/portage/www-client/chromium-113.0.5672.63/work/chromium-113.0.5672.63/third_party/llvm-build/Release+Asserts/cr_build_revision
00000000  0a                                                |.|
00000001

With libcxx USE-flag disabled, the build continues past this point. libcxx is not critical to me, but it should be masked in case it's a broken configuration.

Installed changes and use flags:

sys-devel/llvm:16 abi_x86_64 llvm_targets_AMDGPU llvm_targets_X86
sys-devel/clang:16 abi_x86_64 extra llvm_targets_AMDGPU llvm_targets_X86 pie python_single_target_python3_11 static-analyzer
sys-devel/clang-runtime:16 abi_x86_64 compiler-rt libcxx openmp sanitize
sys-devel/gcc:12 cet cxx default-stack-clash-protection default-znow graphite hardened lto nptl openmp pie sanitize ssp vtv
www-client/chromium:0 X cups custom-cflags libcxx pic proprietary-codecs system-harfbuzz system-icu vaapi

Reproducible: Always
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-07 10:11:11 UTC
Thanks, duplicate of bug 905798. Can you post your analysis there?

*** This bug has been marked as a duplicate of bug 905798 ***
Comment 2 Alexander Sergeyev 2023-05-07 10:11:37 UTC
Created attachment 861266 [details]
build.log
Comment 3 Alexander Sergeyev 2023-05-07 10:12:48 UTC
(In reply to Sam James from comment #1)
> Thanks, duplicate of bug 905798. Can you post your analysis there?

Sorry, didn't find the mentioned bug. Of course, will forward there.