Building ugc on Rocky #2946
Unanswered
Rk4mo1fPoF
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Chromium started using Rust more and more and this similarly applies to ungoogled-chromium. Building without Rust is unfortunately not supported. However I continue building without Rust, so you may try following patches: https://github.com/PF4Public/gentoo-overlay/blob/master/www-client/ungoogled-chromium/files/chromium-123-cloud_authenticator.patch https://github.com/PF4Public/gentoo-overlay/blob/master/www-client/ungoogled-chromium/files/chromium-121-qrcode.patch Your original issue could be solved by this excerpt from the patch: --- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -319,9 +319,6 @@ config("compiler") {
configs += [
# See the definitions below.
- ":clang_revision",
- ":rustc_revision",
- ":compiler_cpu_abi",
":compiler_codegen",
":compiler_deterministic",
]
@@ -1599,39 +1495,6 @@ config("compiler_deterministic") {
}
}
-config("clang_revision") {
- if (is_clang && clang_base_path == default_clang_base_path) {
- update_args = [
- "--print-revision",
- "--verify-version=$clang_version",
- ]
- if (llvm_force_head_revision) {
- update_args += [ "--llvm-force-head-revision" ]
- }
- clang_revision = exec_script("//tools/clang/scripts/update.py",
- update_args,
- "trim string")
-
- # This is here so that all files get recompiled after a clang roll and
- # when turning clang on or off. (defines are passed via the command line,
- # and build system rebuild things when their commandline changes). Nothing
- # should ever read this define.
- defines = [ "CR_CLANG_REVISION=\"$clang_revision\"" ]
- }
-}
-
-config("rustc_revision") {
- if (rustc_revision != "") {
- # Similar to the above config, this is here so that all files get recompiled
- # after a rustc roll. Nothing should ever read this cfg. This will not be
- # set if a custom toolchain is used.
- rustflags = [
- "--cfg",
- "cr_rustc_revision=\"$rustc_revision\"",
- ]
- }
-}
-
config("compiler_arm_fpu") {
if (current_cpu == "arm" && !is_ios && !is_nacl) {
cflags = [ "-mfpu=$arm_fpu" ] |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Followed the building.md up to step 6, where I had to specify
enable_rust=false
inout/Default/args.gn
But after I ran
$ ../../out/Default/gn gen out/Default --fail-on-unused-args
This appeared:
And after seeing the above I also ran
curl -s https://raw.githubusercontent.com/chromium/chromium/main/tools/clang/scripts/up date.py | python3 - --output-dir=/tmp/clang
and exported/tmp/clang/bin
into my $PATH.But the error still persists.
This is my first time building chromium, so I absolutely don't know what I'm doing and how gn works.
OS:
Rocky 9.4 5.14.0-427.13.1.el9_4.x86_64
Any help would be much appreciated!
EDIT:
I've added
clang_base_path
toargs.gn
and now am faced with this:Beta Was this translation helpful? Give feedback.
All reactions