<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>5039</bug_id>
          
          <creation_ts>2013-08-22 09:50:28 +0000</creation_ts>
          <short_desc>[Yocot 1.4.2] [ADT] ARM: target arch change from armv5te to armv7a-vfp-neon</short_desc>
          <delta_ts>2014-05-20 07:57:12 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>5</classification_id>
          <classification>Infrastructure</classification>
          <product>AutoBuilder</product>
          <component>autobuilder</component>
          <version>1.4.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.4.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>ada-mihaela.solcan</cc>
    
    <cc>bluelightning</cc>
    
    <cc>infras.ab.watcher</cc>
    
    <cc>Infras.watcher</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>ke.zou</cc>
    
    <cc>ning.zhang</cc>
    
    <cc>yi.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>35850</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2013-08-22 09:50:28 +0000</bug_when>
    <thetext>ADT_installer location: http://autobuilder.yoctoproject.org/pub/releases/dylan-1.4.2.rc1/adt-installer-QA/

ADT repo: http://adtrepo-dev.yoctoproject.org/1.4.2-d734ab491a30078d43dee5440c03acce2d251425-dylan/

Toolchain location: http://autobuilder.yoctoproject.org/pub/releases/dylan-1.4.2.rc1/toolchain/

Git rev: dylan/d734ab491a30078d43dee5440c03acce2d251425

This issue is same with bug 4783 and bug 4618 in Yocto 1.5.

Steps:
1. Download adt_installer.tar.bz2
2. Setup the target architecture to arm and install the ADT.
3. After installation finish, I found the environment setting script is environment-setup-armv7a-vfp-neon-poky-linux-gnueabi. It should be environment-setup-armv5te-poky-linux-gnueabi. This file is from package meta-environment-arm_1.0-r8_x86_64-nativesdk.ipk in adt repo.

For the arm toolchain tarball, this issue also exists. 

The cause is:
On autobuilder, besides nightly-arm (qemuarm), there is an extra layers nightly-fsl-arm (imx53qsb) also build meta-toolchain and the ipk packages also be copied to adt repo. Although they have the same arch, the core cpu of target machine is different. Unfortunately, when generate the meta-environment-arm package, they have the same package name. So when copy the package to adt repo, the latest one will cover the previous one.

For the end users, if they build the toolchain by themselves, this issue doesn&apos;t impact anything. But if they download the toolchain from the autobuilder or install adt via adt repo. It maybe make them confused.

Do we need to regenerate the toolchain and adt repo for arm ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35852</commentid>
    <comment_count>1</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2013-08-22 10:06:09 +0000</bug_when>
    <thetext>Although the the script name is changed, the functions of adt and toolchain are good. All current test cases can pass. But I don&apos;t know if there is any potential issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35879</commentid>
    <comment_count>2</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2013-08-23 10:04:27 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Although the the script name is changed, the functions of adt and toolchain
&gt; are good. All current test cases can pass. But I don&apos;t know if there is any
&gt; potential issue.

I&apos;m sorry that I made a mistake. Actually some test cases failed to run.

Steps:
1. Download the arm toolchain tarball from http://autobuilder.yoctoproject.org/pub/releases/dylan-1.4.2.rc1/toolchain/

2. Install the toolchain and set the environment.

3. Build C and C++ test programs with the cross-compiler:

   $ ${CC} ${CFLAGS} test.c -o testc -lm
   ${CXX} ${CXXFLAGS} testplus.cpp -o testcpp
   
   $ file testc
   testc: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, BuildID[sha1]=0x420108aec85f7446771ad7eee04dbe5d806ea81d, not stripped

   $ file testcpp 
testcpp: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, BuildID[sha1]=0xf1c71a40f6863b40344714a761750fdc3eeb68c4, not stripped

   These test programs can run in host with qemu-arm:
   $ qemu-arm -L /opt/poky/1.4.2/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/ ./testc
   convert: 10 =&gt; 10.000000
   floorf(1234.670000) = 1234.000000

   $ qemu-arm -L /opt/poky/1.4.2/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/ ./testcpp 
   convert: 10 =&gt; 10.000000
   floorf(1234.670000) = 1234.000000

