From: malc <av1474@comtv.ru>
To: qemu-devel@nongnu.org
Cc: Anthony Liguori <aliguori@us.ibm.com>, Alexander Graf <agraf@suse.de>
Subject: Re: [PATCH] [RESEND] Re: [Qemu-devel] [6443] Enabled building of x86_64 code on Mac OS X (Alexander Graf)
Date: Sun, 22 Feb 2009 22:15:39 +0300 (MSK) [thread overview]
Message-ID: <Pine.LNX.4.64.0902222214020.2163@linmac.oyster.ru> (raw)
In-Reply-To: <FB0B6AB4-C124-4BE0-8373-AAE5F722FC9A@web.de>
On Sun, 22 Feb 2009, Andreas F?rber wrote:
[..snip..]
> > > bsd="yes"
> > > darwin="yes"
> > > +# on Leopard most of the system is 32-bit, so we have to ask the kernel
> > > it if we can run 64-bit userspace code
> > > +is_x86_64=`sysctl -n hw.optional.x86_64`
> >
> > This results in an error message on OSX/ppc:
> >
> > second level name optional in hw.optional.x86_64 is invalid
> >
> > The attached patch silences this error output.
> >
> > Andreas
> > <qemu-x64-ppc.diff>
>
> My patch still applies cleanly against r6638. Please apply.
>
> It's trivial, but in any case:
>
>
> Silence x64 check on OSX/ppc.
>
> The check for x86_64 on Mac OS X results in an error message on ppc:
>
> second level name optional in hw.optional.x86_64 is invalid
>
> Suppress this message by redirecting error output.
>
> Signed-off-by: Andreas Faerber <andreas.faerber@web.de>
> ---
>
> diff --git a/configure b/configure
> index c3fbbbe..dffed79 100755
> --- a/configure
> +++ b/configure
> @@ -244,7 +244,7 @@ Darwin)
> bsd="yes"
> darwin="yes"
> # on Leopard most of the system is 32-bit, so we have to ask the kernel it if
> we can run 64-bit userspace code
> -is_x86_64=`sysctl -n hw.optional.x86_64`
> +is_x86_64=`sysctl -n hw.optional.x86_64 2>/dev/null`
> if [ "$is_x86_64" = "1" ]; then
> cpu=x86_64
> fi
>
>
It does silence it, but it will also silence any useful warning/error
messages should there be any, perhaps there's some other way?
--
mailto:av1474@comtv.ru
next prev parent reply other threads:[~2009-02-22 19:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-26 15:37 [Qemu-devel] [6443] Enabled building of x86_64 code on Mac OS X (Alexander Graf) Anthony Liguori
2009-02-01 12:06 ` [PATCH] " Andreas Färber
2009-02-22 15:16 ` [PATCH] [RESEND] " Andreas Färber
2009-02-22 15:21 ` Alexander Graf
2009-02-22 15:50 ` Natalia Portillo
2009-02-22 18:48 ` Andreas Färber
2009-02-22 19:43 ` Alexander Graf
2009-02-22 18:52 ` Andreas Färber
2009-02-22 19:15 ` malc [this message]
2009-02-22 19:24 ` Alexander Graf
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=Pine.LNX.4.64.0902222214020.2163@linmac.oyster.ru \
--to=av1474@comtv.ru \
--cc=agraf@suse.de \
--cc=aliguori@us.ibm.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).