linux-yocto-rt build fail for sugarbay bsp on grub recipe


Bodke, Kishore K <kishore.k.bodke@...>
 

Hello All,

 

I am trying to build linux-yocto with rt kernel for sugarbay bsp and it fails for the grub recipe.

 

Attached is the build log. 

 

kishore@kishore-desktop:/usr/local/src/crf/test/buildsugarbayrt$ bitbake -e | egrep "^WARN_QA="

WARN_QA="dev-so rpaths debug-deps dev-deps debug-files arch la2 pkgconfig desktop la ldflags perms useless-rpaths"

kishore@kishore-desktop:/usr/local/src/crf/test/buildsugarbayrt$ bitbake -e | egrep "^ERROR_QA="

kishore@kishore-desktop:/usr/local/src/crf/test/buildsugarbayrt$

 

Please let me know what could be the issue.

 

Thanks

Kishore.


Richard Purdie
 

On Tue, 2011-08-30 at 16:59 -0700, Bodke, Kishore K wrote:
Hello All,



I am trying to build linux-yocto with rt kernel for sugarbay bsp and
it fails for the grub recipe.



Attached is the build log.



kishore@kishore-desktop:/usr/local/src/crf/test/buildsugarbayrt$
bitbake -e | egrep "^WARN_QA="

WARN_QA="dev-so rpaths debug-deps dev-deps debug-files arch la2
pkgconfig desktop la ldflags perms useless-rpaths"

kishore@kishore-desktop:/usr/local/src/crf/test/buildsugarbayrt$
bitbake -e | egrep "^ERROR_QA="

kishore@kishore-desktop:/usr/local/src/crf/test/buildsugarbayrt$



Please let me know what could be the issue.
Could you include the config.log file mentioned in the error report
please?

This should be somewhere like
usr/local/src/crf/test/buildsugarbayrt/tmp/work/x86_64-poky-linux/grub-1.98-r1/*/config.log

Cheers,

Richard


Darren Hart <darren.hart@...>
 

On 08/30/2011 05:11 PM, Richard Purdie wrote:
On Tue, 2011-08-30 at 16:59 -0700, Bodke, Kishore K wrote:
Hello All,



I am trying to build linux-yocto with rt kernel for sugarbay bsp and
it fails for the grub recipe.



Attached is the build log.



kishore@kishore-desktop:/usr/local/src/crf/test/buildsugarbayrt$
bitbake -e | egrep "^WARN_QA="

WARN_QA="dev-so rpaths debug-deps dev-deps debug-files arch la2
pkgconfig desktop la ldflags perms useless-rpaths"

kishore@kishore-desktop:/usr/local/src/crf/test/buildsugarbayrt$
bitbake -e | egrep "^ERROR_QA="

kishore@kishore-desktop:/usr/local/src/crf/test/buildsugarbayrt$



Please let me know what could be the issue.
Could you include the config.log file mentioned in the error report
please?
I've attached mine and Kishore's. Mine builds grub, while his does not.

I noticed that Kishore's config.log differs from mine in some configure tests. For example:

Mine contains (config.log-dvhart):

configure:8739: checking for __bswapsi2
configure:8739: gcc -o conftest -O2 -pipe -g -feliminate-unused-debug-types -DGRUB_MACHINE_PCBIOS=1 -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef -Wstrict-prototypes -g -falign-jumps=1 -falign-loops=1 -falign-functions=1 -mno-mmx -mno-sse -mno-sse2 -mno-3dnow -fno-dwarf2-cfi-asm -m32 -fno-stack-protector -mno-stack-arg-probe -Werror -nostdlib -Wl,--defsym,___main=0x8100 -Wl,--defsym,abort=main -Wno-error -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -m32 conftest.c -lgcc >&5
In file included from /usr/include/features.h:387,
from /usr/include/limits.h:27,
from /usr/lib/gcc/x86_64-linux-gnu/4.4.5/include-fixed/limits.h:122,
from /usr/lib/gcc/x86_64-linux-gnu/4.4.5/include-fixed/syslimits.h:7,
from /usr/lib/gcc/x86_64-linux-gnu/4.4.5/include-fixed/limits.h:11,
from conftest.c:62:
/usr/include/gnu/stubs.h:7: fatal error: gnu/stubs-32.h: No such file or directory compilation terminated.
configure:8739: $? = 1


While there is no reference to stubs.h in Kishore's config.log (confi-1.log):

configure:8739: checking for __bswapsi2
configure:8739: gcc -o conftest -O2 -pipe -g -feliminate-unused-debug-types -DGRUB_MACHINE_PCBIOS=1 -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef -Wstrict-prototypes -g -falign-jumps=1 -falign-loops=1 -falign-functions=1 -mno-mmx -mno-sse -mno-sse2 -mno-3dnow -fno-dwarf2-cfi-asm -m32 -fno-stack-protector -Werror -nostdlib -Wl,--defsym,___main=0x8100 -Wl,--defsym,abort=main -Wno-error -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -m32 conftest.c -lgcc >&5
conftest.c:75: warning: function declaration isn't a prototype
/usr/bin/ld: warning: cannot find entry symbol _start; defaulting to 00000000080480c0
configure:8739: $? = 0
configure:8739: result: yes


I also found that Kishore's config.log includes:
freetype_cflags='-I/usr/include/freetype2'
freetype_libs='-lfreetype -lz'

While mine includes:
freetype_cflags='-I/build/poky/sugarbay/tmp/sysroots/sugarbay/usr/include/freetype2 -I/build/poky/sugarbay/tmp/sysroots/sugarbay/usr/include'
freetype_libs='-L/build/poky/sugarbay/tmp/sysroots/sugarbay/usr/lib -lfreetype'

This would certainly be cause for a QA test failure.

Perhaps a DEPENDS=freetype in the grub recipe is in order?

Alternatively, we could see about configuring it without freetype.

Kishore, can you check to see if freetype is built on your system? Should be located at:

/usr/local/src/crf/test/buildsugarbayrt/tmp/work/x86_64-poky-linux/freetype-2.4.6-r0

Kishore, finally, we can confirm this is the problem by having you try this:
$ bitbake freetype
$ bitbake grub

I suspect this will complete.


This should be somewhere like
usr/local/src/crf/test/buildsugarbayrt/tmp/work/x86_64-poky-linux/grub-1.98-r1/*/config.log

