Bug 903

Summary: do_configure of eglibc fails in x86 and x86_64 poky-image-lsb
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Beth Flanagan <elizabeth.flanagan>
Component: coreAssignee: Nitin Kamble <nitin.a.kamble>
Status: RESOLVED FIXED QA Contact:
Severity: critical    
Priority: Medium CC: bluelightning, elizabeth.flanagan, kevin.tian, meta.mr.watcher, meta.watcher, richard.purdie
Version: 1.0-alpha   
Target Milestone: 1.1   
Hardware: x86   
OS: x86   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Beth Flanagan 2011-03-17 21:07:25 UTC
Steps:

After running non-lsb builds (which passed), ran bitbake poky-image-lsb poky-image-lsb-dev poky-image-lsb-sdk on the autobuilder.

Fails for both x86 and x86-64. See:
http://autobuilder.yoctoproject.org:8010/builders/nightly-internal-lsb/builds/1/steps/shell_4/logs/stdio
and
http://autobuilder.yoctoproject.org:8010/builders/nightly-internal-lsb/builds/1/steps/shell_4/logs/stdio

ERROR: Function 'do_configure' failed (see /builds2/pokybuilds/nightly-internal-lsb/build/build/tmp/work/i586-poky-linux/eglibc-2.12-r13/temp/log.do_configure.30534 for further information)
ERROR: Logfile of failure stored in: /builds2/pokybuilds/nightly-internal-lsb/build/build/tmp/work/i586-poky-linux/eglibc-2.12-r13/temp/log.do_configure.30534
Log data follows:
| ERROR: Function 'do_configure' failed (see /builds2/pokybuilds/nightly-internal-lsb/build/build/tmp/work/i586-poky-linux/eglibc-2.12-r13/temp/log.do_configure.30534 for further information)
| Perl lib version (5.12.2) doesn't match executable version (v5.10.0) at /builds2/pokybuilds/nightly-internal-lsb/build/build/tmp/sysroots/x86_64-linux/usr/lib/perl/5.12.2/Config.pm line 50.
| Compilation failed in require at /builds2/pokybuilds/nightly-internal-lsb/build/build/tmp/sysroots/x86_64-linux/usr/lib/perl/5.12.2/File/Copy.pm line 14.
| BEGIN failed--compilation aborted at /builds2/pokybuilds/nightly-internal-lsb/build/build/tmp/sysroots/x86_64-linux/usr/lib/perl/5.12.2/File/Copy.pm line 14.
| Compilation failed in require at /builds2/pokybuilds/nightly-internal-lsb/build/build/tmp/sysroots/x86_64-linux/usr/share/autoconf/Autom4te/FileUtils.pm line 166.
| BEGIN failed--compilation aborted at /builds2/pokybuilds/nightly-internal-lsb/build/build/tmp/sysroots/x86_64-linux/usr/share/autoconf/Autom4te/FileUtils.pm line 166.
| Compilation failed in require at /builds2/pokybuilds/nightly-internal-lsb/build/build/tmp/sysroots/x86_64-linux/usr/bin/autom4te line 41.
| BEGIN failed--compilation aborted at /builds2/pokybuilds/nightly-internal-lsb/build/build/tmp/sysroots/x86_64-linux/usr/bin/autom4te line 41.
| NOTE: Running /builds2/pokybuilds/nightly-internal-lsb/build/build/tmp/work/i586-poky-linux/eglibc-2.12-r13/eglibc-2_12/libc/configure 		 --build=x86_64-linux 		  --host=i586-poky-linux 		  --target=i586-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=/builds2/pokybuilds/nightly-internal-lsb/build/build/tmp/sysroots/qemux86 --enable-kernel=2.4.0                 --without-cvs --disable-profile --disable-debug --without-gd                 --enable-clocale=gnu                 --enable-add-ons=nptl,ports                 --with-headers=/builds2/pokybuilds/nightly-internal-lsb/build/build/tmp/sysroots/qemux86/usr/include                 --without-selinux                 --with-tls  ...
| checking build system type... x86_64-pc-linux-gnu
| checking host system type... i586-poky-linux-gnu
| checking for i586-poky-linux-gcc... i586-poky-linux-gcc -march=i586 --sysroot=/builds2/pokybuilds/nightly-internal-lsb/build/build/tmp/sysroots/qemux86-tcbootstrap
| checking for suffix of object files... configure: error: in `/builds2/pokybuilds/nightly-internal-lsb/build/build/tmp/work/i586-poky-linux/eglibc-2.12-r13/build-i586-poky-linux':
| configure: error: cannot compute suffix of object files: cannot compile
| See `config.log' for more details.
| FATAL: oe_runconf failed
NOTE: package eglibc-2.12-r13: task do_configure: Failed
NOTE: package eglibc-initial-2.12-r13: task do_patch: Started
NOTE: package eglibc-initial-2.12-r13: task do_patch: Succeeded
ERROR: Task 845 (/builds2/pokybuilds/nightly-internal-lsb/build/meta/recipes-core/eglibc/eglibc_2.12.bb, do_configure) failed with exit code '1'
Comment 1 Kevin Tian 2011-03-18 00:11:27 UTC
the failure also happens on atom-pc.

