[yocto] How to export variable in bitbake build for MPICH
Victor Rodriguez
vm.rod25 at gmail.com
Sat Apr 11 08:45:49 PDT 2015
HI MPICH build is facing a problem due to the fact that the configure has a
variable call BASH_SHELL the which set the bash shell of the developer
computer. However if the developer has /usr/bin/bash the configure set
this for the rest of compilation ( you can check this in config.log). Due
to the fact that Yocto just has /bin/bash the build of any image that
includes mpich fails.
ERROR: Unable to install packages. Command
'/home/vrodri3/poky/build/tmp/sysroots/x86_64-linux/usr/bin/smart --quiet
--data-dir=/home/vrodri3/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs/var/lib/smart
install -y mpich at i586 gcc at i586 run-postinsts at all
packagegroup-core-boot at qemux86 bash at i586' returned 1:
error: Can't install mpich-3.1.1-r0 at i586: no package provides /usr/bin/bash
I tested on the mpich src and the problem is fixed with a simple :
export BASH_SHELL=/bin/bash
( configure does not have an option for this )
I have 2 points :
1) When I do the same export and then bitbake os-core-image-minimal the
build still fails , Why is that happening?
2) What is the best way to fix this ? How can I set the environment
variable on the recipe ? Should I patch the Configure ?
Thanks a lot and regards
Victor Rodriguez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20150411/bf2ec124/attachment.html>
More information about the yocto
mailing list