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

Attachment: cygfix.patch
Description: Binary data

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to