[U-Boot-Users] Re: Re: [uClinux-dev] uboot compilation error when using the toolchain arm-elf-tools from uClinux.org
Shawn Jin
shawnxjin at gmail.com
Tue Aug 10 03:41:05 CEST 2004
Dear David,
> > The code is extracted from the header file processor.h.
> >
> > 51> union debug_insn {
> > 52> u32 arm;
> > 53> u16 thumb;
> > 54> };
> > 55>
> > 56> struct debug_entry {
> > 57> u32 address;
> > 58> union debug_insn insn;
> > 59> };
> >
> > However I really don't think there is any syntax error. It might be a
> > toolchain problem?
>
> I think, at least for that version of the toolchain, it implicitly
> defines "arm", and I suspect it defines it to be "1", thus the errors
> you are seeing. You may be able to add a -Uarm to eth build line,
It did solve the problem. Thank you!
Would you please explain a little bit more why the toolchain
implicitly defines "arm"? Should or should not for a toolchain to
define this? Or we can simply re-name "arm" in struct debug_insn to
another name?
--
Best regards,
-Shawn Jin
More information about the U-Boot
mailing list