LTIB building error

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

LTIB building error

Jump to solution
3,054 Views
小川崇
Contributor II

Greetings,

I am trying to build ltib iMX53.

L2.6.35_11.03.00_ER_source.tar.gz

I am running Ubuntu 12.04, 32 bit

 

Error:

error: Bad exit status from /home/takashi/iMX53/ltib/tmp/rpm-tmp.28595 (%build)

RPM build errors:
    Bad exit status from /home/takashi/iMX53/ltib/tmp/rpm-tmp.28595 (%build)
Build time for mtd-utils: 22 seconds

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

 

I want to fix this error.
but I don't know how to fix this problem.
I appreciate if someone can help me to solve it

 

Regards,

takashi.

 

Original Attachment has been moved to: Build-result.txt.zip

Labels (1)
0 Kudos
1 Solution
1,804 Views
小川崇
Contributor II


Yes,yes,yes!!!

Finally I succeeded  to build  LTIB on ubuntu12.04.

View solution in original post

0 Kudos
10 Replies
1,804 Views
jack_mao
NXP Employee
NXP Employee

Due to the package version, the ltib is better built on old ubuntu version ,such as 1104, the 1204 will has potential build issue, it will spend some time to fix, you could search the internet for your answer

0 Kudos
1,804 Views
billyang
Contributor III

Hi Junping,

I am trying to build L3.0.35_4.1.0 LTIB to my dev station that has ubuntu 13.10 linux. After downloaded, untared, and installation, I followed an instruction to install all packages needed and did modify sudoers file, and change the mtd-utils.spec to mtd-utils-20060302.spec.

Unfortunately, when I executed ./ltib, it stopped due to errors. Then I cat the host_config.log that shows the error as below. It failed building rpm-fs.  I wonder if you can help me to figure out what is missing or something was wrong.

make[2]: Entering directory `/tmp/rpm-byang/BUILD/rpm-4.0.4/tools'
/bin/sh ../libtool --mode=link gcc  -g -O2 -D_GNU_SOURCE -D_REENTRANT -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts  -o dump  dump.o ../build/librpmbuild.la ../lib/librpm.la ../rpmdb/librpmdb.la ../rpmio/librpmio.la ../popt/libpopt.la 
gcc -g -O2 -D_GNU_SOURCE -D_REENTRANT -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -o .libs/dump dump.o  ../build/.libs/librpmbuild.so ../lib/.libs/librpm.so ../rpmdb/.libs/librpmdb.so ../rpmio/.libs/librpmio.so -lz -lrt -lpthread ../popt/.libs/libpopt.so -Wl,--rpath -Wl,/opt/freescale/ltib/usr/lib
../rpmio/.libs/librpmio.so: undefined reference to `aio_suspend'
../rpmdb/.libs/librpmdb.so: undefined reference to `pthread_condattr_setpshared'
../rpmdb/.libs/librpmdb.so: undefined reference to `pthread_mutexattr_setpshared'
../rpmio/.libs/librpmio.so: undefined reference to `aio_return'
../rpmdb/.libs/librpmdb.so: undefined reference to `pthread_mutex_trylock'
../rpmio/.libs/librpmio.so: undefined reference to `aio_read'
../rpmdb/.libs/librpmdb.so: undefined reference to `pthread_mutexattr_init'
../rpmio/.libs/librpmio.so: undefined reference to `aio_error'
../rpmdb/.libs/librpmdb.so: undefined reference to `pthread_mutexattr_destroy'
../rpmio/.libs/librpmio.so: undefined reference to `aio_cancel'
collect2: error: ld returned 1 exit status
make[2]: *** [dump] Error 1
make[2]: Leaving directory `/tmp/rpm-byang/BUILD/rpm-4.0.4/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/rpm-byang/BUILD/rpm-4.0.4'
make: *** [all-recursive-am] Error 2
error: Bad exit status from /home/byang/mantis/ltib/tmp/rpm-tmp.uhSNNQ (%build)
RPM build errors:
    Bad exit status from /home/byang/mantis/ltib/tmp/rpm-tmp.uhSNNQ (%build)
Build time for rpm-fs: 16 seconds:smileysad:

Failed building rpm-fs
could not glob rpm in: /tmp/rpm-byang/RPMS/x86_64/rpm-fs-* at ./ltib line 2427.
traceback:
main::check_rpm_setup:2427
  main::host_checks:1435
   main:554

Thanks,

Bill Yang

0 Kudos
1,805 Views
小川崇
Contributor II


Yes,yes,yes!!!

Finally I succeeded  to build  LTIB on ubuntu12.04.

0 Kudos
1,804 Views
swapneelsangar
Contributor II

HIiii

I also use ubuntu 12.04 before but it has lots of problems are come.It need some pre build patches to add.  So I uninstall and and install ubuntu 10.04 so Ltib install properly.  Still you want to try on same version then install patches given in ltib_build_host_setup.pdf then try again.

Thank you

swapneel

0 Kudos
1,804 Views
小川崇
Contributor II

Hi.

I want to try on ubuntu12.04.

you said "install paches given in ltib_build_host_setup.pdf then try again"

I have already read ltib_build_host_setup.pdf.

But there is no description about paches.

Is there description about paches on ltib_build_host_setup.pdf ?

0 Kudos
1,804 Views
swapneelsangar
Contributor II

 

Hiiiiiiiii

I send one document . In that all procedure to install LTIB is given

. Please see this.

This will help you.

 

Thanks & Regards

swapneel

1,804 Views
billyang
Contributor III

Hi swapneel,

I have got the ltib installation error on my new installed ubuntu 13.10. My dev station is lenovo with Core i7 (64-bit). The error message as below. Actually I did not understand what is meaning and how to solve it.

error: Bad exit status from /home/byang/mantis/ltib/tmp/rpm-tmp.C7KYSb (%build)
RPM build errors:
    Bad exit status from /home/byang/mantis/ltib/tmp/rpm-tmp.C7KYSb (%build)
Build time for rpm-fs: 120 seconds

Failed building rpm-fs
could not glob rpm in: /tmp/rpm-byang/RPMS/x86_64/rpm-fs-* at ./ltib line 2427.
traceback:
main::check_rpm_setup:2427
  main::host_checks:1435
   main:554

I've checked the /tmp/rpm-byang/RPMS directory, there is no x86_64 subdirectory, of cause there should not have rpm-fs-*. I wonder if you or anyone can provide some kind of information regarding this LTIB build issue.

thanks,

byang

0 Kudos
1,804 Views
OtavioSalvador
Senior Contributor II

I advice you to use Yocto as it avoids all this hassle with Ubuntu and has newer software stack and BSP (11.09.01 but using maintain kernel tree for MX53).

0 Kudos
1,804 Views
jimmychan
NXP TechSupport
NXP TechSupport

Seems you are using the old BSP for i.MX53. Please try the latest one (L2.6.35_11.09). You can download the BSP from here:

https://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=IMX53_SW

0 Kudos
1,804 Views
小川崇
Contributor II

jimmychan

Thanks for the reply.

I am not using the old BSP for i.MX53.

Because my target board is iMX53 for AUTOMOTIVE INFOTAINMENT.

L2.6.35_11.03.00_ER_source.tar.gz is the newest version of SABRE AUTOMOTIVE INFOTAINMENT.

L2.6.35_11.09 is the latest version of QSB.

0 Kudos