[U-Boot-Users] Could somebody help me

I use SCB9328 like board.I got the error blow when I make u-boot use the make command
arm-linux-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -mshort-load-bytes -msoft-float -D__KERNEL__ -DTEXT_BASE=0x08f00000 -I/home/arm/src/u-boot-1.1.2/include -fno-builtin -ffreestanding -nostdinc -isystem /home/arm/crosstool/arm-linux/gcc-3.4.3-glibc-2.3.3/lib/gcc/arm-linux/3.4.3/include -pipe -DCONFIG_ARM -D__ARM__ -mapcs-32 -march=armv4 -Wall -Wstrict-prototypes -c -o stubs.o stubs.c cc1: error: invalid option `short-load-bytes' make[1]: *** [stubs.o] error 1 make[1]: Leaving directory `/home/arm/src/u-boot-1.1.2/examples' make: *** [examples] error 2

刘涛 cntaor@gmail.com wrote:
I use SCB9328 like board.I got the error blow when I make u-boot use the make command
arm-linux-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -mshort-load-bytes -msoft-float -D__KERNEL__ -DTEXT_BASE=0x08f00000 -I/home/arm/src/u-boot-1.1.2/include -fno-builtin -ffreestanding -nostdinc -isystem /home/arm/crosstool/arm-linux/gcc-3.4.3-glibc-2.3.3/lib/gcc/arm-linux/3.4.3/include -pipe -DCONFIG_ARM -D__ARM__ -mapcs-32 -march=armv4 -Wall -Wstrict-prototypes -c -o stubs.o stubs.c cc1: error: invalid option `short-load-bytes' make[1]: *** [stubs.o] error 1 make[1]: Leaving directory `/home/arm/src/u-boot-1.1.2/examples' make: *** [examples] error 2
-mshort-load-bytes is no longer available in the compiler you use (gcc-2.4.0 or newer). You can use -malignment-traps instead.

I use SCB9328 like board.I got the error blow when I make u-boot use the make command
arm-linux-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -mshort-load-bytes -msoft-float -D__KERNEL__ -DTEXT_BASE=0x08f00000 -I/home/arm/src/u-boot-1.1.2/include -fno-builtin -ffreestanding -nostdinc -isystem /home/arm/crosstool/arm-linux/gcc-3.4.3-glibc-2.3.3/lib/gcc/arm-linux/3.4.3/include -pipe -DCONFIG_ARM -D__ARM__ -mapcs-32 -march=armv4 -Wall -Wstrict-prototypes -c -o stubs.o stubs.c cc1: error: invalid option `short-load-bytes' make[1]: *** [stubs.o] error 1 make[1]: Leaving directory `/home/arm/src/u-boot-1.1.2/examples' make: *** [examples] error 2
How about asking Dr. Google who displays on first result page:
http://gcc.gnu.org/ml/gcc-patches/1999-11n/msg00649.html
Or search the u-boot archive which says:
This has been discussed before, please see the archives.
There was (yet another) an incompatible change in GCC. If you provide a patch that supports both old and new versions of GCC I'll be happy to add it.
Best regards,
Wolfgang Denk
Is searching so damned difficult these days? (o;
best regards rick

In message 42A03FE9.6050902@gmail.com you wrote:
I use SCB9328 like board.I got the error blow when I make u-boot use the make command
arm-linux-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -mshort-load-bytes -msoft-float -D__KERNEL__ -DTEXT_BASE=0x08f00000 -I/home/arm/src/u-boot-1.1.2/include -fno-builtin -ffreestanding -nostdinc -isystem /home/arm/crosstool/arm-linux/gcc-3.4.3-glibc-2.3.3/lib/gcc/arm-linux/3.4.3/include -pipe -DCONFIG_ARM -D__ARM__ -mapcs-32 -march=armv4 -Wall -Wstrict-prototypes -c -o stubs.o stubs.c cc1: error: invalid option `short-load-bytes' make[1]: *** [stubs.o] error 1 make[1]: Leaving directory `/home/arm/src/u-boot-1.1.2/examples' make: *** [examples] error 2
You are using an incompatible toolchain (gcc-3.4 is not supported by U-Boot yet).
Best regards,
Wolfgang Denk
participants (4)
-
Catalin Marinas
-
richard@uclinux.net
-
Wolfgang Denk
-
刘涛