# pkg-config error during ConnectCore6 image compilation

**URL:** <https://forums.digi.com/t/pkg-config-error-during-connectcore6-image-compilation/15056>\
**Category:** Linux\
**Tags:** connectcore6, bitbake, pkg-config\
**Created:** [July 1, 2015, 9:46am UTC](https://forums.digi.com/t/pkg-config-error-during-connectcore6-image-compilation/15056 "2015-07-01T09:46:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tristan](https://avatars.discourse-cdn.com/v4/letter/t/96bed5/32.png) [@Tristan](https://forums.digi.com/u/Tristan)\
**Post date:** [July 1, 2015, 9:46am UTC](https://forums.digi.com/t/pkg-config-error-during-connectcore6-image-compilation/15056/1 "2015-07-01T09:46:12Z")

</div>

Hello,

I am trying to recompile the dey-image-graphical image after a bitbake dey-image-graphical -c cleanall. Now, when i compile, bitbake fails and the following error comes out:

[i]| checking whether to build gtk-doc documentation… no  
| checking for xsltproc… /home/belem/workspace/ccimx6sbc/tmp/sysroots/x86\_64-linux/usr/bin/xsltproc  
| checking for library containing clock\_gettime… none required  
| checking for BLKID… no  
| configure: error: in `/home/belem/workspace/ccimx6sbc/tmp/work/cortexa9hf-vfp-neon-dey-linux-gnueabi/udev/182-r7/build': | configure: error: The pkg-config script could not be found or is too old. Make sure it | is in your PATH or set the PKG_CONFIG environment variable to the full | path to pkg-config. | | Alternatively, you may set the environment variables BLKID_CFLAGS | and BLKID_LIBS to avoid the need to call pkg-config. | See the pkg-config man page for more details. | | To get pkg-config, see . | See `config.log’ for more details  
| Configure failed. The contents of all config.log files follows to aid debugging  
| ERROR: oe\_runconf failed  
| WARNING: exit code 1 from a shell command.  
| ERROR: Function failed: do\_configure (log file is located at /home/belem/workspace/ccimx6sbc/tmp/work/cortexa9hf-vfp-neon-dey-linux-gnueabi/udev/182-r7/temp/log.do\_configure.7962)  
ERROR: Task 1645 (/usr/local/dey\_sbc/sources/poky/meta/recipes-core/udev/udev\_182.bb, do\_configure) failed with exit code ‘1’  
ERROR: Function failed: do\_configure (log file is located at /home/belem/workspace/ccimx6sbc/tmp/work/cortexa9hf-vfp-neon-dey-linux-gnueabi/pkgconfig/0.28-r0/temp/log.do\_configure.7983)  
ERROR: Logfile of failure stored in: /home/belem/workspace/ccimx6sbc/tmp/work/cortexa9hf-vfp-neon-dey-linux-gnueabi/pkgconfig/0.28-r0/temp/log.do\_configure.7983

[…]

| checking whether to list both direct and indirect dependencies… /home/belem/workspace/ccimx6sbc/tmp/work/cortexa9hf-vfp-neon-dey-linux-gnueabi/pkgconfig/0.28-r0/pkg-config-0.28//configure: line 13800: ./libtool: No such file or directory  
| no  
| checking for Win32… no  
| checking if internal glib should be used… no  
| checking for arm-dey-linux-gnueabi-pkg-config… /opt/dey/1.6.2/minimal/ccimx6sbc/sysroots/cortexa9hf-vfp-neon-dey-linux-gnueabi/usr/bin/arm-dey-linux-gnueabi-pkg-config  
| checking pkg-config is at least version 0.9.0… /home/belem/workspace/ccimx6sbc/tmp/work/cortexa9hf-vfp-neon-dey-linux-gnueabi/pkgconfig/0.28-r0/pkg-config-0.28//configure: line 14079: /opt/dey/1.6.2/minimal/ccimx6sbc/sysroots/cortexa9hf-vfp-neon-dey-linux-gnueabi/usr/bin/arm-dey-linux-gnueabi-pkg-config: cannot execute binary file: Exec format error  
| no  
| checking for GLIB… no  
| configure: error: Either a previously installed pkg-config or “glib-2.0 \>= 2.16” could not be found. Please set GLIB\_CFLAGS and GLIB\_LIBS to the correct values or pass --with-internal-glib to configure to use the bundled copy.  
| Configure failed. The contents of all config.log files follows to aid debugging  
| ERROR: oe\_runconf failed  
| WARNING: exit code 1 from a shell command.  
| ERROR: Function failed: do\_configure (log file is located at /home/belem/workspace/ccimx6sbc/tmp/work/cortexa9hf-vfp-neon-dey-linux-gnueabi/pkgconfig/0.28-r0/temp/log.do\_configure.12974)  
ERROR: Task 4190 (/usr/local/dey\_sbc/sources/poky/meta/recipes-devtools/pkgconfig/pkgconfig\_0.28.bb, do\_configure) failed with exit code ‘1’  
NOTE: Tasks Summary: Attempted 5881 tasks of which 5875 didn’t need to be rerun and 2 failed.  
No currently running tasks (5770 of 6386)

Summary: 2 tasks failed:  
/usr/local/dey\_sbc/sources/poky/meta/recipes-core/udev/udev\_182.bb, do\_configure  
/usr/local/dey\_sbc/sources/poky/meta/recipes-devtools/pkgconfig/pkgconfig\_0.28.bb, do\_configure  
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.[/i]

I tried to locate my .pc files, there are located here:

[i]  
/opt/dey/1.6.2/graphical/sysroots/cortexa9hf-vfp-neon-dey-linux-gnueabi/usr/lib/pkgconfig/…

/home/belem/workspace/ccimx6sbc/tmp/work/cortexa9hf-vfp-neon-dey-linux-gnueabi/…[/i]

I also tried to remove and reinstall the pkg-config package on my dev computer(Ubuntu 14.04) using the apt-get remove and apt-get install pkg-config. This package is well installed but the problem seems to be the PKG\_CONFIG variable. How can i specify to bitbake the PKG\_CONFIG path? I tried with export PKG\_CONFIG=/…/…/… just before executing the bitbake compilation, but that did not work.  
Has anyone an idea?

---

<div class="post-metadata">

**Author:** ![LeonidM](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@LeonidM](https://forums.digi.com/u/LeonidM)\
**Post date:** [July 1, 2015, 2:56pm UTC](https://forums.digi.com/t/pkg-config-error-during-connectcore6-image-compilation/15056/2 "2015-07-01T14:56:19Z")

</div>

looks like you are on DEY 1.6.2  
Try upgrading Yocto to 1.6.5 first:  
[http://ftp1.digi.com/support/documentation/90001423\_D.pdf](http://ftp1.digi.com/support/documentation/90001423_D.pdf)

then upgrade workspace projects:  
Updating existing projects  
When updating your installation of Digi Embedded Yocto, you will need to erase the tmp and sstatecache  
directories from existing projects and build them from scratch. Leaving the directories intact  
may result in problems in the build and the final images.

If it still fails try starting workspace project from scratch

---

<div class="post-metadata">

**Author:** ![jlocke](https://avatars.discourse-cdn.com/v4/letter/j/f05b48/32.png) [@jlocke](https://forums.digi.com/u/jlocke)\
**Post date:** [January 4, 2016, 2:33pm UTC](https://forums.digi.com/t/pkg-config-error-during-connectcore6-image-compilation/15056/3 "2016-01-04T14:33:40Z")

</div>

The updated DEY 1.6 documentation is now available at this URL: [http://ftp1.digi.com/support/documentation/90001423.pdf](http://ftp1.digi.com/support/documentation/90001423.pdf).
