[Openembedded-users] SDK building problem
Mats Kärrman
Mats.Karrman at tritech.se
Fri Jan 14 12:07:18 UTC 2011
@Khem:
The bitbake error was due to incompatible bitbake version. After upgrading to 1.8.19 the build ran far enough to tell me that I should switch to bitbake v1.10.2...
Building my SDK recipe using this bitbake, openembedded git master and the included angstrom-2008.1 distro generates an SDK that works (i.e. containing the missing mpfr lib)!
I will run a few more builds to try to narrow things down further. Unfortunately my build machine isn't the worlds fastest...
One perhaps unrelated peculiarity: The angstrom-2008.1.conf (both master and release) has DISTRO_VERSION = "2010.7-test-${DATE}"...?!
Regards,
Mats
________________________________________
From: openembedded-users-bounces at linuxtogo.org [openembedded-users-bounces at linuxtogo.org] on behalf of Mats Kärrman [Mats.Karrman at tritech.se]
Sent: Friday, January 14, 2011 8:42 AM
To: Khem Raj; openembedded-users at linuxtogo.org
Subject: Re: [Openembedded-users] SDK building problem
@Khem:
I'm glad if you think this is a bug since It's not that easy (for me) to get the desired lib's into the sdk.
Trying with master was not so easy... I tried latest master and also "tested_2010-12-30". Both resulted in an error in bitbake:
NOTE: Parsing finished. 0 cached, 6920 parsed, 352 skipped, 0 masked.
NOTE: build TP ${DISTRO_VERSION}: started
Traceback (most recent call last):
File "/home/makr/tp/svn/main/trunk/oe/bitbake/bin/bitbake", line 143, in <module>
main()
File "/home/makr/tp/svn/main/trunk/oe/bitbake/bin/bitbake", line 140, in main
cooker.cook()
File "/home/makr/tp/svn/main/trunk/oe/bitbake/lib/bb/cooker.py", line 640, in cook
return self.buildTargets(pkgs_to_build)
File "/home/makr/tp/svn/main/trunk/oe/bitbake/lib/bb/cooker.py", line 527, in buildTargets
bb.event.fire(bb.event.BuildStarted(buildname, targets, self.configuration.event_data))
File "/home/makr/tp/svn/main/trunk/oe/bitbake/lib/bb/event.py", line 67, in fire
if tmpHandler(event) == Handled:
File "tmpHandler(e)", line 10, in tmpHandler
File "/home/makr/tp/svn/main/trunk/oe/bitbake/lib/bb/__init__.py", line 100, in plain
bb.msg.warn(''.join(args))
TypeError: warn() takes at least 2 arguments (1 given)
Since I'm not a Python programmer I have some difficulties to trace down the reasons for this error. I suspect that it may come from the fact that I'm building using my own distro based on some modified files from Angstrom (from release_2010.12). I'm looking into this now. If you have some further suggestions I'd be glad to hear about them.
Regards,
Mats
________________________________________
From: openembedded-users-bounces at linuxtogo.org [openembedded-users-bounces at linuxtogo.org] on behalf of Khem Raj [raj.khem at gmail.com]
Sent: Friday, January 14, 2011 4:33 AM
To: openembedded-users at linuxtogo.org
Subject: Re: [Openembedded-users] SDK building problem
On 1/13/2011 6:36 AM, Aeschbacher, Fabrice wrote:
> Hi,
>
> I did exactly what you want with this documentation:
>
> http://docs.openembedded.org/usermanual/usermanual.html#commonuse_qte_sdk
>
> Kind regards,
> Fabrice
>
> ________________________________
> Von: openembedded-users-bounces at linuxtogo.org [mailto:openembedded-users-bounces at linuxtogo.org] Im Auftrag von Mats Kärrman
> Gesendet: Donnerstag, 13. Januar 2011 15:10
> An: openembedded-users at linuxtogo.org
> Betreff: [Openembedded-users] SDK building problem
>
> Hi openembedded users!
>
> I'm new to OE and the list. I hope this question is appropriate for this forum and that someone can spare some time to help.
>
> I'm already successfully building working FS images for my project.
> Based on the OE user manual I created recipes for building an SDK - this also builds fine.
> However when trying to compile code using GCC there is some missing dependencies, e.g.:
>
> /usr/local/tp/powerpc/libexec/gcc/powerpc-tp-linux/4.3.3/cc1: error while loading shared libraries: libmpfr.so.4: cannot open shared object file: No such file or directory
>
> $ ldd /usr/local/tp/powerpc/libexec/gcc/powerpc-tp-linux/4.3.3/cc1
> linux-vdso.so.1 => (0x00007fffee171000)
> libmpfr.so.4 => not found
> libgmp.so.10 => not found
> libc.so.6 => /lib/libc.so.6 (0x00007f402c71b000)
> /lib64/ld-linux-x86-64.so.2 (0x00007f402cabe000)
>
> I'm running Ubuntu 10.4 and the missing libraries are there but in older versions.
>
> The generated SDK contains the libraries in the correct versions but for the target architecture under /usr/local/tp/powerpc/powerpc-tp-linux/usr/lib/.
>
> If I dig into the OE build directories I find the files I need under .../build/tmp-tp/sysroots/x86_64-linux/usr/lib/. If I copy these to the proper location, the build works as it should.
>
> (Sorry for the long introduction, here comes the actual question)
>
> I like to make OE include these libraries in the generated SDK but I'm sort of clue-less. Could anyone please point me off in the right direction on how to make this happen?
>
> (Currently using Bitbake-1.8.18 and OE release-2010.12)
hmm I think we had nailed it before release. Can you try it with latest
master of OE and see if it still happens. ?
>
> Best regards,
> Mats
>
>
>
>
>
> _______________________________________________
> Openembedded-users mailing list
> Openembedded-users at linuxtogo.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-users
_______________________________________________
Openembedded-users mailing list
Openembedded-users at linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-users
_______________________________________________
Openembedded-users mailing list
Openembedded-users at linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-users
More information about the Openembedded-users
mailing list