AnsweredAssumed Answered

LTIB LIBMPEG2 Compilation Error

Question asked by Steve Scheidecker on May 20, 2013
Latest reply on Oct 10, 2013 by GraceH

I downloaded the latest BSP and am attempting to create image using LTIB.  I have selected the libmpeg2 package which is causing the error below.  Searching Google I have been unable to find anyone else which has had a similar issue, does anyone have guidance on a resolution?  Output is below:

 

/bin/bash ../../libtool --tag=CC --mode=link gcc -Wall -g  -O3 -fomit-frame-pointer -fno-common -prefer-non-pic-o libmpeg2convert.la -rpath /usr/lib -no-undefined rgb.lo uyvy.lo libmpeg2convertarch.la

gcc -shared  .libs/rgb.o .libs/uyvy.o -Wl,--whole-archive ./.libs/libmpeg2convertarch.a -Wl,--no-whole-archive   -Wl,-soname -Wl,libmpeg2convert.so.0 -o .libs/libmpeg2convert.so.0.0.0

/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.6.2/../../../../arm-fsl-linux-gnueabi/bin/ld: .libs/rgb.o: relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC

.libs/rgb.o: could not read symbols: Bad value

collect2: ld returned 1 exit status

make[2]: *** [libmpeg2convert.la] Error 1

make[2]: Leaving directory `/home/steve/ltib/ltib/rpm/BUILD/mpeg2dec-0.4.1/libmpeg2/convert'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/home/steve/ltib/ltib/rpm/BUILD/mpeg2dec-0.4.1/libmpeg2'

make: *** [all-recursive] Error 1

error: Bad exit status from /home/steve/ltib/ltib/tmp/rpm-tmp.7157 (%build)

 

 

RPM build errors:

Bad exit status from /home/steve/ltib/ltib/tmp/rpm-tmp.7157 (%build)

Build time for libmpeg2: 14 seconds

 

Failed building libmpeg2

 

 

f_buildrpms() returned an error, exiting

traceback:

main:572

 

 

Started: Mon May 20 08:20:33 2013

Ended:   Mon May 20 08:20:51 2013

Elapsed: 18 seconds

 

These packages failed to build:

libmpeg2

 

Build Failed

 

Exiting on error or interrupt

 

 


Outcomes