<?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>2591</bug_id>
          
          <creation_ts>2012-06-13 06:09:15 +0000</creation_ts>
          <short_desc>gcc-cross: argument list too long when do_install</short_desc>
          <delta_ts>2012-06-25 09:40:52 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>1.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugzilla.yoctoproject.org/show_bug.cgi?id=2434</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>(QA testing completed) Done</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.3 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Yang">liezhi.yang</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>liang.li2</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>song.liu</cc>
    
    <cc>zhenfeng.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>22096</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2012-06-13 06:09:15 +0000</bug_when>
    <thetext>There would be an &quot;Argument list too long&quot; error when the length of
tmpdir is longer than 190, this is caused by:
    
headers=`echo $(PLUGIN_HEADERS) | tr &apos; &apos; &apos;\012&apos; | sort -u`
    
The PLUGIN_HEADERS is too long before sort, so the &quot;echo&quot; can&apos;t handle
it, use the $(sort list) of GNU make which can handle the too long list
would fix the problem, the header would be short enough after sorted.
The &quot;tr &apos; &apos; &apos;\012&apos;&quot; was used for translating the space to &quot;\n&quot;, the
$(sort list) doesn&apos;t need this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22299</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2012-06-19 02:42:59 +0000</bug_when>
    <thetext>Merged into master:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=a41c3e486773f90448a29e88a332c4be3df738e6</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22534</commentid>
    <comment_count>2</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2012-06-25 09:40:52 +0000</bug_when>
    <thetext>the build dir I tried is &quot;/home/yocto/yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto_yocto&quot; ,its dir length equals 252 characters.

---------------
in the builddir above run &quot;bitbake gcc-cross&quot;,no error in build,do_install (gcc 4.7 is used)info below: 

NOTE: Running task 180 of 185 (ID: 3, /buildarea/poky.ubuntu.new/meta/recipes-devtools/gcc/gcc-cross_4.7.bb, do_install)
NOTE: package gcc-cross-4.7.0+svnr186651-r2: task do_install: Started
NOTE: package gcc-cross-4.7.0+svnr186651-r2: task do_install: Succeeded
NOTE: Running noexec task 183 of 185 (ID: 9, /buildarea/poky.ubuntu.new/meta/recipes-devtools/gcc/gcc-cross_4.7.bb, do_package_write)
NOTE: Running task 184 of 185 (ID: 4, /buildarea/poky.ubuntu.new/meta/recipes-devtools/gcc/gcc-cross_4.7.bb, do_populate_sysroot)
NOTE: package gcc-cross-4.7.0+svnr186651-r2: task do_populate_sysroot: Started
NOTE: package gcc-cross-4.7.0+svnr186651-r2: task do_populate_sysroot: Succeeded
NOTE: Running noexec task 185 of 185 (ID: 6, /buildarea/poky.ubuntu.new/meta/recipes-devtools/gcc/gcc-cross_4.7.bb, do_build)
NOTE: Tasks Summary: Attempted 185 tasks of which 74 didn&apos;t need to be rerun and all succeeded.

Summary: There was 1 WARNING message shown
--------------------------
another do_install (gcc 4.6 is used and add &apos;GCCVERSION = &quot;4.6%&quot;&apos; to conf/local.conf) info below:

NOTE: Running task 180 of 185 (ID: 3, /buildarea/poky.ubuntu.new/meta/recipes-devtools/gcc/gcc-cross_4.6.bb, do_install)
NOTE: package gcc-cross-4.6.3+svnr184847-r27: task do_install: Started
NOTE: package gcc-cross-4.6.3+svnr184847-r27: task do_install: Succeeded
NOTE: Running noexec task 183 of 185 (ID: 9, /buildarea/poky.ubuntu.new/meta/recipes-devtools/gcc/gcc-cross_4.6.bb, do_package_write)
NOTE: Running task 184 of 185 (ID: 4, /buildarea/poky.ubuntu.new/meta/recipes-devtools/gcc/gcc-cross_4.6.bb, do_populate_sysroot)
NOTE: package gcc-cross-4.6.3+svnr184847-r27: task do_populate_sysroot: Started
NOTE: package gcc-cross-4.6.3+svnr184847-r27: task do_populate_sysroot: Succeeded
NOTE: Running noexec task 185 of 185 (ID: 6, /buildarea/poky.ubuntu.new/meta/recipes-devtools/gcc/gcc-cross_4.6.bb, do_build)
NOTE: Tasks Summary: Attempted 185 tasks of which 167 didn&apos;t need to be rerun and all succeeded.

Summary: There was 1 WARNING message shown.

so change status to &quot;verified&quot;.

git info:e0a70547069fe7e8a2d6bdaffc985fb172d46c31
git branch: poky/master

test env:
host : fedora 17 x86_64
kernel:kernel:3.3.4-5.fc17.x86_64 #1 SMP</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>