This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

U-Boot compile fails

Other Parts Discussed in Thread: AM1808

I'm trying to follow the Rebuilding U-Boot for the AM1808 eXperiementer kit following the instructions in the GSG (http://processors.wiki.ti.com/index.php/GSG:_Building_Software_Components_for_OMAP-L1#Rebuilding_U-Boot).  I've installed the Code Sourcery tools as instructed here (http://processors.wiki.ti.com/index.php/GSG:_Installing_the_Software_for_OMAP-L138#Downloading_and_installing_the_Code_Sourcery_tools) and added them to my path.

 

When executing the 'host$ make all CROSS_COMPILE=arm-none-linux-gnueabi-' step I get a ton of errors.  A number of include files are not being found and I suspect that it has something to do with all of the Nothing to be done for `_depend' messages that show up early on.

builder@builder-desktop:~/src/uboot-03.20.00.12$ make all CROSS_COMPILE=arm-none-linux-gnueabi-

for dir in tools examples/standalone examples/api ; do make -C $dir _depend ; done

make[1]: Entering directory `/home/builder/src/uboot-03.20.00.12/tools'

make[1]: Nothing to be done for `_depend'.

make[1]: Leaving directory `/home/builder/src/uboot-03.20.00.12/tools'

make[1]: Entering directory `/home/builder/src/uboot-03.20.00.12/examples/standalone'

make[1]: Nothing to be done for `_depend'.

make[1]: Leaving directory `/home/builder/src/uboot-03.20.00.12/examples/standalone'

make[1]: Entering directory `/home/builder/src/uboot-03.20.00.12/examples/api'

make[1]: Nothing to be done for `_depend'.

make[1]: Leaving directory `/home/builder/src/uboot-03.20.00.12/examples/api'

make -C tools all

make[1]: Entering directory `/home/builder/src/uboot-03.20.00.12/tools'

gcc -g -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /home/builder/src/uboot-03.20.00.12/include -idirafter /home/builder/src/uboot-03.20.00.12/include2 -idirafter /home/builder/src/uboot-03.20.00.12/include -I /home/builder/src/uboot-03.20.00.12/libfdt -I /home/builder/src/uboot-03.20.00.12/tools -DTEXT_BASE=0xC1080000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -pedantic -c -o crc32.o /home/builder/src/uboot-03.20.00.12/lib_generic/crc32.c

In file included from /home/builder/src/uboot-03.20.00.12/lib_generic/crc32.c:14:

/home/builder/src/uboot-03.20.00.12/include/compiler.h:19:21: error: stdint.h: No such file or directory

/home/builder/src/uboot-03.20.00.12/include/compiler.h:22:19: error: errno.h: No such file or directory

/home/builder/src/uboot-03.20.00.12/include/compiler.h:23:20: error: stdlib.h: No such file or directory

/home/builder/src/uboot-03.20.00.12/include/compiler.h:25:19: error: stdio.h: No such file or directory

/home/builder/src/uboot-03.20.00.12/include/compiler.h:26:20: error: string.h: No such file or directory

/home/builder/src/uboot-03.20.00.12/include/compiler.h:31:23: error: sys/mman.h: No such file or directory

/home/builder/src/uboot-03.20.00.12/include/compiler.h:41:19: error: fcntl.h: No such file or directory

/home/builder/src/uboot-03.20.00.12/include/compiler.h:47:21: error: endian.h: No such file or directory

/home/builder/src/uboot-03.20.00.12/include/compiler.h:48:23: error: byteswap.h: No such file or directory

In file included from /home/builder/src/uboot-03.20.00.12/lib_generic/crc32.c:14:

/home/builder/src/uboot-03.20.00.12/include/compiler.h:55: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__u8’

/home/builder/src/uboot-03.20.00.12/include/compiler.h:56: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__u16’

/home/builder/src/uboot-03.20.00.12/include/compiler.h:57: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__u32’

In file included from /home/builder/src/uboot-03.20.00.12/lib_generic/crc32.c:15:

/home/builder/src/uboot-03.20.00.12/include/u-boot/crc.h:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crc32’

/home/builder/src/uboot-03.20.00.12/include/u-boot/crc.h:30: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crc32_wd’

/home/builder/src/uboot-03.20.00.12/include/u-boot/crc.h:31: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crc32_no_comp’

/home/builder/src/uboot-03.20.00.12/lib_generic/crc32.c:84: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crc_table’

/home/builder/src/uboot-03.20.00.12/lib_generic/crc32.c:149: warning: ISO C does not allow extra ‘;’ outside of a function

/home/builder/src/uboot-03.20.00.12/lib_generic/crc32.c:177: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crc32_no_comp’

/home/builder/src/uboot-03.20.00.12/lib_generic/crc32.c:219: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crc32’

/home/builder/src/uboot-03.20.00.12/lib_generic/crc32.c:228: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crc32_wd’

make[1]: *** [crc32.o] Error 1

make[1]: Leaving directory `/home/builder/src/uboot-03.20.00.12/tools'

make: *** [tools] Error 2

 

Thanks in advance for any help you can offer,

Seth