run ltib problem

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

run ltib problem

Jump to solution
2,678 Views
swapneelsangar
Contributor II

Hiiiii

I install ltib on ubuntu 11.10. install all the patches. but when I run the ltib then it show error

Exiting on error or interrupt

Please see >> /home/rahul/imx53/11.09.01/folder/ltib/host_config.log for details

rahul@rahul:~/imx53/11.09.01/folder/ltib$

 

I check this file so in that it show

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 /home/rahul/imx53/11.09.01/folder/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/rahul/imx53/11.09.01/folder/ltib/dist/lfs-5.1/elftosb/elftosb.spec

Building target platforms: i686

Building for target i686

Executing(%prep): /bin/sh -e /home/rahul/imx53/11.09.01/folder/ltib/tmp/rpm-tmp.89889

+ umask 022

+ cd /opt/freescale/ltib/usr/src/rpm/BUILD

+ cd /opt/freescale/ltib/usr/src/rpm/BUILD

+ rm -rf elftosb-11.09.01

+ tar -xvvf -

+ /bin/gzip -dc /opt/freescale/ltib/usr/src/rpm/SOURCES/elftosb-11.09.01.tar.gz

drwxrwxr-x root/root         0 2011-02-28 23:05 elftosb-11.09.01/

-rw-rw-r-- root/root      1533 2011-02-28 23:05 elftosb-11.09.01/COPYING

-rw-rw-r-- root/root      1884 2011-02-28 23:05 elftosb-11.09.01/ReadMe.txt

drwxrwxr-x root/root         0 2011-02-28 23:05 elftosb-11.09.01/bdfiles/

-rw-rw-r-- root/root      3401 2011-02-28 23:05 elftosb-11.09.01/bdfiles/basic_test_cmd.e

-rw-rw-r-- root/root      5404 2011-02-28 23:05 elftosb-11.09.01/bdfiles/complex.bd

-rw-rw-r-- root/root       563 2011-02-28 23:05 elftosb-11.09.01/bdfiles/habtest.bd

-rw-rw-r-- root/root       112 2011-02-28 23:05 elftosb-11.09.01/bdfiles/simple.e

-rw-rw-r-- root/root      2659 2011-02-28 23:05 elftosb-11.09.01/bdfiles/test_cmd.e

drwxrwxr-x root/root         0 2011-02-28 23:05 elftosb-11.09.01/common/

-rw-rw-r-- root/root      2321 2011-02-28 23:05 elftosb-11.09.01/common/AESKey.cpp

-rw-rw-r-- root/root      3654 2011-02-28 23:05 elftosb-11.09.01/common/AESKey.h

-rw-rw-r-- root/root      2421 2011-02-28 23:05 elftosb-11.09.01/common/Blob.cpp

-rw-rw-r-- root/root      1553 2011-02-28 23:05 elftosb-11.09.01/common/Blob.h

-rw-rw-r-- root/root      1360 2011-02-28 23:05 elftosb-11.09.01/common/BootImage.h

-rw-rw-r-- root/root      6066 2011-02-28 23:05 elftosb-11.09.01/common/DataSource.cpp

-rw-rw-r-- root/root      9216 2011-02-28 23:05 elftosb-11.09.01/common/DataSource.h

-rw-rw-r-- root/root      3660 2011-02-28 23:05 elftosb-11.09.01/common/DataSourceImager.cpp

-rw-rw-r-- root/root      1036 2011-02-28 23:05 elftosb-11.09.01/common/DataSourceImager.h

-rw-rw-r-- root/root      1745 2011-02-28 23:05 elftosb-11.09.01/common/DataTarget.cpp

-rw-rw-r-- root/root      3998 2011-02-28 23:05 elftosb-11.09.01/common/DataTarget.h

-rw-rw-r-- root/root     10445 2011-02-28 23:05 elftosb-11.09.01/common/ELF.h

-rw-rw-r-- root/root     14307 2011-02-28 23:05 elftosb-11.09.01/common/ELFSourceFile.cpp

