* incompatible libmtd.a when compiling the mtd-utils
@ 2011-01-26 15:51 wxzzzh
2011-01-27 10:13 ` Peter Korsgaard
0 siblings, 1 reply; 4+ messages in thread
From: wxzzzh @ 2011-01-26 15:51 UTC (permalink / raw)
To: linux-mtd
Hi,
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
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
/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
collect2: ld returned 1 exit status"
How this happened? and how to solve?
Any help appreciated.
Regards.
--------------
Zhu
2011-01-26
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: incompatible libmtd.a when compiling the mtd-utils
2011-01-26 15:51 incompatible libmtd.a when compiling the mtd-utils wxzzzh
@ 2011-01-27 10:13 ` Peter Korsgaard
2011-01-27 10:15 ` Artem Bityutskiy
2011-01-29 17:08 ` Artem Bityutskiy
0 siblings, 2 replies; 4+ messages in thread
From: Peter Korsgaard @ 2011-01-27 10:13 UTC (permalink / raw)
To: wxzzzh, Artem Bityutskiy; +Cc: linux-mtd
>>>>> "wxzzzh" == wxzzzh <wxzzzh@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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: incompatible libmtd.a when compiling the mtd-utils
2011-01-27 10:13 ` Peter Korsgaard
@ 2011-01-27 10:15 ` Artem Bityutskiy
2011-01-29 17:08 ` Artem Bityutskiy
1 sibling, 0 replies; 4+ messages in thread
From: Artem Bityutskiy @ 2011-01-27 10:15 UTC (permalink / raw)
To: Peter Korsgaard; +Cc: wxzzzh, linux-mtd
On Thu, 2011-01-27 at 11:13 +0100, Peter Korsgaard wrote:
> >>>>> "wxzzzh" == wxzzzh <wxzzzh@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 (Артём Битюцкий)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: incompatible libmtd.a when compiling the mtd-utils
2011-01-27 10:13 ` Peter Korsgaard
2011-01-27 10:15 ` Artem Bityutskiy
@ 2011-01-29 17:08 ` Artem Bityutskiy
1 sibling, 0 replies; 4+ messages in thread
From: Artem Bityutskiy @ 2011-01-29 17:08 UTC (permalink / raw)
To: Peter Korsgaard; +Cc: wxzzzh, linux-mtd
On Thu, 2011-01-27 at 11:13 +0100, Peter Korsgaard wrote:
> Artem, there has been quite some changes since mtd-utils-1.4.1, time for
> a new release?
Done.
ftp://ftp.infradead.org/pub/mtd-utils/mtd-utils-1.4.2.tar.bz2
Thanks for reminding.
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-01-29 17:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-26 15:51 incompatible libmtd.a when compiling the mtd-utils wxzzzh
2011-01-27 10:13 ` Peter Korsgaard
2011-01-27 10:15 ` Artem Bityutskiy
2011-01-29 17:08 ` Artem Bityutskiy
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.