qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] syscall uname fix.
@ 2004-12-06  4:22 James Pellow
  0 siblings, 0 replies; only message in thread
From: James Pellow @ 2004-12-06  4:22 UTC (permalink / raw)
  To: qemu-devel

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
*****************************

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-12-06  4:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-06  4:22 [Qemu-devel] syscall uname fix James Pellow

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).