<?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>1781</bug_id>
          
          <creation_ts>2011-11-22 07:27:12 +0000</creation_ts>
          <short_desc>[x86/x86_64 toolchain] cvs configure fail with no cvs_cv_func_printf_ptr set</short_desc>
          <delta_ts>2012-01-18 19:17:16 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>ADT</product>
          <component>kernel analysis</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jiajun Xu">jiajun.xu</reporter>
          <assigned_to name="Nitin Kamble">nitin.a.kamble</assigned_to>
          <cc>dexuan.cui</cc>
    
    <cc>hongnax.xu</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>nitin.a.kamble</cc>
    
    <cc>poky.adt.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>yp.sdk.watcher</cc>
    
    <cc>yp.watcher</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>17316</commentid>
    <comment_count>0</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2011-11-22 07:27:12 +0000</bug_when>
    <thetext>Tree/Branch: Poky/master
Commit: f2d077255d9ddf9b87e9a781b989bcce69047cf5

Similar with bug 1195, with i686 or x86_64 toolchain, cvs fails to configure because no cvs_cv_func_printf_ptr. Error log as below:

####
checking for sigsetmask... (cached) yes
checking for sigvec... (cached) yes
checking for timezone... (cached) yes
checking for tzset... (cached) yes
checking for vprintf... (cached) yes
checking for wait3... (cached) yes
checking for unistd.h... (cached) yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... (cached) yes
checking for vfork... (cached) yes
checking for working fork... cross
configure: WARNING: result yes guessed because of cross compilation
checking for working vfork... (cached) yes
checking whether closedir returns void... yes
checking for library containing getspnam... none required
checking whether utime accepts a null argument... no
checking for long file names... yes
checking whether printf supports %p... configure: error: cannot run test program while cross compiling
See `config.log&apos; for more details.
####</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17343</commentid>
    <comment_count>1</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2011-11-22 16:17:07 +0000</bug_when>
    <thetext>Please provide steps to reproduce the issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17344</commentid>
    <comment_count>2</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2011-11-22 16:24:00 +0000</bug_when>
    <thetext>Jiajun,

Please attached your cvs project to the bug and detailed steps to reproduce it. Also, want to confirm, the failure happened to both x86 and x86-64 toolchain?

Nitin,

I took a look at meta/site, even though the symptom is similar to 1195 but seems there&apos;s already an entry in ix86-common for cvs_cv_func_printf_ptr=${cvs_cv_func_printf_ptr=yes}
which was the fix for 1195, so I don&apos;t know what else may trigger the failure in the toolchains.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17345</commentid>
    <comment_count>3</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2011-11-22 16:33:15 +0000</bug_when>
    <thetext>Sorry, I should attach the steps.

1. Download cvs-1.12.13.tar.bz2 from http://ftp.gnu.org/non-gnu/cvs/source/feature/1.12.13/
2. Extract it on a 64bit host, for example. And download x86_64 toolchain, http://autobuilder.pokylinux.org/pub/nightly/20111117-4/toolchain/x86-64/poky-eglibc-x86_64-x86_64-toolchain-gmae-1.1+snapshot-20111118.tar.bz2.
3. Extract the toolchain tarball and prepare the cross compile enviroment by &quot;source /opt/poky/1.1+snapshot/environment-setup-x86_64-poky-linu&quot;
4. cd into cvs source folder and run &quot;./configure ${CONFIGURE_FLAGS}&quot;. Then you will see the error</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17346</commentid>
    <comment_count>4</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2011-11-22 16:36:57 +0000</bug_when>
    <thetext>So, this only apply the x86-64 toolchain then?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17347</commentid>
    <comment_count>5</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2011-11-22 16:46:32 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; So, this only apply the x86-64 toolchain then?

I think it only apply the toolchains, in which target and host are x86_64-poky-linux. I found the issue with both poky-eglibc-i686-x86_64-toolchain-gmae-1.1+snapshot-20111118.tar.bz2 and poky-eglibc-x86_64-x86_64-toolchain-gmae-1.1+snapshot-20111118.tar.bz2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17348</commentid>
    <comment_count>6</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2011-11-22 16:50:04 +0000</bug_when>
    <thetext>Ok, that makes sense, thought you mean both the ix86 and 86-64 toolchain.

Nitin,
 
seems we&apos;re missing ix86-common in siteinfo.bbclass for x86_64?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17350</commentid>
    <comment_count>7</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2011-11-22 21:56:24 +0000</bug_when>
    <thetext>sent a fix for the to oe-core list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17390</commentid>
    <comment_count>8</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-11-24 14:33:07 +0000</bug_when>
    <thetext>Fixed in master in http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=c27a005ea9df71a22909bd66d94b3e6631718738</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18248</commentid>
    <comment_count>9</comment_count>
    <who name="Hongna Xu">hongnax.xu</who>
    <bug_when>2012-01-18 19:17:16 +0000</bug_when>
    <thetext>The bug is verified, so set the status VERIFIED.If anyone encounter this bug, pls
reopen it.

Commit information:

Tree/Branch: Poky/1.2_M2
Commit: 0f4d99d207b224bb9ce23de00a48f795ae20b3a0</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>