Cheers,

Richard


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


Darren Hart <darren.hart@...>
 

Kishore, can you try this patch? You can just checkout this branch in
your meta-intel repository after adding the meta-intel-contrib remote,
or you can add it manually.

http://git.yoctoproject.org/cgit/cgit.cgi/meta-intel-contrib/commit/?h=dvhart/grubfix&id=60652a51878cbd0327c5f828acdbb73e31caafba

Thanks,

Darren

On 08/30/2011 06:39 PM, Darren Hart wrote:
On 08/30/2011 05:11 PM, Richard Purdie wrote:
On Tue, 2011-08-30 at 16:59 -0700, Bodke, Kishore K wrote:
Hello All,



I am trying to build linux-yocto with rt kernel for sugarbay bsp and
it fails for the grub recipe.



Attached is the build log.



kishore@kishore-desktop:/usr/local/src/crf/test/buildsugarbayrt$
bitbake -e | egrep "^WARN_QA="

WARN_QA="dev-so rpaths debug-deps dev-deps debug-files arch la2
pkgconfig desktop la ldflags perms useless-rpaths"

kishore@kishore-desktop:/usr/local/src/crf/test/buildsugarbayrt$
bitbake -e | egrep "^ERROR_QA="

kishore@kishore-desktop:/usr/local/src/crf/test/buildsugarbayrt$



Please let me know what could be the issue.
Could you include the config.log file mentioned in the error report
please?
I've attached mine and Kishore's. Mine builds grub, while his does not.

I noticed that Kishore's config.log differs from mine in some configure tests. For example:

Mine contains (config.log-dvhart):

configure:8739: checking for __bswapsi2
configure:8739: gcc -o conftest -O2 -pipe -g -feliminate-unused-debug-types -DGRUB_MACHINE_PCBIOS=1 -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef -Wstrict-prototypes -g -falign-jumps=1 -falign-loops=1 -falign-functions=1 -mno-mmx -mno-sse -mno-sse2 -mno-3dnow -fno-dwarf2-cfi-asm -m32 -fno-stack-protector -mno-stack-arg-probe -Werror -nostdlib -Wl,--defsym,___main=0x8100 -Wl,--defsym,abort=main -Wno-error -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -m32 conftest.c -lgcc >&5
In file included from /usr/include/features.h:387,
from /usr/include/limits.h:27,
from /usr/lib/gcc/x86_64-linux-gnu/4.4.5/include-fixed/limits.h:122,
from /usr/lib/gcc/x86_64-linux-gnu/4.4.5/include-fixed/syslimits.h:7,
from /usr/lib/gcc/x86_64-linux-gnu/4.4.5/include-fixed/limits.h:11,
from conftest.c:62:
/usr/include/gnu/stubs.h:7: fatal error: gnu/stubs-32.h: No such file or directory compilation terminated.
configure:8739: $? = 1