-rw-rw-r-- root/root      6906 2011-02-28 23:05 elftosb-11.09.01/common/ELFSourceFile.h

-rw-rw-r-- root/root     46497 2011-02-28 23:05 elftosb-11.09.01/common/EncoreBootImage.cpp

-rw-rw-r-- root/root     35659 2011-02-28 23:05 elftosb-11.09.01/common/EncoreBootImage.h

-rw-rw-r-- root/root      4653 2011-02-28 23:05 elftosb-11.09.01/common/EndianUtilities.h

-rw-rw-r-- root/root      2576 2011-02-28 23:05 elftosb-11.09.01/common/EvalContext.cpp

-rw-rw-r-- root/root      2633 2011-02-28 23:05 elftosb-11.09.01/common/EvalContext.h

-rw-rw-r-- root/root      1914 2011-02-28 23:05 elftosb-11.09.01/common/ExcludesListMatcher.cpp

-rw-rw-r-- root/root      1915 2011-02-28 23:05 elftosb-11.09.01/common/ExcludesListMatcher.h

-rw-rw-r-- root/root      3245 2011-02-28 23:05 elftosb-11.09.01/common/GHSSecInfo.cpp

-rw-rw-r-- root/root      2135 2011-02-28 23:05 elftosb-11.09.01/common/GHSSecInfo.h

-rw-rw-r-- root/root      2511 2011-02-28 23:05 elftosb-11.09.01/common/GlobMatcher.cpp

-rw-rw-r-- root/root      1590 2011-02-28 23:05 elftosb-11.09.01/common/GlobMatcher.h

-rw-rw-r-- root/root       812 2011-02-28 23:05 elftosb-11.09.01/common/HexValues.cpp

-rw-rw-r-- root/root       549 2011-02-28 23:05 elftosb-11.09.01/common/HexValues.h

-rw-rw-r-- root/root      2688 2011-02-28 23:05 elftosb-11.09.01/common/IVTDataSource.cpp

-rw-rw-r-- root/root     10408 2011-02-28 23:05 elftosb-11.09.01/common/IVTDataSource.h

-rw-rw-r-- root/root      1516 2011-02-28 23:05 elftosb-11.09.01/common/Logging.cpp

-rw-rw-r-- root/root      7048 2011-02-28 23:05 elftosb-11.09.01/common/Logging.h

-rw-rw-r-- root/root      1185 2011-02-28 23:05 elftosb-11.09.01/common/Operation.cpp

-rw-rw-r-- root/root      4305 2011-02-28 23:05 elftosb-11.09.01/common/Operation.h

-rw-rw-r-- root/root      1466 2011-02-28 23:05 elftosb-11.09.01/common/OptionContext.h

-rw-rw-r-- root/root      4180 2011-02-28 23:05 elftosb-11.09.01/common/OptionDictionary.cpp

-rw-rw-r-- root/root      3236 2011-02-28 23:05 elftosb-11.09.01/common/OptionDictionary.h

-rw-rw-r-- root/root       184 2011-02-28 23:05 elftosb-11.09.01/common/OutputSection.cpp

-rw-rw-r-- root/root      1896 2011-02-28 23:05 elftosb-11.09.01/common/OutputSection.h

-rw-rw-r-- root/root      1557 2011-02-28 23:05 elftosb-11.09.01/common/Random.cpp

-rw-rw-r-- root/root      1138 2011-02-28 23:05 elftosb-11.09.01/common/Random.h

-rw-rw-r-- root/root      2251 2011-02-28 23:05 elftosb-11.09.01/common/RijndaelCBCMAC.cpp

-rw-rw-r-- root/root      1435 2011-02-28 23:05 elftosb-11.09.01/common/RijndaelCBCMAC.h

-rw-rw-r-- root/root      7335 2011-02-28 23:05 elftosb-11.09.01/common/SHA1.cpp

