LTIB install -- Failed building lkc

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LTIB install -- Failed building lkc

4,218 Views
xuankong
Contributor II

I am trying to install LTIB for my I.MX6 SoloLite board. I am using Ubuntu 12.04 LTS and I have installed the dependencies as well as patched LTIB. I am stuck when running the LTIB with the following command.

xuankong@ubuntu:~/Documents/imx6install/ltib$./ltib -m config

 

The log file says:

collect2: ld returned 1 exit status

make: *** [mconf] Error 1

error: Bad exit status from /home/kongxuan/Documents/imx6install/ltib/tmp/rpm-tmp.17328 (%build)

 

RPM build errors:

    Bad exit status from /home/kongxuan/Documents/imx6install/ltib/tmp/rpm-tmp.17328 (%build)

Build time for lkc: 1 seconds

 

Failed building lkc

Died at ./ltib line 1392.

traceback:

main::build_host_rpms:1392

  main::host_checks:1447

   main:554

 

I followed this solution Re: LTIB install problem,

deleted the files explicitly using the following commands

xuankong@ubuntu:~/Documents/imx6install/ltib$ ls -ltr /opt/freescale/ltib/usr/src/rpm/BUILD/

xuankong@ubuntu:~/Documents/imx6install/ltib$ rm -rf /opt/freescale/ltib/usr/src/rpm/BUILD/lkc-1.4

 

I also cleaned the garbage from failure:

xuankong@ubuntu:~/Documents/imx6install/ltib$ ./ltib -m distclean


cleaned and cleared the cache:

xuankong@ubuntu:~/Documents/imx6install/ltib$ ccache -c

xuankong@ubuntu:~/Documents/imx6install/ltib$ ccache -C


Then, re-run LTIB:

xuankong@ubuntu:~/Documents/imx6install/ltib$ ./ltib -m config

 

but the error still occurs. I attached my log files and please help me to solve this problem.

Any ideas?

Original Attachment has been moved to: host_config.log.zip

4 Replies

897 Views
xuankong
Contributor II

This is the tutorial for i.MX53 under Ubuntu 11.10. Is it also suitable for i.MX6 under Ubuntu 12.04 LTS?

0 Kudos

897 Views
Yuri
NXP Employee
NXP Employee

Yes.

0 Kudos

896 Views
xuankong
Contributor II

Hi Yuri,

I followed your suggestion, but did not solve my problem :smileysad:

After patching LTIB, the above error did not occur BUT I am stuck on "Failing to build wget". The details are listed below.

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

Build path taken because: directory build, no prebuilt rpm,

Cowardly refusing to clobber existing directory:
/opt/freescale/ltib/usr/src/rpm/BUILD/wget-1.9.1
Remove this by hand if you really want to rebuild this package from scratch

Died at ./ltib line 1392.
traceback:
main::build_host_rpms:1392
main::host_checks:1447
main:554

I tried to fix it by remove wget -1.9.1 by hand and rebuiled this package from scratch. BUT a NEW problem occurs.

The log file shows:

Processing: wget

==================

Build path taken because: no prebuilt rpm,

….

make[1]: *** [wget] Error 1
make[1]: Leaving directory `/opt/freescale/ltib/usr/src/rpm/BUILD/wget-1.9.1/src'
make: *** [src] Error 2
error: Bad exit status from /home/kongxuan/Documents/imx6install/ltib/tmp/rpm-tmp.57542 (%build)

RPM build errors:
    Bad exit status from /home/kongxuan/Documents/imx6install/ltib/tmp/rpm-tmp.57542 (%build)
Build time for wget: 16 seconds

Failed building wget
Died at ./ltib line 1392.
traceback:
main::build_host_rpms:1392
  main::host_checks:1447
   main:554

It seems like I did not have wget rpm package. I attached a new log file here.

Please help me to solve the problem.

Best,

Xuan


0 Kudos