While there is no reference to stubs.h in Kishore's config.log (confi-1.log):

configure:8739: checking for __bswapsi2
configure:8739: gcc -o conftest -O2 -pipe -g -feliminate-unused-debug-types -DGRUB_MACHINE_PCBIOS=1 -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef -Wstrict-prototypes -g -falign-jumps=1 -falign-loops=1 -falign-functions=1 -mno-mmx -mno-sse -mno-sse2 -mno-3dnow -fno-dwarf2-cfi-asm -m32 -fno-stack-protector -Werror -nostdlib -Wl,--defsym,___main=0x8100 -Wl,--defsym,abort=main -Wno-error -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -m32 conftest.c -lgcc >&5
conftest.c:75: warning: function declaration isn't a prototype
/usr/bin/ld: warning: cannot find entry symbol _start; defaulting to 00000000080480c0
configure:8739: $? = 0
configure:8739: result: yes


I also found that Kishore's config.log includes:
freetype_cflags='-I/usr/include/freetype2'
freetype_libs='-lfreetype -lz'

While mine includes:
freetype_cflags='-I/build/poky/sugarbay/tmp/sysroots/sugarbay/usr/include/freetype2 -I/build/poky/sugarbay/tmp/sysroots/sugarbay/usr/include'
freetype_libs='-L/build/poky/sugarbay/tmp/sysroots/sugarbay/usr/lib -lfreetype'

This would certainly be cause for a QA test failure.

Perhaps a DEPENDS=freetype in the grub recipe is in order?

Alternatively, we could see about configuring it without freetype.

Kishore, can you check to see if freetype is built on your system? Should be located at:

/usr/local/src/crf/test/buildsugarbayrt/tmp/work/x86_64-poky-linux/freetype-2.4.6-r0

Kishore, finally, we can confirm this is the problem by having you try this:
$ bitbake freetype
$ bitbake grub

I suspect this will complete.


