Hi all,
I had to add this patch to have gcc_linaro-4.9 support on my poky (Morty) project. The problem occurs when you don't have libtool configured so the ${S}/libcc1 is not present. In this case the sed command will not work and will provoke a configuration error during bitbake execution.
Also, I have noticed that this "problem" can also occurs in git.yoctoproject.org/poky: meta/recipes-devtools/gcc/gcc_6.2.bb meta/recipes-devtools/gcc/gcc_5.4.bb
Daniel
From: Daniel Gomez dagmcr@gmail.com Sent: Friday, March 16, 2018 11:52:01 AM To: openembedded@lists.linaro.org Cc: Daniel Gómez Cruces Subject: [meta-linaro/meta-linaro-toolchain][PATCH] stop bad RPstop bad RPATHs for libtool only if available Check libcc1 directory before trying to fix it
Signed-off-by: Daniel Gomez daniel.gomez@silicon-gears.com --- meta-linaro-toolchain/recipes-devtools/gcc/gcc_linaro-4.9.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/meta-linaro-toolchain/recipes-devtools/gcc/gcc_linaro-4.9.bb b/meta-linaro-toolchain/recipes-devtools/gcc/gcc_linaro-4.9.bb index 3e0f4bc..5a26fa2 100644 --- a/meta-linaro-toolchain/recipes-devtools/gcc/gcc_linaro-4.9.bb +++ b/meta-linaro-toolchain/recipes-devtools/gcc/gcc_linaro-4.9.bb @@ -10,7 +10,9 @@ ARM_INSTRUCTION_SET_armv4 = "arm" do_configure_prepend() { # Easiest way to stop bad RPATHs getting into the library since we have a # broken libtool here - sed -i -e 's/hardcode_into_libs=yes/hardcode_into_libs=no/' ${S}/libcc1/configure + if [ -d "${S}/libcc1" ]; then + sed -i -e 's/hardcode_into_libs=yes/hardcode_into_libs=no/' ${S}/libcc1/configure + fi } BBCLASSEXTEND = "nativesdk"