AnsweredAssumed Answered

I'm trying to build YOCTO image and a newbie. While bitbaking the image, I received following errors.  Bitbake command: bitbake -k core-image-minimal.  How to solve the errors?  Do we need to make changes in pkgconfig-native package?

Question asked by Snehal Jadhav on Jul 17, 2018
Latest reply on Jul 22, 2018 by Snehal Jadhav

The following shows the errors seen in the log file.

 


DEBUG: Executing shell function do_compile
NOTE: make -j 4
make  all-recursive
make[1]: Entering directory `/home/debaleena/fsl-community-bsp/build/tmp/work/x86_64-linux/pkgconfig-native/0.28+gitAUTOINC+40342dd0ea-r0/build'
Making all in glib
make[2]: Entering directory `/home/debaleena/fsl-community-bsp/build/tmp/work/x86_64-linux/pkgconfig-native/0.28+gitAUTOINC+40342dd0ea-r0/build/glib'
make  all-recursive
make[3]: Entering directory `/home/debaleena/fsl-community-bsp/build/tmp/work/x86_64-linux/pkgconfig-native/0.28+gitAUTOINC+40342dd0ea-r0/build/glib'
Making all in .
make[4]: Entering directory `/home/debaleena/fsl-community-bsp/build/tmp/work/x86_64-linux/pkgconfig-native/0.28+gitAUTOINC+40342dd0ea-r0/build/glib'
make[4]: Leaving directory `/home/debaleena/fsl-community-bsp/build/tmp/work/x86_64-linux/pkgconfig-native/0.28+gitAUTOINC+40342dd0ea-r0/build/glib'
Making all in m4macros
make[4]: Entering directory `/home/debaleena/fsl-community-bsp/build/tmp/work/x86_64-linux/pkgconfig-native/0.28+gitAUTOINC+40342dd0ea-r0/build/glib/m4macros'
make  all-am
make[5]: Entering directory `/home/debaleena/fsl-community-bsp/build/tmp/work/x86_64-linux/pkgconfig-native/0.28+gitAUTOINC+40342dd0ea-r0/build/glib/m4macros'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory `/home/debaleena/fsl-community-bsp/build/tmp/work/x86_64-linux/pkgconfig-native/0.28+gitAUTOINC+40342dd0ea-r0/build/glib/m4macros'
make[4]: Leaving directory `/home/debaleena/fsl-community-bsp/build/tmp/work/x86_64-linux/pkgconfig-native/0.28+gitAUTOINC+40342dd0ea-r0/build/glib/m4macros'
Making all in glib
make[4]: Entering directory `/home/debaleena/fsl-community-bsp/build/tmp/work/x86_64-linux/pkgconfig-native/0.28+gitAUTOINC+40342dd0ea-r0/build/glib/glib'
make  all-recursive
make[5]: Entering directory `/home/debaleena/fsl-community-bsp/build/tmp/work/x86_64-linux/pkgconfig-native/0.28+gitAUTOINC+40342dd0ea-r0/build/glib/glib'
Making all in libcharset
make[6]: Entering directory `/home/debaleena/fsl-community-bsp/build/tmp/work/x86_64-linux/pkgconfig-native/0.28+gitAUTOINC+40342dd0ea-r0/build/glib/glib/libcharset'
make  all-am
make[7]: Entering directory `/home/debaleena/fsl-community-bsp/build/tmp/work/x86_64-linux/pkgconfig-native/0.28+gitAUTOINC+40342dd0ea-r0/build/glib/glib/libcharset'
make[7]: Nothing to be done for `all-am'.
make[7]: Leaving directory `/home/debaleena/fsl-community-bsp/build/tmp/work/x86_64-linux/pkgconfig-native/0.28+gitAUTOINC+40342dd0ea-r0/build/glib/glib/libcharset'
make[6]: Leaving directory `/home/debaleena/fsl-community-bsp/build/tmp/work/x86_64-linux/pkgconfig-native/0.28+gitAUTOINC+40342dd0ea-r0/build/glib/glib/libcharset'
Making all in .
make[6]: Entering directory `/home/debaleena/fsl-community-bsp/build/tmp/work/x86_64-linux/pkgconfig-native/0.28+gitAUTOINC+40342dd0ea-r0/build/glib/glib'
../x86_64-linux-libtool  --tag=CC   --mode=compile gcc  -DHAVE_CONFIG_H -I. -I/home/debaleena/fsl-community-bsp/build/tmp/work/x86_64-linux/pkgconfig-native/0.28+gitAUTOINC+40342dd0ea-r0/git/glib/glib -I..  -I.. -I../glib -I/home/debaleena/fsl-community-bsp/build/tmp/work/x86_64-linux/pkgconfig-native/0.28+gitAUTOINC+40342dd0ea-r0/git/glib/glib -I/home/debaleena/fsl-community-bsp/build/tmp/work/x86_64-linux/pkgconfig-native/0.28+gitAUTOINC+40342dd0ea-r0/git/glib  -DG_LOG_DOMAIN=\"GLib\" -DG_DISABLE_CAST_CHECKS -DGLIB_COMPILATION -DPCRE_STATIC -isystem/home/debaleena/fsl-community-bsp/build/tmp/sysroots/x86_64-linux/usr/include -pthread -Wall -Wstrict-prototypes -Werror=declaration-after-statement -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self -Werror=format-security -Werror=format=2 -Werror=missing-include-dirs -fvisibility=hidden -isystem/home/debaleena/fsl-community-bsp/build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -c -o libglib_2_0_la-gdate.lo `test -f 'gdate.c' || echo '/home/debaleena/fsl-community-bsp/build/tmp/work/x86_64-linux/pkgconfig-native/0.28+gitAUTOINC+40342dd0ea-r0/git/glib/glib/'`gdate.c
x86_64-linux-libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/home/debaleena/fsl-community-bsp/build/tmp/work/x86_64-linux/pkgconfig-native/0.28+gitAUTOINC+40342dd0ea-r0/git/glib/glib -I.. -I.. -I../glib -I/home/debaleena/fsl-community-bsp/build/tmp/work/x86_64-linux/pkgconfig-native/0.28+gitAUTOINC+40342dd0ea-r0/git/glib/glib -I/home/debaleena/fsl-community-bsp/build/tmp/work/x86_64-linux/pkgconfig-native/0.28+gitAUTOINC+40342dd0ea-r0/git/glib -DG_LOG_DOMAIN=\"GLib\" -DG_DISABLE_CAST_CHECKS -DGLIB_COMPILATION -DPCRE_STATIC -isystem/home/debaleena/fsl-community-bsp/build/tmp/sysroots/x86_64-linux/usr/include -pthread -Wall -Wstrict-prototypes -Werror=declaration-after-statement -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self -Werror=format-security -Werror=format=2 -Werror=missing-include-dirs -fvisibility=hidden -isystem/home/debaleena/fsl-community-bsp/build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -c /home/debaleena/fsl-community-bsp/build/tmp/work/x86_64-linux/pkgconfig-native/0.28+gitAUTOINC+40342dd0ea-r0/git/glib/glib/gdate.c -o libglib_2_0_la-gdate.o
/home/debaleena/fsl-community-bsp/build/tmp/work/x86_64-linux/pkgconfig-native/0.28+gitAUTOINC+40342dd0ea-r0/git/glib/glib/gdate.c: In function 'g_date_strftime':
/home/debaleena/fsl-community-bsp/build/tmp/work/x86_64-linux/pkgconfig-native/0.28+gitAUTOINC+40342dd0ea-r0/git/glib/glib/gdate.c:2497:7: error: format not a string literal, format string not checked [-Werror=format-nonliteral]
       tmplen = strftime (tmpbuf, tmpbufsize, locale_format, &tm);
       ^~~~~~
cc1: some warnings being treated as errors
make[6]: *** [libglib_2_0_la-gdate.lo] Error 1
make[6]: Leaving directory `/home/debaleena/fsl-community-bsp/build/tmp/work/x86_64-linux/pkgconfig-native/0.28+gitAUTOINC+40342dd0ea-r0/build/glib/glib'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/home/debaleena/fsl-community-bsp/build/tmp/work/x86_64-linux/pkgconfig-native/0.28+gitAUTOINC+40342dd0ea-r0/build/glib/glib'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/debaleena/fsl-community-bsp/build/tmp/work/x86_64-linux/pkgconfig-native/0.28+gitAUTOINC+40342dd0ea-r0/build/glib/glib'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/debaleena/fsl-community-bsp/build/tmp/work/x86_64-linux/pkgconfig-native/0.28+gitAUTOINC+40342dd0ea-r0/build/glib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/debaleena/fsl-community-bsp/build/tmp/work/x86_64-linux/pkgconfig-native/0.28+gitAUTOINC+40342dd0ea-r0/build/glib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/debaleena/fsl-community-bsp/build/tmp/work/x86_64-linux/pkgconfig-native/0.28+gitAUTOINC+40342dd0ea-r0/build'
make: *** [all] Error 2
ERROR: oe_runmake failed
ERROR: Function failed: do_compile (log file is located at /home/debaleena/fsl-community-bsp/build/tmp/work/x86_64-linux/pkgconfig-native/0.28+gitAUTOINC+40342dd0ea-r0/temp/log.do_compile.2368)

 


Please help me out with this.

Outcomes