[U-Boot-Users] compile error

srini kode srinikode at yahoo.com
Thu Jun 29 02:03:53 CEST 2006


Please find the header file attached.
Below is the output of the make.
Thanks for the help.

regards
Srini

----------
ppc_8xx-gcc -g  -Os   -fPIC -ffixed-r14 -meabi
-fno-strict-aliasing -D__KERNEL__
-DTEXT_BASE=0x80010000
-I/home/skode/work/u-boot/u-boot-1.1.4/include
-fno-builtin -ffreestanding -nostdinc -isystem
/opt/hardhat/devkit/ppc/8xx/lib/gcc-lib/powerpc-hardhat-linux/2.95.2/include
-pipe  -DCONFIG_PPC -D__powerpc__ -DCONFIG_8xx
-ffixed-r2 -ffixed-r29 -mstring -mcpu=860 -msoft-float
-Wall -Wstrict-prototypes -c -o test_burst.o
test_burst.c
In file included from
/home/skode/work/u-boot/u-boot-1.1.4/include/config.h:2,
                 from
/home/skode/work/u-boot/u-boot-1.1.4/include/common.h:35,
                 from test_burst.c:26:
/home/skode/work/u-boot/u-boot-1.1.4/include/configs/ep885.h:76:
Invalid token in expression
/home/skode/work/u-boot/u-boot-1.1.4/include/configs/ep885.h:175:
Invalid token in expression
In file included from test_burst.c:27:
/home/skode/work/u-boot/u-boot-1.1.4/include/exports.h:23:
Invalid token in expression
In file included from
/home/skode/work/u-boot/u-boot-1.1.4/include/exports.h:34,
                 from test_burst.c:27:
/home/skode/work/u-boot/u-boot-1.1.4/include/_exports.h:15:
Invalid token in expression
In file included from
/home/skode/work/u-boot/u-boot-1.1.4/include/config.h:2,
                 from
/home/skode/work/u-boot/u-boot-1.1.4/include/common.h:35,
                 from test_burst.c:26:
/home/skode/work/u-boot/u-boot-1.1.4/include/configs/ep885.h:47:
parse error before `|'
/home/skode/work/u-boot/u-boot-1.1.4/include/configs/ep885.h:47:
stray '\' in program
test_burst.c: In function `test_burst_start':
test_burst.c:176: warning: unsigned int format, long
unsigned int arg (arg 2)
test_burst.c: In function `test_desc':
test_burst.c:255: warning: int format, long int arg
(arg 2)
test_burst.c: In function `test_error':
test_burst.c:281: warning: unsigned int format,
pointer arg (arg 3)
test_burst.c:281: warning: unsigned int format, long
unsigned int arg (arg 4)
test_burst.c:281: warning: unsigned int format, long
unsigned int arg (arg 5)
make[1]: *** [test_burst.o] Error 1
make[1]: Leaving directory
`/home/skode/work/u-boot/u-boot-1.1.4/examples'
make: *** [examples] Error 2


--- Wolfgang Denk <wd at denx.de> wrote:

> In message
> <20060628231631.16647.qmail at web54304.mail.yahoo.com>
> you wrote:
> > I am porting u-boot-1.1.4 for one of our board.
> > I have the below code in my header file.
> 
> There is probably more code (or, to be precise, more
> definitions)  in
> this file...
> 
> > #if (CONFIG_COMMANDS & CFG_CMD_KGDB)
> > #define CFG_CBSIZE 1024 /* Console I/O Buffer Size
>  */
> > #else
> > #define CFG_CBSIZE 256 /* Console I/O Buffer Size 
> */
> > #endif
> > 
> > I am getting a compile error:
> > Invalid token in expression
> 
> And there was no line number or so with this error
> message?
> 
> > Am I missing something?
> 
> Yes: providing enough of context for a helpful
> reply.
> 
> 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
> The optimum committee has no members.
>                                                    -
> Norman Augustine
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ep885.h
Url: http://lists.denx.de/pipermail/u-boot/attachments/20060628/065555a0/attachment.txt 


More information about the U-Boot mailing list