From: James Pellow <james@alentdesignsolutions.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] syscall uname fix.
Date: Sun, 5 Dec 2004 20:22:06 -0800 [thread overview]
Message-ID: <200412052022.06558.james@alentdesignsolutions.com> (raw)
Hi All,
In my continued quest to get Gentoo to install under qemu-arm, I ran into a
problem with configure:
checking build system type... configure: error: cannot guess build type; you
must specify one
With that info I tried uname -m and found it reporting i686. Looking at
linux-user/syscall.c under TARGET_NR_uname, an effort is made to copy
UNAME_MACHINE into the utsname structure, and then for some reason sys_uname
is called again, overwriting that change. The following patch fixes that.
configure now is able to determine the build system type and it looks like
gentoo may now install.
--------------------------------------------------------------------------------------------------------
diff -ruN qemu-0.6.1/linux-user/syscall.c qemu-0.6.1_new/linux-user/syscall.c
--- qemu-0.6.1/linux-user/syscall.c 2004-11-14 12:51:33.000000000 -0800
+++ qemu-0.6.1_new/linux-user/syscall.c 2004-12-05 19:31:25.905763264 -0800
@@ -2403,7 +2403,7 @@
strcpy (buf->machine, UNAME_MACHINE);
}
}
- ret = get_errno(sys_uname((struct new_utsname *)arg1));
break;
#ifdef TARGET_I386
case TARGET_NR_modify_ldt:
-------------------------------------------------------------------------------
Cheers,
--
*****************************
James A. Pellow, President
Alent Design Solutions
www.alentdesignsolutions.com
(509) 526-0682
*****************************
reply other threads:[~2004-12-06 4:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=200412052022.06558.james@alentdesignsolutions.com \
--to=james@alentdesignsolutions.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 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.