Bug 7288 - (20150202-1)build appliance behave oddly when compiling qemuppc core-image-minimal in vmplayer
Summary: (20150202-1)build appliance behave oddly when compiling qemuppc core-image-mi...
Status: RESOLVED DUPLICATE of bug 5087
Alias: None
Product: Runtime
Classification: Build System, Metadata & Runtime
Component: build-appliance (show other bugs)
Version: 1.8
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.8 M3
Assignee: Ke Zou
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-02-05 07:19 UTC by Ke Zou
Modified: 2015-03-06 12:15 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: Regression (Used to work)
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ke Zou 2015-02-05 07:19:28 UTC
build appliance location:
http://autobuilder.yoctoproject.org/pub/nightly/20150202-1/build-appliance/

test step:
1.unzip build appliance zip file
2.Using vmplayer to test build appliance
3.In Hob page, build core-image-minimal(qemuppc arch)

Every time I build this image, we encounter a build error.
The weird thing is that it happens to different package every time.
So far I've tested for 3 times. The build error happens in 
"bin-utils", "lib-tools", "bison-native" respectively.
A piece of "bison-native" build error message:


NOTE: Running /home/builder/poky/build/tmp/work/x86_64-linux/bison-native/2.7.1-r0/bison-2.7.1/configure  --build=x86_64-linux            --host=x86_64-linux             --target=x86_64-linux                   --prefix=/home/builder/poky/build/tmp/sysroots/x86_64-linux/usr                 --exec_prefix=/home/builder/poky/build/tmp/sysroots/x86_64-linux/usr            --bindir=/home/builder/poky/build/tmp/sysroots/x86_64-linux/usr/bin             --sbindir=/home/builder/poky/build/tmp/sysroots/x86_64-linux/usr/sbin                   --libexecdir=/home/builder/poky/build/tmp/sysroots/x86_64-linux/usr/lib/bison                   --datadir=/home/builder/poky/build/tmp/sysroots/x86_64-linux/usr/share                  --sysconfdir=/home/builder/poky/build/tmp/sysroots/x86_64-linux/etc             --sharedstatedir=/home/builder/poky/build/tmp/sysroots/x86_64-linux/com                 --localstatedir=/home/builder/poky/build/tmp/sysroots/x86_64-linux/var                  --libdir=/home/builder/poky/build/tmp/sysroots/x86_64-linux/usr/lib             --includedir=/home/builder/poky/build/tmp/sysroots/x86_64-linux/usr/include             --oldincludedir=/home/builder/poky/build/tmp/sysroots/x86_64-linux/usr/include                  --infodir=/home/builder/poky/build/tmp/sysroots/x86_64-linux/usr/share/info             --mandir=/home/builder/poky/build/tmp/sysroots/x86_64-linux/usr/share/man               --disable-silent-rules                  --disable-dependency-tracking                     M4=m4 --disable-nls 
configure: loading site script /home/builder/poky/meta/site/native
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... configure: error: newly created file is older than distributed files!
Check your system clock
Configure failed. The contents of all config.log files follows to aid debugging
ERROR: oe_runconf failed
WARNING: /home/builder/poky/build/tmp/work/x86_64-linux/bison-native/2.7.1-r0/temp/run.do_configure.19114:1 exit 1 from
  exit 1
ERROR: Function failed: do_configure (log file is located at /home/builder/poky/build/tmp/work/x86_64-linux/bison-native/2.7.1-r0/temp/log.do_configure.19114)
Comment 1 Cristian Iorga 2015-02-05 09:58:19 UTC
Investigation started.
Comment 2 Cristian Iorga 2015-02-05 10:02:08 UTC
Hi Ke,

Can you please see the dates of files in question, that configure process complains about?
Also, can you please see the exact date and time the Build Appliance see as the system clock?
It might also help to let me know if the RTC of the machine that's hosting Build Appliance is set to UTC or to local time.

Thanks for the info,
Cristian
Comment 3 Ke Zou 2015-02-06 09:55:58 UTC
Hi Cristian

Unfortunately , I was unable to reproduce this bug today. I tried to build all archs (qemuarm, qemuppc and qemumips), they all passed.
This may be a little similar to an old bug
https://bugzilla.yoctoproject.org/show_bug.cgi?id=6747

Anyway, there is a time gap between "date" on my host and "date" inside build appliance.
My host:
builder@pek-yocto-build2:~/temp$ date
Fri Feb  6 17:51:55 CST 2015

Build Appliance:
sh-4.3# date
Fri Feb  6 09:52:34 UTC 2015

I cannot get "the dates of files in question, that configure process complains about" because I've cleanup the image and unzip it again to run new test.
I'll try more times to see if I can reproduce this.
Comment 4 Alexandru Georgescu 2015-02-09 15:16:13 UTC
Hi Ke,
When you performed the last test (which passed) did you had the difference between host and client clocks?
Comment 5 Ke Zou 2015-02-10 06:14:00 UTC
(In reply to comment #4)
> Hi Ke,
> When you performed the last test (which passed) did you had the difference
> between host and client clocks?

Hi Alex,
Yes there has always been the difference between host and client clocks.
It never occurs since I started performing Build Appliance test. 
Also, I cannot reproduce this issue now even with 20150202-1 build.
Comment 6 Alexandru Georgescu 2015-02-10 06:58:15 UTC
Ok, please mark it as worksforme and if it doesn't reproduce with the next full pass we'll mark it as verified.
Comment 7 Juro Bystricky 2015-02-25 16:06:46 UTC
Seems the same as bug 5087
https://bugzilla.yoctoproject.org/show_bug.cgi?id=5087
Comment 8 Cristian Iorga 2015-03-06 12:15:59 UTC
Same error actually:
"checking whether build environment is sane... configure: error: newly created file is older than distributed files!
Check your system clock
Configure failed. The contents of all config.log files follows to aid debugging
ERROR: oe_runconf failed"

*** This bug has been marked as a duplicate of bug 5087 ***