2010-06-28 09:44:41     Compilation issues tslib and mtd

Document created by Aaronwu Employee on Aug 22, 2013
Version 1Show Document
  • View in full screen mode

2010-06-28 09:44:41     Compilation issues tslib and mtd

Appalayagari Sreedhar (INDIA)

Message: 90684   

 

Hi,

 

I am working with BF527 rev 0.2 custom board and 2009R1-RC1 distribution.

 

I have a touch interface and CFI flash mounted on my HW.

 

I have enabled the build options as FDPIC, enabled the MTD utilties. I have installed the lz0 librray.

 

Compilation of the distribution is not succesful.

 

Please help to resolve the compilation issue i would like to use the both techniques.

 

If i remove any one option the other gets compiled and works properly.

 

Thank you.

QuoteReplyEditDelete

 

 

2010-06-28 12:49:12     Re: Compilation issues tslib and mtd

Mike Frysinger (UNITED STATES)

Message: 90697   

 

you need to post actual error messages.  we cannot work with vague descriptions.

QuoteReplyEditDelete

 

 

2010-06-29 02:20:53     Re: Compilation issues tslib and mtd

Appalayagari Sreedhar (INDIA)

Message: 90708   

 

Hi Mike,

 

Sorry here are the error messages.

 

make[4]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.

/opt/uClinux_2009R1_RC7/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2/../../../../bfin-linux-uclibc/bin/ld: adler32.o: cannot link non-fdpic object file into fdpic executable

/opt/uClinux_2009R1_RC7/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2/../../../../bfin-linux-uclibc/bin/ld: failed to merge target specific data of file adler32.o

/opt/uClinux_2009R1_RC7/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2/../../../../bfin-linux-uclibc/bin/ld: compress.o: cannot link non-fdpic object file into fdpic executable

/opt/uClinux_2009R1_RC7/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2/../../../../bfin-linux-uclibc/bin/ld: failed to merge target specific data of file compress.o

/opt/uClinux_2009R1_RC7/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2/../../../../bfin-linux-uclibc/bin/ld: crc32.o: cannot link non-fdpic object file into fdpic executable

/opt/uClinux_2009R1_RC7/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2/../../../../bfin-linux-uclibc/bin/ld: failed to merge target specific data of file crc32.o

/opt/uClinux_2009R1_RC7/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2/../../../../bfin-linux-uclibc/bin/ld: gzio.o: cannot link non-fdpic object file into fdpic executable

/opt/uClinux_2009R1_RC7/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2/../../../../bfin-linux-uclibc/bin/ld: failed to merge target specific data of file gzio.o

/opt/uClinux_2009R1_RC7/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2/../../../../bfin-linux-uclibc/bin/ld: uncompr.o: cannot link non-fdpic object file into fdpic executable

/opt/uClinux_2009R1_RC7/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2/../../../../bfin-linux-uclibc/bin/ld: failed to merge target specific data of file uncompr.o

/opt/uClinux_2009R1_RC7/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2/../../../../bfin-linux-uclibc/bin/ld: deflate.o: cannot link non-fdpic object file into fdpic executable

/opt/uClinux_2009R1_RC7/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2/../../../../bfin-linux-uclibc/bin/ld: failed to merge target specific data of file deflate.o

/opt/uClinux_2009R1_RC7/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2/../../../../bfin-linux-uclibc/bin/ld: trees.o: cannot link non-fdpic object file into fdpic executable

/opt/uClinux_2009R1_RC7/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2/../../../../bfin-linux-uclibc/bin/ld: failed to merge target specific data of file trees.o

/opt/uClinux_2009R1_RC7/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2/../../../../bfin-linux-uclibc/bin/ld: zutil.o: cannot link non-fdpic object file into fdpic executable

/opt/uClinux_2009R1_RC7/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2/../../../../bfin-linux-uclibc/bin/ld: failed to merge target specific data of file zutil.o

/opt/uClinux_2009R1_RC7/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2/../../../../bfin-linux-uclibc/bin/ld: inflate.o: cannot link non-fdpic object file into fdpic executable

