rebuild issues using sstate mirror
Hi Folks,
i did some research on building a custom yocto image using gatesgarth branch. The testcase was building an image on one machine and rebuild it on another using sstate mirror. I encountered two issues witch i was able to fix in a way that may also be interesting upstream.
The first error:
| /home/flk/yocto/build/poky-3.2/hd51/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/gobject-introspection/1.64.1-r0/recipe-sysroot-native/usr/bin/bison: error while loading shared libraries: libreadline.so.7: cannot open shared object file: No such file or directory
the solution for me was to add 'readline' to DEPENDS in bison_3.7.2.bb .
configure log for bison-native changed from:
checking for readline... no
checking readline/readline.h usability... no
checking readline/readline.h presence... no
checking for readline/readline.h... no
checking readline/history.h usability... no
checking readline/history.h presence... no
checking for readline/history.h... no
to:
checking for readline... yes
checking how to link with libreadline... /home/flk/yocto/build/poky-3.2/hd51/tmp/work/x86_64-linux/bison-native/3.7.2-r0/recipe-sysroot-native/usr/lib/libreadline.so -Wl,-rpath -Wl,/home/flk/yocto/build/poky-3.2/hd51/tmp/work/x86_64-linux/bison-native/3.7.2-r0/recipe-sysroot-native/usr/lib checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking readline/history.h usability... yes
checking readline/history.h presence... yes
checking for readline/history.h... yes
and the error disappeared
The second error:
ERROR: neutrino-image-1.0-r0 do_rootfs: Unable to update the package index files. Command '/home/flk/yocto/build/poky-3.2/hd60/tmp/work/hd60-oe-linux-gnueabi/neutrino-image/1.0-r0/recipe-sysroot-native/usr/bin/opkg --volatile-cache -f /home/flk/yocto/build/poky-3.2/hd60/tmp/work/hd60-oe-linux-gnueabi/neutrino-image/1.0-r0/opkg.conf -t /home/flk/yocto/build/poky-3.2/hd60/tmp/work/hd60-oe-linux-gnueabi/neutrino-image/1.0-r0/temp/ipktemp/ -o /home/flk/yocto/build/poky-3.2/hd60/tmp/work/hd60-oe-linux-gnueabi/neutrino-image/1.0-r0/rootfs --force_postinstall --prefer-arch-to-version update' returned 127:/home/flk/yocto/build/poky-3.2/hd60/tmp/work/hd60-oe-linux-gnueabi/neutrino-image/1.0-r0/recipe-sysroot-native/usr/bin/opkg: error while loading shared libraries: libcharset.so.1: cannot open shared object file: No such file or directory
after some research why libiconv libs are being used (which i didn't have installed on the rebuild machine) i found this in libarchive:
configure.ac ( https://github.com/libarchive/libarchive/blob/858fa8eaa9435340d2bda988715e0d9023089bec/configure.ac#L380%20 )
and was able to avoid the error by including 'gettext' to the inherit line in libarchive_3.4.3.bb
Kind regards
Quoted 45 lines · Markus Volk
Hi Folks,
i did some research on building a custom yocto image using gatesgarth branch. The testcase was building an image on one machine and rebuild it on another using sstate mirror. I encountered two issues witch i was able to fix in a way that may also be interesting upstream.The first error:
|/home/flk/yocto/build/poky-3.2/hd51/tmp/work/cortexa15hf-neon-vfpv4-oe-linux-gnueabi/gobject-introspection/1.64.1-r0/recipe-sysroot-native/usr/bin/bison: error while loading shared libraries: libreadline.so.7: cannot open shared object file: No such file or directorythe solution for me was to add 'readline' to DEPENDS in bison_3.7.2.bb .
configure log for bison-native changed from:
checking for readline... no
checkingreadline/readline.husability... no checkingreadline/readline.hpresence... no checking forreadline/readline.h... no checkingreadline/history.husability... no checkingreadline/history.hpresence... no checking forreadline/history.h... noto:
checking for readline... yes
checking how to link with libreadline.../home/flk/yocto/build/poky-3.2/hd51/tmp/work/x86_64-linux/bison-native/3.7.2-r0/recipe-sysroot-native/usr/lib/libreadline.so(quoted diff) +0
-2-Wl,-rpath -Wl,/home/flk/yocto/build/poky-3.2/hd51/tmp/work/x86_64-linux/bison-native/3.7.2-r0/recipe-sysroot-native/usr/libchecking
readline/readline.husability... yes checkingreadline/readline.hpresence... yes checking forreadline/readline.h... yes checkingreadline/history.husability... yes checkingreadline/history.hpresence... yes checking forreadline/history.h... yesand the error disappeared
The second error:
ERROR: neutrino-image-1.0-r0
do_rootfs: Unable to update the package index files. Command '/home/flk/yocto/build/poky-3.2/hd60/tmp/work/hd60-oe-linux-gnueabi/neutrino-image/1.0-r0/recipe-sysroot-native/usr/bin/opkg--volatile-cache -f/home/flk/yocto/build/poky-3.2/hd60/tmp/work/hd60-oe-linux-gnueabi/neutrino-image/1.0-r0/opkg.conf
-t/home/flk/yocto/build/poky-3.2/hd60/tmp/work/hd60-oe-linux-gnueabi/neutrino-image/1.0-r0/temp/ipktemp/
-o/home/flk/yocto/build/poky-3.2/hd60/tmp/work/hd60-oe-linux-gnueabi/neutrino-image/1.0-r0/rootfs
--force_postinstall --prefer-arch-to-version update' returned 127:/home/flk/yocto/build/poky-3.2/hd60/tmp/work/hd60-oe-linux-gnueabi/neutrino-image/1.0-r0/recipe-sysroot-native/usr/bin/opkg: error while loading shared libraries: libcharset.so.1: cannot open shared object file: No such file or directory
Quoted 4 lines
after some research why libiconv libs are being used (which i didn't have installed on the rebuild machine) i found this in libarchive:
configure.ac <https://github.com/libarchive/libarchive/blob/858fa8eaa9435340d2bda988715e0d9023089bec/configure.ac#L380%20>and was able to avoid the error by including 'gettext' to the inherit line in libarchive_3.4.3.bb
Hi Markus,
Thanks for reporting these problems.
The additions that you made also seem to be missing on the master branch.
Could you send a patch to the oe-core list :
as explained here:
https://www.openembedded.org/wiki/How_to_submit_a_patch_to_OpenEmbedded
Thanks,
../Randy
Quoted 5 lines
Kind regards
Signature · 2 lines
# Randy MacLeod # Wind River Linux
I sent patches to [email protected]