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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
2,629 次查看
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

标签 (2)
1 解答
938 次查看
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 项奖励
3 回复数
938 次查看
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 项奖励
938 次查看
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 项奖励
939 次查看
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 项奖励