<?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>744</bug_id>
          
          <creation_ts>2011-02-20 21:27:49 +0000</creation_ts>
          <short_desc>[sysroot] atom-pc/routerstationpro fails to buid during do_configure</short_desc>
          <delta_ts>2011-03-16 08:21:37 +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>core</component>
          <version>1.0</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>High</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>1.0 M4</target_milestone>
          <dependson>746</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jiajun Xu">jiajun.xu</reporter>
          <assigned_to name="Dongxiao Xu">dongxiao.xu</assigned_to>
          <cc>dexuan.cui</cc>
    
    <cc>kunwei.tian</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          <cf_verified>Program Management</cf_verified>
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>11887</commentid>
    <comment_count>0</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2011-02-20 21:27:49 +0000</bug_when>
    <thetext>commit information: 15751138968ecaca42b247685142e5f495d6eccd

On autobuilder for build 20110217, commit information as above, atom-pc/routerstationpro build will fail with following error message. It is supposed caused by sysroot issue.

#############
ERROR: Logfile of failure stored in: /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/work/mips-poky-linux/gcc-4.5.1-r2/temp/log.do_configure.14501
Log data follows:
| ERROR: Function &apos;do_configure&apos; failed (see /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/work/mips-poky-linux/gcc-4.5.1-r2/temp/log.do_configure.14501 for further information)
| configure.ac:32: error: Please use exactly Autoconf 2.64 instead of 2.65.
| config/override.m4:34: _GCC_AUTOCONF_VERSION_CHECK is expanded from...
| configure.ac:32: the top level
| autom4te: /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/x86_64-linux/usr/bin/m4 failed with exit status: 1
| NOTE: Running /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/work/mips-poky-linux/gcc-4.5.1-r2/gcc-4.5.1/configure 		 --build=x86_64-linux 		  --host=mips-poky-linux 		  --target=mips-poky-linux 		  --prefix=/usr 		  --exec_prefix=/usr 		  --bindir=/usr/bin 		  --sbindir=/usr/sbin 		  --libexecdir=/usr/libexec 		  --datadir=/usr/share 		  --sysconfdir=/etc 		  --sharedstatedir=/com 		  --localstatedir=/var 		  --libdir=/usr/lib 		  --includedir=/usr/include 		  --oldincludedir=/usr/include 		  --infodir=/usr/share/info 		  --mandir=/usr/share/man 		  --with-libtool-sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/routerstationpro                  --with-gnu-ld                 --enable-shared                 --enable-languages=c,c++                 --enable-threads=posix                 --disable-multilib                 --enable-c99                 --enable-long-long                 --enable-symvers=gnu                 --enable-libstdcxx-pch                 --program-prefix=mips-poky-linux-                 --enable-target-optspace                  --enable-lto 			--enable-libssp 			--disable-bootstrap 			--disable-libgomp 			--disable-libmudflap 			--enable-cheaders=c_global                                        --with-local-prefix=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/routerstationpro/usr     --with-gxx-include-dir=/usr/include/c++/                  --enable-__cxa_atexit ...
| checking build system type... x86_64-pc-linux-gnu
| checking host system type... mips-poky-linux-gnu
| checking target system type... mips-poky-linux-gnu
| checking for a BSD-compatible install... /usr/bin/install -c
| checking whether ln works... yes
| checking whether ln -s works... yes
| checking for a sed that does not truncate output... /usr/bin/sed
| checking for gawk... gawk
| checking for mips-poky-linux-gcc... mips-poky-linux-gcc -march=mips32 --sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/routerstationpro
| checking for C compiler default output file name...
| configure: error: in `/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/work/mips-poky-linux/gcc-4.5.1-r2/gcc-4.5.1/build.mips-poky-linux.mips-poky-linux&apos;:
| configure: error: C compiler cannot create executables
| See `config.log&apos; for more details.
| FATAL: oe_runconf failed
#############</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11899</commentid>
    <comment_count>1</comment_count>
    <who name="Dongxiao Xu">dongxiao.xu</who>
    <bug_when>2011-02-20 22:32:35 +0000</bug_when>
    <thetext>It is not supposed to be a machine specific sysroot bug.

