From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerry Van Baren Date: Thu, 10 Dec 2009 15:34:29 -0500 Subject: [U-Boot] problem building fw_printenv In-Reply-To: References: Message-ID: <4B215B55.4050103@ge.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de twebb wrote: >> 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 This appears to be cross-compiling the tools that run on the host (i.e. native). Odd. >> -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 Download a stdint.h and put it somewhere in your include path? http://en.wikipedia.org/wiki/Stdint.h#Downloads I'm not sure why you don't have stdint.h, I would expect it to be supplied by your host gcc installation. gvb