<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.yoctoproject.org/wiki/index.php?action=history&amp;feed=atom&amp;title=TipsAndTricks%2FDebuggingOddFailure</id>
	<title>TipsAndTricks/DebuggingOddFailure - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.yoctoproject.org/wiki/index.php?action=history&amp;feed=atom&amp;title=TipsAndTricks%2FDebuggingOddFailure"/>
	<link rel="alternate" type="text/html" href="https://wiki.yoctoproject.org/wiki/index.php?title=TipsAndTricks/DebuggingOddFailure&amp;action=history"/>
	<updated>2026-04-23T02:02:03Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.5</generator>
	<entry>
		<id>https://wiki.yoctoproject.org/wiki/index.php?title=TipsAndTricks/DebuggingOddFailure&amp;diff=37814&amp;oldid=prev</id>
		<title>Rpurdie: Created page with &quot;We noticed one of the Penang QA autobuilders would fail to build tar with a failure in do_install:   NOTE: make -j 16 DESTDIR=/home/ab/autobuilder/yocto-worker/nightly-oe-self...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.yoctoproject.org/wiki/index.php?title=TipsAndTricks/DebuggingOddFailure&amp;diff=37814&amp;oldid=prev"/>
		<updated>2018-04-13T13:11:34Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;We noticed one of the Penang QA autobuilders would fail to build tar with a failure in do_install:   NOTE: make -j 16 DESTDIR=/home/ab/autobuilder/yocto-worker/nightly-oe-self...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;We noticed one of the Penang QA autobuilders would fail to build tar with a failure in do_install:&lt;br /&gt;
