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

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

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

1,973 Views
ShrihariK
Contributor I

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

Labels (1)
Tags (2)
0 Kudos
5 Replies

911 Views
ACGarland
Contributor III

Here's a link to the freescale forum where this issue is address.

0 Kudos

911 Views
ACGarland
Contributor III

I'm also running into a similar problem on a 64-bit machine during cross-compilation. Seems to be using the host's library instead of a version suitable for the target

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  -L/usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libfreetype.so -lz /usr/lib/x86_64-linux-gnu/libexpat.so  -Wl,-soname -Wl,libfontconfig.so.1 -o .libs/libfontconfig.so.1.2.0
/usr/lib/x86_64-linux-gnu/libfreetype.so: file not recognized: File format not recognized

:

0 Kudos

911 Views
BenBeckwith
Contributor I

Did you get a solution to this? I'm having the same issue w/11.09.

Thanks,

Ben

0 Kudos

911 Views
Don_ng
Contributor I

Check the forums at freescale.  They have a possible solution to this problem.

0 Kudos

911 Views
Matx
Contributor I

Hi,

 

I do have the exact same issue with the i.MX35 could anyone help?

 

Thanks,

 

Mat

0 Kudos