Re: [yocto] bitbake -c populate_sdk -v poky-image
On Thursday 29 August 2013 13:57:12 Navani Srivastava wrote: > >>You should set SDKMACHINE if you need the machine that runs the SDK to be > > a > different architecture from the machine > Please find the local.conf file which clearly shows SDKMACHINE is i686 and > I want to build for arm1136 arch.. So MACHINE ??= "EBboard" is given where > EBboard refers to arm1136 architecture.. > Not able to find any problem in configurations.. OK. I think it's unlikely that that would be able to cause this kind of problem anyway. > /opt/poky/1.3.2/sysroots/i686-pokysdk-linux/usr/bin/armv6-vfp-poky-linux-gnu > eabi/arm-poky-linux-gnueabi-gcc test.c > test.c:3:19: fatal error: stdio.h: No such file or directory > > error shows that I have problem in cross toolchain... Have yocto ever > faced such kind of issue with populate_sdk before ? Not that I'm aware of. Could you please file a bug in bugzilla for this? It would really help if you had a simple test case we can use to reproduce it with the SDK as well. Thanks, Paul -- Paul Eggleton Intel Open Source Technology Centre ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] bitbake -c populate_sdk -v poky-image
>>You should set SDKMACHINE if you need the machine that runs the SDK to be a different architecture from the machine Please find the local.conf file which clearly shows SDKMACHINE is i686 and I want to build for arm1136 arch.. So MACHINE ??= "EBboard" is given where EBboard refers to arm1136 architecture.. Not able to find any problem in configurations.. /opt/poky/1.3.2/sysroots/i686-pokysdk-linux/usr/bin/armv6-vfp-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc test.c test.c:3:19: fatal error: stdio.h: No such file or directory error shows that I have problem in cross toolchain... Have yocto ever faced such kind of issue with populate_sdk before ? On Thu, Aug 29, 2013 at 1:43 PM, Paul Eggleton < paul.eggle...@linux.intel.com> wrote: > On Thursday 29 August 2013 10:11:31 Navani Srivastava wrote: > > In order to execute > > "bitbake -c populate_sdk poky-image" are we supposed to declare > > BUILD_ARCH or SDK_ARCH somewhere in local.conf file? > > Yocto Documentation has not mentioned anything like that. Just a doubt as > > "bitbake poky-image" is working fine though populate_sdk is giving > problem.. > > You should set SDKMACHINE if you need the machine that runs the SDK to be a > different architecture from the machine that you're running the build on, > otherwise it will just use the same one. > > We're aware the documentation is lacking on -c populate_sdk, and we're > addressing that in the documentation for the next release. > > Cheers, > Paul > > -- > > Paul Eggleton > Intel Open Source Technology Centre > local.conf Description: Binary data ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] bitbake -c populate_sdk -v poky-image
On Thursday 29 August 2013 10:11:31 Navani Srivastava wrote: > In order to execute > "bitbake -c populate_sdk poky-image" are we supposed to declare > BUILD_ARCH or SDK_ARCH somewhere in local.conf file? > Yocto Documentation has not mentioned anything like that. Just a doubt as > "bitbake poky-image" is working fine though populate_sdk is giving problem.. You should set SDKMACHINE if you need the machine that runs the SDK to be a different architecture from the machine that you're running the build on, otherwise it will just use the same one. We're aware the documentation is lacking on -c populate_sdk, and we're addressing that in the documentation for the next release. Cheers, Paul -- Paul Eggleton Intel Open Source Technology Centre ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] bitbake -c populate_sdk -v poky-image
In order to execute "bitbake -c populate_sdk poky-image" are we supposed to declare BUILD_ARCH or SDK_ARCH somewhere in local.conf file? Yocto Documentation has not mentioned anything like that. Just a doubt as "bitbake poky-image" is working fine though populate_sdk is giving problem.. On Wed, Aug 28, 2013 at 8:11 PM, Paul Eggleton < paul.eggle...@linux.intel.com> wrote: > On Wednesday 28 August 2013 13:23:04 Navani Srivastava wrote: > > Following is my image file to generate rootfs image with SDK having Qt > > support.. > > I am able to build SDK successfully but on building any Qt application > with > > generated SDK getting following error message- > > > > > /opt/poky/1.3.2/sysroots/EBboard-poky-linux-gnueabi//usr/include/qtopia/QtCo > > re/qglobal.h:68:21: fatal error: algorithm: No such file or directory > > compilation terminated. > > make[2]: *** [obj_rel/AdjustedTime.o] Error 1 > > > > Please suggest.. > > I can't tell from the little amount of the error output you've given but it > sounds like either standard C++ headers are not installed, or they are but > the > compiler can't find them for some reason. > > Cheers, > Paul > > -- > > Paul Eggleton > Intel Open Source Technology Centre > ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] bitbake -c populate_sdk -v poky-image
I just removed qt stuff and tried with the SDK built with 'bitbake -c populate_sdk poky-image' . I just compiled a simple program which includes stdio.h, while compiling got error that "stdio.h: No such file or directory" .. It seems problem is with SDK generated with it. But I am not able to understand that if problem is somewhere in declaring the correct architecture then how rootfs and all other binaries which got generated by executing "bitbake poky-image" are working on my target. Even though SDK generated by "bitbake meta-toolhain-qte" is also working fine.. Need some more research.. On Wed, Aug 28, 2013 at 8:11 PM, Paul Eggleton < paul.eggle...@linux.intel.com> wrote: > On Wednesday 28 August 2013 13:23:04 Navani Srivastava wrote: > > Following is my image file to generate rootfs image with SDK having Qt > > support.. > > I am able to build SDK successfully but on building any Qt application > with > > generated SDK getting following error message- > > > > > /opt/poky/1.3.2/sysroots/EBboard-poky-linux-gnueabi//usr/include/qtopia/QtCo > > re/qglobal.h:68:21: fatal error: algorithm: No such file or directory > > compilation terminated. > > make[2]: *** [obj_rel/AdjustedTime.o] Error 1 > > > > Please suggest.. > > I can't tell from the little amount of the error output you've given but it > sounds like either standard C++ headers are not installed, or they are but > the > compiler can't find them for some reason. > > Cheers, > Paul > > -- > > Paul Eggleton > Intel Open Source Technology Centre > ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] bitbake -c populate_sdk -v poky-image
On Wednesday 28 August 2013 13:23:04 Navani Srivastava wrote: > Following is my image file to generate rootfs image with SDK having Qt > support.. > I am able to build SDK successfully but on building any Qt application with > generated SDK getting following error message- > > /opt/poky/1.3.2/sysroots/EBboard-poky-linux-gnueabi//usr/include/qtopia/QtCo > re/qglobal.h:68:21: fatal error: algorithm: No such file or directory > compilation terminated. > make[2]: *** [obj_rel/AdjustedTime.o] Error 1 > > Please suggest.. I can't tell from the little amount of the error output you've given but it sounds like either standard C++ headers are not installed, or they are but the compiler can't find them for some reason. Cheers, Paul -- Paul Eggleton Intel Open Source Technology Centre ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] bitbake -c populate_sdk -v poky-image
Hi, Following is my image file to generate rootfs image with SDK having Qt support.. I am able to build SDK successfully but on building any Qt application with generated SDK getting following error message- /opt/poky/1.3.2/sysroots/EBboard-poky-linux-gnueabi//usr/include/qtopia/QtCore/qglobal.h:68:21: fatal error: algorithm: No such file or directory compilation terminated. make[2]: *** [obj_rel/AdjustedTime.o] Error 1 Please suggest.. Thanks and Regards Navani Kamal Srivastava On Tue, Jul 30, 2013 at 4:18 PM, Paul Eggleton < paul.eggle...@linux.intel.com> wrote: > On Tuesday 30 July 2013 14:35:40 Navani Srivastava wrote: > > > I think the problem is this: > > > require recipes-core/meta/meta-toolchain.bb > > > > Yes, it worked.. Thanks > > > > > You shouldn't be adding this to an image recipe, and definitely not > poky- > > > image.bbclass. > > then? Is it possible to create .bbappend kind of file for .bbclass which > > can append the information or I have to duplicate > toolchain-script.bbclass > > in my layer? > > Sure, you can add the script append and the additional TOOLCHAIN_HOST_TASK > items in an additional bbclass in your layer and then inherit that in your > image recipe; just don't require meta-toolchain.bb because that has other > side-effects. > > > >>What version of the build system are you using? > > > > I am using poky danny (8.0.2) > > OK, in that case why are you using poky-image.bbclass? That was replaced by > core-image.bbclass in the edison release if I recall correctly, which was > quite a while ago. > > Cheers, > Paul > > -- > > Paul Eggleton > Intel Open Source Technology Centre > poky-image.bb Description: Binary data ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] bitbake -c populate_sdk -v poky-image
I did whatever you suggested and it worked at first shot.. Thanks a lot :) >>In that case why are you using poky-image.bbclass? It's is my custom recipe name suggested for the project :) Can't do anything.. On Tue, Jul 30, 2013 at 4:18 PM, Paul Eggleton < paul.eggle...@linux.intel.com> wrote: > On Tuesday 30 July 2013 14:35:40 Navani Srivastava wrote: > > > I think the problem is this: > > > require recipes-core/meta/meta-toolchain.bb > > > > Yes, it worked.. Thanks > > > > > You shouldn't be adding this to an image recipe, and definitely not > poky- > > > image.bbclass. > > then? Is it possible to create .bbappend kind of file for .bbclass which > > can append the information or I have to duplicate > toolchain-script.bbclass > > in my layer? > > Sure, you can add the script append and the additional TOOLCHAIN_HOST_TASK > items in an additional bbclass in your layer and then inherit that in your > image recipe; just don't require meta-toolchain.bb because that has other > side-effects. > > > >>What version of the build system are you using? > > > > I am using poky danny (8.0.2) > > OK, in that case why are you using poky-image.bbclass? That was replaced by > core-image.bbclass in the edison release if I recall correctly, which was > quite a while ago. > > Cheers, > Paul > > -- > > Paul Eggleton > Intel Open Source Technology Centre > ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] bitbake -c populate_sdk -v poky-image
On Tuesday 30 July 2013 14:35:40 Navani Srivastava wrote: > > I think the problem is this: > > require recipes-core/meta/meta-toolchain.bb > > Yes, it worked.. Thanks > > > You shouldn't be adding this to an image recipe, and definitely not poky- > > image.bbclass. > then? Is it possible to create .bbappend kind of file for .bbclass which > can append the information or I have to duplicate toolchain-script.bbclass > in my layer? Sure, you can add the script append and the additional TOOLCHAIN_HOST_TASK items in an additional bbclass in your layer and then inherit that in your image recipe; just don't require meta-toolchain.bb because that has other side-effects. > >>What version of the build system are you using? > > I am using poky danny (8.0.2) OK, in that case why are you using poky-image.bbclass? That was replaced by core-image.bbclass in the edison release if I recall correctly, which was quite a while ago. Cheers, Paul -- Paul Eggleton Intel Open Source Technology Centre ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] bitbake -c populate_sdk -v poky-image
>>I think the problem is this: > require recipes-core/meta/meta-toolchain.bb Yes, it worked.. Thanks >>You shouldn't be adding this to an image recipe, and definitely not poky- image.bbclass. then? Is it possible to create .bbappend kind of file for .bbclass which can append the information or I have to duplicate toolchain-script.bbclass in my layer? >>What version of the build system are you using? I am using poky danny (8.0.2) Regards Navani On Tue, Jul 30, 2013 at 1:57 PM, Paul Eggleton < paul.eggle...@linux.intel.com> wrote: > On Tuesday 30 July 2013 00:08:42 Navani Srivastava wrote: > > I have done changes in .bbclass file. Could it be the reason for such > > behavior? > > Please find the attached recipe and bbclass. > > I think the problem is this: > > > require recipes-core/meta/meta-toolchain.bb > > You shouldn't be adding this to an image recipe, and definitely not poky- > image.bbclass. > > What version of the build system are you using? > > Cheers, > Paul > > -- > > Paul Eggleton > Intel Open Source Technology Centre > ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] bitbake -c populate_sdk -v poky-image
On Tuesday 30 July 2013 00:08:42 Navani Srivastava wrote: > I have done changes in .bbclass file. Could it be the reason for such > behavior? > Please find the attached recipe and bbclass. I think the problem is this: > require recipes-core/meta/meta-toolchain.bb You shouldn't be adding this to an image recipe, and definitely not poky- image.bbclass. What version of the build system are you using? Cheers, Paul -- Paul Eggleton Intel Open Source Technology Centre ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] bitbake -c populate_sdk -v poky-image
I have done changes in .bbclass file. Could it be the reason for such behavior? Please find the attached recipe and bbclass. >>'m not sure that there is, no. Ok, Thanks.. On Mon, Jul 29, 2013 at 11:34 PM, Paul Eggleton < paul.eggle...@linux.intel.com> wrote: > On Monday 29 July 2013 23:29:25 Navani Srivastava wrote: > > Thanks Paul.. It worked :) > > Able to create SDK with qt inbuilt on issuing "bitbake -c populate_sdk > > core-image-minimal" , but now "bitbake -v core-image-minimal" also invoke > > do_populate_sdk .. Is this the expected behavior or something else? > > Er, that is certainly not expected. Would you be able to attach the current > recipe? > > > Is there anyway to clean only sdk by using bitbake command? > > I'm not sure that there is, no. > > Cheers, > Paul > > -- > > Paul Eggleton > Intel Open Source Technology Centre > Regards Navani poky-image.bbclass Description: Binary data poky-image.bb Description: Binary data ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] bitbake -c populate_sdk -v poky-image
On Monday 29 July 2013 23:29:25 Navani Srivastava wrote: > Thanks Paul.. It worked :) > Able to create SDK with qt inbuilt on issuing "bitbake -c populate_sdk > core-image-minimal" , but now "bitbake -v core-image-minimal" also invoke > do_populate_sdk .. Is this the expected behavior or something else? Er, that is certainly not expected. Would you be able to attach the current recipe? > Is there anyway to clean only sdk by using bitbake command? I'm not sure that there is, no. Cheers, Paul -- Paul Eggleton Intel Open Source Technology Centre ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] bitbake -c populate_sdk -v poky-image
Thanks Paul.. It worked :) Able to create SDK with qt inbuilt on issuing "bitbake -c populate_sdk core-image-minimal" , but now "bitbake -v core-image-minimal" also invoke do_populate_sdk .. Is this the expected behavior or something else? Is there anyway to clean only sdk by using bitbake command? >>(I'd like to make this easier at some point in future, so that this extra stuff isn't needed.) It would be great and will make development easy also... Thanks for that.. Regards Navani On Fri, Jul 26, 2013 at 9:19 PM, Paul Eggleton < paul.eggle...@linux.intel.com> wrote: > Hi Navani, > > On Monday 22 July 2013 16:33:48 Navani Srivastava wrote: > > I want to build meta-toolchain-qte.bb as sdk while running > > > > "bitbake -c populate_sdk -v core-image-minimal" .. > > > > Please suggest what changes need to be done to provide this feature? > > At the moment you'll have to add something like the following to your > image, > after the "inherit image" or "inherit core-image" line: > > TOOLCHAIN_HOST_TASK += "nativesdk-packagegroup-qte-toolchain-host" > > You'll also need to append to the toolchain environment setup script. See > what > meta/recipes-qt/meta/meta-toolchain-qt.inc does and you should be able to > do > the same in your image recipe. > > (I'd like to make this easier at some point in future, so that this extra > stuff > isn't needed.) > > Cheers, > Paul > > -- > > Paul Eggleton > Intel Open Source Technology Centre > ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] bitbake -c populate_sdk -v poky-image
Hi Navani, On Monday 22 July 2013 16:33:48 Navani Srivastava wrote: > I want to build meta-toolchain-qte.bb as sdk while running > > "bitbake -c populate_sdk -v core-image-minimal" .. > > Please suggest what changes need to be done to provide this feature? At the moment you'll have to add something like the following to your image, after the "inherit image" or "inherit core-image" line: TOOLCHAIN_HOST_TASK += "nativesdk-packagegroup-qte-toolchain-host" You'll also need to append to the toolchain environment setup script. See what meta/recipes-qt/meta/meta-toolchain-qt.inc does and you should be able to do the same in your image recipe. (I'd like to make this easier at some point in future, so that this extra stuff isn't needed.) Cheers, Paul -- Paul Eggleton Intel Open Source Technology Centre ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] bitbake -c populate_sdk -v poky-image
Hi, I want to build meta-toolchain-qte.bb as sdk while running "bitbake -c populate_sdk -v core-image-minimal" .. Please suggest what changes need to be done to provide this feature? Thanks and Regards Navani Kamal Srivastava ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto