Originally, we move space optimize from recipe webkitgtk to yocto-space-optimize.inc [1], it caused multiple build failures if not include yocto-space-optimize.inc
For qemux86-64: "relocation truncated to fit: R_X86_64_32 against `.debug_info'" For qemuarm64: "relocation truncated to fit: R_AARCH64_ABS32 against `.debug_info'" According to the suggestion of gcc [2], pass -g1 to massively reduce the size of the debug symbols to workaround the errors [1] https://git.openembedded.org/openembedded-core/commit/meta?id=007c4aea10e13bd9b2d66d016c25f31c2709cbf6 [2] https://sourceware.org/bugzilla/show_bug.cgi?id=15444 Signed-off-by: Hongxu Jia <[email protected]> --- meta/recipes-sato/webkit/webkitgtk_2.50.0.bb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/meta/recipes-sato/webkit/webkitgtk_2.50.0.bb b/meta/recipes-sato/webkit/webkitgtk_2.50.0.bb index 5389bf17db..a8d0a094b3 100644 --- a/meta/recipes-sato/webkit/webkitgtk_2.50.0.bb +++ b/meta/recipes-sato/webkit/webkitgtk_2.50.0.bb @@ -174,3 +174,10 @@ src_package_preprocess () { # Clang-20 issue - https://github.com/llvm/llvm-project/issues/132322 TOOLCHAIN:arm = "gcc" + +# Pass -g1 to massively reduce the size of the +# debug symbols (4.3GB to 700M at time of writing) +# workaround error: +# qemux86-64: "relocation truncated to fit: R_X86_64_32 against `.debug_info'" +# qemuarm64: "relocation truncated to fit: R_AARCH64_ABS32 against `.debug_info'" +DEBUG_LEVELFLAG = "-g1" -- 2.34.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#228001): https://lists.openembedded.org/g/openembedded-core/message/228001 Mute This Topic: https://lists.openembedded.org/mt/116823456/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
