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
Solved! Go to Solution.
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
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!
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?
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