All of lore.kernel.org
 help / color / mirror / Atom feed
* bzip2-native problem
@ 2012-07-18 15:02 Yao Zhao
  2012-07-20 16:25 ` Yao Zhao
  0 siblings, 1 reply; 2+ messages in thread
From: Yao Zhao @ 2012-07-18 15:02 UTC (permalink / raw)
  To: openembedded-devel

Hi all,

Got a problem about bzip2-native:

The reason is that when unpacking xextproto-7.2.0.tar.bz2, 
bzip2-native's build is triggered too because of another package's 
dependency. And loader can't find libbz2.so.0 which is in sysroot(host 
bzip2 used libbz2.so.1 so it is sure the libbz2.so.0 in sysroot) I have 
searched the paths in PATH below and only find bzip2 in 2 places: host 
/bin/bzip2 and sysroot bzip2.

In bzip2's Makefile, the install is make -j xxx ... although the install 
is first to install libbz2.so.0 then bzip2 but because of the "-j xxx" 
so it is possible that bzip2 is installed first but libbz2.so.0 is not 
ready yet(in a subshell this link is created).
So I have to make the install atomic or at least don't install in parallel.

so there are a couple of workarounds:
1.set PARALLEL_MAKEINST="" (one line change, and only one library, 2 
binaries installed(bzip2, bzip2recover) + 3 scripts + a couple of links)
2.make a statically linked bzip2 and bzip2recover
3.like perl or python native to make a bzip2-native subdir in sysroot 
then only packages explicitly inherit bzip2native which will set the path.

I need your advice!

thanks,
yao

Here is the tail of log.do_unpack.6884:
  --------------------------------------------------
DEBUG: SITE files ['endian-big', 'bit-32', 'powerpc-common', 'common-linux', 'common-glibc', 'powerpc32-linux', 'powerpc-linux', 'common']
DEBUG: Executing shell function wrl_buildlink
DEBUG: Shell function wrl_buildlink finished
DEBUG: Executing python function do_unpack
DEBUG: Executing python function base_do_unpack
NOTE: Unpacking /builds-2012-07-13-001944/fsl-p4080_std_tc/bitbake_build/downloads/xextproto-7.2.0.tar.bz2 to /builds-2012-07-13-001944/fsl-p4080_std_tc/bitbake_build/tmp/work/ppce500mc-wrs-linux/xextproto-1_7.2.0-r0/
bzip2: error while loading shared libraries: libbz2.so.0: cannot open shared object file: No such file or directory
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
DEBUG: Python function base_do_unpack finished
DEBUG: Python function do_unpack finished
ERROR: Function failed: Unpack failure for URL: 'http://xorg.freedesktop.org/releases/individual/proto/xextproto-7.2.0.tar.bz2'. Unpack command PATH="/builds-2012-07-13-001944/fsl-p4080_std_tc/layers/oe-core/scripts:/builds-2012-07-13-001944/fsl-p4080_std_tc/bitbake_build/tmp/sysroots/x86_64-linux/usr/bin/ppce500mc-wrs-linux:/builds-2012-07-13-001944/fsl-p4080_std_tc/bitbake_build/tmp/sysroots/fsl-p4080/usr/bin/crossscripts:
/builds-2012-07-13-001944/fsl-p4080_std_tc/bitbake_build/tmp/sysroots/x86_64-linux/usr/sbin:/builds-2012-07-13-001944/fsl-p4080_std_tc/bitbake_build/tmp/sysroots/x86_64-linux/usr/bin:/builds-2012-07-13-001944/fsl-p4080_std_tc/bitbake_build/tmp/sysroots/x86_64-linux/sbin:/builds-2012-07-13-001944/fsl-p4080_std_tc/bitbake_build/tmp/sysroots/x86_64-linux//bin:/builds-2012-07-13-001944/fsl-p4080_std_tc/bitbake_build/bin:/ba2/yow
-blade16.2/builds-2012-07-13-001944/fsl-p4080_std_tc/layers/oe-core/scripts:/builds-2012-07-13-001944/fsl-p4080_std_tc/bitbake/bin/:/wrlinux-x/layers/wrlinux/scripts:/builds-2012-07-13-001944/fsl-p4080_std_tc/scripts:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/builds-2012-07-13-001944/fsl-p4080_std_tc/layers/local/scripts:/wrlinux-x/layers/wrlinux/scripts:/wrlinux-x/layers/wrlcompat/sc
ripts" bzip2 -dc /builds-2012-07-13-001944/fsl-p4080_std_tc/bitbake_build/downloads/xextproto-7.2.0.tar.bz2 | tar x --no-same-owner -f - failed with return value 2




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: bzip2-native problem
  2012-07-18 15:02 bzip2-native problem Yao Zhao
@ 2012-07-20 16:25 ` Yao Zhao
  0 siblings, 0 replies; 2+ messages in thread