4. Startup a qemuarm image and copy the above programs to the target.
   These 2 programs can *not* run:
   
   root@qemuarm:~# 
   root@qemuarm:~# ./testc
   Illegal instruction
   root@qemuarm:~# 
   root@qemuarm:~# ./testcpp 
   Illegal instruction
   root@qemuarm:~#
   root@qemuarm:~# file testc
testc: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, BuildID[sha1]=ae08014246745fc8eed71a775dbe4de01da86e80, not stripped

   root@qemuarm:~# file testcpp 
testcpp: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, BuildID[sha1]=401ac7f1403b86f6a7144734dc0f7561c468eb3e, not stripped
root@qemuarm:~# 


When use adt-installer to cross compile these programs, this issue also happens.

I attached my C &amp; C++ test file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35880</commentid>
    <comment_count>3</comment_count>
      <attachid>1438</attachid>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2013-08-23 10:05:31 +0000</bug_when>
    <thetext>Created attachment 1438
test.c</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35881</commentid>
    <comment_count>4</comment_count>
      <attachid>1439</attachid>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2013-08-23 10:05:52 +0000</bug_when>
    <thetext>Created attachment 1439
testplus.cpp</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36046</commentid>
    <comment_count>5</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2013-08-29 14:47:44 +0000</bug_when>
    <thetext>Hi Yi,

We won&apos;t fix this for 1.4.2. We&apos;ll release note this by asking user not using adt-installer but instead build their own toolchain using meta data to avoid the package override issue.

But please can you verify the same testcase against 1.5 to make sure the problem is not there.  If it exists in 1.5, we need to fix there.

Thanks,
Jessica</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43418</commentid>
    <comment_count>6</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2014-05-20 07:57:12 +0000</bug_when>
    <thetext>*** Bug 6346 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>1438</attachid>
            <date>2013-08-23 10:05:31 +0000</date>
            <delta_ts>2013-08-23 10:05:31 +0000</delta_ts>
            <desc>test.c</desc>
            <filename>test.c</filename>
            <type>text/x-csrc</type>
            <size>321</size>
            <attacher name="Yi Zhao">yi.zhao</attacher>
            
              <data encoding="base64">I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxtYXRoLmg+Cgpkb3VibGUKY29udmVydChsb25n
IGxvbmcgbCkKewogICByZXR1cm4gKGRvdWJsZSlsOyAgICAvLyBvciBkb3VibGUobCkKfQoKaW50
Cm1haW4oaW50IGFyZ2MsIGNoYXIgKiBhcmd2W10pCnsKICAgbG9uZyBsb25nIGwgPSAxMDsKICAg
ZG91YmxlIGY7CgogICBmID0gY29udmVydChsKTsKICAgcHJpbnRmKCJjb252ZXJ0OiAlbGxkID0+
ICVmXG4iLCBsLCBmKTsKCiAgIGYgPSAxMjM0LjY3OwogICBwcmludGYoImZsb29yZiglZikgPSAl
ZlxuIiwgZiwgZmxvb3JmKGYpKTsKICAgcmV0dXJuIDA7Cn0K
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>1439</attachid>
            <date>2013-08-23 10:05:52 +0000</date>
            <delta_ts>2013-08-23 10:05:52 +0000</delta_ts>
            <desc>testplus.cpp</desc>
            <filename>testplus.cpp</filename>
            <type>text/x-c++src</type>
            <size>321</size>
            <attacher name="Yi Zhao">yi.zhao</attacher>
            
              <data encoding="base64">I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxtYXRoLmg+Cgpkb3VibGUKY29udmVydChsb25n
IGxvbmcgbCkKewogICByZXR1cm4gKGRvdWJsZSlsOyAgICAvLyBvciBkb3VibGUobCkKfQoKaW50
Cm1haW4oaW50IGFyZ2MsIGNoYXIgKiBhcmd2W10pCnsKICAgbG9uZyBsb25nIGwgPSAxMDsKICAg
ZG91YmxlIGY7CgogICBmID0gY29udmVydChsKTsKICAgcHJpbnRmKCJjb252ZXJ0OiAlbGxkID0+
ICVmXG4iLCBsLCBmKTsKCiAgIGYgPSAxMjM0LjY3OwogICBwcmludGYoImZsb29yZiglZikgPSAl
ZlxuIiwgZiwgZmxvb3JmKGYpKTsKICAgcmV0dXJuIDA7Cn0K
</data>

          </attachment>
      

    </bug>

</bugzilla>