there're other failures in whole toolchain:

[eglibc-initial.do_install]
In file included from ./sysdeps/unix/sysdep.h:21:0,
|                  from ./sysdeps/unix/i386/sysdep.h:19,
|                  from sysdeps/unix/sysv/linux/i386/sysdep.h:25,
|                  from <stdin>:1:
| sysdeps/unix/sysv/linux/sys/syscall.h:25:24: fatal error: asm/unistd.h: No such file or directory
...

[gcc-cross-intermediate.do_compile]
| checking for suffix of object files... configure: error: in `/builds2/pokybuilds/nightly-internal-lsb/build/build/tmp/work/i586-poky-linux/gcc-cross-intermediate-4.5.1-r5/gcc-4.5.1/build.x86_64-linux.i586-poky-linux/i586-poky-linux/libgcc':
| configure: error: cannot compute suffix of object files: cannot compile

[gcc-cross-initial.do_compile]
| checking for suffix of object files... configure: error: in `/builds2/pokybuilds/nightly-internal-lsb/build/build/tmp/work/i586-poky-linux/gcc-cross-initial-4.5.1-r4/gcc-4.5.1/build.x86_64-linux.i586-poky-linux/i586-poky-linux/libgcc':
| configure: error: cannot compute suffix of object files: cannot compile

[gcc-cross.do_compile]
| The directory that should contain system headers does not exist:
|   /builds2/pokybuilds/nightly-internal-lsb/build/build/tmp/sysroots/qemux86/usr/include
Comment 2 Kevin Tian 2011-03-18 00:20:51 UTC
however I can't reproduce it in my local build environment, strange...
Comment 3 Beth Flanagan 2011-03-18 00:46:15 UTC
The only thing I can think of at this point, is that it's getting polluted from the prior run of the non-lsb target and picking up issues from /home/pokybuild/sstate-cache. Since all the build failures seem to be around toolchain issues here, I'm testing right now to see if clearing out the sstate cache when I run an lsb build causes this to not fail.
Comment 4 Kevin Tian 2011-03-18 00:48:47 UTC
based on my chat with Beth, when sstate-cache is shared between two machines, the src path on them are different. then it may be caused by the bug 894 (http://bugzilla.pokylinux.org/show_bug.cgi?id=894).
Comment 5 Richard Purdie 2011-03-18 11:38:19 UTC
Some notes on the specific glibc problem:

It only occurs if the original work directory isn't there.

Its due the sstate packages for the toolchain bootstrap containing symlinks which point at the original build directory with absolute paths.

Ideally, sstate would fix these up, ideally making them relative would solve the problem.
Comment 6 Richard Purdie 2011-03-18 18:35:53 UTC
See notes in #790, probably related, some issues are now resolved.
Comment 7 Richard Purdie 2011-03-21 05:23:33 UTC
Its #792, not #790
Comment 8 Richard Purdie 2011-03-21 07:17:52 UTC
Kevin Tian submitted a fix to ensure these packages are reused on the autobuilder. I've also submitted fixes for the symlink problem which resolves the glibc issues reported in this bug. There are other sstate issues but we'll track those with the other open bugs and close this one.