-rw-rw-r-- root/root      3735 2011-02-28 23:05 elftosb-11.09.01/common/SHA1.h

-rw-rw-r-- root/root      5200 2011-02-28 23:05 elftosb-11.09.01/common/SRecordSourceFile.cpp

-rw-rw-r-- root/root      2242 2011-02-28 23:05 elftosb-11.09.01/common/SRecordSourceFile.h

-rw-rw-r-- root/root      3210 2011-02-28 23:05 elftosb-11.09.01/common/SearchPath.cpp

-rw-rw-r-- root/root      1360 2011-02-28 23:05 elftosb-11.09.01/common/SearchPath.h

-rw-rw-r-- root/root      4177 2011-02-28 23:05 elftosb-11.09.01/common/SourceFile.cpp

-rw-rw-r-- root/root      4696 2011-02-28 23:05 elftosb-11.09.01/common/SourceFile.h

-rw-rw-r-- root/root     17992 2011-02-28 23:05 elftosb-11.09.01/common/StELFFile.cpp

-rw-rw-r-- root/root      6620 2011-02-28 23:05 elftosb-11.09.01/common/StELFFile.h

-rw-rw-r-- root/root     14292 2011-02-28 23:05 elftosb-11.09.01/common/StExecutableImage.cpp

-rw-rw-r-- root/root      9642 2011-02-28 23:05 elftosb-11.09.01/common/StExecutableImage.h

-rw-rw-r-- root/root      5980 2011-02-28 23:05 elftosb-11.09.01/common/StSRecordFile.cpp

-rw-rw-r-- root/root      3484 2011-02-28 23:05 elftosb-11.09.01/common/StSRecordFile.h

-rw-rw-r-- root/root      1617 2011-02-28 23:05 elftosb-11.09.01/common/StringMatcher.h

-rw-rw-r-- root/root       842 2011-02-28 23:05 elftosb-11.09.01/common/Value.cpp

-rw-rw-r-- root/root      4152 2011-02-28 23:05 elftosb-11.09.01/common/Value.h

-rw-rw-r-- root/root      3369 2011-02-28 23:05 elftosb-11.09.01/common/Version.cpp

-rw-rw-r-- root/root      1031 2011-02-28 23:05 elftosb-11.09.01/common/Version.h

-rw-rw-r-- root/root     15294 2011-02-28 23:05 elftosb-11.09.01/common/crc.cpp

-rw-rw-r-- root/root       965 2011-02-28 23:05 elftosb-11.09.01/common/crc.h

-rw-rw-r-- root/root      1749 2011-02-28 23:05 elftosb-11.09.01/common/format_string.cpp

-rw-rw-r-- root/root       411 2011-02-28 23:05 elftosb-11.09.01/common/format_string.h

-rw-rw-r-- root/root       428 2011-02-28 23:05 elftosb-11.09.01/common/int_size.h

-rw-rw-r-- root/root     33274 2011-02-28 23:05 elftosb-11.09.01/common/options.cpp

-rw-rw-r-- root/root     16656 2011-02-28 23:05 elftosb-11.09.01/common/options.h

-rw-rw-r-- root/root     90763 2011-02-28 23:05 elftosb-11.09.01/common/rijndael.cpp

-rw-rw-r-- root/root      5729 2011-02-28 23:05 elftosb-11.09.01/common/rijndael.h

-rw-rw-r-- root/root      6510 2011-02-28 23:05 elftosb-11.09.01/common/smart_ptr.h

-rw-rw-r-- root/root       286 2011-02-28 23:05 elftosb-11.09.01/common/stdafx.cpp

-rw-rw-r-- root/root      2238 2011-02-28 23:05 elftosb-11.09.01/common/stdafx.h

-rw-rw-r-- root/root       201 2011-02-28 23:05 elftosb-11.09.01/elftosb.ccscc

-rw-rw-r-- root/root  16092160 2011-02-28 23:05 elftosb-11.09.01/elftosb.ncb

