incompatible libmtd.a when compiling the mtd-utils

Artem Bityutskiy Artem.Bityutskiy at nokia.com
Thu Jan 27 05:15:08 EST 2011


On Thu, 2011-01-27 at 11:13 +0100, Peter Korsgaard wrote:
> >>>>> "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?

Yes, I'll do this as soon as I can.

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)




More information about the linux-mtd mailing list