From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shawn Jin Date: Mon, 9 Aug 2004 18:41:05 -0700 Subject: [U-Boot-Users] Re: Re: [uClinux-dev] uboot compilation error when using the toolchain arm-elf-tools from uClinux.org In-Reply-To: <20040810001400.GA11472@beast> References: <20040810001400.GA11472@beast> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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