incompatible libmtd.a when compiling the mtd-utils

Peter Korsgaard jacmet at sunsite.dk
Thu Jan 27 05:13:31 EST 2011


>>>>> "wxzzzh" == wxzzzh  <wxzzzh at 163.com> writes:

 wxzzzh> Hi,
 wxzzzh> I was trying to cross compile the mtd-utils-1.4.1, for ARM, using the arm-2009q3 version of arm-none-linux-gnueabi, following the instructions on http://elinux.org/CompilingMTDUtils

 wxzzzh> it always fail with saying: "/home/zh/1808/tool/arm-2009q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/../../../../arm-none-linux-gnueabi/bin/ld: skipping incompatible /home/zh/1808/mtd/mtd-utils-1.4.1/arm-none-linux-gnueabi/lib/libmtd.a when searching for -lmtd
 wxzzzh> /home/zh/1808/tool/arm-2009q3/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lmtd
 wxzzzh> collect2: ld returned 1 exit status"

 wxzzzh> How this happened? and how to solve?
 wxzzzh> Any help appreciated. 	

Redownload the tarball or delete the lib*.a files. The first 1.4.1
tarball contained some build files (for 32bit x86), which confuses your
cross compiler.

Artem, there has been quite some changes since mtd-utils-1.4.1, time for
a new release?

-- 
Bye, Peter Korsgaard



More information about the linux-mtd mailing list