Skip to contentSkip to conversation

Could somebody help me

U-Boot-Users 刘涛 4 participants 4 messages Jun 3, 2005

lore
Share & tools
lore

刘涛

author
#0 lore raw

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

#1 lore raw
Quoted 4 lines · ??

I use SCB9328 like board.I got the error blow when I make u-boot use the make command

Quoted 11 lines

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.

Signature · 1 line
Catalin
#2 lore raw
In reply to 刘涛
Quoted 4 lines

I use SCB9328 like board.I got the error blow when I make u-boot use the make command

Quoted 12 lines

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:

Quoted 9 lines

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

#3 lore raw
In reply to 刘涛
Quoted 4 lines · In message <[email protected]> you wrote:

I use SCB9328 like board.I got the error blow when I make u-boot use the make command

Quoted 11 lines

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

Signature · 5 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Flight Reservation systems decide whether or not you exist. If  your
information  isn't in their database, then you simply don't get to go
anywhere."                                            - Arthur Miller