This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[OT] RE: Does make have ARM version?
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'Wenbin Zhang'" <zhangwenbin at gmail dot com>
- Cc: <binutils at sourceware dot org>
- Date: Tue, 20 Mar 2007 12:35:34 -0000
- Subject: [OT] RE: Does make have ARM version?
- References: <78671ac40703191338o59e967a3na1f1fe82c109b896@mail.gmail.com> <036101c76a67$6bcf6c40$2e08a8c0@CAM.ARTIMI.COM> <78671ac40703191419u3cc8750ey2c22583f0b21ed07@mail.gmail.com>
On 19 March 2007 21:19, Wenbin Zhang wrote:
> Hi Dave,
Hi Wenbin, I've moved this conversation across from the make mailing list to
the binutils mailing list, since this seems likely to be a problem with your
binutils version. For those who're just joining us, the symptom is...
if arm-linux-gcc -DLOCALEDIR=\"/usr/local/share/locale\"
-DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\"
-DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT implicit.o -MD -MP -MF
".deps/implicit.Tpo" -c -o implicit.o implicit.c; \
then mv -f ".deps/implicit.Tpo" ".deps/implicit.Po"; else rm -f
".deps/implicit.Tpo"; exit 1; fi
/tmp/ccOKs3Ho.s: Assembler messages:
/tmp/ccOKs3Ho.s:2171: Error: immediate expression expected -- `wstrw
wcgr0,[r2,r1,asl#2]'
make[2]: *** [implicit.o] Error 1
which I'm guessing represents either a mismatch between binutils and gcc
versions, or a bug in the version of binutils used.
> Thank you very much, i tried
> #arm-linux-gcc -v
> gcc version 3.3.6
>
> #arm-linux-as -v
> GNU assembler version 2.15 (arm-linux) using BFD version 2.15
>
> Is that correct?
I think you probably need to try more recent binutils. There are known to
have been a few bugs in that version, so it would be worth trying 2.16 or even
the very recent 2.17. Binutils is very simple to compile for a cross-target,
much much easier than gcc; it should be as simple as unpack the tarball, run
"./configure --prefix=<your existing toolchain prefix> --target=arm-linux &&
make all && make install".
> Btw, I have no arm-linux-gas. The only thing is arm-linux-as.
Sorry for the confusion; they are one and the same. 'GAS' means the Gnu
assembler, but it installs itself under the filename 'as' (with or without
target-specific prefix) because that's the traditional command to invoke an
assembler. (So you could also say that 'GAS' stands for 'Gnu as').
cheers,
DaveK
--
Can't think of a witty .sigline today....