Analyze "configure" script after adding PKG_CONFIG_DEBUG_SPEW option
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Analyze "configure" script after adding PKG_CONFIG_DEBUG_SPEW option
Could somebody help me to figure out where is the problem?
I am including partial output from "configure" script where it "adds" directories -after executing "export" - first part of the snippet , but it physically does not create them.
It cannot "find " them later - second part of the snippet.
@line export PKG_CONFIG_LIBDIR = /usr/local/lib/arm-linux-gnueabihf/pkgconfig:/usr/local/arm-linux-gnueabihf/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/arm-linux-gnueabihf/pkgconfig:/usr/arm-linux-gnueabihf/lib/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig (?)
@line export PKG_CONFIG_LIBDIR trace TOK (?)
Package argument - no index = --exists
Package argument - no index = glib-2.0 >= 2.28
Argument #1 = --exists
Argument #2 = glib-2.0 >= 2.28
PKG_CONFIG_DEBUG_SPEW variable enabling debug spew
Adding directory '/media/jim/DEV/GLIB/GLIB_2.54.3/glib-2.54.3' from PKG_CONFIG_PATH
Adding directory '/usr/local/lib/arm-linux-gnueabihf/pkgconfig' from PKG_CONFIG_PATH
Adding directory '/usr/local/arm-linux-gnueabihf/lib/pkgconfig' from PKG_CONFIG_PATH
Adding directory '/usr/local/share/pkgconfig' from PKG_CONFIG_PATH
Adding directory '/usr/lib/arm-linux-gnueabihf/pkgconfig' from PKG_CONFIG_PATH
Adding directory '/usr/arm-linux-gnueabihf/lib/pkgconfig' from PKG_CONFIG_PATH
Adding directory '/usr/lib/pkgconfig' from PKG_CONFIG_PATH
Adding directory '/usr/share/pkgconfig' from PKG_CONFIG_PATH
Global variable definition 'pc_sysrootdir' = '/'
Global variable definition 'pc_top_builddir' = '$(top_builddir)'
Error printing disabled by default due to use of output options --exists, --atleast/exact/max-version, --list-all or no output option at all. Value of --print-errors: 1
Error printing enabled
Adding virtual 'pkg-config' package to list of known packages
...............................
Ignoring file 'test-suite.log' in search directory; not a .pc file
Cannot open directory #2 '/usr/local/lib/arm-linux-gnueabihf/pkgconfig' in package search path: No such file or directory
Cannot open directory #3 '/usr/local/arm-linux-gnueabihf/lib/pkgconfig' in package search path: No such file or directory
Cannot open directory #4 '/usr/local/share/pkgconfig' in package search path: No such file or directory
Cannot open directory #5 '/usr/lib/arm-linux-gnueabihf/pkgconfig' in package search path: No such file or directory
Cannot open directory #6 '/usr/arm-linux-gnueabihf/lib/pkgconfig' in package search path: No such file or directory
Scanning directory #7 '/usr/lib/pkgconfig'
File 'ibus-table.pc' appears to be a .pc file
Could somebody help me to figure out where is the problem?
Code:
Cannot open directory #2 '/usr/local/lib/arm-linux-gnueabihf/pkgconfig' in package search path: No such file or directory
Cannot open directory #3 '/usr/local/arm-linux-gnueabihf/lib/pkgconfig' in package search path: No such file or directory
Cannot open directory #4 '/usr/local/share/pkgconfig' in package search path: No such file or directory
Cannot open directory #5 '/usr/lib/arm-linux-gnueabihf/pkgconfig' in package search path: No such file or directory
Cannot open directory #6 '/usr/arm-linux-gnueabihf/lib/pkgconfig' in package search path: No such file or directory
no, it does not try to create them (but use). It assumes they exist and could not be found.
Thanks,
What confuses me is the "add" , it apparently does not "add" but only "includes" according what PKG_CONFIG_LIBDIR created. So logically the physical directories must be crated BEFORE or same time.
But I do not see any code doing so.
I need to take a closer look at code before /usr/bin/arm-linux-gnueabihf-pkg-config is run.
OK, the consensus is that I am missing the code to build the needed directories.
To do so I need to find out HOW the published source code actually builds / implements the subscript "arm-linux-gnueabihf-pkg-config" which builds the PKG_CONFIG_LIBDIR variables needed for host crosscompliling.
Back to "download source for bluez".
Update
Apparently the "magical" arm-linux-gnueabihf-pkg-config "wrapper" is a product of OS (?).
Here is yet another well documented (!) version from "github".
It is still unclear from where did the original version I have been struggling with came from.
I'll give this one a try to see if it actually builds the required directories and NOT JUST the PKG_CONFIG_LIBDIR which adds reference only.
Quote:
#!/bin/sh
#
# Wrapper script that calls the real pkg-config with the relocated
# sysroot location
#
set -e
Update
Apparently the "magical" arm-linux-gnueabihf-pkg-config "wrapper" is a product of OS (?).
Here is yet another well documented (!) version from "github".
It is still unclear from where did the original version I have been struggling with came from.
I'll give this one a try to see if it actually builds the required directories and NOT JUST the PKG_CONFIG_LIBDIR which adds reference only.
It does not build any directories, it just searches for and adds them if found so they can be used in the make step which does actually build something. It appears you have not built a lot of software from source before. Your problem with the first attempt was it could not find the /usr/local/lib/arm-linux-gnueabihf/pkgconfig as it appears you have not install this required item(s). If it tells you the same again then you have missed installing a required package or it is installed in a location not in the search path like the original error told you.
It does not build any directories, it just searches for and adds them if found so they can be used in the make step which does actually build something. It appears you have not built a lot of software from source before. Your problem with the first attempt was it could not find the /usr/local/lib/arm-linux-gnueabihf/pkgconfig as it appears you have not install this required item(s). If it tells you the same again then you have missed installing a required package or it is installed in a location not in the search path like the original error told you.
I just realized that I am still working with unknown source "wrapper" which builds the required references and NOT with pkg-config package.
As far as your comments goes.
I will repeat - the "wrapper " builds the references from scratch.
I could post the code to try to convince you, but why since you have indicated that I do not know what I am doing -in so may words. So why bother.
The main configure script works just fine when run for native architecture.
There is NOTHING missing in as far as pkg-config PACKAGE goes.
The "host" references are added by the wrapper script and the wrapper itself attempts to make use of them physically hence the physical directories should be build by the wrapper , before the flow is passed to standard pkg-config and then to the main script.
Thanks for all your constructive comments , I do appreciate your time and input.
I really need to find out the original source of the "host" sub-script.
If it tells you the same again then you have missed installing a required package or it is installed in a location not in the search path like the original error told you.
Quote:
Originally Posted by AnneRanch
I will repeat - the "wrapper " builds the references from scratch.
I could post the code to try to convince you, but why since you have indicated that I do not know what I am doing -in so may words. So why bother.
AnneRanch - Rude, dismissive replies to other members who have been kind enough to consider your problem and offer sound comments and advice will not be tolerated in this forum.
Please review the Site FAQ for guidance in posting your questions and general forum usage. From that page...
Quote:
If you are unwilling or unable to ask questions in a manner that allows us to help you, it's unlikely our community will be able to provide you a solution. Unfortunately, serial offenders who show wanton disregard for this request after multiple pointers may be asked to seek help elsewhere.
Please make the effort and be warned that one more time will result in issuance of an infraction.
As suspected ( from get go) , the arm-linux-gnueabihf-pkg-config wrapper script causes "addition" of several path to directory "pkgconfig". Reasonable - it makes "configure" pretty versatile.
One of them , the original default, does contain the required pkg-config package *.pc file.
The PKG_CONFIG_DEBUG_SPEW option reports both success and failures in locating the required *.pc file scanning ALL of these directories. .
In my case verifying the actuall pkg_config package version , verification being part of the "configure" process, was reporting success, and the failure to find another *.pc file.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.