Bug 4618 - [Autobuilder] Some toolchains are built twice with 20130604-5 build
Summary: [Autobuilder] Some toolchains are built twice with 20130604-5 build
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 1.5
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.5 M2
Assignee: Beth Flanagan
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-06-06 09:50 UTC by Yi Zhao
Modified: 2013-09-03 05:49 UTC (History)
11 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yi Zhao 2013-06-06 09:50:56 UTC
Toolchain location: http://autobuilder.yoctoproject.org/pub/nightly/20130604-5/toolchain/

Git rev: master/a62aed41f2d8f874f7ae24d0e5be5dbc66ea2199

It looks that some toolchains are built twice in ab. In http://autobuilder.yoctoproject.org/pub/nightly/20130604-5/toolchain/i686/:
#################
poky-eglibc-i686-arm-toolchain-gmae-1.4+snapshot-20130604.sh	05-Jun-2013 00:48 	152M	 
poky-eglibc-i686-arm-toolchain-gmae-1.4+snapshot-20130605.sh	05-Jun-2013 03:06 	151M	 
poky-eglibc-i686-i586-toolchain-gmae-1.4+snapshot-20130605.sh	05-Jun-2013 06:20 	211M	 
poky-eglibc-i686-mips-toolchain-gmae-1.4+snapshot-20130604.sh	05-Jun-2013 00:57 	150M	 
poky-eglibc-i686-powerpc-toolchain-gmae-1.4+snapshot-20130604.sh	04-Jun-2013 23:35 	158M	 
poky-eglibc-i686-powerpc-toolchain-gmae-1.4+snapshot-20130605.sh	05-Jun-2013 06:17 	158M	 
poky-eglibc-i686-x86_64-toolchain-gmae-1.4+snapshot-20130604.sh	04-Jun-2013 23:37 	163M
################

There are 2 arm and 2 powerpc toolchains. For the same arch toolchains, the target arch is a little different. For example: the target arch is armv5te (for qemuarm) with arm-toolchain-20130604.sh and another one is armv7a-vfp-neon (for beagleboard). The 2 powerpc toochains are for ppce500v2 (qemuppc) and ppc603e (mpc8315e) respectively. We should build only one toolchain for each arch.
Comment 1 Saul Wold 2013-06-06 14:40:32 UTC
The tarball/archives should be named differently to differentiate the different target architecture toolchains
Comment 2 Yi Zhao 2013-06-25 08:05:20 UTC
For the 20130618 build, there are 2 powerpc toolchains in http://autobuilder.yoctoproject.org/pub/nightly/20130618-2/toolchain/ . 

Here is the root cause for this issue:
Currently on autobuilder, the toolchain tarballs are also built in nightly-fsl-arm and nightly-fsl-ppc. Although they have same archs with nightly-arm and nightly-ppc, the target machines are different. e.g. for arm, the target machines are armv5te (qemuarm on nightly-arm) and armv7a-vfp-neon (imx53qsb on nightly-fsl-arm). For ppc, the target machines are ppc603e (qemuppc on nightly-ppc) and ppce500v2 (p1022ds on nightly-fsl-ppc). Unfortunately, for each arch, the toolchain tarballs have same name, e.g. poky-eglibc-x86_64-powerpc-toolchain-gmae-1.4+snapshot-DATE.sh. If the DATE is different, there will be 2 toolchains tarball in public directory. If the DATE is same (the 2 builds finish on the same day), the one will cover another one when publishing artifacts.

We don't perform test with toolchains for nightly-fsl-ppc and nightly-fsl-arm now, so I suggest we can disable toolchain build on nightly-fsl-arm and nigthly-fsl-ppc as a quick fix.
Comment 3 Beth Flanagan 2013-07-02 19:37:03 UTC
Disabling them is only a temp fix. The real solution here is to fix

SDK_NAME = "${SDK_NAME_PREFIX}-${SDK_ARCH}-${TUNE_PKGARCH}"
to something a little bit more descriptive like:
conf/bitbake.conf:SDK_NAME = "${SDK_NAME_PREFIX}-${SDK_ARCH}-${MACHINE}-${TUNE_PKGARCH}"

This however I'm sure will have some cascading impacts. For now, I'm going to disable the fsl toolchain builds to keep them from tromping on the sdk, but this needs a better fix than that.
Comment 4 Yi Zhao 2013-07-16 08:19:13 UTC
The arm target arch is still incorrect in 20130710-1 build. It should be "armv5te", but now it is "armv7a-vfp-neon".

Toolchain sdk location: http://autobuilder.yoctoproject.org/pub/nightly/20130710-1/toolchain/
Comment 5 Yi Zhao 2013-08-19 10:06:11 UTC
Hi,

This issue still happens on recent builds. Do we have any solution ?
Comment 6 Beth Flanagan 2013-08-19 14:40:32 UTC
Yes, there is a patch in testing that changes SDK_NAME.
Comment 8 Yi Zhao 2013-09-03 05:49:35 UTC
Verified with 1.5 M4 RC2.
Git rev: master/5745e45b18e5099e94b4d5a73bc97dc6d4cdc91f