From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HyZ4V-0006oz-IU for qemu-devel@nongnu.org; Wed, 13 Jun 2007 16:04:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HyZ4S-0006on-SO for qemu-devel@nongnu.org; Wed, 13 Jun 2007 16:04:03 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HyZ4S-0006ok-PD for qemu-devel@nongnu.org; Wed, 13 Jun 2007 16:04:00 -0400 Received: from bridget.jatol.com ([216.218.189.114]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HyZ4S-0008V2-3m for qemu-devel@nongnu.org; Wed, 13 Jun 2007 16:04:00 -0400 Received: from 82-33-198-95.cable.ubr02.chap.blueyonder.co.uk ([82.33.198.95]:1644 helo=[192.168.0.3]) by bridget.jatol.com with esmtpa (Exim 4.52) id 1HyZ42-00010p-14 for qemu-devel@nongnu.org; Wed, 13 Jun 2007 15:03:39 -0500 From: Kristian Van Der Vliet Content-Type: text/plain Date: Wed, 13 Jun 2007 21:01:42 +0100 Message-Id: <1181764902.5444.11.camel@localhost> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Attempting to port Qemu 0.9.0 but it always fails at softmmu_header.h Reply-To: 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, I'm trying to port Qemu 0.9.0 to Syllable (An i386, POSIXish, ELF system) but the compilation always fails with: gcc -Wall -O2 -g -fno-strict-aliasing -mpreferred-stack-boundary=2 -fomit-frame-pointer -falign-functions=0 -fno-g cse -fno-reorder-blocks -fno-optimize-sibling-calls -I. -I.. -I/home/build/Temp/qemu-0.9.0/target-i386 -I/home/bu ild/Temp/qemu-0.9.0 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/home/build/Temp/qemu-0.9.0/fpu -DH AS_AUDIO -I/home/build/Temp/qemu-0.9.0/slirp -c -o op.o /home/build/Temp/qemu-0.9.0/target-i386/op.c /home/build/Temp/qemu-0.9.0/target-i386/ops_mem.h: In function `op_ldub_kernel_T0_A0': ../softmmu_header.h:119: error: can't find a register in class `GENERAL_REGS' while reloading `asm' make[1]: *** [op.o] Error 1 make[1]: Leaving directory `/boot/home/build/Temp/qemu-0.9.0/i386-softmmu' make: *** [subdir-i386-softmmu] Error 2 I am building with GCC 3.4.3, specifically: Reading specs from /boot/usr/gcc/bin/../lib/gcc/i586-pc-syllable/3.4.3/specs Configured with: /local/Temp/Gcc/gcc-3.4.3/./configure --prefix=/usr/gcc --enable-languages=c,c++ --with-arch=i586 --enable-sjlj-exceptions --enable-shared --enable-threads --with-system-zlib --disable-libstdcxx-pch Thread model: syllable gcc version 3.4.3 and the configure flags for Qemu I am using are: ./configure --target-list=i386-softmmu --disable-kqemu --prefix=/usr/qemu Googling around I can see that this can be a problem with GCC 4.x, and I've also run into the odd post that mentions a similar problem in a different header, but that refered to Qemu 0.8. On the off chance I have also tried compiling with different optimisation flags, including -O & -O1, but it made no difference. Can anyone shed any light on why I'm running into this problem? Are there any patches which may help, or is there anything else I can try? Thanks in advance. -- Vanders http://www.syllable.org http://www.liqwyd.com