[U-Boot-Users] New user question(s)

Eliasson, Anders (IndSys, GEFanuc, VMIC) Anders.Eliasson at gefanuc.com
Tue Apr 22 17:31:24 CEST 2003


Hello,

I'm attempting to build u-boot for the evb64260 brd.  I'm doing so on a
WinNT4 host with a Cygwin environment and a powerpc-elf cross compiler ( a
Linux env is not an option ).  This is fun but it's become apparent that I
don't know what the heck I'm doing :^).  Most of my problems seem to occur
as a result of include files missing, in the wrong place, or incorrect.
Here's an example of warnings/errors;

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++
make[1]: Entering directory `/cygdrive/d/uboot/uboot030/post/cpu'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/cygdrive/d/uboot/uboot030/post/cpu'
make[1]: Entering directory `/cygdrive/d/uboot/uboot030/examples'
make[1]: `.depend' is up to date.
make[1]: Leaving directory `/cygdrive/d/uboot/uboot030/examples'
make[1]: Entering directory `/cygdrive/d/uboot/uboot030/tools'
gcc -Wall -pedantic -I../include -I.. -DTEXT_BASE=0xfff00000 -DUSE_HOSTCC -O
-c
-o img2srec.o img2srec.c
In file included from img2srec.c:60:
../include/elf.h:67: parse error before `Elf32_Sword'
../include/elf.h:67: warning: type defaults to `int' in declaration of
`Elf32_Sw
ord'
../include/elf.h:67: ANSI C forbids data definition with no type or storage
clas
s
../include/elf.h:419: parse error before `Elf32_Sword'
../include/elf.h:419: warning: no semicolon at end of struct or union
../include/elf.h:420: warning: type defaults to `int' in declaration of
`Elf32_R
ela'
../include/elf.h:420: ANSI C forbids data definition with no type or storage
cla
ss
../include/elf.h:464: parse error before `Elf32_Sword'
../include/elf.h:464: warning: no semicolon at end of struct or union
../include/elf.h:470: parse error before `}'
../include/elf.h:470: warning: type defaults to `int' in declaration of
`Elf32_D
yn'
../include/elf.h:470: ANSI C forbids data definition with no type or storage
cla
ss
../include/elf.h:472: parse error before `_DYNAMIC'
../include/elf.h:472: warning: type defaults to `int' in declaration of
`_DYNAMI
C'
../include/elf.h:472: ANSI C forbids data definition with no type or storage
cla
ss
In file included from
/usr/local/lib/gcc-lib/powerpc-elf/2.95.3/include/unistd.h
:4,
                 from img2srec.c:61:
/usr/local/lib/gcc-lib/powerpc-elf/2.95.3/include/sys/unistd.h:162: parse
error
before `ualarm'
/usr/local/lib/gcc-lib/powerpc-elf/2.95.3/include/sys/unistd.h:162: parse
error
before `__useconds'
/usr/local/lib/gcc-lib/powerpc-elf/2.95.3/include/sys/unistd.h:162: ANSI C
forbi
ds data definition with no type or storage class
../include/elf.h:472: warning: array `_DYNAMIC' assumed to have one element
make[1]: *** [img2srec.o] Error 1
make[1]: Leaving directory `/cygdrive/d/uboot/uboot030/tools'
make: *** [subdirs] Error 1
----------------------------------------------------------------------------
----------------------------------------------------

So I'm thinking my Cygwin environment is not set up correctly, or I've
missed something else.  In any case, has anyone built u-boot in a Win/Cygwin
environment, and if so, would you have any suggestions?  Any general ideas
or suggestions would be appreciated as well.

Thanx,

Anders

VMIC
anders.eliasson at gefanuc.com





More information about the U-Boot mailing list