All of lore.kernel.org
 help / color / mirror / Atom feed
* ioemu build failure with GCC > 4.3
@ 2008-07-10  9:32 He, Qing
  2008-07-10  9:39 ` Keir Fraser
  0 siblings, 1 reply; 16+ messages in thread
From: He, Qing @ 2008-07-10  9:32 UTC (permalink / raw)
  To: ian.jackson; +Cc: xen-devel

	I got build failure in the qemu-xen-unstable.git tree, and it
seems only to happen with newer GCC versions, namely >4.3.0 which
supports C99 inline.
	The offending part is in tools/ioemu-remote/slirp/misc.c:
138: inline void
139: insque (a, b)

C99 treats inline differently with GNU89, bare `inline' (without linkage
specifier, i.e. `static') in C99 is required not to generate standalone
copy of the function, which is not desired in slirp code. Other
compilation module looks for the function in linking and will not find
them.

Since `-std=gnu99' is specified in the global Config.mk, newer GCC
version uses C99 inline semantics will encounter problems on building
ioemu.

It's most straightforward to remove `inline' in slirp/misc.c, the code
doesn't really seem to benefit from it. But it looks pretty old and not
maintained for sometime. What about patch it locally?

Other options include specify `-fgnu89-inline' (n/a prior to GCC 4.1.3)
and overrides slirp compile line with `-std=gnu89', but may not be
preferred.

Thanks,
Qing

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2008-07-15 18:45 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-10  9:32 ioemu build failure with GCC > 4.3 He, Qing
2008-07-10  9:39 ` Keir Fraser
2008-07-10  9:43   ` Daniel P. Berrange
2008-07-10  9:44     ` Ian Jackson
2008-07-10  9:49       ` Ian Jackson
2008-07-10 13:18         ` Ross Philipson
2008-07-10 14:06           ` Ian Jackson
2008-07-10 14:13             ` Ross Philipson
2008-07-14 15:12               ` Ian Jackson
2008-07-14 15:21                 ` Stefan de Konink
2008-07-15 13:55                   ` Ross Philipson
2008-07-15 14:06                     ` Keir Fraser
2008-07-15 14:09                       ` Ross Philipson
2008-07-15 18:33                         ` [PATCH] " Espen Skoglund
2008-07-15 18:45                         ` Espen Skoglund
2008-07-14 16:56                 ` prashanth.mundkur

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.