
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