Shrihari K

Compilation error while building ES2.0 image using LTIB - could not read symbols: File in wrong format

Discussion created by Shrihari K on Jun 29, 2011
Latest reply on Feb 15, 2012 by Tony Garland

Currently running the Host PC on Ubuntu 11.04

Used the LTIB version as L2.6.35_10.11.01_ER_source.tar.gz to build the rootfs.

When we include the X11 libraries which is required for some of the application in LTIB, we get the below error and are stuck...

 

 

gcc -shared  .libs/fcatomic.o .libs/fcblanks.o .libs/fccache.o .libs/fccfg.o .libs/fccharset.o .libs/fcdbg.o .libs/fcdefault.o .libs/fcdir.o .libs/fcfreetype.o .libs/fcfs.o .libs/fcinit.o .libs/fclang.o .libs/fclist.o .libs/fcmatch.o .libs/fcmatrix.o .libs/fcname.o .libs/fcpat.o .libs/fcserialize.o .libs/fcstr.o .libs/fcxml.o .libs/ftglue.o  /usr/lib/i386-linux-gnu/libfreetype.so -lz /usr/lib/i386-linux-gnu/libexpat.so  -Wl,-soname -Wl,libfontconfig.so.1 -o .libs/libfontconfig.so.1.2.0
/usr/lib/i386-linux-gnu/libfreetype.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[3]: *** [libfontconfig.la] Error 1
make[3]: Leaving directory `/home/ubuntu/Desktop/IMX/IMX-515/IMX-515-LTIB/ltib/ltib/rpm/BUILD/fontconfig-2.4.2/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/ubuntu/Desktop/IMX/IMX-515/IMX-515-LTIB/ltib/ltib/rpm/BUILD/fontconfig-2.4.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ubuntu/Desktop/IMX/IMX-515/IMX-515-LTIB/ltib/ltib/rpm/BUILD/fontconfig-2.4.2'
make: *** [all] Error 2
error: Bad exit status from /home/ubuntu/Desktop/IMX/IMX-515/IMX-515-LTIB/ltib/ltib/tmp/rpm-tmp.46929 (%build)


RPM build errors:
    Bad exit status from /home/ubuntu/Desktop/IMX/IMX-515/IMX-515-LTIB/ltib/ltib/tmp/rpm-tmp.46929 (%build)
Build time for fontconfig: 20 seconds

Failed building fontconfig


f_buildrpms() returned an error, exiting
traceback:
 main:560


Started: Wed Jun 29 20:18:08 2011
Ended:   Wed Jun 29 20:20:33 2011
Elapsed: 145 seconds

These packages failed to build:
fontconfig

Build Failed

Exiting on error or interrupt

 

 

any help will be appreciated

Outcomes