&lt;br /&gt;
 NOTE: make -j 16 DESTDIR=/home/ab/autobuilder/yocto-worker/nightly-oe-selftest-opensuse423/build/build/tmp/work/core2-64-poky-linux/tar/1.30-r0/image install&lt;br /&gt;
 Making install in doc&lt;br /&gt;
 make[1]: Entering directory &amp;#039;/home/ab/autobuilder/yocto-worker/nightly-oe-selftest-opensuse423/build/build/tmp/work/core2-64-poky-linux/tar/1.30-r0/build/doc&amp;#039;&lt;br /&gt;
 restore=: &amp;amp;&amp;amp; backupdir=&amp;quot;.am$$&amp;quot; &amp;amp;&amp;amp; \&lt;br /&gt;
 am__cwd=`pwd` &amp;amp;&amp;amp; CDPATH=&amp;quot;${ZSH_VERSION+.}:&amp;quot; &amp;amp;&amp;amp; cd ../../tar-1.30/doc &amp;amp;&amp;amp; \&lt;br /&gt;
 rm -rf $backupdir &amp;amp;&amp;amp; mkdir $backupdir &amp;amp;&amp;amp; \&lt;br /&gt;
 if (/bin/sh /home/ab/autobuilder/yocto-worker/nightly-oe-selftest-opensuse423/build/build/tmp/work/core2-64-poky-linux/tar/1.30-r0/tar-1.30/build-aux/missing makeinfo --version) &amp;gt;/dev/null 2&amp;gt;&amp;amp;1; then \&lt;br /&gt;
   for f in ../../tar-1.30/doc/tar.info ../../tar-1.30/doc/tar.info-[0-9] ../../tar-1.30/doc/tar.info-[0-9][0-9] ../../tar-1.30/doc/tar.i[0-9] ../../tar-1.30/doc/tar.i[0-9][0-9]; do \&lt;br /&gt;
     if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \&lt;br /&gt;
   done; \&lt;br /&gt;
 else :; fi &amp;amp;&amp;amp; \&lt;br /&gt;
 cd &amp;quot;$am__cwd&amp;quot;; \&lt;br /&gt;
 if /bin/sh /home/ab/autobuilder/yocto-worker/nightly-oe-selftest-opensuse423/build/build/tmp/work/core2-64-poky-linux/tar/1.30-r0/tar-1.30/build-aux/missing makeinfo  -DDISTRIB -I ../../tar-1.30/doc \&lt;br /&gt;
  -o ../../tar-1.30/doc/tar.info ../../tar-1.30/doc/tar.texi; \&lt;br /&gt;
 then \&lt;br /&gt;
   rc=0; \&lt;br /&gt;
   CDPATH=&amp;quot;${ZSH_VERSION+.}:&amp;quot; &amp;amp;&amp;amp; cd ../../tar-1.30/doc; \&lt;br /&gt;
 else \&lt;br /&gt;
   rc=$?; \&lt;br /&gt;
   CDPATH=&amp;quot;${ZSH_VERSION+.}:&amp;quot; &amp;amp;&amp;amp; cd ../../tar-1.30/doc &amp;amp;&amp;amp; \&lt;br /&gt;
   $restore $backupdir/* `echo &amp;quot;./../../tar-1.30/doc/tar.info&amp;quot; | sed &amp;#039;s|[^/]*$||&amp;#039;`; \&lt;br /&gt;
 fi; \&lt;br /&gt;
 rm -rf $backupdir; exit $rc&lt;br /&gt;
 ../../tar-1.30/doc/tar.texi:5480: Unknown command `atchar&amp;#039;.&lt;br /&gt;
 ../../tar-1.30/doc/tar.texi:5480: Misplaced {.&lt;br /&gt;
 ../../tar-1.30/doc/tar.texi:5480: Misplaced }.&lt;br /&gt;
 makeinfo: Removing output file `../../tar-1.30/doc/tar.info&amp;#039; due to errors; use --force to preserve.&lt;br /&gt;
 Makefile:1345: recipe for target &amp;#039;../../tar-1.30/doc/tar.info&amp;#039; failed&lt;br /&gt;
 make[1]: *** [../../tar-1.30/doc/tar.info] Error 1&lt;br /&gt;
 make[1]: Leaving directory &amp;#039;/home/ab/autobuilder/yocto-worker/nightly-oe-selftest-opensuse423/build/build/tmp/work/core2-64-poky-linux/tar/1.30-r0/build/doc&amp;#039;&lt;br /&gt;
 Makefile:1394: recipe for target &amp;#039;install-recursive&amp;#039; failed&lt;br /&gt;
 make: *** [install-recursive] Error 1&lt;br /&gt;
 ERROR: oe_runmake failed&lt;br /&gt;
&lt;br /&gt;
This is caused by the fact that its trying to use the host&amp;#039;s makeinfo command to regenerate the tar.info file and makeinfo is too old on the host. This raises the question why does this fail here but not anywhere else.&lt;br /&gt;
&lt;br /&gt;
Adding &amp;quot;--trace -d&amp;quot; to the oe_runmake_call() function in WORKDIR/temp/run.do_install meant we could find out why make wanted to rebuild this:&lt;br /&gt;
&lt;br /&gt;
           Finished prerequisites of target file &amp;#039;../../tar-1.30/doc/tar.info&amp;#039;.&lt;br /&gt;
           Prerequisite &amp;#039;../../tar-1.30/doc/tar.texi&amp;#039; is older than target &amp;#039;../../tar-1.30/doc/tar.info&amp;#039;.&lt;br /&gt;
           Prerequisite &amp;#039;../../tar-1.30/doc/tar.texi&amp;#039; is older than target &amp;#039;../../tar-1.30/doc/tar.info&amp;#039;.&lt;br /&gt;
           Prerequisite &amp;#039;../../tar-1.30/doc/version.texi&amp;#039; is newer than target &amp;#039;../../tar-1.30/doc/tar.info&amp;#039;.&lt;br /&gt;
           Prerequisite &amp;#039;../../tar-1.30/doc/dumpdir.texi&amp;#039; is older than target &amp;#039;../../tar-1.30/doc/tar.info&amp;#039;.&lt;br /&gt;
           Prerequisite &amp;#039;../../tar-1.30/doc/tar-snapshot-edit.texi&amp;#039; is older than target &amp;#039;../../tar-1.30/doc/tar.info&amp;#039;.&lt;br /&gt;
           Prerequisite &amp;#039;../../tar-1.30/doc/fdl.texi&amp;#039; is older than target &amp;#039;../../tar-1.30/doc/tar.info&amp;#039;.&lt;br /&gt;
           Prerequisite &amp;#039;../../tar-1.30/doc/freemanuals.texi&amp;#039; is older than target &amp;#039;../../tar-1.30/doc/tar.info&amp;#039;.&lt;br /&gt;
           Prerequisite &amp;#039;../../tar-1.30/doc/genfile.texi&amp;#039; is older than target &amp;#039;../../tar-1.30/doc/tar.info&amp;#039;.&lt;br /&gt;
           Prerequisite &amp;#039;../../tar-1.30/doc/header.texi&amp;#039; is older than target &amp;#039;../../tar-1.30/doc/tar.info&amp;#039;.&lt;br /&gt;
           Prerequisite &amp;#039;../../tar-1.30/doc/intern.texi&amp;#039; is older than target &amp;#039;../../tar-1.30/doc/tar.info&amp;#039;.&lt;br /&gt;
           Prerequisite &amp;#039;../../tar-1.30/doc/parse-datetime.texi&amp;#039; is older than target &amp;#039;../../tar-1.30/doc/tar.info&amp;#039;.&lt;br /&gt;
           Prerequisite &amp;#039;../../tar-1.30/doc/recipes.texi&amp;#039; is older than target &amp;#039;../../tar-1.30/doc/tar.info&amp;#039;.&lt;br /&gt;
           Prerequisite &amp;#039;../../tar-1.30/doc/rendition.texi&amp;#039; is older than target &amp;#039;../../tar-1.30/doc/tar.info&amp;#039;.&lt;br /&gt;
           Prerequisite &amp;#039;../../tar-1.30/doc/snapshot.texi&amp;#039; is older than target &amp;#039;../../tar-1.30/doc/tar.info&amp;#039;.&lt;br /&gt;
           Prerequisite &amp;#039;../../tar-1.30/doc/sparse.texi&amp;#039; is older than target &amp;#039;../../tar-1.30/doc/tar.info&amp;#039;.&lt;br /&gt;
           Prerequisite &amp;#039;../../tar-1.30/doc/value.texi&amp;#039; is older than target &amp;#039;../../tar-1.30/doc/tar.info&amp;#039;.&lt;br /&gt;
          Must remake target &amp;#039;../../tar-1.30/doc/tar.info&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
i.e. version.texi had changed. A look through the other logs showed the compile log:&lt;br /&gt;
&lt;br /&gt;
 make[2]: Entering directory &amp;#039;/home/ab/autobuilder/yocto-worker/nightly-oe-selftest-opensuse423/build/build/tmp/work/core2-64-poky-linux/tar/1.30-r0/build/doc&amp;#039;&lt;br /&gt;
 Updating ../../tar-1.30/doc/version.texi&lt;br /&gt;
&lt;br /&gt;
which does not appear on a working build. Looking at the makefiles:&lt;br /&gt;
&lt;br /&gt;
 doc/Makefile.in:$(srcdir)/version.texi:  $(srcdir)/stamp-vti&lt;br /&gt;
 doc/Makefile.in:$(srcdir)/stamp-vti: tar.texi $(top_srcdir)/configure&lt;br /&gt;
&lt;br /&gt;
and stamp-vti is a generated file which is compared to version.texi and replaces it if its different. The contents of the file in breaking build:&lt;br /&gt;
&lt;br /&gt;
 @set UPDATED 17 December 2017&lt;br /&gt;
 @set UPDATED-MONTH December 2017&lt;br /&gt;
 @set EDITION 1.30&lt;br /&gt;
 @set VERSION 1.30&lt;br /&gt;
&lt;br /&gt;
verses a working one:&lt;br /&gt;
&lt;br /&gt;
 @set UPDATED 16 December 2017&lt;br /&gt;
 @set UPDATED-MONTH December 2017&lt;br /&gt;
 @set EDITION 1.30&lt;br /&gt;
 @set VERSION 1.30&lt;br /&gt;
&lt;br /&gt;
so the date is different. Running the command from the makefile to look at this directly:&lt;br /&gt;
&lt;br /&gt;
 $ ../build-aux/mdate-sh tar.texi&lt;br /&gt;
 16 December 2017&lt;br /&gt;
 $ TZ=Asia/Kuala_Lumpur ../build-aux/mdate-sh tar.texi&lt;br /&gt;
 17 December 2017&lt;br /&gt;
&lt;br /&gt;
so the issue is the timezone the autobuilder is in changes the timestamp, causing the file to regenerate and break if and only if makeinfo is too old!&lt;/div&gt;</summary>
		<author><name>Rpurdie</name></author>
	</entry>
</feed>