[oe] Errors when using populate_sdk - has anyone encountered this before?

Khem Raj raj.khem at gmail.com
Thu Jan 30 16:53:34 UTC 2014


Hi Sanjay

On Thu, Jan 30, 2014 at 5:35 AM, Dorairaj, Sanjay
<Sanjay_Dorairaj at cable.comcast.com> wrote:
> Hi All,
>
> We are getting build error when using populate_sdk for our RDK builds. Has
> anyone seen this?
>

Would be nice if you included you Build Configuration that bitbake
prints at beginning of build step


> For generating sdk we use  "bitbake -c populate_sdk rdk-generic-image"
> command ,  we are getting below error:
>
> ===========================================================================
> ==========================
> NOTE: Applying patch 'relocatable_sdk.patch'
> (../meta-linaro/meta-linaro/recipes-devtools/qemu/files/relocatable_sdk.pat
> ch)

OK so it seems you have meta-linaro in the layer mix. Besides
toolchain it provided many other recipes, qemu is one of them
and I am not sure if you are interested to use qemu also from
meta-linaro, if you are then some of Linaro developers manitnaining
meta-linaro might know better. It could just be an oversight. But you
could pin to use OE-Core qemu

so in your distro.conf or local.conf add

PREFERRED_PROVIDER_qemu-native = "qemu-native"
PREFERRED_VERSION_qemu = "${QEMUVER}"
PREFERRED_VERSION_qemu-native = "${QEMUVER}"
PREFERRED_VERSION_nativesdk-qemu = "${QEMUVER}"

where QEMUVER = "1.5.0" if you are on dora and "1.7.0" if you are on
master branch of OE-Core layer


> ERROR: Command Error: exit status: 1  Output:
> Applying patch relocatable_sdk.patch
> can't find file to patch at input line 13
> Perhaps you used the wrong -p or --strip option?
> The text leading up to this was:
> --------------------------
> |Upstream-Status: Inappropriate [SDK specific]
> |
> |In order to be able to change the dynamic loader path when relocating
> |binaries, the interp section has to be made big enough to accomodate
> |the new path (4096 is the maximum path length in Linux).
> |
> |Signed-off-by: Laurentiu Palcu <laurentiu.palcu at intel.com>
> |
> |Index: qemu-1.4.0/ldscripts/i386.ld
> |===================================================================
> |--- qemu-1.4.0.orig/ldscripts/i386.ld  2013-02-15 15:05:35.000000000 -0800
> |+++ qemu-1.4.0/ldscripts/i386.ld       2013-02-28 22:55:36.138816418 -0800
> --------------------------
> No file to patch.  Skipping patch.
> 1 out of 1 hunk ignored
> can't find file to patch at input line 26
> Perhaps you used the wrong -p or --strip option?
> The text leading up to this was:
> --------------------------
> |Index: qemu-1.4.0/ldscripts/x86_64.ld
> |===================================================================
> |--- qemu-1.4.0.orig/ldscripts/x86_64.ld        2013-02-15
> 15:05:35.000000000 -0800
> |+++ qemu-1.4.0/ldscripts/x86_64.ld     2013-02-28 22:55:36.138816418 -0800
> --------------------------
> No file to patch.  Skipping patch.
> 1 out of 1 hunk ignored
> Patch relocatable_sdk.patch does not apply (enforce with -f)
> ERROR: Function failed: patch_do_patch
> ERROR: Logfile of failure stored in:
> /home/ridish/RDK-RI-NICO-2/build-qemux86/tmp/work/i686-nativesdk-rdksdk-lin
> ux/nativesdk-qemu/1.6.0+gitAUTOINC+0169c51155-r2/temp/log.do_patch.15188
> ERROR: Task 1574
> (virtual:nativesdk:/home/ridish/RDK-RI-NICO-2/meta-linaro/meta-linaro/recip
> es-devtools/qemu/qemu_git.bb, do_patch) failed with exit code '1'
>
>
> Regards,
>
>
> Sanjay
>
>
>>
>



More information about the Openembedded-devel mailing list