From: Yao Zhao @ 2012-07-20 16:25 UTC (permalink / raw)
  To: openembedded-devel

On 12-07-18 11:02 AM, Yao Zhao wrote:
> Hi all,
>
> Got a problem about bzip2-native:
>
> The reason is that when unpacking xextproto-7.2.0.tar.bz2, 
> bzip2-native's build is triggered too because of another package's 
> dependency. And loader can't find libbz2.so.0 which is in sysroot(host 
> bzip2 used libbz2.so.1 so it is sure the libbz2.so.0 in sysroot) I 
> have searched the paths in PATH below and only find bzip2 in 2 places: 
> host /bin/bzip2 and sysroot bzip2.
>
> In bzip2's Makefile, the install is make -j xxx ... although the 
> install is first to install libbz2.so.0 then bzip2 but because of the 
> "-j xxx" so it is possible that bzip2 is installed first but 
> libbz2.so.0 is not ready yet(in a subshell this link is created).
> So I have to make the install atomic or at least don't install in 
> parallel.
>
> so there are a couple of workarounds:
> 1.set PARALLEL_MAKEINST="" (one line change, and only one library, 2 
> binaries installed(bzip2, bzip2recover) + 3 scripts + a couple of links)
> 2.make a statically linked bzip2 and bzip2recover
> 3.like perl or python native to make a bzip2-native subdir in sysroot 
> then only packages explicitly inherit bzip2native which will set the 
> path.
>
> I need your advice!
>
> thanks,
> yao
>
> Here is the tail of log.do_unpack.6884:
>  --------------------------------------------------
> DEBUG: SITE files ['endian-big', 'bit-32', 'powerpc-common', 
> 'common-linux', 'common-glibc', 'powerpc32-linux', 'powerpc-linux', 
> 'common']
> DEBUG: Executing shell function wrl_buildlink
> DEBUG: Shell function wrl_buildlink finished
> DEBUG: Executing python function do_unpack
> DEBUG: Executing python function base_do_unpack
> NOTE: Unpacking 
> /builds-2012-07-13-001944/fsl-p4080_std_tc/bitbake_build/downloads/xextproto-7.2.0.tar.bz2 
> to 
> /builds-2012-07-13-001944/fsl-p4080_std_tc/bitbake_build/tmp/work/ppce500mc-wrs-linux/xextproto-1_7.2.0-r0/
> bzip2: error while loading shared libraries: libbz2.so.0: cannot open 
> shared object file: No such file or directory
> tar: This does not look like a tar archive
> tar: Exiting with failure status due to previous errors
> DEBUG: Python function base_do_unpack finished
> DEBUG: Python function do_unpack finished
> ERROR: Function failed: Unpack failure for URL: 
> 'http://xorg.freedesktop.org/releases/individual/proto/xextproto-7.2.0.tar.bz2'. 
> Unpack command 
> PATH="/builds-2012-07-13-001944/fsl-p4080_std_tc/layers/oe-core/scripts:/builds-2012-07-13-001944/fsl-p4080_std_tc/bitbake_build/tmp/sysroots/x86_64-linux/usr/bin/ppce500mc-wrs-linux:/builds-2012-07-13-001944/fsl-p4080_std_tc/bitbake_build/tmp/sysroots/fsl-p4080/usr/bin/crossscripts:
> /builds-2012-07-13-001944/fsl-p4080_std_tc/bitbake_build/tmp/sysroots/x86_64-linux/usr/sbin:/builds-2012-07-13-001944/fsl-p4080_std_tc/bitbake_build/tmp/sysroots/x86_64-linux/usr/bin:/builds-2012-07-13-001944/fsl-p4080_std_tc/bitbake_build/tmp/sysroots/x86_64-linux/sbin:/builds-2012-07-13-001944/fsl-p4080_std_tc/bitbake_build/tmp/sysroots/x86_64-linux//bin:/builds-2012-07-13-001944/fsl-p4080_std_tc/bitbake_build/bin:/ba2/yow 
>
> -blade16.2/builds-2012-07-13-001944/fsl-p4080_std_tc/layers/oe-core/scripts:/builds-2012-07-13-001944/fsl-p4080_std_tc/bitbake/bin/:/wrlinux-x/layers/wrlinux/scripts:/builds-2012-07-13-001944/fsl-p4080_std_tc/scripts:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/builds-2012-07-13-001944/fsl-p4080_std_tc/layers/local/scripts:/wrlinux-x/layers/wrlinux/scripts:/wrlinux-x/layers/wrlcompat/sc 
>
> ripts" bzip2 -dc 
> /builds-2012-07-13-001944/fsl-p4080_std_tc/bitbake_build/downloads/xextproto-7.2.0.tar.bz2 
> | tar x --no-same-owner -f - failed with return value 2
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Any suggestion, please!

yao




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-20 16:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-18 15:02 bzip2-native problem Yao Zhao
2012-07-20 16:25 ` Yao Zhao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.