-rw-rw-r-- root/root      3000 2011-02-28 23:05 elftosb-11.09.01/elftosb.sln

-rw-rw-r-- root/root     56320 2011-02-28 23:05 elftosb-11.09.01/elftosb.suo

drwxrwxr-x root/root         0 2011-02-28 23:05 elftosb-11.09.01/elftosb.xcodeproj/

-rw-rw-r-- root/root     46844 2011-02-28 23:05 elftosb-11.09.01/elftosb.xcodeproj/creed.mode1

-rw-rw-r-- root/root     47231 2011-02-28 23:05 elftosb-11.09.01/elftosb.xcodeproj/creed.mode1v3

-rw-rw-r-- root/root    132838 2011-02-28 23:05 elftosb-11.09.01/elftosb.xcodeproj/creed.pbxuser

-rw-rw-r-- root/root     62729 2011-02-28 23:05 elftosb-11.09.01/elftosb.xcodeproj/project.pbxproj

drwxrwxr-x root/root         0 2011-02-28 23:05 elftosb-11.09.01/elftosb2/

-rw-rw-r-- root/root      1958 2011-02-28 23:05 elftosb-11.09.01/elftosb2/BootImageGenerator.cpp

-rw-rw-r-- root/root      2064 2011-02-28 23:05 elftosb-11.09.01/elftosb2/BootImageGenerator.h

-rw-rw-r-- root/root     43570 2011-02-28 23:05 elftosb-11.09.01/elftosb2/ConversionController.cpp

-rw-rw-r-- root/root      5713 2011-02-28 23:05 elftosb-11.09.01/elftosb2/ConversionController.h

-rw-rw-r-- root/root      9427 2011-02-28 23:05 elftosb-11.09.01/elftosb2/Doxyfile

-rw-rw-r-- root/root     31194 2011-02-28 23:05 elftosb-11.09.01/elftosb2/ElftosbAST.cpp

-rw-rw-r-- root/root     31790 2011-02-28 23:05 elftosb-11.09.01/elftosb2/ElftosbAST.h

-rw-rw-r-- root/root       562 2011-02-28 23:05 elftosb-11.09.01/elftosb2/ElftosbErrors.h

-rw-rw-r-- root/root      3254 2011-02-28 23:05 elftosb-11.09.01/elftosb2/ElftosbLexer.cpp

-rw-rw-r-- root/root      2752 2011-02-28 23:05 elftosb-11.09.01/elftosb2/ElftosbLexer.h

-rw-rw-r-- root/root      8371 2011-02-28 23:05 elftosb-11.09.01/elftosb2/EncoreBootImageGenerator.cpp

-rw-rw-r-- root/root      1853 2011-02-28 23:05 elftosb-11.09.01/elftosb2/EncoreBootImageGenerator.h

-rw-rw-r-- root/root      6344 2011-02-28 23:05 elftosb-11.09.01/elftosb2/FlexLexer.h

-rw-rw-r-- root/root     17088 2011-02-28 23:05 elftosb-11.09.01/elftosb2/elftosb.cpp

-rw-rw-r-- root/root     11601 2011-02-28 23:05 elftosb-11.09.01/elftosb2/elftosb2.vcproj

-rw-rw-r-- root/root     65498 2011-02-28 23:05 elftosb-11.09.01/elftosb2/elftosb_lexer.cpp

-rw-rw-r-- root/root      7107 2011-02-28 23:05 elftosb-11.09.01/elftosb2/elftosb_lexer.l

-rw-rw-r-- root/root     99126 2011-02-28 23:05 elftosb-11.09.01/elftosb2/elftosb_parser.tab.cpp

-rw-rw-r-- root/root      4106 2011-02-28 23:05 elftosb-11.09.01/elftosb2/elftosb_parser.tab.hpp

-rw-rw-r-- root/root     25821 2011-02-28 23:05 elftosb-11.09.01/elftosb2/elftosb_parser.y

drwxrwxr-x root/root         0 2011-02-28 23:05 elftosb-11.09.01/encryptgpk/

