From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CbAal-0005Dm-Op for qemu-devel@nongnu.org; Sun, 05 Dec 2004 23:35:20 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CbAak-0005CY-1y for qemu-devel@nongnu.org; Sun, 05 Dec 2004 23:35:18 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CbAaj-0005CK-Vj for qemu-devel@nongnu.org; Sun, 05 Dec 2004 23:35:17 -0500 Received: from [209.225.28.219] (helo=mxsf19.cluster1.charter.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CbAQv-0005Go-Le for qemu-devel@nongnu.org; Sun, 05 Dec 2004 23:25:09 -0500 Received: from mxip01.cluster1.charter.net (mxip01a.cluster1.charter.net [209.225.28.131]) by mxsf19.cluster1.charter.net (8.12.11/8.12.11) with ESMTP id iB64P8xn031578 for ; Sun, 5 Dec 2004 23:25:08 -0500 From: James Pellow Date: Sun, 5 Dec 2004 20:22:06 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200412052022.06558.james@alentdesignsolutions.com> Subject: [Qemu-devel] syscall uname fix. Reply-To: james@alentdesignsolutions.com, qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 *****************************