This should be somewhere like
usr/local/src/crf/test/buildsugarbayrt/tmp/work/x86_64-poky-linux/grub-1.98-r1/*/config.log

Cheers,

Richard

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


Darren Hart <darren.hart@...>
 

On 08/30/2011 05:11 PM, Richard Purdie wrote:
On Tue, 2011-08-30 at 16:59 -0700, Bodke, Kishore K wrote:
Hello All,



I am trying to build linux-yocto with rt kernel for sugarbay bsp and
it fails for the grub recipe.



Attached is the build log.



kishore@kishore-desktop:/usr/local/src/crf/test/buildsugarbayrt$
bitbake -e | egrep "^WARN_QA="

WARN_QA="dev-so rpaths debug-deps dev-deps debug-files arch la2
pkgconfig desktop la ldflags perms useless-rpaths"

kishore@kishore-desktop:/usr/local/src/crf/test/buildsugarbayrt$
bitbake -e | egrep "^ERROR_QA="

kishore@kishore-desktop:/usr/local/src/crf/test/buildsugarbayrt$



Please let me know what could be the issue.
Could you include the config.log file mentioned in the error report
please?

This should be somewhere like
usr/local/src/crf/test/buildsugarbayrt/tmp/work/x86_64-poky-linux/grub-1.98-r1/*/config.log
I replied with this and a comparison file, but it was rejected due to
being over 200k :(.

Short of it is that Kishore's config.log shows it picking up the
freetype libs from his host system. The patch I proposed adds a DEPENDS
to grub on freetype.

Cheers,

Richard


_______________________________________________
yocto mailing list
yocto@...
https://lists.yoctoproject.org/listinfo/yocto

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


Bodke, Kishore K <kishore.k.bodke@...>
 

When I do bitbake freetype followed by bitbake grub , the grub build successfully.

Attached is the freetype.log and grub.log.

It fails if I first build the bitbake grub.

Thanks
Kishore.

-----Original Message-----
From: Hart, Darren
Sent: Tuesday, August 30, 2011 7:52 PM
To: Richard Purdie
Cc: Bodke, Kishore K; yocto@...
Subject: Re: [yocto] linux-yocto-rt build fail for sugarbay bsp on grub recipe

On 08/30/2011 05:11 PM, Richard Purdie wrote:
On Tue, 2011-08-30 at 16:59 -0700, Bodke, Kishore K wrote:
Hello All,



I am trying to build linux-yocto with rt kernel for sugarbay bsp and
it fails for the grub recipe.



Attached is the build log.



kishore@kishore-desktop:/usr/local/src/crf/test/buildsugarbayrt$
bitbake -e | egrep "^WARN_QA="

WARN_QA="dev-so rpaths debug-deps dev-deps debug-files arch la2
pkgconfig desktop la ldflags perms useless-rpaths"

kishore@kishore-desktop:/usr/local/src/crf/test/buildsugarbayrt$
bitbake -e | egrep "^ERROR_QA="

kishore@kishore-desktop:/usr/local/src/crf/test/buildsugarbayrt$



Please let me know what could be the issue.
Could you include the config.log file mentioned in the error report
please?

This should be somewhere like
usr/local/src/crf/test/buildsugarbayrt/tmp/work/x86_64-poky-linux/grub-1.98-r1/*/config.log
I replied with this and a comparison file, but it was rejected due to
being over 200k :(.

Short of it is that Kishore's config.log shows it picking up the
freetype libs from his host system. The patch I proposed adds a DEPENDS
to grub on freetype.

Cheers,

Richard


_______________________________________________
yocto mailing list
yocto@...
https://lists.yoctoproject.org/listinfo/yocto

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


Darren Hart <darren.hart@...>
 

On 08/31/2011 09:51 AM, Bodke, Kishore K wrote:
When I do bitbake freetype followed by bitbake grub , the grub build successfully.

Attached is the freetype.log and grub.log.

It fails if I first build the bitbake grub.

Did you apply the patch I provided?

--
Darren



Thanks
Kishore.

-----Original Message-----
From: Hart, Darren
Sent: Tuesday, August 30, 2011 7:52 PM
To: Richard Purdie
Cc: Bodke, Kishore K; yocto@...
Subject: Re: [yocto] linux-yocto-rt build fail for sugarbay bsp on grub recipe

On 08/30/2011 05:11 PM, Richard Purdie wrote:
On Tue, 2011-08-30 at 16:59 -0700, Bodke, Kishore K wrote:
Hello All,



I am trying to build linux-yocto with rt kernel for sugarbay bsp and
it fails for the grub recipe.



Attached is the build log.



kishore@kishore-desktop:/usr/local/src/crf/test/buildsugarbayrt$
bitbake -e | egrep "^WARN_QA="

WARN_QA="dev-so rpaths debug-deps dev-deps debug-files arch la2
pkgconfig desktop la ldflags perms useless-rpaths"

kishore@kishore-desktop:/usr/local/src/crf/test/buildsugarbayrt$
bitbake -e | egrep "^ERROR_QA="

kishore@kishore-desktop:/usr/local/src/crf/test/buildsugarbayrt$



Please let me know what could be the issue.
Could you include the config.log file mentioned in the error report
please?

This should be somewhere like
usr/local/src/crf/test/buildsugarbayrt/tmp/work/x86_64-poky-linux/grub-1.98-r1/*/config.log
I replied with this and a comparison file, but it was rejected due to
being over 200k :(.

Short of it is that Kishore's config.log shows it picking up the
freetype libs from his host system. The patch I proposed adds a DEPENDS
to grub on freetype.

Cheers,

Richard


_______________________________________________
yocto mailing list
yocto@...
https://lists.yoctoproject.org/listinfo/yocto

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


Bodke, Kishore K <kishore.k.bodke@...>
 

No.
First I tried without applying the patch by building freetype and then grub as per your suggestion in the thread.
It built.

I will try a fresh build by applying the patch and let you know.

Thanks
Kishore.

-----Original Message-----
From: Hart, Darren
Sent: Wednesday, August 31, 2011 10:00 AM
To: Bodke, Kishore K
Cc: Richard Purdie; yocto@...
Subject: Re: [yocto] linux-yocto-rt build fail for sugarbay bsp on grub recipe

On 08/31/2011 09:51 AM, Bodke, Kishore K wrote:
When I do bitbake freetype followed by bitbake grub , the grub build successfully.

Attached is the freetype.log and grub.log.

It fails if I first build the bitbake grub.

Did you apply the patch I provided?

--
Darren



Thanks
Kishore.

-----Original Message-----
From: Hart, Darren
Sent: Tuesday, August 30, 2011 7:52 PM
To: Richard Purdie
Cc: Bodke, Kishore K; yocto@...
Subject: Re: [yocto] linux-yocto-rt build fail for sugarbay bsp on grub recipe

On 08/30/2011 05:11 PM, Richard Purdie wrote:
On Tue, 2011-08-30 at 16:59 -0700, Bodke, Kishore K wrote:
Hello All,



I am trying to build linux-yocto with rt kernel for sugarbay bsp and
it fails for the grub recipe.



Attached is the build log.



kishore@kishore-desktop:/usr/local/src/crf/test/buildsugarbayrt$
bitbake -e | egrep "^WARN_QA="

WARN_QA="dev-so rpaths debug-deps dev-deps debug-files arch la2
pkgconfig desktop la ldflags perms useless-rpaths"

kishore@kishore-desktop:/usr/local/src/crf/test/buildsugarbayrt$
bitbake -e | egrep "^ERROR_QA="

kishore@kishore-desktop:/usr/local/src/crf/test/buildsugarbayrt$



Please let me know what could be the issue.
Could you include the config.log file mentioned in the error report
please?

This should be somewhere like
usr/local/src/crf/test/buildsugarbayrt/tmp/work/x86_64-poky-linux/grub-1.98-r1/*/config.log
I replied with this and a comparison file, but it was rejected due to
being over 200k :(.

Short of it is that Kishore's config.log shows it picking up the
freetype libs from his host system. The patch I proposed adds a DEPENDS
to grub on freetype.

Cheers,

Richard


_______________________________________________
yocto mailing list
yocto@...
https://lists.yoctoproject.org/listinfo/yocto

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


Richard Purdie
 

On Tue, 2011-08-30 at 18:39 -0700, Darren Hart wrote:
I've attached mine and Kishore's. Mine builds grub, while his does not.

I noticed that Kishore's config.log differs from mine in some configure tests. For example:

Mine contains (config.log-dvhart):

configure:8739: checking for __bswapsi2
configure:8739: gcc -o conftest -O2 -pipe -g -feliminate-unused-debug-types -DGRUB_MACHINE_PCBIOS=1 -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef -Wstrict-prototypes -g -falign-jumps=1 -falign-loops=1 -falign-functions=1 -mno-mmx -mno-sse -mno-sse2 -mno-3dnow -fno-dwarf2-cfi-asm -m32 -fno-stack-protector -mno-stack-arg-probe -Werror -nostdlib -Wl,--defsym,___main=0x8100 -Wl,--defsym,abort=main -Wno-error -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -m32 conftest.c -lgcc >&5
In file included from /usr/include/features.h:387,
from /usr/include/limits.h:27,
from /usr/lib/gcc/x86_64-linux-gnu/4.4.5/include-fixed/limits.h:122,
from /usr/lib/gcc/x86_64-linux-gnu/4.4.5/include-fixed/syslimits.h:7,
from /usr/lib/gcc/x86_64-linux-gnu/4.4.5/include-fixed/limits.h:11,
from conftest.c:62:
/usr/include/gnu/stubs.h:7: fatal error: gnu/stubs-32.h: No such file or directory compilation terminated.
configure:8739: $? = 1


While there is no reference to stubs.h in Kishore's config.log (confi-1.log):

configure:8739: checking for __bswapsi2
configure:8739: gcc -o conftest -O2 -pipe -g -feliminate-unused-debug-types -DGRUB_MACHINE_PCBIOS=1 -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef -Wstrict-prototypes -g -falign-jumps=1 -falign-loops=1 -falign-functions=1 -mno-mmx -mno-sse -mno-sse2 -mno-3dnow -fno-dwarf2-cfi-asm -m32 -fno-stack-protector -Werror -nostdlib -Wl,--defsym,___main=0x8100 -Wl,--defsym,abort=main -Wno-error -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -m32 conftest.c -lgcc >&5
conftest.c:75: warning: function declaration isn't a prototype
/usr/bin/ld: warning: cannot find entry symbol _start; defaulting to 00000000080480c0
configure:8739: $? = 0
configure:8739: result: yes
This is interesting. What its saying here is that your build system
compiler can't compile 32 bit (the -m32 flag) since there are no 32 bit
headers present. Kishore's must have 32 bit headers installed (or be a
32 bit system). We shouldn't be seeing those differences but what they
amount to I don't know without looking at grub in more detail.

I also found that Kishore's config.log includes:
freetype_cflags='-I/usr/include/freetype2'
freetype_libs='-lfreetype -lz'

While mine includes:
freetype_cflags='-I/build/poky/sugarbay/tmp/sysroots/sugarbay/usr/include/freetype2 -I/build/poky/sugarbay/tmp/sysroots/sugarbay/usr/include'
freetype_libs='-L/build/poky/sugarbay/tmp/sysroots/sugarbay/usr/lib -lfreetype'

This would certainly be cause for a QA test failure.
Yes, this is certainly the problem.

Perhaps a DEPENDS=freetype in the grub recipe is in order?

Alternatively, we could see about configuring it without freetype.
I'd tend to favour the latter unless someone can convince me freetype
support adds something really useful to grub.

Cheers,

Richard