-rw-rw-r-- root/root     11171 2011-02-28 23:05 elftosb-11.09.01/encryptgpk/encryptgpk.cpp

-rw-rw-r-- root/root      7040 2011-02-28 23:05 elftosb-11.09.01/encryptgpk/encryptgpk.vcproj

drwxrwxr-x root/root         0 2011-02-28 23:05 elftosb-11.09.01/keygen/

-rw-rw-r-- root/root      9424 2011-02-28 23:05 elftosb-11.09.01/keygen/Doxyfile

-rw-rw-r-- root/root      7784 2011-02-28 23:05 elftosb-11.09.01/keygen/keygen.cpp

-rw-rw-r-- root/root      9576 2011-02-28 23:05 elftosb-11.09.01/keygen/keygen.vcproj

-rw-rw-r-- root/root       838 2011-02-28 23:05 elftosb-11.09.01/makefile

-rw-rw-r-- root/root      4373 2011-02-28 23:05 elftosb-11.09.01/makefile.rules

drwxrwxr-x root/root         0 2011-02-28 23:05 elftosb-11.09.01/sbtool/

-rw-rw-r-- root/root      9424 2011-02-28 23:05 elftosb-11.09.01/sbtool/Doxyfile

-rw-rw-r-- root/root     13027 2011-02-28 23:05 elftosb-11.09.01/sbtool/EncoreBootImageReader.cpp

-rw-rw-r-- root/root      3742 2011-02-28 23:05 elftosb-11.09.01/sbtool/EncoreBootImageReader.h

-rw-rw-r-- root/root     19951 2011-02-28 23:05 elftosb-11.09.01/sbtool/sbtool.cpp

-rw-rw-r-- root/root      9866 2011-02-28 23:05 elftosb-11.09.01/sbtool/sbtool.vcproj

-rw-rw-r-- root/root      1675 2011-02-28 23:05 elftosb-11.09.01/stdafx.h

-rw-rw-r-- root/root       692 2011-02-28 23:05 elftosb-11.09.01/test_elftosb.bat

-rwxrwxr-x root/root       892 2011-02-28 23:05 elftosb-11.09.01/test_elftosb.sh

drwxrwxr-x root/root         0 2011-02-28 23:05 elftosb-11.09.01/test_files/

-rw-rw-r-- root/root   1054698 2011-02-28 23:05 elftosb-11.09.01/test_files/ProfileSeed.bin

-rw-rw-r-- root/root     51200 2011-02-28 23:05 elftosb-11.09.01/test_files/ProfileSeedFile50k.bin

-rw-rw-r-- root/root      2444 2011-02-28 23:05 elftosb-11.09.01/test_files/hello_NOR_arm

-rw-rw-r-- root/root      1432 2011-02-28 23:05 elftosb-11.09.01/test_files/hello_NOR_arm.map

-rw-rw-r-- root/root      2496 2011-02-28 23:05 elftosb-11.09.01/test_files/hello_NOR_mixed

-rw-rw-r-- root/root      1476 2011-02-28 23:05 elftosb-11.09.01/test_files/hello_NOR_mixed.map

-rw-rw-r-- root/root      2348 2011-02-28 23:05 elftosb-11.09.01/test_files/hello_NOR_thumb

-rw-rw-r-- root/root      1432 2011-02-28 23:05 elftosb-11.09.01/test_files/hello_NOR_thumb.map

-rw-rw-r-- root/root   1292292 2011-02-28 23:05 elftosb-11.09.01/test_files/hostlink

-rw-rw-r-- root/root   1909984 2011-02-28 23:05 elftosb-11.09.01/test_files/player_linfix.elf

-rw-rw-r-- root/root      2884 2011-02-28 23:05 elftosb-11.09.01/test_files/plugin_complex

-rw-rw-r-- root/root      2068 2011-02-28 23:05 elftosb-11.09.01/test_files/plugin_hello

