[U-Boot-Users] "smc91111_eeprom.c" build Error

Aubrey aubreylee at gmail.com
Mon Feb 27 05:24:25 CET 2006


Hi all,

When I got the current source code by git, I run into a build error.
The following is the log message:
======================================================
bfin-uclinux-gcc -g  -Os   -ffixed-P5 -D__KERNEL__
-DTEXT_BASE=0x07FC0000
-I/home/aubrey/main-line-uboot/patch/work/include -fno-builtin
-ffreestanding -nostdinc -isystem
/home/aubrey/cvs/toolchain-uclinux/lib/gcc/bfin-uclinux/3.4.5/include
-pipe  -DCONFIG_BLACKFIN -D__blackfin__
-I/home/aubrey/main-line-uboot/patch/work -Wall -Wstrict-prototypes -c
-o smc91111_eeprom.o smc91111_eeprom.c
smc91111_eeprom.c: In function `smc91111_eeprom':
smc91111_eeprom.c:222: error: missing terminating " character
smc91111_eeprom.c:223:11: invalid suffix "x" on integer constant
smc91111_eeprom.c:223: error: syntax error before "with"
smc91111_eeprom.c:223:21: invalid suffix "x" on integer constant
smc91111_eeprom.c:223: error: stray '\' in program
smc91111_eeprom.c:223: error: missing terminating " character
smc91111_eeprom.c:232: error: case label not within a switch statement
smc91111_eeprom.c:235: error: case label not within a switch statement
smc91111_eeprom.c:238: error: case label not within a switch statement
smc91111_eeprom.c:241: error: case label not within a switch statement
smc91111_eeprom.c:244: error: `default' label not within a switch statement
smc91111_eeprom.c: At top level:
smc91111_eeprom.c:250: error: syntax error before "return"
make[1]: *** [smc91111_eeprom.o] Error 1
make[1]: Leaving directory `/home/aubrey/main-line-uboot/patch/work/examples'
make: *** [examples] Error 2
========================================================

I found in the file "./example/smc9111_eeprom.c", if changed
------------
 printf ("Writing MAC register bank %i,
                                        reg %02x with %04x\n", reg >>
4, reg & 0xE, value);
------------
to
------------
 printf ("Writing MAC register bank %i, reg %02x with %04x\n",
                                        reg >> 4, reg & 0xE, value);
------------

The problem is gone away.

Is it a typo?

Regards,
Aubrey




More information about the U-Boot mailing list