For i.mx6q, ./ltib fails for pkg-config

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

For i.mx6q, ./ltib fails for pkg-config

Jump to solution
2,602 Views
subodhharmalkar
Contributor II

Any idea why ./ltib fails (FSL Gnome Release Packages profile) when Pkgconfig is selected as additional packages. Here's the failed output. Config.log and build spec is attached. Build spec has a peculiar comment:

 

%Build

# don't add --build as glib will fail for a host build due to

# stupid incorrect cross compile detection

./configure --prefix=%{_prefix} --host=$CFGHOST

 

--- Start of failed output

 

checking whether to enable memory profiling... no

checking for arm-linux-gcc... (cached) gcc

checking whether we are using the GNU C compiler... (cached) yes

checking whether gcc accepts -g... (cached) yes

checking for gcc option to accept ANSI C... (cached) none needed

checking dependency style of gcc... (cached) gcc3

checking for gcc option to accept ANSI C... none needed

checking for a BSD-compatible install... /usr/bin/install -c

checking for extra flags to get ANSI library prototypes... configure: error: cannot run test program while cross compiling

See `config.log' for more details.

configure: error: /bin/bash './configure' failed for glib-1.2.8

error: Bad exit status from /home/subodh/ltib/tmp/rpm-tmp.95638 (%build)

 

 

RPM build errors:

    Bad exit status from /home/subodh/ltib/tmp/rpm-tmp.95638 (%build)

Build time for pkgconfig: 13 seconds

 

Failed building pkgconfig

 

 

f_buildrpms() returned an error, exiting

traceback:

main:572

 

 

Started: Sun Nov 25 09:53:31 2012

Ended:   Sun Nov 25 12:47:22 2012

Elapsed: 10431 seconds

 

These packages failed to build:

pkgconfig

 

Build Failed

 


Original Attachment has been moved to: config.log.zip

Original Attachment has been moved to: pkgconfig.spec.zip

Labels (2)
1 Solution
911 Views
jimmychan
NXP TechSupport
NXP TechSupport

Seems it is a common standard error when building pkgconfig because glib cannot cross compile.

http://comments.gmane.org/gmane.comp.package-management.pkg-config/342

View solution in original post

0 Kudos
3 Replies
911 Views
konstantinkoval
Contributor II

Hi,

problem with pkg-config-0.21 still exists in L3.0.35_4.1.0_ER_SOURCE_BSP. Even, if I set "cross_compiling=no" in pkg-config-0.21/glib-1.2.8/configure to "yes". Because of that I can't build pkg-config for my SABRE platform for Smart Devices (i.MX6Q). Is there any suitable solution for this problem? Please help!

Thanks!

0 Kudos
911 Views
ieio
Contributor IV

Hi,

as suggested in http://comments.gmane.org/gmane.comp.package-management.pkg-config/342 I added --with-installed-glib in ltib/dist/lfs-5.1/pkgconfig/pkgconfig.spec but compilation fails.

Has someone solved it?

0 Kudos
912 Views
jimmychan
NXP TechSupport
NXP TechSupport

Seems it is a common standard error when building pkgconfig because glib cannot cross compile.

http://comments.gmane.org/gmane.comp.package-management.pkg-config/342

0 Kudos