All of lore.kernel.org
 help / color / mirror / Atom feed
* Can't build mtd-utils-native
@ 2011-02-06 17:49 Gary Thomas
  2011-02-07  7:00 ` Darren Hart
  0 siblings, 1 reply; 3+ messages in thread
From: Gary Thomas @ 2011-02-06 17:49 UTC (permalink / raw)
  To: Poky

[-- Attachment #1: Type: text/plain, Size: 386 bytes --]

Using latest master 50387575ecdb05712958ea3c5caf023d6eb753ba
The recipe for mtd-utils-native fails to build, log attached.

Any ideas how to fix this?

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

[-- Attachment #2: log.do_unpack --]
[-- Type: text/plain, Size: 4942 bytes --]

Cloning into /tmp/test_poky/tmp/work/i686-linux/mtd-utils-native-1.4.1-r1/git...
 done.
 fatal: Not a valid object name v1.4.1
 Error executing a python function in /tmp/poky-amltd/meta/recipes-devtools/mtd/mtd-utils_1.4.1.bb:
FetchError: Fetch command export HOME="/home/gthomas"; export GIT_CONFIG="/tmp/test_poky/tmp/sysroots/i686-linux/usr/etc/gitconfig"; export PATH="/tmp/test_poky/tmp/sysroots/i686-linux/usr/bin/i686-linux:/tmp/test_poky/tmp/sysroots/i686-linux/usr/bin:/tmp/test_poky/tmp/sysroots/i686-linux/usr/sbin:/tmp/test_poky/tmp/sysroots/i686-linux/usr/bin:/tmp/test_poky/tmp/sysroots/i686-linux/sbin:/tmp/test_poky/tmp/sysroots/i686-linux//bin:/home/local/poky-amltd/scripts:/home/local/poky-amltd/bitbake/bin/:/opt/amltd/bin:/usr/java/jdk1.6.0_10/bin:/home/gthomas/Android/android-sdk-linux_x86-1.1_r1/tools:/home/gthomas/bin:/usr/lib/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/tmp/poky-amltd/scripts"; git read-tree v1.4.1 failed with signal 128, output:
fatal: Not a valid object name v1.4.1


ERROR: Error executing a python function in /tmp/poky-amltd/meta/recipes-devtools/mtd/mtd-utils_1.4.1.bb:
FetchError: Fetch command export HOME="/home/gthomas"; export GIT_CONFIG="/tmp/test_poky/tmp/sysroots/i686-linux/usr/etc/gitconfig"; export PATH="/tmp/test_poky/tmp/sysroots/i686-linux/usr/bin/i686-linux:/tmp/test_poky/tmp/sysroots/i686-linux/usr/bin:/tmp/test_poky/tmp/sysroots/i686-linux/usr/sbin:/tmp/test_poky/tmp/sysroots/i686-linux/usr/bin:/tmp/test_poky/tmp/sysroots/i686-linux/sbin:/tmp/test_poky/tmp/sysroots/i686-linux//bin:/home/local/poky-amltd/scripts:/home/local/poky-amltd/bitbake/bin/:/opt/amltd/bin:/usr/java/jdk1.6.0_10/bin:/home/gthomas/Android/android-sdk-linux_x86-1.1_r1/tools:/home/gthomas/bin:/usr/lib/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/tmp/poky-amltd/scripts"; git read-tree v1.4.1 failed with signal 128, output:
fatal: Not a valid object name v1.4.1


The stack trace of python calls that resulted in this exception/failure was:
ERROR: The stack trace of python calls that resulted in this exception/failure was:
  File "base_do_unpack", line 34, in <module>
ERROR:   File "base_do_unpack", line 34, in <module>

ERROR: 
  File "base_do_unpack", line 28, in base_do_unpack
ERROR:   File "base_do_unpack", line 28, in base_do_unpack

ERROR: 
  File "/home/local/poky-amltd/bitbake/lib/bb/fetch2/git.py", line 168, in unpack
ERROR:   File "/home/local/poky-amltd/bitbake/lib/bb/fetch2/git.py", line 168, in unpack
    runfetchcmd("%s read-tree %s%s" % (ud.basecmd, ud.revisions[ud.names[0]], readpathspec), d)
ERROR:     runfetchcmd("%s read-tree %s%s" % (ud.basecmd, ud.revisions[ud.names[0]], readpathspec), d)

ERROR: 
  File "/home/local/poky-amltd/bitbake/lib/bb/fetch2/__init__.py", line 480, in runfetchcmd
ERROR:   File "/home/local/poky-amltd/bitbake/lib/bb/fetch2/__init__.py", line 480, in runfetchcmd
    raise FetchError("Fetch command %s failed with signal %s, output:\n%s" % (cmd, signal, output))
ERROR:     raise FetchError("Fetch command %s failed with signal %s, output:\n%s" % (cmd, signal, output))

ERROR: 
The code that was being executed was:
ERROR: The code that was being executed was:
     0030:		if not ret:
ERROR:      0030:		if not ret:
     0031:			raise bb.build.FuncFailed("oe_unpack_file failed with return value %s" % ret)
ERROR:      0031:			raise bb.build.FuncFailed("oe_unpack_file failed with return value %s" % ret)
     0032:
ERROR:      0032:
     0033:
ERROR:      0033:
 *** 0034:base_do_unpack(d)
ERROR:  *** 0034:base_do_unpack(d)
     0035:
ERROR:      0035:
(file: 'base_do_unpack', lineno: 34, function: <module>)
ERROR: (file: 'base_do_unpack', lineno: 34, function: <module>)
     0024:		else:
ERROR:      0024:		else:
     0025:			# use bb.fetch2 unpack API
ERROR:      0025:			# use bb.fetch2 unpack API
     0026:			ud = urldata[url]
ERROR:      0026:			ud = urldata[url]
     0027:			rootdir = bb.data.getVar('WORKDIR', localdata, True)
ERROR:      0027:			rootdir = bb.data.getVar('WORKDIR', localdata, True)
 *** 0028:			ret = ud.method.unpack(ud, rootdir, localdata)
ERROR:  *** 0028:			ret = ud.method.unpack(ud, rootdir, localdata)
     0029:		bb.utils.unlockfile(lf)
ERROR:      0029:		bb.utils.unlockfile(lf)
     0030:		if not ret:
ERROR:      0030:		if not ret:
     0031:			raise bb.build.FuncFailed("oe_unpack_file failed with return value %s" % ret)
ERROR:      0031:			raise bb.build.FuncFailed("oe_unpack_file failed with return value %s" % ret)
     0032:
ERROR:      0032:
(file: 'base_do_unpack', lineno: 28, function: base_do_unpack)
ERROR: (file: 'base_do_unpack', lineno: 28, function: base_do_unpack)
Function 'base_do_unpack' failed
ERROR: Function 'base_do_unpack' failed

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Can't build mtd-utils-native
  2011-02-06 17:49 Can't build mtd-utils-native Gary Thomas
@ 2011-02-07  7:00 ` Darren Hart
  2011-02-07 13:08   ` Gary Thomas
  0 siblings, 1 reply; 3+ messages in thread
From: Darren Hart @ 2011-02-07  7:00 UTC (permalink / raw)
  To: Gary Thomas; +Cc: Poky

On 02/06/2011 09:49 AM, Gary Thomas wrote:
> Using latest master 50387575ecdb05712958ea3c5caf023d6eb753ba
> The recipe for mtd-utils-native fails to build, log attached.
> 
> Any ideas how to fix this?
> 

I hit this earlier... let me dig up the logs...

Feb 03 14:25:35 <dvhart>	RP__, I'll see if I can resolve this, but mtd_utils do_unpack fails with the new fetcher patch - I reverted it and was able to move past it
Feb 03 14:25:44 <dvhart>	git read-tree v1.4.1 failed with signal 128, output:
Feb 03 14:25:44 <dvhart>	| fatal: Not a valid object name v1.4.1
Feb 03 14:30:38 <RP__>	dvhart: Hmm, which patch did you revert to get past it?
Feb 03 14:30:52 <dvhart>	dfc5faf717ac1f917af398097d5295128548a55d
Feb 03 14:31:00 <dvhart>	which looking at - doesn't make a lot of sense
Feb 03 14:31:00 <--	juliefl has quit (Quit: Leaving.)
Feb 03 14:31:22 <RP__>	dvhart: no :/
Feb 03 14:32:55 <dvhart>	but the do_unpack log now reports success and the do_patch followed and completed
Feb 03 14:33:11 *	dvhart kills, cleans, and rebuilds mtd_utils
...
Feb 03 15:01:28 <dvhart>	RP__, appears to have been a false alarm :/ sorry about that, can't explain it, but I'm not able to reproduce

So, two things to try.

1) do a _full_ clean and try again
$ bitbake -c cleanall mtd-utils-native
$ rm -rf downloads/*mtd-utils* downloads/git/*mtd-utils* sstate-cache/*mtd-utils
$ bitbake mtd-utils-native

If you are still able to produce it,

2) try reverting the commit above
$ git revert dfc5faf717ac1f917af398097d5295128548a55d
followed by all the commands in step 1) above.

Please let us know how it goes, if we have an elusive fetcher bug, we need all
the details on it we can get.

Thanks,

-- 
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Can't build mtd-utils-native
  2011-02-07  7:00 ` Darren Hart
