* [U-Boot] Problems compiling u-boot under Cygwin
@ 2010-04-07 19:49 Brad M.
2010-04-07 20:05 ` Ben Warren
0 siblings, 1 reply; 2+ messages in thread
From: Brad M. @ 2010-04-07 19:49 UTC (permalink / raw)
To: u-boot
Hi. I'm a first time u-boot builder, and first time poster. I'm looking for some help building u-boot for the Atmel at91sam9260ek dev board.
Background: building u-boot (v2010.03) on WindowsXP with Cygwin. PATH and CROSS_COMPILE env vars set appropriately. Cygwin base package installed, plus 'make' and 'gcc'. I've tried three different tool chains: CodeSourcery Lite, GNUARM, and YAGARTO, each giving me different errors. I have also tried several flavors of make, those too influence the build. I'm not sure which is giving me the best performance.
In all cases, "make distclean" and "make at91sam9260ek_config" work fine.
Below are highlights of some of the "make all" results. I'll take any help on any one of the tool chains (please do not feel obligated to comment on all of them, only the one I'll likely get the easiest success with).
But any help is greatly appreciated.
Thanks in advance,
Brad.
GNUARM tool chain with GnuWin32 make v3.81
CROSS_COMPILE=<path>/arm-elf-
--------------------------------------------------------------------
Generating include/autoconf.mk
Generating include/autoconf.mk.dep
make: *** No rule to make target 'include/autoconf.mk', needed by 'depend'. Stop.
-
GNUARM tool chain with Cygwin make v3.81:
CROSS_COMPILE=<path>/arm-elf-
-------------------------------------------------------------------
Generating include/autoconf.mk
Generating include/autoconf.mk.dep
for dir in tools examples/standalone examples/api cpu/arm926ejs /cygdrive/d/TestCode/u-boot-2010.03/cpu/arm926ejs/ ; do \
make -C $dir _depend ; done
make[1]: Entering directory `/cygdrive/d/TestCode/u-boot-2010.03/tools'
make[1]: Leaving directory `/cygdrive/d/TestCode/u-boot-2010.03/tools'
make[1]: Entering directory `/cygdrive/d/TestCode/u-boot-2010.03/tools'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/cygdrive/d/TestCode/u-boot-2010.03/tools'
[...]
.depend:43: *** missing separator. Stop.
make[1]: Leaving directory `/cygdrive/d/TestCode/u-boot-2010.03/examples/standalone'
[...]
.depend:41: *** missing separator. Stop.
make[1]: Leaving directory `/cygdrive/d/TestCode/u-boot-2010.03/cpu/arm926ejs'
make: *** [depend] Error 2
CodeSourcery Lite tool chain with Cygwin make:
CROSS_COMPILE=<path>/arm-none-eabi-
-------------------------------------------------------------------------
Generating include/autoconf.mk
include/common.h:37: fatal error: config.h: No such file or directory
compilation terminated.
[...]
hello_world.c:24: fatal error: common.h: No such file or directory
compilation terminated.
stubs.c:1: fatal error: exports.h: No such file or directory
compilation terminated.
make[1]: *** No rule to make target `.depend', needed by `_depend'. Stop.
[...]
../include/libfdt.h:126: error: syntax error before "void"
../include/libfdt.h:162: error: syntax error before "void"
../include/libfdt.h:163: error: syntax error before "void"
[..]
In file included from default_image.c:31:
/cygdrive/x/projects/u-boot-2010.03/include/image.h:193: error: parse error before "ulong"
/cygdrive/x/projects/u-boot-2010.03/include/image.h:195: error: parse error before "load"
[...]
make[1]: *** [default_image.o] Error 1
make[1]: Leaving directory `/cygdrive/x/projects/u-boot-2010.03/tools'
make: *** [tools] Error 2
CodeSourcery Lite tool chain with CodeSourcery cs-make (v3.81):
CROSS_COMPILE=<path>/arm-none-eabi-
---------------------------------------------------------------------------------
<Similar as with GNU make, except I also get this problem:
process_begin: CreateProcess(C:\cygwin\bin\gcc.exe, gcc -E -dM -xc /dev/null, ..
.) failed. >
YAGARTO tool chain
CROSS_COMPILE=<path>/arm-elf-
---------------------------------------------------
< Errors generally consist of an inability to find files in subdirectories of 'include' (e.g. 'include/asm') though the directories/files do exist. I've written this off as the worst performer.>
^ permalink raw reply [flat|nested] 2+ messages in thread* [U-Boot] Problems compiling u-boot under Cygwin
2010-04-07 19:49 [U-Boot] Problems compiling u-boot under Cygwin Brad M.
@ 2010-04-07 20:05 ` Ben Warren
0 siblings, 0 replies; 2+ messages in thread
From: Ben Warren @ 2010-04-07 20:05 UTC (permalink / raw)
To: u-boot
Hi Brad,
On 4/7/2010 12:49 PM, Brad M. wrote:
> Hi. I'm a first time u-boot builder, and first time poster. I'm looking for some help building u-boot for the Atmel at91sam9260ek dev board.
>
> Background: building u-boot (v2010.03) on WindowsXP with Cygwin. PATH and CROSS_COMPILE env vars set appropriately. Cygwin base package installed, plus 'make' and 'gcc'. I've tried three different tool chains: CodeSourcery Lite, GNUARM, and YAGARTO, each giving me different errors. I have also tried several flavors of make, those too influence the build. I'm not sure which is giving me the best performance.
>
>
You've entered a particularly annoying level of hell. If you really
want to get moving quickly, you'd be much better off installing Linux in
a VM and bypass this whole Cygwin mess. I use Ubuntu in Vbox OSE every
day and it's fantastic. U-boot is a fast build, so you don't need to
worry about performance.
regards,
Ben
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-04-07 20:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-07 19:49 [U-Boot] Problems compiling u-boot under Cygwin Brad M.
2010-04-07 20:05 ` Ben Warren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox