qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Andreas Färber" <afaerber@suse.de>
To: Programmingkid <programmingkidx@gmail.com>,
	Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-devel qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] make test fails on Mac OS X
Date: Sat, 11 Apr 2015 17:46:13 +0200	[thread overview]
Message-ID: <552941C5.2050508@suse.de> (raw)
In-Reply-To: <95EB2494-1C82-4E5E-9896-427C3216660C@gmail.com>

Am 10.04.2015 um 19:56 schrieb Programmingkid:
> The 'make test' command fails to build on Mac OS X. This is because of a missing header file. Here is the error:
> 
> include/glib-compat.h:19:18: fatal error: glib.h: No such file or directory
>  #include <glib.h>

On Linux, this gets me past that point, but not yet much further:

diff --git a/tests/tcg/Makefile b/tests/tcg/Makefile
index 89e3342..64f661a 100644
--- a/tests/tcg/Makefile
+++ b/tests/tcg/Makefile
@@ -10,6 +10,7 @@ CC_X86_64=$(CC_I386) -m64
 QEMU_INCLUDES += -I../..
 CFLAGS=-Wall -O2 -g -fno-strict-aliasing
 #CFLAGS+=-msse2
+QEMU_CFLAGS += $(GLIB_CFLAGS)
 LDFLAGS=

 # TODO: automatically detect ARM and MIPS compilers, and run those too

On Mac OS X, executing qemu-i386 (as opposed to qemu-system-i386) won't
work though, as darwin-user is no longer available.

Also, the Makefile seems to assume that it's running on x86.

Regards,
Andreas

-- 
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu,
Graham Norton; HRB 21284 (AG Nürnberg)

  parent reply	other threads:[~2015-04-11 15:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-10 17:56 [Qemu-devel] make test fails on Mac OS X Programmingkid
2015-04-10 21:37 ` Peter Maydell
2015-04-11 15:46 ` Andreas Färber [this message]
2015-04-11 15:52   ` Peter Maydell
2015-04-11 20:25     ` Andreas Färber
2015-04-11 21:31       ` Peter Maydell

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=552941C5.2050508@suse.de \
    --to=afaerber@suse.de \
    --cc=peter.maydell@linaro.org \
    --cc=programmingkidx@gmail.com \
    --cc=qemu-devel@nongnu.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 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).