[oe] qa_staging failed with recipe which inherit sdk.bbclass
Richard Purdie
rpurdie at rpsys.net
Mon May 5 17:02:41 UTC 2008
Hi,
On Fri, 2008-05-02 at 18:31 +0800, Julian wrote:
> I found that if there is a recipe which inherit sdk.bbclass, it always
> fail in qa_staging.
>
> for example, bitbake gdb-cross-sdk, the variables are
>
> STAGING_LIBDIR=${STAGING_DIR_HOST}${layout_libdir}
> STAGING_DIR_HOST=${STAGING_DIR}/${HOST_SYS}
> HOST_SYS=${HOST_ARCH}${HOST_VENDOR}-${HOST_OS}
>
> in sdk.bbclass, I saw
>
> HOST_ARCH = "${BUILD_ARCH}"
>
> in my case, qa_staging will test ${STAGING_DIR}/i686-linux
> However, the .pc files placed in ${STAGING_DIR}/i686-linux were made by
> another recipe which inherit native.bbclass. the .pc file contains
> ${TMPDIR} (ie.
> prefix=/home/walkingice/OpenMoko/build/tmp/staging/i686-linux/usr)
>
> Finally, it could not pass qa_staging.
>
> How can I solve this problem ?
This happens when your BUILD_ARCH and your TARGET_ARCH are the same and
its a known issue. Previously Poky worked around this by setting
HOST_VENDOR to TARGET_VENDOR but that causes subtle problems with the
toolchain building (it becomes a Canadian Cross).
I made a change in Poky recently to sdk.bbclass which will probably
help, I'll sync that to OE...
Regards,
Richard
More information about the Openembedded-devel
mailing list