* [U-Boot] Bug in buildman?
@ 2014-12-31 12:44 Andreas Bießmann
2015-01-29 17:41 ` Simon Glass
0 siblings, 1 reply; 4+ messages in thread
From: Andreas Bießmann @ 2014-12-31 12:44 UTC (permalink / raw)
To: u-boot
Hi Simon,
while test-building 2015.01-rc4 I encountered following strange
behaviour of buildman:
---8<---
andreas at andreas-pc % ./tools/buildman/buildman -b buildtest -o /tmp/bar
-v avr32
boards.cfg is up to date. Nothing to do.
Building 1 commit for 10 boards (6 threads, 1 job per thread)
Cloning repo for thread 0
Cloning repo for thread 1
Cloning repo for thread 2
Cloning repo for thread 3
Cloning repo for thread 4
Cloning repo for thread 5
01: Prepare v2015.01-rc4
avr32: + atstk1006
01: Prepare v2015.01-rc4
avr32: + atngw100
01: Prepare v2015.01-rc4
avr32: + favr-32-ezkit
01: Prepare v2015.01-rc4
avr32: + atstk1004
01: Prepare v2015.01-rc4
avr32: + hammerhead
01: Prepare v2015.01-rc4
avr32: + grasshopper
01: Prepare v2015.01-rc4
avr32: + atstk1003
01: Prepare v2015.01-rc4
avr32: + atstk1002
01: Prepare v2015.01-rc4
avr32: + mimc200
01: Prepare v2015.01-rc4
avr32: + atngw100mkii
0 4 6 /10 0:00:02 : atngw100mkii
./tools/buildman/buildman -b buildtest -o /tmp/bar -v avr32 82.57s user
16.90s system 249% cpu 39.899 total
andreas at andreas-pc % ./tools/buildman/buildman -b buildtest -o /tmp/bar
-v -lsed
boards.cfg is up to date. Nothing to do.
Summary of 1 commit for 1204 boards (6 threads, 1 job per thread)
01: Prepare v2015.01-rc4
avr32: + atngw100mkii atstk1003 grasshopper favr-32-ezkit
atstk1006 atstk1004 atstk1002 atngw100 hammerhead mimc200
+(grasshopper,atngw100,favr-32-ezkit,atstk1006,atstk1004,hammerhead)
Could not find linker script.
+(grasshopper,atngw100,favr-32-ezkit,atstk1006,atstk1004,hammerhead)
make[1]: *** [prepare1] Error 1
+(grasshopper,atngw100,favr-32-ezkit,atstk1006,atstk1004,hammerhead)
make: *** [sub-make] Error 2
w+(atngw100mkii,atstk1002,atstk1003,mimc200) ../tools/kwbimage.c: In
function ?kwbimage_set_header?:
w+(atngw100mkii,atstk1002,atstk1003,mimc200) ../tools/kwbimage.c:803:8:
warning: ?headersz? may be used uninitialized in this function
[-Wmaybe-uninitialized]
andreas at andreas-pc % ./tools/buildman/buildman -b buildtest -o /tmp/bar
-v -lsed grasshopper
boards.cfg is up to date. Nothing to do.
Summary of 1 commit for 1 boards (1 thread, 6 jobs per thread)
01: Prepare v2015.01-rc4
avr32: + grasshopper
+(grasshopper) Could not find linker script.
+(grasshopper) make[1]: *** [prepare1] Error 1
+(grasshopper) make: *** [sub-make] Error 2
andreas at andreas-pc % ./tools/buildman/buildman -b buildtest -o
/tmp/grasshopper -v grasshopper
boards.cfg is up to date. Nothing to do.
Building 1 commit for 1 boards (1 thread, 6 jobs per thread)
Cloning repo for thread 0
01: Prepare v2015.01-rc4
avr32: + grasshopper
0 1 0 /1 grasshopper
./tools/buildman/buildman -b buildtest -o /tmp/grasshopper -v
grasshopper 14.11s user 2.69s system 183% cpu 9.171 total
andreas@andreas-pc % ./tools/buildman/buildman -b buildtest -o
/tmp/grasshopper -v -lsed grasshopper
boards.cfg is up to date. Nothing to do.
Summary of 1 commit for 1 boards (1 thread, 6 jobs per thread)
01: Prepare v2015.01-rc4
avr32: + grasshopper
w+(grasshopper) ../tools/kwbimage.c: In function ?kwbimage_set_header?:
w+(grasshopper) ../tools/kwbimage.c:803:8: warning: ?headersz? may be
used uninitialized in this function [-Wmaybe-uninitialized]
--->8---
buildman complains about missing linker script for most boards which is
an error when building all avr32 boards. While it detects the correct
warning for still not fixed kwbimage.c maybe-uninitialized when building
just the single board which had an error before. Both builds are based
on v2015.01-rc4 and built in different locations.
Best regards
Andreas Bie?mann
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] Bug in buildman?
2014-12-31 12:44 [U-Boot] Bug in buildman? Andreas Bießmann
@ 2015-01-29 17:41 ` Simon Glass
2015-01-29 18:05 ` Andreas Bießmann
0 siblings, 1 reply; 4+ messages in thread
From: Simon Glass @ 2015-01-29 17:41 UTC (permalink / raw)
To: u-boot
Hi Andreas,
On 31 December 2014 at 05:44, Andreas Bie?mann
<andreas.devel@googlemail.com> wrote:
> Hi Simon,
>
> while test-building 2015.01-rc4 I encountered following strange
> behaviour of buildman:
>
> ---8<---
> andreas at andreas-pc % ./tools/buildman/buildman -b buildtest -o /tmp/bar
> -v avr32
> boards.cfg is up to date. Nothing to do.
> Building 1 commit for 10 boards (6 threads, 1 job per thread)
> Cloning repo for thread 0
> Cloning repo for thread 1
> Cloning repo for thread 2
> Cloning repo for thread 3
> Cloning repo for thread 4
> Cloning repo for thread 5
> 01: Prepare v2015.01-rc4
> avr32: + atstk1006
> 01: Prepare v2015.01-rc4
> avr32: + atngw100
> 01: Prepare v2015.01-rc4
> avr32: + favr-32-ezkit
> 01: Prepare v2015.01-rc4
> avr32: + atstk1004
> 01: Prepare v2015.01-rc4
> avr32: + hammerhead
> 01: Prepare v2015.01-rc4
> avr32: + grasshopper
> 01: Prepare v2015.01-rc4
> avr32: + atstk1003
> 01: Prepare v2015.01-rc4
> avr32: + atstk1002
> 01: Prepare v2015.01-rc4
> avr32: + mimc200
> 01: Prepare v2015.01-rc4
> avr32: + atngw100mkii
> 0 4 6 /10 0:00:02 : atngw100mkii
> ./tools/buildman/buildman -b buildtest -o /tmp/bar -v avr32 82.57s user
> 16.90s system 249% cpu 39.899 total
> andreas at andreas-pc % ./tools/buildman/buildman -b buildtest -o /tmp/bar
> -v -lsed
> boards.cfg is up to date. Nothing to do.
> Summary of 1 commit for 1204 boards (6 threads, 1 job per thread)
> 01: Prepare v2015.01-rc4
> avr32: + atngw100mkii atstk1003 grasshopper favr-32-ezkit
> atstk1006 atstk1004 atstk1002 atngw100 hammerhead mimc200
> +(grasshopper,atngw100,favr-32-ezkit,atstk1006,atstk1004,hammerhead)
> Could not find linker script.
> +(grasshopper,atngw100,favr-32-ezkit,atstk1006,atstk1004,hammerhead)
> make[1]: *** [prepare1] Error 1
> +(grasshopper,atngw100,favr-32-ezkit,atstk1006,atstk1004,hammerhead)
> make: *** [sub-make] Error 2
> w+(atngw100mkii,atstk1002,atstk1003,mimc200) ../tools/kwbimage.c: In
> function ?kwbimage_set_header?:
> w+(atngw100mkii,atstk1002,atstk1003,mimc200) ../tools/kwbimage.c:803:8:
> warning: ?headersz? may be used uninitialized in this function
> [-Wmaybe-uninitialized]
> andreas at andreas-pc % ./tools/buildman/buildman -b buildtest -o /tmp/bar
> -v -lsed grasshopper
> boards.cfg is up to date. Nothing to do.
> Summary of 1 commit for 1 boards (1 thread, 6 jobs per thread)
> 01: Prepare v2015.01-rc4
> avr32: + grasshopper
> +(grasshopper) Could not find linker script.
> +(grasshopper) make[1]: *** [prepare1] Error 1
> +(grasshopper) make: *** [sub-make] Error 2
> andreas at andreas-pc % ./tools/buildman/buildman -b buildtest -o
> /tmp/grasshopper -v grasshopper
> boards.cfg is up to date. Nothing to do.
> Building 1 commit for 1 boards (1 thread, 6 jobs per thread)
> Cloning repo for thread 0
> 01: Prepare v2015.01-rc4
> avr32: + grasshopper
> 0 1 0 /1 grasshopper
> ./tools/buildman/buildman -b buildtest -o /tmp/grasshopper -v
> grasshopper 14.11s user 2.69s system 183% cpu 9.171 total
> andreas at andreas-pc % ./tools/buildman/buildman -b buildtest -o
> /tmp/grasshopper -v -lsed grasshopper
> boards.cfg is up to date. Nothing to do.
> Summary of 1 commit for 1 boards (1 thread, 6 jobs per thread)
> 01: Prepare v2015.01-rc4
> avr32: + grasshopper
> w+(grasshopper) ../tools/kwbimage.c: In function ?kwbimage_set_header?:
> w+(grasshopper) ../tools/kwbimage.c:803:8: warning: ?headersz? may be
> used uninitialized in this function [-Wmaybe-uninitialized]
> --->8---
>
> buildman complains about missing linker script for most boards which is
> an error when building all avr32 boards. While it detects the correct
> warning for still not fixed kwbimage.c maybe-uninitialized when building
> just the single board which had an error before. Both builds are based
> on v2015.01-rc4 and built in different locations.
Sorry for not getting back sooner - twice I read your email and tried
to understand what is going on.
If a build already exists, buildman will not re-run it. Also the
output with -v is only provided for a build that actually happens. If
it happened in the last run, it won't be reported again.
The flow I use is:
buildman -b <branch>
to do the build, then
buildman -b <branch> -s
to see the errors and warnings, nicely sorted and collected.
The -v option is a convenience which shows output as things are built.
Does that have bearing on what you are seeing?
Regards,
Simon
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] Bug in buildman?
2015-01-29 17:41 ` Simon Glass
@ 2015-01-29 18:05 ` Andreas Bießmann
2015-01-29 18:27 ` Simon Glass
0 siblings, 1 reply; 4+ messages in thread
From: Andreas Bießmann @ 2015-01-29 18:05 UTC (permalink / raw)
To: u-boot
Hi Simon,
I add some more descriptive text.
On 29.01.15 18:41, Simon Glass wrote:
> Hi Andreas,
>
> On 31 December 2014 at 05:44, Andreas Bie?mann
> <andreas.devel@googlemail.com> wrote:
>> Hi Simon,
>>
>> while test-building 2015.01-rc4 I encountered following strange
>> behaviour of buildman:
>>
>> ---8<---
This time create non existing /tmp/bar and run the build for all avr32
boards on the last commit.
>> andreas at andreas-pc % ./tools/buildman/buildman -b buildtest -o /tmp/bar
>> -v avr32
>> boards.cfg is up to date. Nothing to do.
>> Building 1 commit for 10 boards (6 threads, 1 job per thread)
Ok, it starts 6 threads ...
>> 01: Prepare v2015.01-rc4
>> avr32: + atngw100mkii
>> 0 4 6 /10 0:00:02 : atngw100mkii
Ouch ... six errors, what's going on here? Let's print the errors and
summary ...
>> ./tools/buildman/buildman -b buildtest -o /tmp/bar -v avr32 82.57s user
>> 16.90s system 249% cpu 39.899 total
>> andreas at andreas-pc % ./tools/buildman/buildman -b buildtest -o /tmp/bar
>> -v -lsed
>> +(grasshopper,atngw100,favr-32-ezkit,atstk1006,atstk1004,hammerhead)
>> Could not find linker script.
>> w+(atngw100mkii,atstk1002,atstk1003,mimc200) ../tools/kwbimage.c:803:8:
>> warning: ?headersz? may be used uninitialized in this function
>> [-Wmaybe-uninitialized]
Oups some complains about missing linker script and something is wrong
with kwbimage .... Let's see what's going on with grasshopper, I know
this builds fine, so let's see:
>> andreas at andreas-pc % ./tools/buildman/buildman -b buildtest -o /tmp/bar
>> -v -lsed grasshopper
>> boards.cfg is up to date. Nothing to do.
>> Summary of 1 commit for 1 boards (1 thread, 6 jobs per thread)
>> 01: Prepare v2015.01-rc4
>> avr32: + grasshopper
>> +(grasshopper) Could not find linker script.
>> +(grasshopper) make[1]: *** [prepare1] Error 1
>> +(grasshopper) make: *** [sub-make] Error 2
Ok, missing linker script. That is wrong, I know grasshopper builds
fine! So run another build for just the grasshopper board with another
output directory (/tmp/grasshopper) ... thus a fresh build.
>> andreas at andreas-pc % ./tools/buildman/buildman -b buildtest -o
>> /tmp/grasshopper -v grasshopper
>> boards.cfg is up to date. Nothing to do.
>> Building 1 commit for 1 boards (1 thread, 6 jobs per thread)
Ok, this time it starts just one thread.
>> Cloning repo for thread 0
>> 01: Prepare v2015.01-rc4
>> avr32: + grasshopper
>> 0 1 0 /1 grasshopper
Yep, it builds fine (besides the warning) ...
>> ./tools/buildman/buildman -b buildtest -o /tmp/grasshopper -v
>> grasshopper 14.11s user 2.69s system 183% cpu 9.171 total
>> andreas at andreas-pc % ./tools/buildman/buildman -b buildtest -o
>> /tmp/grasshopper -v -lsed grasshopper
>> boards.cfg is up to date. Nothing to do.
>> Summary of 1 commit for 1 boards (1 thread, 6 jobs per thread)
>> 01: Prepare v2015.01-rc4
>> avr32: + grasshopper
>> w+(grasshopper) ../tools/kwbimage.c: In function ?kwbimage_set_header?:
>> w+(grasshopper) ../tools/kwbimage.c:803:8: warning: ?headersz? may be
>> used uninitialized in this function [-Wmaybe-uninitialized]
Ok, the warning is about kwbimage.c. I know this warning and it will be
fixed soon.
So there must be something wrong when it builds more than one board at a
time. I guess it has something to do with the threads.
>> buildman complains about missing linker script for most boards which is
>> an error when building all avr32 boards. While it detects the correct
>> warning for still not fixed kwbimage.c maybe-uninitialized when building
>> just the single board which had an error before. Both builds are based
>> on v2015.01-rc4 and built in different locations.
>
> Sorry for not getting back sooner - twice I read your email and tried
> to understand what is going on.
Sorry for being not clear with my error description. I hope the
additional thoughts may help.
This happens on current Debian stable (which has python 2.7.3-4+deb7u1)
but not with Debian testing (which has python 2.7.8-2) nor with my MAC
box (which has Python 2.7.9, thanks to macports).
Best regards
Andreas Bie?mann
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] Bug in buildman?
2015-01-29 18:05 ` Andreas Bießmann
@ 2015-01-29 18:27 ` Simon Glass
0 siblings, 0 replies; 4+ messages in thread
From: Simon Glass @ 2015-01-29 18:27 UTC (permalink / raw)
To: u-boot
+Masahiro
Hi Andreas,
On 29 January 2015 at 11:05, Andreas Bie?mann
<andreas.devel@googlemail.com> wrote:
> Hi Simon,
>
> I add some more descriptive text.
>
> On 29.01.15 18:41, Simon Glass wrote:
>> Hi Andreas,
>>
>> On 31 December 2014 at 05:44, Andreas Bie?mann
>> <andreas.devel@googlemail.com> wrote:
>>> Hi Simon,
>>>
>>> while test-building 2015.01-rc4 I encountered following strange
>>> behaviour of buildman:
>>>
>>> ---8<---
>
> This time create non existing /tmp/bar and run the build for all avr32
> boards on the last commit.
>
>>> andreas at andreas-pc % ./tools/buildman/buildman -b buildtest -o /tmp/bar
>>> -v avr32
>>> boards.cfg is up to date. Nothing to do.
>>> Building 1 commit for 10 boards (6 threads, 1 job per thread)
>
> Ok, it starts 6 threads ...
>
>>> 01: Prepare v2015.01-rc4
>>> avr32: + atngw100mkii
>>> 0 4 6 /10 0:00:02 : atngw100mkii
>
> Ouch ... six errors, what's going on here? Let's print the errors and
> summary ...
>
>>> ./tools/buildman/buildman -b buildtest -o /tmp/bar -v avr32 82.57s user
>>> 16.90s system 249% cpu 39.899 total
>>> andreas at andreas-pc % ./tools/buildman/buildman -b buildtest -o /tmp/bar
>>> -v -lsed
>
>>> +(grasshopper,atngw100,favr-32-ezkit,atstk1006,atstk1004,hammerhead)
>>> Could not find linker script.
>
>>> w+(atngw100mkii,atstk1002,atstk1003,mimc200) ../tools/kwbimage.c:803:8:
>>> warning: ?headersz? may be used uninitialized in this function
>>> [-Wmaybe-uninitialized]
>
> Oups some complains about missing linker script and something is wrong
> with kwbimage .... Let's see what's going on with grasshopper, I know
> this builds fine, so let's see:
>
>>> andreas at andreas-pc % ./tools/buildman/buildman -b buildtest -o /tmp/bar
>>> -v -lsed grasshopper
>>> boards.cfg is up to date. Nothing to do.
>>> Summary of 1 commit for 1 boards (1 thread, 6 jobs per thread)
>>> 01: Prepare v2015.01-rc4
>>> avr32: + grasshopper
>>> +(grasshopper) Could not find linker script.
>>> +(grasshopper) make[1]: *** [prepare1] Error 1
>>> +(grasshopper) make: *** [sub-make] Error 2
>
> Ok, missing linker script. That is wrong, I know grasshopper builds
> fine! So run another build for just the grasshopper board with another
> output directory (/tmp/grasshopper) ... thus a fresh build.
>
>>> andreas at andreas-pc % ./tools/buildman/buildman -b buildtest -o
>>> /tmp/grasshopper -v grasshopper
>>> boards.cfg is up to date. Nothing to do.
>>> Building 1 commit for 1 boards (1 thread, 6 jobs per thread)
>
> Ok, this time it starts just one thread.
>
>>> Cloning repo for thread 0
>>> 01: Prepare v2015.01-rc4
>>> avr32: + grasshopper
>>> 0 1 0 /1 grasshopper
>
> Yep, it builds fine (besides the warning) ...
>
>>> ./tools/buildman/buildman -b buildtest -o /tmp/grasshopper -v
>>> grasshopper 14.11s user 2.69s system 183% cpu 9.171 total
>>> andreas at andreas-pc % ./tools/buildman/buildman -b buildtest -o
>>> /tmp/grasshopper -v -lsed grasshopper
>>> boards.cfg is up to date. Nothing to do.
>>> Summary of 1 commit for 1 boards (1 thread, 6 jobs per thread)
>>> 01: Prepare v2015.01-rc4
>>> avr32: + grasshopper
>>> w+(grasshopper) ../tools/kwbimage.c: In function ?kwbimage_set_header?:
>>> w+(grasshopper) ../tools/kwbimage.c:803:8: warning: ?headersz? may be
>>> used uninitialized in this function [-Wmaybe-uninitialized]
>
> Ok, the warning is about kwbimage.c. I know this warning and it will be
> fixed soon.
>
> So there must be something wrong when it builds more than one board at a
> time. I guess it has something to do with the threads.
Unless I am much-mistaken this is a Kbuild/Makefile problem rather
than anything to do with buildman. You can use -T to control the
number of threads.
>
>>> buildman complains about missing linker script for most boards which is
>>> an error when building all avr32 boards. While it detects the correct
>>> warning for still not fixed kwbimage.c maybe-uninitialized when building
>>> just the single board which had an error before. Both builds are based
>>> on v2015.01-rc4 and built in different locations.
>>
>> Sorry for not getting back sooner - twice I read your email and tried
>> to understand what is going on.
>
> Sorry for being not clear with my error description. I hope the
> additional thoughts may help.
Yes I understand now.
>
> This happens on current Debian stable (which has python 2.7.3-4+deb7u1)
> but not with Debian testing (which has python 2.7.8-2) nor with my MAC
> box (which has Python 2.7.9, thanks to macports).
I'm copying Masahiro, as I recall he fixed a problem something like
this recently.
Regards,
Simon
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-01-29 18:27 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-31 12:44 [U-Boot] Bug in buildman? Andreas Bießmann
2015-01-29 17:41 ` Simon Glass
2015-01-29 18:05 ` Andreas Bießmann
2015-01-29 18:27 ` Simon Glass
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox