[yocto] Adding GCC to system root image

Khem Raj raj.khem at gmail.com
Thu Jun 21 18:58:31 PDT 2018


On Thu, Jun 21, 2018 at 4:02 PM Krishna Priya
<peddikrishnapriya at gmail.com> wrote:
>
> Hello all,
>
> I am trying to add gcc to the system image by modifying the following files.
> poky/meta-qti-bsp/recipies-products/images/ BASE_IMAGE.inc
>
> + IMAGE_INSTALL +="opkg"
> + IMAGE_INSTALL +="packagegroup-core-buildessential"
>
> poky/build/conf/local.conf
> + EXTRA_IMAGE_FEATURES = "tools-sdk dev-pkgs"
>
> When I build the whole image, I get the following errors :
> update-alternatives: Error: cannot register alternative cmp to /bin/cmp since it is already registered to /usr/bin/cmp
> update-alternatives: Error: cannot register alternative diff to /bin/diff since it is already registered to /usr/bin/diff
> update-alternatives: Error: cannot register alternative cmp to /bin/cmp since it is already registered to /usr/bin/cmp
> update-alternatives: Error: cannot register alternative diff to /bin/diff since it is already registered to /usr/bin/diff
> update-alternatives: Error: cannot register alternative ar to /usr/bin/ar since it is already registered to /bin/ar
> update-alternatives: Error: cannot register alternative strings to /usr/bin/strings since it is already registered to /bin/strings
> .
> .
> .
> .
> .
> ERROR: Multilib check error: duplicate files poky/build/tmp-glibc/work/XXX80XX-oe-linux/machine-drone-image/1.0-r0/multilib/lib32/usr/include/fpu_control.h poky/build/tmp-glibc/work/XXX80XX-oe-linux/machine-drone-image/1.0-r0/rootfs/usr/include/fpu_control.h is not the same
> ERROR: Multilib check error: duplicate files poky/build/tmp-glibc/work/XX80XX-oe-linux/machine-drone-image/1.0-r0/multilib/lib32/usr/include/fpu_control.h poky/build/tmp-glibc/work/apq8096-oe-linux/machine-drone-image/1.0-r0/rootfs/usr/include/fpu_control.h is not the same
> ERROR: Function failed: do_rootfs
>
> Please let me know the workaround to solve this error. Thanks.

perhaps providing more information about which target arch and which
release etc. would be helpful.
If you post Build Configuration thats emitted by bitbake at beginning
of build, it provides good information on baseline.

> Regards,
> -Priya.
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


More information about the yocto mailing list