From: Jerry Van Baren <gerald.vanbaren@ge.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] problem building fw_printenv
Date: Thu, 10 Dec 2009 15:34:29 -0500 [thread overview]
Message-ID: <4B215B55.4050103@ge.com> (raw)
In-Reply-To: <dbdb2ea60912101218t5efecc71j38b6839e507c5cc0@mail.gmail.com>
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
next prev parent reply other threads:[~2009-12-10 20:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-10 0:38 [U-Boot] problem building fw_printenv twebb
2009-12-10 20:18 ` twebb
2009-12-10 20:34 ` Jerry Van Baren [this message]
2009-12-10 20:39 ` Scott Wood
2009-12-10 21:20 ` twebb
2009-12-10 23:29 ` Wolfgang Denk
2009-12-10 23:45 ` Scott Wood
2010-01-18 10:31 ` Kári Davíðsson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B215B55.4050103@ge.com \
--to=gerald.vanbaren@ge.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox