All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bernhard Held <bheld@mgpi.de>
To: kvm@vger.kernel.org
Subject: kvm-85 build problem
Date: Wed, 22 Apr 2009 08:59:57 +0200	[thread overview]
Message-ID: <gsmf9d$bb8$1@ger.gmane.org> (raw)

Hi,

this happens on CentOS 5.3:

# cd kvm-85/qemu
# make
   CC    qemu-nbd.o
   CC    qemu-tool.o
   CC    osdep.o
   CC    cutils.o
In file included from cutils.c:27:
/usr/include/assert.h: In function ‘qemu_sync_idcache’:
/usr/include/assert.h:70: error: storage class specified for parameter
‘__assert_fail’
/usr/include/assert.h:76: error: storage class specified for parameter
‘__assert_perror_fail’
/usr/include/assert.h:82: error: storage class specified for parameter ‘__assert’
cutils.c:30: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’
token
    ...
cutils.c:224: error: expected ‘{’ at end of input
make: *** [cutils.o] Error 1


gcc 4.1.2 doesn't like functions without body, this patch fixes the problem:

--- cache-utils.h.orig  2009-04-21 10:46:04.000000000 +0200
+++ cache-utils.h       2009-04-22 08:39:20.000000000 +0200
@@ -47,6 +47,8 @@
  }
  #else
  static inline void qemu_sync_idcache(unsigned long start, unsigned long stop)
+{
+}
  #endif

  #define qemu_cache_utils_init(envp) do { (void) (envp); } while (0)

Bernhard


             reply	other threads:[~2009-04-22  7:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-22  6:59 Bernhard Held [this message]
2009-04-24 11:54 ` kvm-85 build problem Bernhard Held

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='gsmf9d$bb8$1@ger.gmane.org' \
    --to=bheld@mgpi.de \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.