ltib
[Top][All Lists]
Advanced

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

Re: [Ltib] mtd-utils Packages failed to build


From: Stuart Hughes
Subject: Re: [Ltib] mtd-utils Packages failed to build
Date: Fri, 16 Sep 2011 15:04:09 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.21) Gecko/20110831 Lightning/1.0b2 Thunderbird/3.1.13

Looks like you're using a Freescale BSP and they have packaging errors.  This mtd need lzo built and it has not been.  In the public version I specifically map to an older mtd to avoid this.

Your options:
  • talk to Freescale, ask them to fix
  • Add config/platform/host/pkg_map containing: PKG_MTD_UTILS = mtd-utils-20060302
  • Enable the lzo package to the config/platform/host/ltib.preconfig
Regards, Stuart


On 16/09/11 13:48, Krishna Pavan wrote:
OS is Ubuntu 10.04

I have been trying all the day,but could not get it.
Please help me with it.


Processing platform: Host support packages
============================================
using /home/user/ltib/config/platform/host/ltib.preconfig

Processing: fake-provides
===========================

Processing: mkspooflinks
==========================

Processing: distcc
====================

Processing: ccache
====================

Processing: bison
===================

Processing: flex
==================

Processing: texinfo
=====================

Processing: autoconf
======================

Processing: libtool
=====================

Processing: lkc
=================

Processing: wget
==================

Processing: uclinux-cksum
===========================

Processing: genext2fs
=======================

Processing: genromfs
======================

Processing: gen_init_cpio
===========================

Processing: u-boot-tools
==========================

Processing: mtd-utils
=======================
Build path taken because: no prebuilt rpm,

rpmbuild --dbpath ///opt/freescale/ltib/var/lib/rpm --target x86_64 --define '_unpackaged_files_terminate_build 0' --define '_target_cpu x86_64' --define '__strip strip' --define '_topdir /opt/freescale/ltib/usr/src/rpm' --define '_prefix /opt/freescale/ltib/usr' --define '_tmppath /home/user/ltib/tmp' --define '_rpmdir /opt/freescale/ltib/usr/src/rpm/RPMS'  --define '_mandir /opt/freescale/ltib/usr/share/man' --define '_sysconfdir /opt/freescale/ltib/etc' --define '_localstatedir /var' -bb --clean --rmsource  /home/user/ltib/dist/lfs-5.1/mtd-utils/mtd-utils.spec
Building target platforms: x86_64
Building for target x86_64
Executing(%prep): /bin/sh -e /home/user/ltib/tmp/rpm-tmp.28529
+ umask 022
+ cd /opt/freescale/ltib/usr/src/rpm/BUILD
+ cd /opt/freescale/ltib/usr/src/rpm/BUILD
+ rm -rf mtd-utils
+ /bin/bzip2 -dc /opt/freescale/ltib/usr/src/rpm/SOURCES/mtd-utils-201006.tar.bz2
+ tar -xvvf -
...
gcc -I./include   -DWITHOUT_XATTR -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wextra -Wwrite-strings -Wno-sign-compare -c -o /opt/freescale/ltib/usr/src/rpm/BUILD/mtd-utils/compr_zlib.o compr_zlib.c -g -Wp,-MD,/opt/freescale/ltib/usr/src/rpm/BUILD/mtd-utils/.compr_zlib.c.dep
compr_zlib.c: In function 'jffs2_zlib_compress':
compr_zlib.c:54: warning: unused parameter 'model'
compr_zlib.c: In function 'jffs2_zlib_decompress':
compr_zlib.c:102: warning: unused parameter 'model'
compr_zlib.c: At top level:
compr_zlib.c:130: warning: initialization discards qualifiers from pointer target type
gcc -I./include   -DWITHOUT_XATTR -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wextra -Wwrite-strings -Wno-sign-compare -c -o /opt/freescale/ltib/usr/src/rpm/BUILD/mtd-utils/compr_lzo.o compr_lzo.c -g -Wp,-MD,/opt/freescale/ltib/usr/src/rpm/BUILD/mtd-utils/.compr_lzo.c.dep
compr_lzo.c:29:23: error: lzo/lzo1x.h: No such file or directory
compr_lzo.c: In function 'jffs2_lzo_cmpr':
compr_lzo.c:51: error: 'lzo_uint' undeclared (first use in this function)
compr_lzo.c:51: error: (Each undeclared identifier is reported only once
compr_lzo.c:51: error: for each function it appears in.)
compr_lzo.c:51: error: expected ';' before 'compress_size'
compr_lzo.c:54: warning: implicit declaration of function 'lzo1x_999_compress'
compr_lzo.c:54: error: 'compress_size' undeclared (first use in this function)
compr_lzo.c:56: error: 'LZO_E_OK' undeclared (first use in this function)
compr_lzo.c:49: warning: unused parameter 'model'
compr_lzo.c: In function 'jffs2_lzo_decompress':
compr_lzo.c:72: error: 'lzo_uint' undeclared (first use in this function)
compr_lzo.c:72: error: expected ';' before 'dl'
compr_lzo.c:74: warning: implicit declaration of function 'lzo1x_decompress_safe'
compr_lzo.c:74: error: 'dl' undeclared (first use in this function)
compr_lzo.c:76: error: 'LZO_E_OK' undeclared (first use in this function)
compr_lzo.c:69: warning: unused parameter 'model'
compr_lzo.c: At top level:
compr_lzo.c:84: warning: initialization discards qualifiers from pointer target type
compr_lzo.c: In function 'jffs2_lzo_init':
compr_lzo.c:95: error: 'LZO1X_999_MEM_COMPRESS' undeclared (first use in this function)
make: *** [/opt/freescale/ltib/usr/src/rpm/BUILD/mtd-utils/compr_lzo.o] Error 1
rm /opt/freescale/ltib/usr/src/rpm/BUILD/mtd-utils/doc_loadbios.o /opt/freescale/ltib/usr/src/rpm/BUILD/mtd-utils/flash_erase.o /opt/freescale/ltib/usr/src/rpm/BUILD/mtd-utils/ftl_format.o /opt/freescale/ltib/usr/src/rpm/BUILD/mtd-utils/nanddump.o /opt/freescale/ltib/usr/src/rpm/BUILD/mtd-utils/ftl_check.o
error: Bad exit status from /home/user/ltib/tmp/rpm-tmp.28529 (%build)


RPM build errors:
    Bad exit status from /home/user/ltib/tmp/rpm-tmp.28529 (%build)
Build time for mtd-utils: 3 seconds

Failed building mtd-utils
Died at ./ltib line 1380.
traceback:
 main::build_host_rpms:1380
  main::host_checks:1435
   main:542


Started: Fri Sep 16 18:14:11 2011
Ended:   Fri Sep 16 18:14:15 2011
Elapsed: 4 seconds

These packages failed to build:
mtd-utils

Build Failed


reply via email to

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