From: Wolfgang Denk Date: Wed, 25 Oct 2006 21:27:20 +0200 Subject: [U-Boot-Users] [PATCH 1/6] AVR32: Use -g instead of -gstabs in AFLAGS_DEBUG In-Reply-To: Your message of "Tue, 24 Oct 2006 19:44:35 CDT." <1161737075.5011.8.camel@localhost> Message-ID: <20061025192720.565BC3535EE@atlas.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <1161737075.5011.8.camel@localhost> you wrote: > > Commit 2da2d9a4766063b9848f3a35ad6025499cf87265 is causing build > problems when building the latest MPC8540ADS with the follow tools > installed: > > $ powerpc-unknown-linux-gnu-as How was this configured / built? Ant known to be working standard way like crosstool etc? > The error is: > > powerpc-unknown-linux-gnu-gcc -g -Os -fPIC -ffixed-r14 -meabi -D__KERNEL__ -DTEXT_BASE=0xfff80000 -I/temp/u-boot.work/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /_TOOLS_/.dist0/gnu-gcc-3.4.3-binutils-2.15-powerpc-unknown-linux-gnu > /i686-pc-linux2.4/bin/../lib/gcc/powerpc-unknown-linux-gnu/3.4.3/include -pipe -DCONFIG_PPC -D__powerpc__ -DCONFIG_MPC85xx -DCONFIG_E500 -ffixed-r2 -ffixed-r29 -Wa,-me500 -msoft-float -mno-string -DCONFIG_MPC85xx=1 -DCONFIG_MPC8540=1 -DCONFIG_E500=1 -W > all -Wstrict-prototypes -c -o sched.o sched.c Ummm... but ${CROSS_COMPILE}gcc -g ... is IMHO a perfectly legal way to run GCC: `-g' Produce debugging information in the operating system's native format (stabs, COFF, XCOFF, or DWARF 2). GDB can work with this debugging information. > /_TOOLS_/.dist0/gnu-gcc-3.4.3-binutils-2.15-powerpc-unknown-linux-gnu/i686-pc-linux2.4/bin/../lib/gcc/powerpc-unknown-linux-gnu/3.4.3/../../../../powerpc-unknown-linux-gnu/bin/as: option `-g' is ambiguous > I am not immediately sure what is going on but reverting the commit > fixes the problem. IMHO this is a tool configuration issue. Best regards, Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de I see that Microsoft's campaign to destroy all knowledge of any operating environment but its own environment-of-the-year has succeeded in creating a generation of users who don't understand the concept of a shell... -- L. Peter Deutsch in