/opt/uClinux_2009R1_RC7/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2/../../../../bfin-linux-uclibc/bin/ld: failed to merge target specific data of file inflate.o

/opt/uClinux_2009R1_RC7/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2/../../../../bfin-linux-uclibc/bin/ld: infback.o: cannot link non-fdpic object file into fdpic executable

/opt/uClinux_2009R1_RC7/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2/../../../../bfin-linux-uclibc/bin/ld: failed to merge target specific data of file infback.o

/opt/uClinux_2009R1_RC7/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2/../../../../bfin-linux-uclibc/bin/ld: inftrees.o: cannot link non-fdpic object file into fdpic executable

/opt/uClinux_2009R1_RC7/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2/../../../../bfin-linux-uclibc/bin/ld: failed to merge target specific data of file inftrees.o

/opt/uClinux_2009R1_RC7/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2/../../../../bfin-linux-uclibc/bin/ld: inffast.o: cannot link non-fdpic object file into fdpic executable

/opt/uClinux_2009R1_RC7/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2/../../../../bfin-linux-uclibc/bin/ld: failed to merge target specific data of file inffast.o

compress.o: In function `compress2':

/home/sreecha/PhaseD/Distribution/uClinux-dist-2009R1-RC1-MCi780/lib/zlib/compress.c:46: warning: relocations between different segments are not supported

/opt/uClinux_2009R1_RC7/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2/../../../../bfin-linux-uclibc/bin/ld: final link failed: Nonrepresentable section on output

collect2: ld returned 1 exit status

make[3]: *** [libz.so.1.2.3] Error 1

make[2]: *** [zlib] Error 2

make[2]: *** Waiting for unfinished jobs....

libtool: install: warning: remember to run `libtool --finish /usr/lib'

libtool: install: warning: remember to run `libtool --finish /usr/lib'

libtool: install: warning: remember to run `libtool --finish /usr/lib/ts/'

libtool: install: warning: remember to run `libtool --finish /usr/lib/ts/'

libtool: install: warning: remember to run `libtool --finish /usr/lib/ts/'

libtool: install: warning: remember to run `libtool --finish /usr/lib/ts/'

libtool: install: warning: remember to run `libtool --finish /usr/lib/ts/'

libtool: install: warning: `../src/libts.la' has not been installed in `/usr/lib'

libtool: install: warning: `../src/libts.la' has not been installed in `/usr/lib'

libtool: install: warning: `../src/libts.la' has not been installed in `/usr/lib'

libtool: install: warning: `../src/libts.la' has not been installed in `/usr/lib'

libtool: install: warning: `../src/libts.la' has not been installed in `/usr/lib'

make[1]: *** [all] Error 2

make: *** [subdirs] Error 1

 

 

Thank you.

QuoteReplyEditDelete

 

 

2010-06-29 02:31:34     Re: Compilation issues tslib and mtd

Mike Frysinger (UNITED STATES)

Message: 90709   

 

as a trivial search would show, you cannot mix FDPIC and FLAT objects.  so dont.

QuoteReplyEditDelete

 

 

2010-06-29 02:52:54     Re: Compilation issues tslib and mtd

Appalayagari Sreedhar (INDIA)

Message: 90710   

 

Dear Mike,

 

You mean we can not use the MTD utils and tslib library compiled together?

 

Is it possible to get the tslib library in FLAT format or MTD utils lz0 library in FDPIC format?

 

Thank you,

QuoteReplyEditDelete

 

 

2010-06-29 11:47:09     Re: Compilation issues tslib and mtd

Robin Getz (UNITED STATES)

Message: 90734   

 

Appalyagari:

 

do a "make clean" - switch everything to fdpic, and then a make.

QuoteReplyEditDelete

 

 

2010-06-30 00:48:21     Re: Compilation issues tslib and mtd

Appalayagari Sreedhar (INDIA)

Message: 90742   

 

Hi Robin

 

It compiled.

 

Thank you.

Attachments

    Outcomes