All of lore.kernel.org
 help / color / mirror / Atom feed
* rebuild issues using sstate mirror
@ 2021-01-08 11:16 Markus Volk
  2021-01-08 19:34 ` [yocto] " Randy MacLeod
  0 siblings, 1 reply; 3+ messages in thread
From: Markus Volk @ 2021-01-08 11:16 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 2872 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 3181 bytes --]

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

* Re: [yocto] rebuild issues using sstate mirror
  2021-01-08 11:16 rebuild issues using sstate mirror Markus Volk
@ 2021-01-08 19:34 ` Randy MacLeod
  2021-01-09 11:59   ` Markus Volk
  0 siblings, 1 reply; 3+ messages in thread
From: Randy MacLeod @ 2021-01-08 19:34 UTC (permalink / raw)
  To: Markus Volk, yocto

[-- Attachment #1: Type: text/plain, Size: 3484 bytes --]

On 2021-01-08 6:16 a.m., Markus Volk wrote:
> 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


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 :

    openembedded-core@openembedded.org

as explained here:

https://www.openembedded.org/wiki/How_to_submit_a_patch_to_OpenEmbedded

Thanks,

../Randy

>
> Kind regards
>
> 
>

-- 
# Randy MacLeod
# Wind River Linux


[-- Attachment #2: Type: text/html, Size: 4968 bytes --]

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

* Re: rebuild issues using sstate mirror
  2021-01-08 19:34 ` [yocto] " Randy MacLeod
@ 2021-01-09 11:59   ` Markus Volk
  0 siblings, 0 replies; 3+ messages in thread
From: Markus Volk @ 2021-01-09 11:59 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 60 bytes --]

I sent patches to openembedded-core@lists.openembedded.org

[-- Attachment #2: Type: text/html, Size: 60 bytes --]

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

end of thread, other threads:[~2021-01-09 11:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-08 11:16 rebuild issues using sstate mirror Markus Volk
2021-01-08 19:34 ` [yocto] " Randy MacLeod
2021-01-09 11:59   ` Markus Volk

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.