mirror of
https://github.com/nxp-imx/meta-imx.git
synced 2025-10-22 23:32:16 +02:00
chromium-ozone-wayland: Fix out of memory issue during build [YOCIMX-8352]
Chromium compile fails at the very end during linking with std::bad_alloc error. This patch fixes the error. Signed-off-by: Neena Busireddy <neenareddy.busireddy@nxp.com>
This commit is contained in:
parent
ce1824a2aa
commit
1e59785ace
|
@ -0,0 +1,38 @@
|
|||
From 7299ca8b360cd3596c7fbc5f31fae48ce1060e24 Mon Sep 17 00:00:00 2001
|
||||
From: Wujian Sun <wujian.sun_1@nxp.com>
|
||||
Date: Thu, 7 Nov 2024 10:34:46 +0800
|
||||
Subject: [PATCH] Fix build fail after clang/llvm upgrade
|
||||
|
||||
Disable thinlto cache for need large memory.
|
||||
|
||||
| terminate called after throwing an instance of 'std::bad_alloc'
|
||||
| what(): std::bad_alloc
|
||||
| terminate called recursively
|
||||
| aarch64-poky-linux-clang++: error: unable to execute command: Aborted
|
||||
(core dumped)
|
||||
| aarch64-poky-linux-clang++: error: linker command failed due to signal
|
||||
(use -v to see invocation)
|
||||
|
||||
Upstream-Status: Inappropriate [i.MX specific]
|
||||
|
||||
Signed-off-by: Wujian Sun <wujian.sun_1@nxp.com>
|
||||
---
|
||||
build/config/compiler/BUILD.gn | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
|
||||
index 45086d6838cac..8a148e4f53e0b 100644
|
||||
--- a/build/config/compiler/BUILD.gn
|
||||
+++ b/build/config/compiler/BUILD.gn
|
||||
@@ -131,7 +131,7 @@ declare_args() {
|
||||
# Whether to enable thin lto incremental builds.
|
||||
# See: https://clang.llvm.org/docs/ThinLTO.html#incremental
|
||||
# The cache can lead to non-determinism: https://crbug.com/1486045
|
||||
- thin_lto_enable_cache = true
|
||||
+ thin_lto_enable_cache = false
|
||||
|
||||
# Initialize all local variables with a pattern. This flag will fill
|
||||
# uninitialized floating-point types (and 32-bit pointers) with 0xFF and the
|
||||
--
|
||||
2.34.1
|
||||
|
|
@ -8,6 +8,7 @@ SRC_URI:append:imx-nxp-bsp = " \
|
|||
file://0005-MGS-7765-Blacklist-MSAA-for-GPU-Raster-on-Vivante-GP.patch \
|
||||
file://0006-LF-12406-Fixed-webgl-test-fail-for-GL_MAX_SAMPLES-ch.patch \
|
||||
file://0007-Enable-native-GLES2-for-Ozone-wayland.patch \
|
||||
file://0008-Fix-build-fail-after-clang-llvm-upgrade.patch \
|
||||
"
|
||||
VDA_PATCH_SET = " \
|
||||
file://0101-V4L2Device-Correct-v4l2-codec-device-path.patch \
|
||||
|
|
Loading…
Reference in New Issue
Block a user