[U-Boot] [PATCH] Compilation under Cygwin

Marcos Vives Del Sol socram8888 at gmail.com
Fri Mar 20 19:31:23 CET 2015


Hello.

I am attempting to compile U-Boot under Cygwin (up to date, it's not
and old version or anything) and noticed that "make" fails due to GCC
not recognising "inline" modifiers to functions:
> scripts/kconfig/list.h:81:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’
>  static inline void __list_add(struct list_head *_new,
>                ^
> scripts/kconfig/list.h:99:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’
>  static inline void list_add_tail(struct list_head *_new, struct list_head *head)
>                ^
> scripts/kconfig/list.h:111:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’
>  static inline void __list_del(struct list_head *prev, struct list_head *next)
>                ^
Amongst others. See also http://www.programdevelop.com/5356097/ for
another developer who experienced the same issue.

Apparenly this is caused by a system-dependent condition in /Makefile,
which forces GCC to run in ANSI mode, and as "inline" isn't C89,
compilation fails. Removing this condition does the trick.

Patch attached

-- 
Marcos Vives Del Sol
https://github.com/socram8888
miniLock: NscWdW8fh2E5SBoRtrnXWrDwmQmwaR5awMKE78tQW1Ffx
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygfix.patch
Type: application/octet-stream
Size: 467 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150320/53f0a0e8/attachment.obj>


More information about the U-Boot mailing list