@ 2011-02-07 13:08   ` Gary Thomas
  0 siblings, 0 replies; 3+ messages in thread
From: Gary Thomas @ 2011-02-07 13:08 UTC (permalink / raw)
  To: Darren Hart; +Cc: Poky

On 02/07/2011 12:00 AM, Darren Hart wrote:
> On 02/06/2011 09:49 AM, Gary Thomas wrote:
>> Using latest master 50387575ecdb05712958ea3c5caf023d6eb753ba
>> The recipe for mtd-utils-native fails to build, log attached.
>>
>> Any ideas how to fix this?
>>
>
> I hit this earlier... let me dig up the logs...
>
> Feb 03 14:25:35<dvhart>	RP__, I'll see if I can resolve this, but mtd_utils do_unpack fails with the new fetcher patch - I reverted it and was able to move past it
> Feb 03 14:25:44<dvhart>	git read-tree v1.4.1 failed with signal 128, output:
> Feb 03 14:25:44<dvhart>	| fatal: Not a valid object name v1.4.1
> Feb 03 14:30:38<RP__>	dvhart: Hmm, which patch did you revert to get past it?
> Feb 03 14:30:52<dvhart>	dfc5faf717ac1f917af398097d5295128548a55d
> Feb 03 14:31:00<dvhart>	which looking at - doesn't make a lot of sense
> Feb 03 14:31:00<--	juliefl has quit (Quit: Leaving.)
> Feb 03 14:31:22<RP__>	dvhart: no :/
> Feb 03 14:32:55<dvhart>	but the do_unpack log now reports success and the do_patch followed and completed
> Feb 03 14:33:11 *	dvhart kills, cleans, and rebuilds mtd_utils
> ...
> Feb 03 15:01:28<dvhart>	RP__, appears to have been a false alarm :/ sorry about that, can't explain it, but I'm not able to reproduce
>
> So, two things to try.
>
> 1) do a _full_ clean and try again
> $ bitbake -c cleanall mtd-utils-native
> $ rm -rf downloads/*mtd-utils* downloads/git/*mtd-utils* sstate-cache/*mtd-utils
> $ bitbake mtd-utils-native
>
> If you are still able to produce it,
>
> 2) try reverting the commit above
> $ git revert dfc5faf717ac1f917af398097d5295128548a55d
> followed by all the commands in step 1) above.
>
> Please let us know how it goes, if we have an elusive fetcher bug, we need all
> the details on it we can get.

Still fails.  Log attached.

Note: you can see that this GIT tree has been in my source
cache for a long time (since late 2009) and only now does
it cause problems.

  $ ls -l /work/misc/Poky/sources/git/git.infradead.org.mtd-utils.git/.git
total 92
-rw-r--r--  1 gthomas gthomas   735 Dec 24 07:06 FETCH_HEAD
-rw-r--r--  1 gthomas gthomas    23 Jan  7  2009 HEAD
drwxr-xr-x+ 2 gthomas gthomas  4096 Jan  7  2009 branches
-rw-r--r--  1 gthomas gthomas   262 Jan  7  2009 config
-rw-r--r--  1 gthomas gthomas    58 Jan  7  2009 description
drwxr-xr-x+ 2 gthomas gthomas  4096 Nov  1  2009 hooks
-rw-rw-rw-  1 gthomas gthomas 23387 Dec 24 07:06 index
drwxr-xr-x+ 2 gthomas gthomas  4096 Nov  1  2009 info
drwxr-xr-x+ 3 gthomas gthomas  4096 Nov  1  2009 logs
drwxr-xr-x+ 7 gthomas gthomas  4096 Dec 24 07:06 objects
-rw-r--r--  1 gthomas gthomas   401 Jan  7  2009 packed-refs
drwxr-xr-x+ 5 gthomas gthomas  4096 Nov  1  2009 refs

Also, the tag in question is there.

When I removed it from my source cache, the fetch/unpack worked fine.
Interestingly, what is being cached seems to have changed (but I don't
think the recipe has).  Perhaps this has something to do with the error
I was seeing.

$ ls -ltr /work/misc/Poky/sources/*mtd*
-rw-r--r-- 1 gthomas gthomas  339413 Aug 23  2008 /work/misc/Poky/sources/git_git.infradead.org.mtd-utils.git_b995f89a81589be8d8a41c374a6df109d0ee12b3.tar.gz
-rw-r--r-- 1 gthomas gthomas      32 Oct 12  2009 /work/misc/Poky/sources/git_git.infradead.org.mtd-utils.git_9845d92440bd87739c89edd000fd6e0c47fab185.tar.gz.md5
-rw-r--r-- 1 gthomas gthomas  283980 Oct 12  2009 /work/misc/Poky/sources/git_git.infradead.org.mtd-utils.git_9845d92440bd87739c89edd000fd6e0c47fab185.tar.gz
-rw-rw-r-- 1 gthomas gthomas  409433 Oct 13  2009 /work/misc/Poky/sources/git_git.infradead.org.mtd-utils.git_ea429635388f7bb53f62c41ec3d5ccf5fa207370.tar.gz
-rw-r--r-- 1 gthomas gthomas      32 Jan  5  2010 /work/misc/Poky/sources/git_git.infradead.org.mtd-utils.git_ea429635388f7bb53f62c41ec3d5ccf5fa207370.tar.gz.md5
-rw-r--r-- 1 gthomas gthomas      32 Jun 29  2010 /work/misc/Poky/sources/git_git.infradead.org.mtd-utils.git_b995f89a81589be8d8a41c374a6df109d0ee12b3.tar.gz.md5
-rw-r--r-- 1 gthomas gthomas  424036 Sep 28 18:42 /work/misc/Poky/sources/git_git.infradead.org.mtd-utils.git_v1.3.1.tar.gz
-rw-rw-rw- 1 gthomas gthomas  422807 Dec 24 07:06 /work/misc/Poky/sources/git_git.infradead.org.mtd-utils.git_v1.4.1.tar.gz
-rw-r--r-- 1 gthomas gthomas      32 Jan 17 08:04 /work/misc/Poky/sources/git_git.infradead.org.mtd-utils.git_v1.3.1.tar.gz.md5
-rw-rw-rw- 1 gthomas gthomas      32 Feb  2 11:03 /work/misc/Poky/sources/git_git.infradead.org.mtd-utils.git_v1.4.1.tar.gz.md5
-rw-rw-rw- 1 gthomas gthomas      32 Feb  7 05:49 /work/misc/Poky/sources/git_git.infradead.org.mtd-utils.git.tar.gz.md5
-rw-rw-rw- 1 gthomas gthomas 1371209 Feb  7 05:49 /work/misc/Poky/sources/git_git.infradead.org.mtd-utils.git.tar.gz

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-02-07 13:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-06 17:49 Can't build mtd-utils-native Gary Thomas
2011-02-07  7:00 ` Darren Hart
2011-02-07 13:08   ` Gary Thomas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.