安装时候出现了下边的问题,在网上找到教程解决方式:
以上错误是因为/opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-x.x.x/common/stdafx.h,包含的头文件types.h的路径不对导致,修改stdafx.h文件:
1)cd /opt/freescale/pkgs/
2)tar zxvf elftosb-x.x.x.tar.gz
3)修改stdafx.h文件(一个在elftosb-x.x.x,另一个在elftosb-x.x.x/common目录),#include"/usr/include/sys/types.h" 改成 #include"/usr/include/i386-linux-gnu/sys/types.h"
4)重新打包:
tar zcvf elftosb-x.x.x.tar.gz elftosb-x.x.x
5)rm -rf /opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-x.x.x按照步骤进行完然后执行 ./ltib 之后/opt/freescale/ltib/usr/src/rpm/BUILD/目录下又会出现elftosb-x.x.x,然后查看日志,手动删除elftosb-x.x.x,然后执行 ./ltib,结果/opt/freescale/ltib/usr/src/rpm/BUILD/目录下又会出现elftosb-x.x.x。。。。。。。求解救,折腾死了。。
Processing platform: Host support packages
============================================
using /imx6/L3.0.35_4.1.0_130816_source/ltib_install/ltib/config/platform/host/ltib.preconfig
Processing: fake-provides
===========================
Processing: mkspooflinks
==========================
Processing: distcc
====================
Processing: ccache
====================
Processing: m4
================
Processing: bison
===================
Processing: flex
==================
Processing: texinfo
=====================
Processing: autoconf
======================
Processing: automake
======================
Processing: libtool
=====================
Processing: lkc
=================
Processing: wget
==================
Processing: uclinux-cksum
===========================
Processing: genext2fs
=======================
Processing: genromfs
======================
Processing: gen_init_cpio
===========================
Processing: u-boot-tools
==========================
Processing: mtd-utils
=======================
Processing: pkgconfig
=======================
Processing: dtc
=================
Processing: cramfs
====================
Processing: unifdef
=====================
Processing: sparse
====================
Processing: git
=================
Processing: tunctl
====================
Processing: mux_server
========================
Processing: elftosb
=====================
Build path taken because: no prebuilt rpm,
rpmbuild --dbpath ///opt/freescale/ltib/var/lib/rpm --target i686 --define '_unpackaged_files_terminate_build 0' --define '_target_cpu i686' --define '__strip strip' --define '_topdir /opt/freescale/ltib/usr/src/rpm' --define '_prefix /opt/freescale/ltib/usr' --define '_tmppath /imx6/L3.0.35_4.1.0_130816_source/ltib_install/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 /imx6/L3.0.35_4.1.0_130816_source/ltib_install/ltib/dist/lfs-5.1/elftosb/elftosb.spec
Building target platforms: i686
Building for target i686
Executing(%prep): /bin/sh -e /imx6/L3.0.35_4.1.0_130816_source/ltib_install/ltib/tmp/rpm-tmp.80832
+ umask 022
+ cd /opt/freescale/ltib/usr/src/rpm/BUILD
/imx6/L3.0.35_4.1.0_130816_source/ltib_install/ltib/tmp/rpm-tmp.80832: 20: cd: can't cd to /opt/freescale/ltib/usr/src/rpm/BUILD
error: Bad exit status from /imx6/L3.0.35_4.1.0_130816_source/ltib_install/ltib/tmp/rpm-tmp.80832 (%prep)
RPM build errors:
Bad exit status from /imx6/L3.0.35_4.1.0_130816_source/ltib_install/ltib/tmp/rpm-tmp.80832 (%prep)
Build time for elftosb: 0 seconds
Failed building elftosb
Died at ./ltib line 1392.
traceback:
main::build_host_rpms:1392
main::host_checks:1447
main:554
Started: Sat Jun 17 22:30:57 2017
Ended: Sat Jun 17 22:30:57 2017
Elapsed: 0 seconds
These packages failed to build:
elftosb
Build Failed
安装时候
|