qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Git head build problem (popcountl vs. system headers)
@ 2013-04-25  6:47 Martin Husemann
  2013-04-25 10:36 ` Richard Henderson
  0 siblings, 1 reply; 9+ messages in thread
From: Martin Husemann @ 2013-04-25  6:47 UTC (permalink / raw)
  To: qemu-devel

I just tried building git HEAD on NetBSD-current and gcc chokes on
a prototype mismatch for popcountl:

util/hbitmap.c has:

static inline int popcountl(unsigned long l)
{
    return BITS_PER_LONG == 32 ? ctpop32(l) : ctpop64(l);
}

while NetBSD's strings.h uses:

unsigned int        popcountl(unsigned long) __constfunc;


"unsigned" looks better to me for a non negative count, but maybe a
configure test and using the system libs would be preferable?

Martin

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

end of thread, other threads:[~2013-05-05 12:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-25  6:47 [Qemu-devel] Git head build problem (popcountl vs. system headers) Martin Husemann
2013-04-25 10:36 ` Richard Henderson
2013-04-25 13:38   ` Laszlo Ersek
2013-04-25 17:09     ` Richard Henderson
2013-04-25 17:39       ` Eric Blake
2013-04-25 18:36       ` Martin Husemann
2013-04-25 18:48         ` Peter Maydell
2013-04-27 18:50         ` Martin Husemann
2013-05-05 12:29           ` Blue Swirl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).