[yocto] Bitbaking python fails

Andre Haupt andre at bitwigglers.org
Fri Jul 22 02:37:22 PDT 2011


Hi Richard,

thanks for your answer. See below ... 

On Fri, Jul 22, 2011 at 09:59:51AM +0100, Richard Purdie wrote:
> On Fri, 2011-07-22 at 10:37 +0200, Andre Haupt wrote:
> > Hi all,
> > 
> > Building python for poky bernard fails for me with the following error:
> > 
> > ...
> > ...
> > Looking in tk80 for ['/home/ahaupt/yocto-git/build/tmp/sysroots/atom-pc/usr/lib']
> > Looking in tcl80 for ['/home/ahaupt/yocto-git/build/tmp/sysroots/atom-pc/usr/lib']
> > *** WARNING: renaming "gdbm" since importing it failed: libgdbm.so.3:
> > cannot open shared object file: No such file or directory
> > /bin/sh: line 1: 12830 Illegal instruction     (core dumped)
> > LD_LIBRARY_PATH=/home/ahaupt/yocto-git/build/tmp/work/core2-poky-
> > linux/python-2.6.6-nk1.2/Python-2.6.6:/home/ahaupt/yocto-git/build
> > /tmp/sysroots/i686-linux/usr/bin/../lib/pseudo/lib:/home/ahaupt
> > /yocto-git/build/tmp/sysroots/i686-linux/usr/bin/../lib/pseudo/lib64
> > CC='ccache i586-poky-linux-gcc -m32 -march=core2 -msse3
> > -mtune=generic -mfpmath=sse
> > --sysroot=/home/ahaupt/yocto-git/build/tmp/sysroots/atom-pc'
> > LDSHARED='ccache i586-poky-linux-gcc -m32 -march=core2 -msse3
> > -mtune=generic -mfpmath=sse
> > --sysroot=/home/ahaupt/yocto-git/build/tmp/sysroots/atom-pc
> > -shared' LDFLAGS='-Wl,-O1  -Wl,--as-needed'
> > OPT='-fexpensive-optimizations -fomit-frame-pointer
> > -frename-registers -O2 -ggdb -feliminate-unused-debug-types'
> > /home/ahaupt/yocto-git/build/tmp/sysroots/i686-linux/usr/bin/python
> > -E ./setup.py -q build
> > make: *** [sharedmods] Error 132
> > FATAL: oe_runmake failed
> > ERROR: Function 'do_compile' failed (see
> > /home/ahaupt/yocto-git/build/tmp/work/core2-poky-linux/
> > python-2.6.6-nk1.2/temp/log.do_compile.12751
> > for further information)
> > 
> > Does this sound familiar to anyone? libgdbm.so.3 exists in
> > /home/ahaupt/yocto-git/build/tmp/sysroots/atom-pc/usr/lib and points to
> > libgdbm.so.3.0.0
> > 
> > My target machine is atom-pc and my build host is Fedora 13 in a
> > VirtualBox machine.
> 
> I've not seen this before. You could run
> "file /home/ahaupt/yocto-git/build/tmp/sysroots/atom-pc/usr/lib/libgdbm.so.3.0.0" and check that its of the correct architecture since the invalid instruction is a weird error to see. I'm not 100% sure its that file its complaining about the instruction from though.

this is the output of the file command:
libgdbm.so.3.0.0: ELF 32-bit LSB shared object, Intel 80386, version 1
(SYSV), dynamically linked, not stripped

> Does it do this every build, erroring in the same way? I know we did see
> some emulation corruption type issues with virtualbox in the past
> although they've not been reported for a while. It might be worth
> starting a new build of "bitbake python" and see if the error is
> reproducible too...

It happens reproducible when i do a "bitbake python".

regards,

Andre



More information about the yocto mailing list