ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] Disabling glib package test - Freescale M54418


From: Stuart Hughes
Subject: Re: [Ltib] Disabling glib package test - Freescale M54418
Date: Thu, 04 Apr 2013 20:36:22 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130308 Thunderbird/17.0.4

Hi Francois,

I didn't really follow that completely what you are saying.

The pkg-config in LTIB is setup to work with cross compile.  It's a
"special" patched version in /opt/ltib/usr/bin/pkg-config that is able
to use a relative path to figure out include/libs.

Am I right in thinking the problem you have is you're trying to build a
package and are getting this error:

>> checking for growing stack pointer... configure: error: in
>> `/ltib/ltib-modelo-20100709/rpm/BUILD/pkg-config-0.28/glib':
>> *configure: error: cannot run test program while cross compiling*
>> See `config.log' for more details

If so, then I don't think pkg-config (being called from configure) is
the problem.  As I tried to say before you need to fix the configure
script in the package you are adding so that it does not have to run the
cross compiled test.

What package are you trying to build?

Regards, Stuart

On 03/04/13 20:30, Francois Bouchard wrote:
> Hi Stuart,
> 
> Having read a lot on the subject, it is indeed hard to cross-compile
> module pkg-config.  I have read that since pkg-config ver 0.28, glib
> must be built before it, and by setting GLIB_FLAGS and GLIB_LIBS,
> pkg-config won't be used.
> 
> But there is differences in the options we have for glib
> (--with-internal-glib which is the one bundled with it, and
> --with-installed-glib)
> 
> So my guess is that for pkg-config, as we build glib first, the option
> passed to ./configure is --with-installed-glib, but then again GLIB_LIBS
> and GLIB_FLAGS must be assigned.  I'm there now.
> 
> But, again here we are cross-compiling so what it is written on the net
> doesn't always apply.
> 
> Francois
> 
> 
> 
> 
> 2013/3/28 Stuart Hughes <address@hidden <mailto:address@hidden>>
> 
>     Hi Francios,
> 
>     In the new package you are trying to add you will need to add a patch to
>     change the configure script so that it does not try to run the test that
>     is failing.
> 
>     As the output is showing, the test it is trying to do won't work when
>     cross compiling.  This is fairly common and you can check in other
>     packages (sorry I can't recall) that have similar changes applied.
> 
>     If you're lucky sometimes a package has an option to configure that will
>     make it work for cross compiling.  You will need to google to find out
>     if this applied for your package (what is it?)
> 
>     Regards, Stuart
> 
>     On 27/03/13 19:31, Francois Bouchard wrote:
>     > Hi,
>     >
>     > We are trying since a couple of days to add some package to litb
>     and it
>     > basically won't compile with package pkg-config.  We build it using
>     > --with-internal-glib
>     >
>     > The following error occurs when using --with-internal-glib flag to
>     > configure pkg-config:
>     > (.....)
>     > checking for growing stack pointer... configure: error: in
>     > `/ltib/ltib-modelo-20100709/rpm/BUILD/pkg-config-0.28/glib':
>     > *configure: error: cannot run test program while cross compiling*
>     > See `config.log' for more details
>     > configure: error: ./configure failed for glib
>     >
>     > Now from where can you disable the test program, in which script?
>     >
>     > Thanks,
>     > Francois
>     >
>     >
>     > _______________________________________________
>     > LTIB home page: http://ltib.org
>     >
>     > Ltib mailing list
>     > address@hidden <mailto:address@hidden>
>     > https://lists.nongnu.org/mailman/listinfo/ltib
>     >
> 
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]