[U-Boot] problem building fw_printenv

twebb taliaferro62 at gmail.com
Thu Dec 10 21:18:29 CET 2009


> I'm having problems building fw_printenv.  I'm sure it's simple but
> I'm just not getting it.
>
> I'm working with u-boot 2009.01-rc1.  I have the environment variable
> CROSS_COMPILE set, and then execute "make env" from the top of the
> u-boot source tree.  Capture is below.  I don't had "stdint.h"
> anywhere in my environment.  Any ideas what I have wrong?
>
> Thanks,
> twebb
>
>
> jb at jb:u-boot-arm$
> jb at jb:u-boot-arm$ echo $CROSS_COMPILE
> arm-eabi-
> jb at jb:u-boot-arm$
> jb at jb:u-boot-arm$ make env
> make -C tools/env all MTD_VERSION= || exit 1
> make[1]: Entering directory `/home/jb/work-1130/boot/u-boot-arm/tools/env'
> arm-eabi-gcc -Wall -DUSE_HOSTCC
> -I/home/jb/work-1130/boot/u-boot-arm/include crc32.c  fw_env.c
> fw_env_main.c -o fw_printenv
> crc32.c:14:20: error: stdint.h: No such file or directory
> crc32.c:81: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'crc_table'
> crc32.c:157: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'crc32'
> crc32.c:206: error: expected '=', ',', ';', 'asm' or '__attribute__'
> before 'crc32_wd'
> fw_env.c:27:19: error: errno.h: No such file or directory
> fw_env.c:28:19: error: fcntl.h: No such file or directory
> ...
>

Does anyone have any ideas on this?  I'm still stuck.  Though I feel
certain it's some sort of environment problem, I can't figure it out.
Any suggestions would be appreciated.

twebb


More information about the U-Boot mailing list