-rw-rw-r-- root/root    156236 2011-02-28 23:05 elftosb-11.09.01/test_files/redboot_gcc.srec

-rw-rw-r-- root/root     38496 2011-02-28 23:05 elftosb-11.09.01/test_files/rom_nand_ldr_profile

-rw-rw-r-- root/root   1451135 2011-02-28 23:05 elftosb-11.09.01/test_files/sd_player_gcc

-rw-rw-r-- root/root    539928 2011-02-28 23:05 elftosb-11.09.01/test_files/sd_player_gcc.srec

-rw-rw-r-- root/root        33 2011-02-28 23:05 elftosb-11.09.01/test_files/test0.key

drwxrwxr-x root/root         0 2011-02-28 23:05 elftosb-11.09.01/winsupport/

-rw-rw-r-- root/root         0 2011-02-28 23:05 elftosb-11.09.01/winsupport/unistd.h

+ STATUS=0

+ '[' 0 -ne 0 ']'

+ cd elftosb-11.09.01

+ exit 0

Executing(%build): /bin/sh -e /home/rahul/imx53/11.09.01/folder/ltib/tmp/rpm-tmp.89889

+ umask 022

+ cd /opt/freescale/ltib/usr/src/rpm/BUILD

+ cd elftosb-11.09.01

+ make

make -C bld/linux -f /opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-11.09.01/makefile.rules SRC_DIR=/opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-11.09.01 all;

make[1]: Entering directory `/opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-11.09.01/bld/linux'

gcc -g -I/opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-11.09.01/elftosb2 -I/opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-11.09.01/keygen -I/opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-11.09.01/sbtool -I/opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-11.09.01/common -DLinux -c /opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-11.09.01/common/AESKey.cpp

In file included from /opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-11.09.01/common/AESKey.h:10:0,

                 from /opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-11.09.01/common/AESKey.cpp:8:

/opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-11.09.01/common/stdafx.h:30:36: fatal error: /usr/include/sys/types.h: No such file or directory

compilation terminated.

make[1]: *** [AESKey.o] Error 1

make[1]: Leaving directory `/opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-11.09.01/bld/linux'

make: *** [all] Error 2

error: Bad exit status from /home/rahul/imx53/11.09.01/folder/ltib/tmp/rpm-tmp.89889 (%build)

 

 

RPM build errors:

    Bad exit status from /home/rahul/imx53/11.09.01/folder/ltib/tmp/rpm-tmp.89889 (%build)

Build time for elftosb: 0 seconds

 

Failed building elftosb

Died at ./ltib line 1380.

traceback:

main::build_host_rpms:1380

  main::host_checks:1435

   main:542

 

 

Started: Sun Jun 30 02:42:06 2013

Ended:   Sun Jun 30 02:42:07 2013

Elapsed: 1 seconds

 

These packages failed to build:

elftosb

 

Build Failed


Please help me how I can remove this error.

 

Thank you

swapneel

 

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

Labels (2)
0 Kudos
1 Solution
1,750 Views
witekewert-b463
NXP Employee
NXP Employee

I ran into the same problem. The cause is that the #include refers to an absolute path for types.h, which may be located in different places on the build system. Here is how I dealt with this issue:

1. Copy patch (attached) to /opt/freescale/pkgs/

2. Add the lines below to [ltib]/dist/lfs-5.1/elftosb/elftosb.spec:

 

...

Source : %{name}-%{version}-%{release}.tar.gz

Patch0 : elftosb-types_h-fix.patch

BuildRoot : %{_tmppath}/%{name}

  ...

%setup -n %{name}-%{version}-%{release}

%patch0 -p1

%Build

make

...

3. Delete sources from /opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-11.09.01, re-run ltib.

View solution in original post

0 Kudos
15 Replies
1,751 Views
witekewert-b463
NXP Employee
NXP Employee

I ran into the same problem. The cause is that the #include refers to an absolute path for types.h, which may be located in different places on the build system. Here is how I dealt with this issue:

