* meta-toolchain continues to woe
@ 2009-11-12 3:57 Holger Hans Peter Freyther
2009-11-12 4:34 ` Graham Gower
0 siblings, 1 reply; 12+ messages in thread
From: Holger Hans Peter Freyther @ 2009-11-12 3:57 UTC (permalink / raw)
To: openembedded-devel
Hi Guys,
I'm really getting frustrated by this crap. Every week I try to build meta-
toolchain and every week it is broken in another way. Not even talking about
the runtime breakage I'm seeing and would like to fix...
So I either have a problem with the variable changes for the layout dir or in
the opkg upgrade that happened.
any ideas?
z.
The error:
You don't need to build everything, it will error out early..
bitbake -c populate_sdk -b recipes/meta/meta-toolchain.bb
./run.do_populate_sdk.27727
Collected errors:
* Could not obtain administrative lock for offline root (ERR: Bad file
descriptor) at /data/openembedded/build/arm/cortex-a8/tmp/work/x86_64-armv7a-
sdk-angstrom-linux-gnueabi/meta-toolchain-1.0-r0/sdk/image//usr/lib/opkg/lock
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: meta-toolchain continues to woe
2009-11-12 3:57 meta-toolchain continues to woe Holger Hans Peter Freyther
@ 2009-11-12 4:34 ` Graham Gower
2009-11-12 4:49 ` Holger Hans Peter Freyther
2009-11-12 15:14 ` Chris Conroy
0 siblings, 2 replies; 12+ messages in thread
From: Graham Gower @ 2009-11-12 4:34 UTC (permalink / raw)
To: openembedded-devel
2009/11/12 Holger Hans Peter Freyther <holger+oe@freyther.de>:
>
> ./run.do_populate_sdk.27727
> Collected errors:
> * Could not obtain administrative lock for offline root (ERR: Bad file
> descriptor) at /data/openembedded/build/arm/cortex-a8/tmp/work/x86_64-armv7a-
> sdk-angstrom-linux-gnueabi/meta-toolchain-1.0-r0/sdk/image//usr/lib/opkg/lock
Presumably, the lock file could not be creat()ed. Unfortunately, there
is no error checking on that creat() call in opkg and you don't get a
useful error message.
Do the paths leading up to the lock file exist?
-Graham
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: meta-toolchain continues to woe
2009-11-12 4:34 ` Graham Gower
@ 2009-11-12 4:49 ` Holger Hans Peter Freyther
2009-11-12 5:11 ` Holger Hans Peter Freyther
2009-11-12 15:14 ` Chris Conroy
1 sibling, 1 reply; 12+ messages in thread
From: Holger Hans Peter Freyther @ 2009-11-12 4:49 UTC (permalink / raw)
To: openembedded-devel
On Thursday 12 November 2009 05:34:20 Graham Gower wrote:
> Presumably, the lock file could not be creat()ed. Unfortunately, there
> is no error checking on that creat() call in opkg and you don't get a
> useful error message.
>
> Do the paths leading up to the lock file exist?
They don't. Creating it will bring up the same problem with a different path.
As in the previous mail... it is either a problem with the opkg upgrade (i was
seeing svn updae..) or the layout changed...
The test case is really simple and I will repeat it here:
bitbake -c populate_sdk -b meta-toolchain.bb
regards
z.
PS: I'm seriously annoyed with the ongoing breakage...
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: meta-toolchain continues to woe
2009-11-12 4:49 ` Holger Hans Peter Freyther
@ 2009-11-12 5:11 ` Holger Hans Peter Freyther
2009-11-12 12:09 ` Richard Purdie
0 siblings, 1 reply; 12+ messages in thread
From: Holger Hans Peter Freyther @ 2009-11-12 5:11 UTC (permalink / raw)
To: openembedded-devel
On Thursday 12 November 2009 05:49:11 Holger Hans Peter Freyther wrote:
> The test case is really simple and I will repeat it here:
>
> bitbake -c populate_sdk -b meta-toolchain.bb
bisect shows me:
bea72c2fecde175add169bb55df1922b048030c8
IMHO the pace of the recent classes/ change was way too high, a branch and
some builds would have been a lot better (no critics on the changes
themselves). I'm about to write a simple meta-toolchain checker and plan to
run it once a a week.... or if someone has a spare machine I would run this
test there with every day..
z.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: meta-toolchain continues to woe
2009-11-12 5:11 ` Holger Hans Peter Freyther
@ 2009-11-12 12:09 ` Richard Purdie
2009-11-12 12:28 ` Holger Hans Peter Freyther
0 siblings, 1 reply; 12+ messages in thread
From: Richard Purdie @ 2009-11-12 12:09 UTC (permalink / raw)
To: openembedded-devel
On Thu, 2009-11-12 at 06:11 +0100, Holger Hans Peter Freyther wrote:
> On Thursday 12 November 2009 05:49:11 Holger Hans Peter Freyther wrote:
>
> > The test case is really simple and I will repeat it here:
> >
> > bitbake -c populate_sdk -b meta-toolchain.bb
>
>
> bisect shows me:
> bea72c2fecde175add169bb55df1922b048030c8
>
>
> IMHO the pace of the recent classes/ change was way too high, a branch and
> some builds would have been a lot better (no critics on the changes
> themselves). I'm about to write a simple meta-toolchain checker and plan to
> run it once a a week.... or if someone has a spare machine I would run this
> test there with every day..
I think regardless of how we did this there would be some bumps. It was
on a branch for a week and it was obvious nobody was testing it expect
me. Getting on and doing it and dealing with problems quickly seemed
like the best approach and was what we agreed at OEDEM.
For this specific issue, I've pushed some fixes for meta-toolchain, let
me know if there are any further problems. My test build completed
locally (bitbake meta-toolchain).
Cheers,
Richard
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: meta-toolchain continues to woe
2009-11-12 12:09 ` Richard Purdie
@ 2009-11-12 12:28 ` Holger Hans Peter Freyther
0 siblings, 0 replies; 12+ messages in thread
From: Holger Hans Peter Freyther @ 2009-11-12 12:28 UTC (permalink / raw)
To: openembedded-devel
On Thursday 12 November 2009 13:09:20 Richard Purdie wrote:
>
> I think regardless of how we did this there would be some bumps. It was
> on a branch for a week and it was obvious nobody was testing it expect
> me. Getting on and doing it and dealing with problems quickly seemed
> like the best approach and was what we agreed at OEDEM.
You are right, I was simply not aware that you have posted a branch for
review. So thank you for the changes and thank you for being stand bye
to address these. Who ever is going to be in the TSC I would greatly
appreciate if we can formalize our process for updating the core
infrastructure.
E.g.
1.) Do the changes in a branch
2.) Mail that the branch will be merged (top level posting, [MERGE] in the
subject)
2.1) Get feedback from testers
3.) Merge core changes on a "core-merge" day...
>
> For this specific issue, I've pushed some fixes for meta-toolchain, let
> me know if there are any further problems. My test build completed
> locally (bitbake meta-toolchain).
Thanks a lot! It is greatly appreciated.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: meta-toolchain continues to woe
2009-11-12 4:34 ` Graham Gower
2009-11-12 4:49 ` Holger Hans Peter Freyther
@ 2009-11-12 15:14 ` Chris Conroy
2009-11-12 15:29 ` Chris Conroy
1 sibling, 1 reply; 12+ messages in thread
From: Chris Conroy @ 2009-11-12 15:14 UTC (permalink / raw)
To: openembedded-devel
On Thu, 2009-11-12 at 15:04 +1030, Graham Gower wrote:
> 2009/11/12 Holger Hans Peter Freyther <holger+oe@freyther.de>:
> >
> > ./run.do_populate_sdk.27727
> > Collected errors:
> > * Could not obtain administrative lock for offline root (ERR: Bad file
> > descriptor) at /data/openembedded/build/arm/cortex-a8/tmp/work/x86_64-armv7a-
> > sdk-angstrom-linux-gnueabi/meta-toolchain-1.0-r0/sdk/image//usr/lib/opkg/lock
>
> Presumably, the lock file could not be creat()ed. Unfortunately, there
> is no error checking on that creat() call in opkg and you don't get a
> useful error message.
I submitted a patch to opkg back in September to fix this error message
to be a bit more useful. If you upgrade to opkg >=216 it will save you
some headaches whenever this error occurs.
http://code.google.com/p/opkg/issues/detail?id=22
--Chris Conroy
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: meta-toolchain continues to woe
2009-11-12 15:14 ` Chris Conroy
@ 2009-11-12 15:29 ` Chris Conroy
2009-11-12 21:16 ` Graham Gower
2009-11-13 1:19 ` Holger Hans Peter Freyther
0 siblings, 2 replies; 12+ messages in thread
From: Chris Conroy @ 2009-11-12 15:29 UTC (permalink / raw)
To: openembedded-devel
On Thu, 2009-11-12 at 10:14 -0500, Chris Conroy wrote:
> On Thu, 2009-11-12 at 15:04 +1030, Graham Gower wrote:
> > 2009/11/12 Holger Hans Peter Freyther <holger+oe@freyther.de>:
> > >
> > > ./run.do_populate_sdk.27727
> > > Collected errors:
> > > * Could not obtain administrative lock for offline root (ERR: Bad file
> > > descriptor) at /data/openembedded/build/arm/cortex-a8/tmp/work/x86_64-armv7a-
> > > sdk-angstrom-linux-gnueabi/meta-toolchain-1.0-r0/sdk/image//usr/lib/opkg/lock
> >
> > Presumably, the lock file could not be creat()ed. Unfortunately, there
> > is no error checking on that creat() call in opkg and you don't get a
> > useful error message.
> I submitted a patch to opkg back in September to fix this error message
> to be a bit more useful. If you upgrade to opkg >=216 it will save you
> some headaches whenever this error occurs.
Apologies. I should have read your error message more closely since it
looks like you are getting the extra debug information from my patch.
Feel free to make a patch with more debug info for said error or just
let me know what you think would be appropriate and I can submit a new
one.
--Chris
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: meta-toolchain continues to woe
2009-11-12 15:29 ` Chris Conroy
@ 2009-11-12 21:16 ` Graham Gower
2009-11-13 19:48 ` Khem Raj
2009-11-13 1:19 ` Holger Hans Peter Freyther
1 sibling, 1 reply; 12+ messages in thread
From: Graham Gower @ 2009-11-12 21:16 UTC (permalink / raw)
To: openembedded-devel
Chris,
The patch you submitted prints out an error from the lockf() function
call. Which is fine, but its more common for the creat() call to fail
before hand, meaning that the lockf() function would have be passed -1
as the file descriptor.
I made a small change to hopefully improve this.
http://code.google.com/p/opkg/source/detail?r=288
-Graham
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: meta-toolchain continues to woe
2009-11-12 15:29 ` Chris Conroy
2009-11-12 21:16 ` Graham Gower
@ 2009-11-13 1:19 ` Holger Hans Peter Freyther
2009-11-13 15:58 ` Chris Conroy
1 sibling, 1 reply; 12+ messages in thread
From: Holger Hans Peter Freyther @ 2009-11-13 1:19 UTC (permalink / raw)
To: openembedded-devel
On Thursday 12 November 2009 16:29:36 Chris Conroy wrote:
> > I submitted a patch to opkg back in September to fix this error message
> > to be a bit more useful. If you upgrade to opkg >=216 it will save you
> > some headaches whenever this error occurs.
>
> Apologies. I should have read your error message more closely since it
> looks like you are getting the extra debug information from my patch.
> Feel free to make a patch with more debug info for said error or just
> let me know what you think would be appropriate and I can submit a new
Hi,
Koen recently upgraded opkg* to something above >= 216.
regards
holger
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: meta-toolchain continues to woe
2009-11-13 1:19 ` Holger Hans Peter Freyther
@ 2009-11-13 15:58 ` Chris Conroy
0 siblings, 0 replies; 12+ messages in thread
From: Chris Conroy @ 2009-11-13 15:58 UTC (permalink / raw)
To: openembedded-devel
On Fri, 2009-11-13 at 02:19 +0100, Holger Hans Peter Freyther wrote:
> On Thursday 12 November 2009 16:29:36 Chris Conroy wrote:
> > > I submitted a patch to opkg back in September to fix this error message
> > > to be a bit more useful. If you upgrade to opkg >=216 it will save you
> > > some headaches whenever this error occurs.
> >
> > Apologies. I should have read your error message more closely since it
> > looks like you are getting the extra debug information from my patch.
> > Feel free to make a patch with more debug info for said error or just
> > let me know what you think would be appropriate and I can submit a new
>
>
> Hi,
>
> Koen recently upgraded opkg* to something above >= 216.
>
> regards
> holger
Hence my second message where I realized that and apologized for my
idiocy :P
--Chris
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: meta-toolchain continues to woe
2009-11-12 21:16 ` Graham Gower
@ 2009-11-13 19:48 ` Khem Raj
0 siblings, 0 replies; 12+ messages in thread
From: Khem Raj @ 2009-11-13 19:48 UTC (permalink / raw)
To: openembedded-devel
On Thu, Nov 12, 2009 at 1:16 PM, Graham Gower <graham.gower@gmail.com> wrote:
> Chris,
> The patch you submitted prints out an error from the lockf() function
> call. Which is fine, but its more common for the creat() call to fail
> before hand, meaning that the lockf() function would have be passed -1
> as the file descriptor.
>
> I made a small change to hopefully improve this.
> http://code.google.com/p/opkg/source/detail?r=288
creat could be replaced by open() as SUS says creat is redundant
if creat fails it will still report Could not obtain administrative lock .....
that would be misleading too.
-Khem
>
> -Graham
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2009-11-13 19:50 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-12 3:57 meta-toolchain continues to woe Holger Hans Peter Freyther
2009-11-12 4:34 ` Graham Gower
2009-11-12 4:49 ` Holger Hans Peter Freyther
2009-11-12 5:11 ` Holger Hans Peter Freyther
2009-11-12 12:09 ` Richard Purdie
2009-11-12 12:28 ` Holger Hans Peter Freyther
2009-11-12 15:14 ` Chris Conroy
2009-11-12 15:29 ` Chris Conroy
2009-11-12 21:16 ` Graham Gower
2009-11-13 19:48 ` Khem Raj
2009-11-13 1:19 ` Holger Hans Peter Freyther
2009-11-13 15:58 ` Chris Conroy
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.