U-Boot Compiling in CYGWIN environment
Ok,
I know this has been asked 100 times; but, I haven't found a patch or what to do to properly fix the issue.
History:
(1) I'm cross-compiling for the ARM architecture.
(2) I'm developing on a Windows system (don't laugh); but, I can't easily change or add VMware to the picture.
(3) It only complains when compiling mkimage under tools... (see log below for the errors)
I fixed the problem once with a kludge by defining the missing defines and typedefs for ulong and another type that escapes me; but, it was definitely a kludge.
Anyone have a good patch for the latest git head on this. I can help if needed.
Thanks
James K.
--- Log ---
Trying pattern rule with stem `stdbool.h'.
Trying implicit prerequisite
`/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/RCS/stdbool.h'.
Trying pattern rule with stem `stdbool.h'.
Trying implicit prerequisite
`/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/s.stdbool.h'.
Trying pattern rule with stem `stdbool.h'.
Trying implicit prerequisite
`/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/SCCS/s.stdbool.h'.
No implicit rule found for
`/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/stdbool.h'.
Finished prerequisites of target file
`/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/stdbool.h'.
No need to remake target
`/usr/lib/gcc/i686-pc-cygwin/3.4.4/include/stdbool.h'.
Considering target file `/usr/include/ctype.h'.
Looking for an implicit rule for /usr/include/ctype.h'. Trying pattern rule with stem ctype.h'.
Trying implicit prerequisite /usr/include/ctype.h,v'. Trying pattern rule with stem ctype.h'.
Trying implicit prerequisite /usr/include/RCS/ctype.h,v'. Trying pattern rule with stem ctype.h'.
Trying implicit prerequisite /usr/include/RCS/ctype.h'. Trying pattern rule with stem ctype.h'.
Trying implicit prerequisite /usr/include/s.ctype.h'. Trying pattern rule with stem ctype.h'.
Trying implicit prerequisite /usr/include/SCCS/s.ctype.h'. No implicit rule found for /usr/include/ctype.h'. Finished prerequisites of target file `/usr/include/ctype.h'.
No need to remake target /usr/include/ctype.h'. Considering target file /usr/include/elf.h'.
Looking for an implicit rule for /usr/include/elf.h'. Trying pattern rule with stem elf.h'.
Trying implicit prerequisite /usr/include/elf.h,v'. Trying pattern rule with stem elf.h'.
Trying implicit prerequisite /usr/include/RCS/elf.h,v'. Trying pattern rule with stem elf.h'.
Trying implicit prerequisite /usr/include/RCS/elf.h'. Trying pattern rule with stem elf.h'.
Trying implicit prerequisite /usr/include/s.elf.h'. Trying pattern rule with stem elf.h'.
Trying implicit prerequisite /usr/include/SCCS/s.elf.h'. No implicit rule found for /usr/include/elf.h'.
Finished prerequisites of target file `/usr/include/elf.h'.
No need to remake target `/usr/include/elf.h'.
Considering target file `/usr/include/sys/elf32.h'.
Looking for an implicit rule for /usr/include/sys/elf32.h'. Trying pattern rule with stem elf32.h'.
Trying implicit prerequisite /usr/include/sys/elf32.h,v'. Trying pattern rule with stem elf32.h'.
Trying implicit prerequisite /usr/include/sys/RCS/elf32.h,v'. Trying pattern rule with stem elf32.h'.
Trying implicit prerequisite /usr/include/sys/RCS/elf32.h'. Trying pattern rule with stem elf32.h'.
Trying implicit prerequisite /usr/include/sys/s.elf32.h'. Trying pattern rule with stem elf32.h'.
Trying implicit prerequisite /usr/include/sys/SCCS/s.elf32.h'. No implicit rule found for /usr/include/sys/elf32.h'. Finished prerequisites of target file `/usr/include/sys/elf32.h'.
No need to remake target /usr/include/sys/elf32.h'. Considering target file /usr/include/sys/elf_common.h'.
Looking for an implicit rule for /usr/include/sys/elf_common.h'. Trying pattern rule with stem elf_common.h'.
Trying implicit prerequisite /usr/include/sys/elf_common.h,v'. Trying pattern rule with stem elf_common.h'.
Trying implicit prerequisite /usr/include/sys/RCS/elf_common.h,v'. Trying pattern rule with stem elf_common.h'.
Trying implicit prerequisite /usr/include/sys/RCS/elf_common.h'. Trying pattern rule with stem elf_common.h'.
Trying implicit prerequisite /usr/include/sys/s.elf_common.h'. Trying pattern rule with stem elf_common.h'.
Trying implicit prerequisite /usr/include/sys/SCCS/s.elf_common.h'. No implicit rule found for /usr/include/sys/elf_common.h'. Finished prerequisites of target file
`/usr/include/sys/elf_common.h'.
No need to remake target /usr/include/sys/elf_common.h'. Considering target file /usr/include/sys/elf64.h'.
Looking for an implicit rule for /usr/include/sys/elf64.h'. Trying pattern rule with stem elf64.h'.
Trying implicit prerequisite /usr/include/sys/elf64.h,v'. Trying pattern rule with stem elf64.h'.
Trying implicit prerequisite /usr/include/sys/RCS/elf64.h,v'. Trying pattern rule with stem elf64.h'.
Trying implicit prerequisite /usr/include/sys/RCS/elf64.h'. Trying pattern rule with stem elf64.h'.
Trying implicit prerequisite /usr/include/sys/s.elf64.h'. Trying pattern rule with stem elf64.h'.
Trying implicit prerequisite /usr/include/sys/SCCS/s.elf64.h'. No implicit rule found for /usr/include/sys/elf64.h'. Finished prerequisites of target file `/usr/include/sys/elf64.h'.
No need to remake target /usr/include/sys/elf64.h'. Considering target file /usr/include/sys/elf_generic.h'.
Looking for an implicit rule for /usr/include/sys/elf_generic.h'. Trying pattern rule with stem elf_generic.h'.
Trying implicit prerequisite /usr/include/sys/elf_generic.h,v'. Trying pattern rule with stem elf_generic.h'.
Trying implicit prerequisite /usr/include/sys/RCS/elf_generic.h,v'. Trying pattern rule with stem elf_generic.h'.
Trying implicit prerequisite /usr/include/sys/RCS/elf_generic.h'. Trying pattern rule with stem elf_generic.h'.
Trying implicit prerequisite /usr/include/sys/s.elf_generic.h'. Trying pattern rule with stem elf_generic.h'.
Trying implicit prerequisite /usr/include/sys/SCCS/s.elf_generic.h'. No implicit rule found for /usr/include/sys/elf_generic.h'. Finished prerequisites of target file
`/usr/include/sys/elf_generic.h'.
No need to remake target /usr/include/sys/elf_generic.h'. Pruning file /usr/include/unistd.h'.
Pruning file `/usr/include/sys/unistd.h'.
Pruning file `/usr/include/getopt.h'.
Finished prerequisites of target file
`/home/jkosin/build/uboot/tools/img2srec.o'.
Must remake target `/home/jkosin/build/uboot/tools/img2srec.o'.
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /home/jkosin/git/u-boot/include -idirafter /home/jkosi n/build/uboot/include2 -idirafter /home/jkosin/build/uboot/include -I /home/jkosin/git/u-boot/libfdt -I /home/jkosin/git
/u-boot/tools -DTEXT_BASE=0x21f00000 -DUSE_HOSTCC
-D__KERNEL_STRICT_NAMES -ansi -pedantic -o /home/jkosin/build/uboot/tools/img2srec.o img2srec.c -c
Putting child 0x007068f8 (/home/jkosin/build/uboot/tools/img2srec.o) PID 584 on the chain.
Live child 0x007068f8 (/home/jkosin/build/uboot/tools/img2srec.o) PID 584 Reaping winning child 0x007068f8 PID 584
Removing child 0x007068f8 PID 584 from chain.
Successfully remade target file
`/home/jkosin/build/uboot/tools/img2srec.o'.
Finished prerequisites of target file
`/home/jkosin/build/uboot/tools/img2srec'.
Must remake target `/home/jkosin/build/uboot/tools/img2srec'.
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /home/jkosin/git/u-boot/include -idirafter /home/jkosi n/build/uboot/include2 -idirafter /home/jkosin/build/uboot/include -I /home/jkosin/git/u-boot/libfdt -I /home/jkosin/git
/u-boot/tools -DTEXT_BASE=0x21f00000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -ansi -pedantic -o /home/jkosin/build/uboot/t ools/img2srec /home/jkosin/build/uboot/tools/img2srec.o
Putting child 0x00706e98 (/home/jkosin/build/uboot/tools/img2srec) PID 1648 on the chain.
Live child 0x00706e98 (/home/jkosin/build/uboot/tools/img2srec) PID 1648 Reaping winning child 0x00706e98 PID 1648
strip /home/jkosin/build/uboot/tools/img2srec
Live child 0x00706e98 (/home/jkosin/build/uboot/tools/img2srec) PID 1960 Reaping winning child 0x00706e98 PID 1960
Removing child 0x00706e98 PID 1960 from chain.
Successfully remade target file /home/jkosin/build/uboot/tools/img2srec'. Considering target file /home/jkosin/build/uboot/tools/mkimage'.
File `/home/jkosin/build/uboot/tools/mkimage' does not exist.
Pruning file `/home/jkosin/build/uboot/tools/crc32.o'. Considering target file
`/home/jkosin/build/uboot/tools/default_image.o'.
File `/home/jkosin/build/uboot/tools/default_image.o' does not exist.
Considering target file `default_image.c'.
Looking for an implicit rule for default_image.c'. Trying pattern rule with stem default_image'.
Trying implicit prerequisite `default_image.y'.
Trying pattern rule with stem `default_image'.
Trying implicit prerequisite `default_image.l'.
Trying pattern rule with stem `default_image'.
Trying implicit prerequisite `default_image.w'.
Trying pattern rule with stem `default_image'.
Trying implicit prerequisite `default_image.w'.
Trying pattern rule with stem `default_image.c'.
Trying implicit prerequisite `default_image.c,v'.
Trying pattern rule with stem `default_image.c'.
Trying implicit prerequisite RCS/default_image.c,v'. Trying pattern rule with stem default_image.c'.
Trying implicit prerequisite RCS/default_image.c'. Trying pattern rule with stem default_image.c'.
Trying implicit prerequisite `s.default_image.c'.
Trying pattern rule with stem `default_image.c'.
Trying implicit prerequisite SCCS/s.default_image.c'. Trying pattern rule with stem default_image'.
Trying implicit prerequisite `default_image.y'.
Looking for a rule with intermediate file `default_image.y'.
Avoiding implicit rule recursion.
Trying pattern rule with stem `default_image.y'.
Trying implicit prerequisite `default_image.y,v'.
Trying pattern rule with stem `default_image.y'.
Trying implicit prerequisite RCS/default_image.y,v'. Trying pattern rule with stem default_image.y'.
Trying implicit prerequisite RCS/default_image.y'. Trying pattern rule with stem default_image.y'.
Trying implicit prerequisite `s.default_image.y'.
Trying pattern rule with stem `default_image.y'.
Trying implicit prerequisite `SCCS/s.default_image.y'.
Trying pattern rule with stem `default_image'.
Trying implicit prerequisite `default_image.l'.
Looking for a rule with intermediate file `default_image.l'.
Avoiding implicit rule recursion.
Trying pattern rule with stem `default_image.l'.
Trying implicit prerequisite `default_image.l,v'.
Trying pattern rule with stem `default_image.l'.
Trying implicit prerequisite RCS/default_image.l,v'. Trying pattern rule with stem default_image.l'.
Trying implicit prerequisite RCS/default_image.l'. Trying pattern rule with stem default_image.l'.
Trying implicit prerequisite `s.default_image.l'.
Trying pattern rule with stem `default_image.l'.
Trying implicit prerequisite `SCCS/s.default_image.l'.
Trying pattern rule with stem `default_image'.
Trying implicit prerequisite `default_image.w'.
Looking for a rule with intermediate file `default_image.w'.
Avoiding implicit rule recursion.
Trying pattern rule with stem `default_image.w'.
Trying implicit prerequisite `default_image.w,v'.
Trying pattern rule with stem `default_image.w'.
Trying implicit prerequisite RCS/default_image.w,v'. Trying pattern rule with stem default_image.w'.
Trying implicit prerequisite RCS/default_image.w'. Trying pattern rule with stem default_image.w'.
Trying implicit prerequisite `s.default_image.w'.
Trying pattern rule with stem `default_image.w'.
Trying implicit prerequisite `SCCS/s.default_image.w'.
Trying pattern rule with stem `default_image'.
Rejecting impossible implicit prerequisite default_image.w'. No implicit rule found for default_image.c'.
Finished prerequisites of target file `default_image.c'.
No need to remake target `default_image.c'.
Finished prerequisites of target file
`/home/jkosin/build/uboot/tools/default_image.o'.
Must remake target `/home/jkosin/build/uboot/tools/default_image.o'.
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /home/jkosin/git/u-boot/include -idirafter /home/jkosi n/build/uboot/include2 -idirafter /home/jkosin/build/uboot/include -I /home/jkosin/git/u-boot/libfdt -I /home/jkosin/git
/u-boot/tools -DTEXT_BASE=0x21f00000 -DUSE_HOSTCC
-D__KERNEL_STRICT_NAMES -ansi -o /home/jkosin/build/uboot/tools/defa
ult_image.o default_image.c -c
Putting child 0x007071b8 (/home/jkosin/build/uboot/tools/default_image.o) PID 2576 on the chain. Live child 0x007071b8 (/home/jkosin/build/uboot/tools/default_image.o) PID 2576
In file included from fdt_host.h:25,
from mkimage.h:35,
from default_image.c:30:../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" ../include/libfdt.h:164: error: syntax error before "void" ../include/libfdt.h:165: error: syntax error before "void" ../include/libfdt.h:166: error: syntax error before "void" ../include/libfdt.h:167: error: syntax error before "void" ../include/libfdt.h:168: error: syntax error before "void" ../include/libfdt.h:169: error: syntax error before "void" ../include/libfdt.h:170: error: syntax error before "void" ../include/libfdt.h:171: error: syntax error before "void" ../include/libfdt.h:390: error: syntax error before "struct" ../include/libfdt.h:441: error: syntax error before "void" ../include/libfdt.h:779: error: syntax error before "int" ../include/libfdt.h:845: error: syntax error before "int" ../include/libfdt.h:995: error: syntax error before "int"
In file included from default_image.c:31:/home/jkosin/git/u-boot/include/image.h:193: error: parse error before "ulong"/home/jkosin/git/u-boot/include/image.h:195: error: parse error before "load"/home/jkosin/git/u-boot/include/image.h:197: error: parse error before '}' token/home/jkosin/git/u-boot/include/image.h:211: error: parse error before "ulong"/home/jkosin/git/u-boot/include/image.h:262: error: parse error before '}' token/home/jkosin/git/u-boot/include/image.h:356: error: syntax error before "uint32_t"/home/jkosin/git/u-boot/include/image.h:366: error: syntax error before "uint32_t"/home/jkosin/git/u-boot/include/image.h:367: error: syntax error before "uint32_t"/home/jkosin/git/u-boot/include/image.h:368: error: syntax error before "uint32_t"/home/jkosin/git/u-boot/include/image.h:369: error: syntax error before "uint32_t"/home/jkosin/git/u-boot/include/image.h:370: error: syntax error before "uint32_t"/home/jkosin/git/u-boot/include/image.h:371: error: syntax error before "uint32_t"/home/jkosin/git/u-boot/include/image.h:372: error: syntax error before "uint32_t"/home/jkosin/git/u-boot/include/image.h:379: error: syntax error before "uint8_t"/home/jkosin/git/u-boot/include/image.h:380: error: syntax error before "uint8_t"/home/jkosin/git/u-boot/include/image.h:381: error: syntax error before "uint8_t"/home/jkosin/git/u-boot/include/image.h:382: error: syntax error before "uint8_t"/home/jkosin/git/u-boot/include/image.h:384: error: syntax error before "char"/home/jkosin/git/u-boot/include/image.h:389: error: syntax error before "uint32_t"/home/jkosin/git/u-boot/include/image.h:405: error: parse error before "ulong"/home/jkosin/git/u-boot/include/image.h: In function `image_get_data':/home/jkosin/git/u-boot/include/image.h:407: error: `ulong' undeclared (first use in this function) /home/jkosin/git/u-boot/include/image.h:407: error: (Each undeclared identifier is reported only once /home/jkosin/git/u-boot/include/image.h:407: error: for each function it appears in.)/home/jkosin/git/u-boot/include/image.h:407: error: parse error before "hdr" /home/jkosin/git/u-boot/include/image.h: At top level:/home/jkosin/git/u-boot/include/image.h:410: error: syntax error before "uint32_t"/home/jkosin/git/u-boot/include/image.h:414: error: parse error before "ulong"/home/jkosin/git/u-boot/include/image.h: In function `image_get_image_end':/home/jkosin/git/u-boot/include/image.h:416: error: `ulong' undeclared (first use in this function) /home/jkosin/git/u-boot/include/image.h:416: error: parse error before "hdr" /home/jkosin/git/u-boot/include/image.h: At top level:/home/jkosin/git/u-boot/include/image.h:424: error: syntax error before "void"/home/jkosin/git/u-boot/include/image.h:425: error: syntax error before "void"/home/jkosin/git/u-boot/include/image.h:426: error: syntax error before "void"/home/jkosin/git/u-boot/include/image.h:427: error: syntax error before "void"/home/jkosin/git/u-boot/include/image.h:428: error: syntax error before "void"/home/jkosin/git/u-boot/include/image.h:429: error: syntax error before "void"/home/jkosin/git/u-boot/include/image.h:430: error: syntax error before "void"/home/jkosin/git/u-boot/include/image.h:437: error: syntax error before "void"/home/jkosin/git/u-boot/include/image.h:438: error: syntax error before "void"/home/jkosin/git/u-boot/include/image.h:439: error: syntax error before "void"/home/jkosin/git/u-boot/include/image.h:440: error: syntax error before "void"/home/jkosin/git/u-boot/include/image.h:442: error: syntax error before "void"/home/jkosin/git/u-boot/include/image.h:456: error: syntax error before "int"/home/jkosin/git/u-boot/include/image.h:460: error: syntax error before "int"/home/jkosin/git/u-boot/include/image.h:464: error: syntax error before "int"/home/jkosin/git/u-boot/include/image.h:468: error: syntax error before "int"/home/jkosin/git/u-boot/include/image.h:473: error: parse error before "image_multi_count"/home/jkosin/git/u-boot/include/image.h:474: error: parse error before "ulong"/home/jkosin/git/u-boot/include/image.h:548: error: syntax error before "int"/home/jkosin/git/u-boot/include/image.h:548: error: parse error before "ulong"/home/jkosin/git/u-boot/include/image.h:550: error: syntax error before "int"/home/jkosin/git/u-boot/include/image.h:550: error: parse error before "ulong"/home/jkosin/git/u-boot/include/image.h:564: error: parse error before "ulong"/home/jkosin/git/u-boot/include/image.h:576: error: parse error before "ulong"/home/jkosin/git/u-boot/include/image.h: In function `fit_get_end':/home/jkosin/git/u-boot/include/image.h:578: error: `ulong' undeclared (first use in this function) /home/jkosin/git/u-boot/include/image.h:578: error: parse error before "fit" /home/jkosin/git/u-boot/include/image.h: At top level:/home/jkosin/git/u-boot/include/image.h:589: error: syntax error before "const"/home/jkosin/git/u-boot/include/image.h:603: error: parse error before "ulong"/home/jkosin/git/u-boot/include/image.h:604: error: parse error before "ulong"
Reaping losing child 0x007071b8 PID 2576
make[1]: *** [/home/jkosin/build/uboot/tools/default_image.o] Error 1 Removing child 0x007071b8 PID 2576 from chain.
make[1]: Leaving directory `/home/jkosin/git/u-boot/tools' Reaping losing child 0x006e50b8 PID 3856
make: *** [tools] Error 2
Removing child 0x006e50b8 PID 3856 from chain.
jkosin at JamesKosin ~/git/u-boot
$
Dear James Kosin,
Quoted 3 lines · In message <[email protected]> you wrote:
(2) I'm developing on a Windows system (don't laugh); but, I can't easily change or add VMware to the picture.
Maybe you can use one of the many other existing solutions - CoLinux, VirtualBox, etc. etc.
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de To be is to program.