From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KaZrn-0000CS-Ch for qemu-devel@nongnu.org; Tue, 02 Sep 2008 13:40:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KaZrm-0000Bq-6N for qemu-devel@nongnu.org; Tue, 02 Sep 2008 13:40:34 -0400 Received: from [199.232.76.173] (port=36571 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KaZrl-0000Bl-V6 for qemu-devel@nongnu.org; Tue, 02 Sep 2008 13:40:34 -0400 Received: from relay01.mx.bawue.net ([193.7.176.67]:58925) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KaZrl-0006TP-Fe for qemu-devel@nongnu.org; Tue, 02 Sep 2008 13:40:33 -0400 Date: Tue, 2 Sep 2008 19:40:29 +0200 From: Thiemo Seufer Subject: Re: [Qemu-devel] mips user emulation broken in current SVN Message-ID: <20080902174029.GA12869@networkno.de> References: <48BD47D9.5080607@wpkg.org> <20080902154436.GA3275@networkno.de> <48BD6FFB.2060701@wpkg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48BD6FFB.2060701@wpkg.org> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Tomasz Chmielewski Cc: qemu-devel@nongnu.org Tomasz Chmielewski wrote: > Thiemo Seufer schrieb: >> Tomasz Chmielewski wrote: >>> I just fetched the newest SVN revision (5132), tried to build usermode emulation targets, but it fails for mips and mipsel: >>> >>> To reproduce: >>> >>> $ ./configure --disable-system --static --enable-linux-user --disable-sdl --target-list=mipsel-linux-user >>> $ make >>> make -C mipsel-linux-user all >>> (...) >>> gcc-3.3.6 -g -m32 -static -Wl,-T,/usr/src/qemu-trunk-5132/i386.ld -o qemu-mipsel main.o syscall.o strace.o mmap.o signal.o path.o thunk.o elfload.o linuxload.o uaccess.o gdbstub.o libqemu.a ../libqemu_user.a -lm -lrt -lpthread >>> libqemu.a(translate.o): In function `r4k_mmu_init': >>> /usr/src/qemu-trunk-5132/target-mips/translate_init.c:458: undefined reference to `r4k_do_tlbwi' >>> /usr/src/qemu-trunk-5132/target-mips/translate_init.c:459: undefined reference to `r4k_do_tlbwr' >>> /usr/src/qemu-trunk-5132/target-mips/translate_init.c:460: undefined reference to `r4k_do_tlbp' >>> /usr/src/qemu-trunk-5132/target-mips/translate_init.c:461: undefined reference to `r4k_do_tlbr' >>> collect2: ld returned 1 exit status >>> make[1]: *** [qemu-mipsel] Error 1 >>> make[1]: Leaving directory `/usr/src/qemu-trunk-5132/mipsel-linux-user' >>> make: *** [subdir-mipsel-linux-user] Error 2 >> >> Not reproducible here, I figure you have stale object files around in >> those directories. > > It fails to compile for me on three different machines/distributions > (both with gcc 3.3.6) with a fresh svn checkout (now with trunk 5137) > and it failed in the same way. > > It compiles with gcc 3.4.6 though - is it expected (everything else > compiles with gcc 3.3.6)? I generally use 3.4. It looks like 3.3 isn't intelligent enough to remove such dead code. I comitted a patch which hopefully fixes it. Thiemo