Looking at the atom-pc build log in autobuilder: http://autobuilder.pokylinux.org:8010/builders/nightly-internal/builds/57/steps/shell_11/logs/stdio
There are early errors in do_package_setscene before this do_configure error, which is reported in BUG 746.

According to the build log, the root cause should be, if build atom-pc after emenlow, atom-pc build will try to use the sstate-cache generated by emenlow. However, due to the existence of BUG 746, some recipe&apos;s do_package_setscene will fail, for example, eglibc. Thus eglibc will be rebuild and do_setcene will be conducted, which removes all eglibc installed files. 

In the meantime of eglibc rebuild, some other package&apos;s do_configure will meet errors, such as ncurses. It will report error: C compiler cannot create executables. It should be related with the missing of eglibc files.

Therefore if BUG 746 got fixed, then this bug could also be closed. 

However this bug indicates a further question, how to ensure those essential packages (like gcc, eglibc, etc) that not explicitly listed in DEPENDS are successfully built before other recipes?

CC Richard for comments.

Thanks,
Dongxiao</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11931</commentid>
    <comment_count>2</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-02-22 07:31:43 +0000</bug_when>
    <thetext>Reoslved with 746</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11961</commentid>
    <comment_count>3</comment_count>
    <who name="Dongxiao Xu">dongxiao.xu</who>
    <bug_when>2011-02-22 16:49:04 +0000</bug_when>
    <thetext>Though BUG 746 got fixed, there are still some other errors when executing do_package_setscene in autobuilder, which causes eglibc rebuild and do_setscene.

Re-open this bug until the following error got fixed.

Error log:

TypeError: __init__() got an unexpected keyword argument &apos;output&apos;

ERROR: The stack trace of python calls that resulted in this exception/failure was:
ERROR:   File &quot;do_package_setscene&quot;, line 6, in &lt;module&gt;
ERROR: 
ERROR:   File &quot;do_package_setscene&quot;, line 3, in do_package_setscene
ERROR: 
ERROR:   File &quot;sstate.bbclass&quot;, line 3, in sstate_setscene
ERROR: 
ERROR:   File &quot;sstate.bbclass&quot;, line 46, in sstate_installpkg
ERROR: 
ERROR:   File &quot;/srv/home/pokybuild/poky-slave/nightly-external/build/meta/lib/oe/path.py&quot;, line 57, in copytree
ERROR:     check_output(cmd, shell=True, stderr=subprocess.STDOUT)
ERROR: 
ERROR:   File &quot;/srv/home/pokybuild/poky-slave/nightly-external/build/meta/lib/oe/path.py&quot;, line 114, in check_output
ERROR:     raise subprocess.CalledProcessError(retcode, cmd, output=output)
ERROR: 
ERROR: The code that was being executed was:
ERROR:      0002:def do_package_setscene(d):
ERROR:      0003:	sstate_setscene(d)
ERROR:      0004:
ERROR:      0005:
ERROR:  *** 0006:do_package_setscene(d)
ERROR:      0007:
ERROR: (file: &apos;do_package_setscene&apos;, lineno: 6, function: &lt;module&gt;)
ERROR:      0001:
ERROR:      0002:def do_package_setscene(d):
ERROR:  *** 0003:	sstate_setscene(d)
ERROR:      0004:
ERROR:      0005:
ERROR:      0006:do_package_setscene(d)
ERROR:      0007:</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11982</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-02-23 01:47:59 +0000</bug_when>
    <thetext>This was already fixed in http://git.pokylinux.org/cgit.cgi/poky/commit/?id=b42273a909f86776a0398077563d7b3fee92f3cb</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12605</commentid>
    <comment_count>5</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2011-03-14 23:48:22 +0000</bug_when>
    <thetext>Mark the bug as VERIFIED since RC3 already has atom-pc/routerstationpro built out.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>