From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EgsRE-0006JE-N6 for qemu-devel@nongnu.org; Mon, 28 Nov 2005 18:29:36 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EgsRC-0006Ig-7I for qemu-devel@nongnu.org; Mon, 28 Nov 2005 18:29:35 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EgsRB-0006IX-9w for qemu-devel@nongnu.org; Mon, 28 Nov 2005 18:29:33 -0500 Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1EgsRB-0006Mw-67 for qemu-devel@nongnu.org; Mon, 28 Nov 2005 18:29:33 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1EgrZx-0003iF-Ge for qemu-devel@nongnu.org; Mon, 28 Nov 2005 23:34:36 +0100 Received: from vol75-6-82-228-67-28.fbx.proxad.net ([82.228.67.28]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 28 Nov 2005 23:34:33 +0100 Received: from charpent by vol75-6-82-228-67-28.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 28 Nov 2005 23:34:33 +0100 From: Emmanuel Charpentier Date: Mon, 28 Nov 2005 23:27:30 +0100 Message-ID: <438B8452.6070309@bacbuc.dyndns.org> References: <20051128165951.GA28507@jbrown.mylinuxbox.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit In-Reply-To: <20051128165951.GA28507@jbrown.mylinuxbox.org> Sender: news Subject: [Qemu-devel] Re: Problem compiling with gcc 3.3 on 2.6.14 (Debian) 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 Jim C. Brown wrote: > On Mon, Nov 28, 2005 at 09:46:02AM +0100, Emmanuel Charpentier wrote: > >>Dear List, >> >>I recently upgraded to Linux 2.6.14 (as compiled as a 686 Debian >>package), and found that this distribution, too, has switched to GCC 4 >>for kernel. >> >>I tried to recompile a plain vanilla qemu 0.7.2 tarball : I switched to >>gcc 3.3 for this (in /usr/bin : ln -sf gcc-3.3 gcc ; ln -sf gccbug-3.3 >>gccbug ; ln -sf cpp-3.3 cpp ), planning to switch back to GCC 4 for >>recompilation of the kqemu subdirectory. This failed. >> > > > Strange. Haven't heard of this one before. > > Compiling the kqemu module should use the same compiler that the kernel uses > anyways. It doesn't use the same one that qemu uses, but the one in the kernel's > Makefile. I knew that ; that's whi I switched back to gcc 3.3 for compilation of the main package, planning to go back to GCC 4 for kqemu. but comiling this one needs a correctly configured qemu tree. > I also notice that your error seems to be with qemu-i386. This binary doesn't use > kqemu at all, so either don't use kqemu (if all you care about is i386-user) or > compile i386-softmmu only (if you want to use kqemu and don't care aboui i386-user). I''l try that. But the point isn't here. That's the first time I saw such a problem with qemu. Since what has changed is the kernel (and probably parts of the compilation system, BTW : Debian instable is ... well ... somewhat unstable...) > It is hard to make out the problem when the error messages aren't in english, btw. OK : I'll translate the error messages : All is fine and dandy up to the "compilation" (linking, in fact) of qemu-i386 : > gcc -g -Wl,-shared -o qemu-i386 elfload.o main.o syscall.o mmap.o > signal.o path.o osdep.o thunk.o vm86.o libqemu.a gdbstub.o -lm > /usr/bin/ld: section .note.ABI-tag [0000000000000468 -> > 0000000000000487] chevauche la section .hash [0000000000000114 -> > 00000000000027d3] > /usr/bin/ld: qemu-i386: Not enough room for program headers (allocated > 8, need 9) > /usr/bin/ld: édition de lien finale en échec: Mauvaise valeur /usr/bin/ld: final linking failed: bad value > collect2: ld a retourné 1 code d'état d'exécution collect2 returned 1 return value > make[1]: *** [qemu-i386] Erreur 1 > make[1]: *** [qemu-i386] Error 1 > make[1]: Leaving directory > `/home/charpent/qemu-source/qemu-0.7.2/i386-user' > make: *** [all] Erreur 1 make: *** [all] Error 1 Hoping this helps... Emmanuel Charpentier