Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

U-Boot : 'make' problem

Hello,

I'm trying to compile a Uboot package in order to upload the .srec file to the NIOSII Cyclone board. My problem is that "make" command terminates with this message :

(...)
make: Entering directory `/cygdrive/c/altera/kits/nios2/examples/uboot/u-boot
-1.1.2/post/cpu'
make: `.depend' is up to date.
make: Leaving directory `/cygdrive/c/altera/kits/nios2/examples/uboot/u-boot-
1.1.2/post/cpu'
make -C tools all
make: Entering directory `/cygdrive/c/altera/kits/nios2/examples/uboot/u-boot
-1.1.2/tools'
gcc -Wall -pedantic -idirafter ../include -DTEXT_BASE=0x018e0000 -DUSE_HOSTCC -O
 -c -o img2srec.o img2srec.c
In file included from /usr/include/sys/unistd.h:9,
                 from /usr/include/unistd.h:6,
                 from img2srec.c:61:
/usr/include/sys/types.h:106: conflicting types for `int8_t'
/usr/include/stdint.h:38: previous declaration of `int8_t'
/usr/include/sys/types.h:108: warning: redefinition of `int16_t'
/usr/include/stdint.h:39: warning: `int16_t' previously declared here
/usr/include/sys/types.h:110: warning: redefinition of `int32_t'
/usr/include/stdint.h:40: warning: `int32_t' previously declared here
/usr/include/sys/types.h:112: warning: redefinition of `int64_t'
/usr/include/stdint.h:45: warning: `int64_t' previously declared here
make: ***  Error 1
make: Leaving directory `/cygdrive/c/altera/kits/nios2/examples/uboot/u-boot-
1.1.2/tools'
make: ***  Error 2

It seems that these variables are overlaping each others.

(I've entered "make dk1c20_config" before and everything went ok)

Thanks alot,

Max

18 Replies