Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TOOLS] Strange build error: "loop not unrolled: the optimizer was unable to perform the requested transformation" #1161

Closed
4 tasks done
uazo opened this issue May 27, 2024 · 2 comments
Labels
working on it working on it

Comments

@uazo
Copy link
Owner

uazo commented May 27, 2024

Preliminary checklist

  • I have read the README.
  • I have searched the existing issues for my problem. This is a new ticket, NOT a duplicate or related to another open issue.
  • I have updated Cromite to the latest version. The bug is reproducible on this latest version.
  • This is a bug report about the Cromite browser; not the website nor F-Droid nor anything else.

Can the bug be reproduced with corresponding Chromium version?

No

Are you sure?

Yes

Cromite version

From v125

Device architecture

arm64

Platform version

I prefer not to write it/No matter

Android Device model

n/a

Is the device rooted?

I prefer not to write it

Changed flags

none

Is this bug happening in an incognito tab?

No

Is this bug caused by the adblocker?

No

Is this bug a crash?

no

Describe the bug

2024-05-25T16:04:06.5865652Z [70762/70792] SOLINK ./libchrome__combined.so
2024-05-25T16:04:06.5868388Z FAILED: libchrome__combined.so libchrome__combined.so.TOC lib.unstripped/libchrome__combined.so lib.unstripped/libchrome__combined.so.map.gz 
2024-05-25T16:04:06.5895515Z "python3" "../../build/toolchain/gcc_solink_wrapper.py" --readelf="../../third_party/llvm-build/Release+Asserts/bin/llvm-readelf" --nm="../../third_party/llvm-build/Release+Asserts/bin/llvm-nm" --strip=../../third_party/llvm-build/Release+Asserts/bin/llvm-strip  --sofile="./lib.unstripped/libchrome__combined.so" --tocfile="./libchrome__combined.so.TOC" --map-file "./lib.unstripped/libchrome__combined.so.map.gz" --output="./libchrome__combined.so" -- ../../third_party/llvm-build/Release+Asserts/bin/clang++ -shared -Wl,-soname="libchrome__combined.so" -Wl,--version-script=gen/chrome/android/libchrome_linker_script.txt -Wl,--hash-style=gnu -Wl,-soname,libchrome.so --partitioned-library -Werror -fuse-ld=lld -Wl,--fatal-warnings -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--icf=all -Wl,--color-diagnostics -Wl,-mllvm,-instcombine-lower-dbg-declare=0 -Wl,-mllvm,-split-threshold-for-reg-with-hint=0 -Wl,--thinlto-cache-dir=thinlto-cache -Wl,--thinlto-cache-policy=cache_size=10\%:cache_size_bytes=40g:cache_size_files=100000 -flto=thin -Wl,--thinlto-jobs=all -Wl,-mllvm,-import-instr-limit=30 -Wl,-mllvm,-disable-auto-upgrade-debug-info -Wl,--no-rosegment -Wl,--undefined-version -Wl,--no-call-graph-profile-sort -Wl,--exclude-libs=libvpx_assembly_arm.a -Wl,-z,max-page-size=16384 --target=x86_64-linux-android26 -m64 -no-canonical-prefixes -Wl,--warn-shared-textrel -Wl,-O2 -Wl,--gc-sections -Wl,-z,defs -Wl,--as-needed --unwindlib=none -nostdlib++ --sysroot=../../third_party/android_toolchain/ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Wl,--lto-O2 -Wl,--pack-dyn-relocs=android -Wl,-wrap,calloc -Wl,-wrap,free -Wl,-wrap,malloc -Wl,-wrap,memalign -Wl,-wrap,posix_memalign -Wl,-wrap,pvalloc -Wl,-wrap,realloc -Wl,-wrap,valloc -Wl,-wrap,malloc_usable_size -Wl,-wrap,realpath -Wl,-wrap,strdup -Wl,-wrap,strndup -Wl,-wrap,getcwd -Wl,-wrap,asprintf -Wl,-wrap,vasprintf -Wl,--dynamic-linker,/system/bin/linker64 -o "./lib.unstripped/libchrome__combined.so" @"./libchrome__combined.so.rsp" obj/third_party/rust/cxx/v1/lib/libcxx_lib.rlib local_rustc_sysroot/lib/rustlib/x86_64-linux-android/lib/libstd_std.rlib local_rustc_sysroot/lib/rustlib/x86_64-linux-android/lib/liballoc_alloc.rlib local_rustc_sysroot/lib/rustlib/x86_64-linux-android/lib/libcompiler_builtins_compiler_builtins.rlib local_rustc_sysroot/lib/rustlib/x86_64-linux-android/lib/librustc_std_workspace_core_rustc_std_workspace_core.rlib local_rustc_sysroot/lib/rustlib/x86_64-linux-android/lib/libcore_core.rlib local_rustc_sysroot/lib/rustlib/x86_64-linux-android/lib/libprofiler_builtins_profiler_builtins.rlib local_rustc_sysroot/lib/rustlib/x86_64-linux-android/lib/libcfg_if_cfg_if.rlib local_rustc_sysroot/lib/rustlib/x86_64-linux-android/lib/libhashbrown_hashbrown.rlib local_rustc_sysroot/lib/rustlib/x86_64-linux-android/lib/librustc_std_workspace_alloc_rustc_std_workspace_alloc.rlib local_rustc_sysroot/lib/rustlib/x86_64-linux-android/lib/liblibc_libc.rlib local_rustc_sysroot/lib/rustlib/x86_64-linux-android/lib/libpanic_abort_panic_abort.rlib local_rustc_sysroot/lib/rustlib/x86_64-linux-android/lib/libpanic_unwind_panic_unwind.rlib local_rustc_sysroot/lib/rustlib/x86_64-linux-android/lib/libunwind_unwind.rlib local_rustc_sysroot/lib/rustlib/x86_64-linux-android/lib/librustc_demangle_rustc_demangle.rlib local_rustc_sysroot/lib/rustlib/x86_64-linux-android/lib/libstd_detect_std_detect.rlib local_rustc_sysroot/lib/rustlib/x86_64-linux-android/lib/libaddr2line_addr2line.rlib local_rustc_sysroot/lib/rustlib/x86_64-linux-android/lib/libgimli_gimli.rlib local_rustc_sysroot/lib/rustlib/x86_64-linux-android/lib/libminiz_oxide_miniz_oxide.rlib local_rustc_sysroot/lib/rustlib/x86_64-linux-android/lib/libadler_adler.rlib local_rustc_sysroot/lib/rustlib/x86_64-linux-android/lib/libobject_object.rlib local_rustc_sysroot/lib/rustlib/x86_64-linux-android/lib/libmemchr_memchr.rlib local_rustc_sysroot/lib/rustlib/x86_64-linux-android/lib/libgetopts_getopts.rlib local_rustc_sysroot/lib/rustlib/x86_64-linux-android/lib/librustc_std_workspace_std_rustc_std_workspace_std.rlib local_rustc_sysroot/lib/rustlib/x86_64-linux-android/lib/libunicode_width_unicode_width.rlib local_rustc_sysroot/lib/rustlib/x86_64-linux-android/lib/libtest_test.rlib obj/skia/libskia_cbridge_urust_uside.rlib obj/third_party/rust/font_types/v0_4/lib/libfont_types_lib.rlib obj/third_party/rust/read_fonts/v0_15/lib/libread_fonts_lib.rlib obj/third_party/rust/skrifa/v0_15/lib/libskrifa_lib.rlib obj/build/rust/chromium_prelude/libchromium.rlib obj/third_party/blink/common/rust_crash/libthird_uparty_sblink_scommon_srust_ucrash_crs.rlib obj/components/qr_code_generator/libcomponents_sqr_ucode_ugenerator_cqr_ucode_ugenerator_uffi_uglue.rlib obj/third_party/rust/qr_code/v2/lib/libqr_code_lib.rlib 
2024-05-25T16:04:06.5919787Z ld.lld: error: ../../v8/src/compiler/turboshaft/machine-lowering-reducer-inl.h:2150:9: loop not unrolled: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering
2024-05-25T16:04:06.5922741Z ld.lld: error: ../../v8/src/compiler/turboshaft/machine-lowering-reducer-inl.h:2175:13: loop not unrolled: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering
2024-05-25T16:04:06.5925652Z ld.lld: error: ../../v8/src/compiler/turboshaft/machine-lowering-reducer-inl.h:2180:20: loop not unrolled: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering
2024-05-25T16:04:06.5928677Z ld.lld: error: ../../v8/src/compiler/turboshaft/machine-lowering-reducer-inl.h:2211:20: loop not unrolled: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering
2024-05-25T16:04:06.5931600Z ld.lld: error: ../../v8/src/compiler/turboshaft/machine-lowering-reducer-inl.h:2153:13: loop not unrolled: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering
2024-05-25T16:04:06.5934684Z ld.lld: error: ../../v8/src/compiler/turboshaft/machine-lowering-reducer-inl.h:2513:9: loop not unrolled: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering
2024-05-25T16:04:06.5937655Z ld.lld: error: ../../v8/src/compiler/turboshaft/machine-lowering-reducer-inl.h:2515:11: loop not unrolled: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering
2024-05-25T16:04:06.5939644Z clang++: error: linker command failed with exit code 1 (use -v to see invocation)
2024-05-25T16:04:06.5940494Z ninja: build stopped: subcommand failed.
2024-05-25T16:04:06.6619291Z ##[error]Process completed with exit code 1.

Steps to reproduce the bug

launch the build from the action, only happens in ci2 (release build)
re-launching the same action, it works without any problems.

Expected behavior

successful build at first launch

Screenshots

No response

@uazo uazo added the working on it working on it label May 27, 2024
@uazo
Copy link
Owner Author

uazo commented May 30, 2024

same of llvm/llvm-project#88141

uazo added a commit that referenced this issue Jun 11, 2024
uazo added a commit that referenced this issue Jun 12, 2024
unnecessary code removed
uazo added a commit that referenced this issue Jun 19, 2024
uazo added a commit that referenced this issue Jun 20, 2024
uazo added a commit that referenced this issue Jun 25, 2024
@uazo uazo changed the title Strange build error: "loop not unrolled: the optimizer was unable to perform the requested transformation" [TOOLS] Strange build error: "loop not unrolled: the optimizer was unable to perform the requested transformation" Jun 26, 2024
@uazo
Copy link
Owner Author

uazo commented Jul 18, 2024

fixed with d9e9f1d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
working on it working on it
Projects
None yet
Development

No branches or pull requests

1 participant