1. Copy patch (attached) to /opt/freescale/pkgs/

2. Add the lines below to [ltib]/dist/lfs-5.1/elftosb/elftosb.spec:

 

...

Source : %{name}-%{version}-%{release}.tar.gz

Patch0 : elftosb-types_h-fix.patch

BuildRoot : %{_tmppath}/%{name}

  ...

%setup -n %{name}-%{version}-%{release}

%patch0 -p1

%Build

make

...

3. Delete sources from /opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-11.09.01, re-run ltib.

0 Kudos
1,750 Views
Yuri
NXP Employee
NXP Employee
0 Kudos
1,750 Views
swapneelsangar
Contributor II

hiiiii

I check this answer .This elftosb-12.04.01.tar.gz and elftosb-12.04.01.tar.gz.md5 files are present at pkgs. But I can't understand how to verify the md5sum of  source package. Please explain it.

Thank you

swapneel

0 Kudos
1,750 Views
XiaoPong
NXP Employee
NXP Employee

elftosb-12.04.01.tar.gz.md5 was generated by following command:

   md5sum elftosb-12.04.01.tar.gz > elftosb-12.04.01.tar.gz.md5

So, you can generate a md5 for your local file, then compare these 2 md5 values. They should be identical.

0 Kudos
1,750 Views
swapneelsangar
Contributor II

hiiiii

This elftosb-11.09.01.tar.gz and elftosb-11.09.01.tar.gz.md5 files are present at pkgs.I find the md5sum of

elftosb-11.09.01.tar.gz in opt/freescale/pkgs . Also find the md5sum elftosb-11.09.01.tar.gz from source package.

rahul@rahul:~$ md5sum /opt/freescale/pkgs/elftosb-11.09.01.tar.gz

10deccaf1af9e9d396ffbf51e7d320c0  /opt/freescale/pkgs/elftosb-11.09.01.tar.gz

rahul@rahul:~$ md5sum imx53/11.09.01/L2.6.35_11.09.01_ER_source/pkgs/elftosb-11.09.01.tar.gz

10deccaf1af9e9d396ffbf51e7d320c0  imx53/11.09.01/L2.6.35_11.09.01_ER_source/pkgs/elftosb-11.09.01.tar.gz

both are same also open the elftosb-11.09.01.tar.gz.md5 files in both the path in text file then they also show same code.
10deccaf1af9e9d396ffbf51e7d320c0  elftosb-11.09.01.tar.gz.

So why this error comes??  Please guide me how to solve this issue.

Thank you

swapneel



0 Kudos
1,750 Views
XiaoPong
NXP Employee
NXP Employee

Hi, Swapneel,

Have you done these env setup commands?

1) install patch-ltib-ubuntu12.04.sh from (https://community.freescale.com/docs/DOC-93455).

2) create a soft link under /usr/include.

     sudo ln -s i386-linux-gun/sys sys

3) install additional packages.

     sudo aptitude -y install asciidoc texlive-latex-base dblatex xutils-dev

     sudo apt-get install texinfo

4) modify ltib/dist/lfs-5.1/base_libs/base_libs.spec.

     ...

     perl -w -e '

     # @ARGV = grep { `file $_` =~ m,ASCII C program text, } @ARGV;

     # exit (0) unless @ARGV;

0 Kudos
1,750 Views
swapneelsangar
Contributor II

Hiiiiii

I am working on ubuntu 11.10. So I install all the prerequisite and all the patches related this given in doc 438-createubuntu1110 ltib 110901. Now I done step 2 ,3 and 4 as you given. After that remove the file elftosb file in path opt/freescale/ltib/usr/scr/rpm/build . again run the ltib . Then also it show same error.

0 Kudos
1,750 Views
XiaoPong
NXP Employee
NXP Employee

Since your Ubuntu version is 11.10, please restore

4) modify ltib/dist/lfs-5.1/base_libs/base_libs.spec.

     ...

     perl -w -e '

     @ARGV = grep { `file $_` =~ m,ASCII C program text, } @ARGV;

     exit (0) unless @ARGV;

