Linker issue due to sysroot_ld_path.py returning empty string for linker search paths (-L and -Wl,-rpath-link)
Reported by
milko.le...@imgtec.com,
May 31 2016
|
||||
Issue descriptionUserAgent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 Steps to reproduce the problem: 1. gn gen out_gn/mips --args="is_debug=false target_os=\"linux\" target_cpu=\"mipsel\" is_clang=true mips_arch_variant=\"r2\"" 2. ninja -j4 -C out_gn/mips chrome What is the expected behavior? Target chrome is built. What went wrong? Linker errors reported: ./src/build/linux/debian_wheezy_mips-sysroot/usr/lib/gcc/mipsel-linux-gnu/4.6/../../../mipsel-linux-gnu/crtn.o libpcre.so.3 needed by ./src/build/linux/debian_wheezy_mips-sysroot/usr/lib/gcc/mipsel-linux-gnu/4.6/../../../mipsel-linux-gnu/libglib-2.0.so mipsel-linux-gnu-ld: warning: libpcre.so.3, needed by ./src/build/linux/debian_wheezy_mips-sysroot/usr/lib/gcc/mipsel-linux-gnu/4.6/../../../mipsel-linux-gnu/libglib-2.0.so, not found (try using -rpath or -rpath-link) Did this work before? No Chrome version: r396700 Channel: dev OS Version: Debian Jessie Flash Version: This issue can be reproduced on x86_64 Chromium Linux when bundled ld.bfd is used.
,
May 31 2016
Proposed solution at https://codereview.chromium.org/2025883002/ which: 1. uses absolute path for sysroot in build/config/posix/BUILD.gn 2. formats return value in sysroot_ld_path.py as list of strings so that it is compliant with GN rules
,
Jun 1 2016
,
Jun 1 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/75522f446b904fb6a68ed38a02ed4ff8aa321188 commit 75522f446b904fb6a68ed38a02ed4ff8aa321188 Author: milko.leporis <milko.leporis@imgtec.com> Date: Wed Jun 01 08:54:59 2016 [MIPS] Fix issue with sysroot_ld_path.py returning empty string This change fixes ld.bfd failure when GN is used, which was caused by missing "-Wl,-rpath-link=" path. BUG= 616082 TEST=Build Chromium for Linux MIPS using ld.bfd and GN Review-Url: https://codereview.chromium.org/2025883002 Cr-Commit-Position: refs/heads/master@{#397086} [modify] https://crrev.com/75522f446b904fb6a68ed38a02ed4ff8aa321188/build/config/posix/BUILD.gn [modify] https://crrev.com/75522f446b904fb6a68ed38a02ed4ff8aa321188/build/config/posix/sysroot_ld_path.py
,
Jul 13 2016
,
Jul 14 2017
Issue has not been modified or commented on in the last 365 days, please re-open or file a new bug if this is still an issue. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot |
||||
►
Sign in to add a comment |
||||
Comment 1 by milko.le...@imgtec.com
, May 31 2016