I'm trying to build LTIB extracted from L2.6.35_11.03.00_ER_source. I'm running on Fedora 15. It runs for a while and them stops with the following error (in host_config.log):
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: fatal error: lzo/lzo1x.h: No such file or directory
compilation terminated.
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/bob/ltib/tmp/rpm-tmp.46059 (%build)
RPM build errors:
Bad exit status from /home/bob/ltib/tmp/rpm-tmp.46059 (%build)
Build time for mtd-utils: 2 seconds
Failed building mtd-utils
Died at ./ltib line 1380.
traceback:
main::build_host_rpms:1380
main::host_checks:1435
main:542
Started: Fri May 27 10:51:14 2011
Ended: Fri May 27 10:59:11 2011
Elapsed: 477 seconds
These packages failed to build:
mtd-utils
Build Failed
I'm a newbie this stuff so any help getting up-to-speed is greatly appreciated.
Thanks.
For Fedora 15 the package the provides "lzo/lzo1x.h" is lzo-devel
$sudo yum install lzo-devel
$rm -fr /opt/freescale/ltib/usr/src/rpm/BUILD/mtd-utils
and start ltib build;
Use atp-file command to find out which is the right packages that is missing. Maybe you have first to install apt-file tool..
$ apt-file find lzo1x.h
$ liblzo2-dev: /usr/include/lzo/lzo1x.h
Install liblzo2-dev and you will fix your problem.
Before to re-start ltib build remember to manually remove directoy /opt/freescale/ltib/usr/src/rpm/BUILD/mtd-utils
I saw this failure also running Fedora 15 64-bit (missing lzo/lz01x.h) and was able to work around it by:
- deleting the directory /opt/freescale/ltib/usr/src/rpm/BUILD/mtd-utils
(done so the next ltib run will execute)
- Search on the internet for a rpm that provides 32-bit /lib/libz.so.1, one I found was named zlib-1.2.3.-22-fc11.i586.rpm.
- sudo rpm -ivh --force zlib-1.2.3-22-fc11.i586.rpm To force an install
- ./ltib The mtd-utils was able to build.