This change is for Ubuntu 12.10.

According to error message, types.h does not exist:

/opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-11.09.01/common/stdafx.h:30:36: fatal error: /usr/include/sys/types.h: No such file or directory


/usr/include/sys should contain these header files. Otherwise, installation may incomplete.

acct.h      inotify.h  personality.h  sendfile.h   sysinfo.h      ultrasound.h

bitypes.h   ioctl.h    poll.h         shm.h        syslog.h       un.h

cdefs.h     io.h       prctl.h        signalfd.h   sysmacros.h    unistd.h

debugreg.h  ipc.h      procfs.h       signal.h     termios.h      user.h

dir.h       kdaemon.h  profil.h       socket.h     timeb.h        ustat.h

elf.h       kd.h       ptrace.h       socketvar.h  time.h         utsname.h

epoll.h     klog.h     queue.h        soundcard.h  timerfd.h      vfs.h

errno.h     mman.h     quota.h        statfs.h     times.h        vlimit.h

eventfd.h   mount.h    raw.h          stat.h       timex.h        vm86.h

fcntl.h     msg.h      reboot.h       statvfs.h    ttychars.h     vt.h

file.h      mtio.h     reg.h          stropts.h    ttydefaults.h  vtimes.h

fsuid.h     param.h    resource.h     swap.h       types.h        wait.h

gmon.h      pci.h      select.h       syscall.h    ucontext.h     xattr.h

gmon_out.h  perm.h     sem.h          sysctl.h     uio.h

0 Kudos
1,750 Views
swapneelsangar
Contributor II

hiiiiiiii

I try to check the content in the sys but it show no sys file or directory is present at the path opt/include/sys.I check by going this path so sys file is not there.

This sys file found at the path usr/include/i386-linux-gnu/sys. And in that sys file all header files are present. I try to past this file to usr/include/  but can't do . So how to solve this issue?

THank you

swapneel

0 Kudos
1,750 Views
XiaoPong
NXP Employee
NXP Employee

1. Make sure the account has rights of writing into /opt/freescale

2. Redo ./install

Check if any error msg shows up during installation.

"swapneel sangar" <admin@community.freescale.com<mailto:admin@community.freescale.com>> 於 2013/7/1 下午6:18 寫道:

Freescale Community<https://community.freescale.com/index.jspa>

<https://community.freescale.com/index.jspa>

run ltib problem

created by swapneel sangar<https://community.freescale.com/people/swapneelsangar> in i.MX Community - View the full discussion<https://community.freescale.com/message/337748#337748>

0 Kudos
1,750 Views
swapneelsangar
Contributor II

hiiiiii

I follow all the procedure upto prerequisite  installation install ltib on other path and try to run LTIB but it show same error in host config log file.Is any other option to remove this error or I will try to reinstall ubuntu 10.04 and then try again. Is ubuntu 10.04 is ok for LTIB???

Thank you

swapneel

0 Kudos
1,750 Views
XiaoPong
NXP Employee
NXP Employee

Hi, Swapneel,

It is wired, attach a setup procedure to you. I use 10.04LTS.

Best Regards,

Wilson Hung

0 Kudos
1,750 Views
swapneelsangar
Contributor II

hiiiii

Please send me a complete procedure start to end for installing LTIB on ubuntu 10.04 version

my mail ID is swapneel.sangar@chitaledigitals.com

Thank you

swapneel

0 Kudos
1,750 Views
swapneelsangar
Contributor II

hiiii

Ok I found the attachment .............

I will set up and then replay you shortly.............

Thank you

swapneel

0 Kudos
1,750 Views
swapneelsangar
Contributor II

HIiiii

I install ubuntu 10.04 on my host PC. And install L2.6.35_11.09.01_ER_source_Bundle.tar.gz. So patches are needed or not? and any prerequisite is required for ubuntu 10.04?? 

0 Kudos