Bug 1163

Summary: gcc-cross-canadian needs set to TRANSLATED_TARGET_ARCH
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Jiajun Xu <jiajun.xu>
Component: meta-yoctoAssignee: Dexuan Cui <dexuan.cui>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Undecided CC: ke.yu, poky.bs.watcher, poky.watcher, sgw, wenhuax.fan
Version: unspecified   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Jiajun Xu 2011-06-13 00:03:19 UTC
Tree/Branch: Poky/1.1_M1
Poky Commit: 4ff7af11ef69849ef9c16f585eae58ac920b222b

With Yocto 1.1 M1, when setting GCCVERSION and SDKGCCVERSION to 4.5.1, gcc-cross-canadian won't be built as 4.5.1.

#######
jxu49@vt-nhm4:~/osel/poky/build$ bitbake -s | grep gcc
gcc                                                 :4.6.0-r3                 :4.5.1-r5
gcc-cross                                           :4.6.0-r3                 :4.5.1-r4
gcc-cross-canadian-x86-64                           :4.6.0-r3
gcc-cross-initial                                   :4.6.0-r3                 :4.5.1-r4
gcc-cross-intermediate                              :4.6.0-r3                 :4.5.1-r5
gcc-crosssdk                                        :4.6.0-r3                 :4.5.1-r4
gcc-crosssdk-initial                                :4.6.0-r3                 :4.5.1-r4
gcc-crosssdk-intermediate                           :4.6.0-r3                 :4.5.1-r4
gcc-runtime                                         :4.6.0-r3                 :4.5.1-r6
gcc-runtime-nativesdk                               :4.6.0-r3                 :4.5.1-r6
gccmakedep                                         1:1.0.2-r3
libgcc                                              :4.6.0-r0                 :4.5.1-r0
libgcc-nativesdk                                    :4.6.0-r0                 :4.5.1-r0
########

We should add TRANSLATED_TARGET_ARCH to gcc-cross-canadian in tcmode-default.inc.
Comment 1 Jiajun Xu 2011-06-13 00:10:16 UTC
*** Bug 1164 has been marked as a duplicate of this bug. ***
Comment 2 Dexuan Cui 2011-06-13 00:14:01 UTC
(In reply to comment #0)
> Tree/Branch: Poky/1.1_M1
> Poky Commit: 4ff7af11ef69849ef9c16f585eae58ac920b222b
> With Yocto 1.1 M1, when setting GCCVERSION and SDKGCCVERSION to 4.5.1,
> gcc-cross-canadian won't be built as 4.5.1.
> We should add TRANSLATED_TARGET_ARCH to gcc-cross-canadian in
> tcmode-default.inc.

Poky master has the same issue.
Currently meta-toolchain-gmae can't build due to bug 1160, if we revert the culprit commit mentioned in 1160, we can reproduce this bug easily by:
"bitbake  gcc-cross-canadian-i586 -e | grep ^SRC_URI".

I'll make a patch send it out today.
Comment 3 Dexuan Cui 2011-06-14 18:02:02 UTC
(In reply to comment #2)
> (In reply to comment #0)
> > Tree/Branch: Poky/1.1_M1
> > Poky Commit: 4ff7af11ef69849ef9c16f585eae58ac920b222b
> > With Yocto 1.1 M1, when setting GCCVERSION and SDKGCCVERSION to 4.5.1,
> > gcc-cross-canadian won't be built as 4.5.1.
> > We should add TRANSLATED_TARGET_ARCH to gcc-cross-canadian in
> > tcmode-default.inc.
> Poky master has the same issue.
> Currently meta-toolchain-gmae can't build due to bug 1160, if we revert the
> culprit commit mentioned in 1160, we can reproduce this bug easily by:
> "bitbake  gcc-cross-canadian-i586 -e | grep ^SRC_URI".
> I'll make a patch send it out today.

Fixed by
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=3267279a37429091e17ac00deba04a9d67ebe082