Home/Support/Support Forum/pkg-config error during ConnectCore6 image compilation
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

pkg-config error during ConnectCore6 image compilation

0 votes
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:


| 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 <http://pkg-config.freedesktop.org/>.
| 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 tried to locate my .pc files, there are located here:


/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 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?
asked Jul 1, 2015 in Linux by Tristan New to the Community (4 points)

Please log in or register to answer this question.

1 Answer

0 votes
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

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
answered Jul 1, 2015 by LeonidM Veteran of the Digi Community (3,556 points)
The updated DEY 1.6 documentation is now available at this URL: http://ftp1.digi.com/support/documentation/90001423.pdf.
...