Skip to contentSkip to conversation

qa_staging failed with recipe which inherit sdk.bbclass

DISCUSSION Julian 2 participants 2 messages May 2, 2008 – May 5, 2008

lore
Share & tools
lore

Julian

author
#0 lore raw

Hi all,

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 ?

Thanks :-)

-Julian

#1 lore raw

Hi,

Quoted 19 lines · Julian

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)

Quoted 3 lines

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