All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] Compilation under Cygwin
@ 2015-03-20 18:31 Marcos Vives Del Sol
  0 siblings, 0 replies; only message in thread
From: Marcos Vives Del Sol @ 2015-03-20 18:31 UTC (permalink / raw)
  To: u-boot

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>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-03-20 18:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-20 18:31 [U-Boot] [PATCH] Compilation under Cygwin Marcos Vives Del Sol

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.