From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GhUTu-0005sO-Rm for qemu-devel@nongnu.org; Tue, 07 Nov 2006 12:11:26 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GhUTt-0005q6-5p for qemu-devel@nongnu.org; Tue, 07 Nov 2006 12:11:26 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GhUTt-0005pu-0S for qemu-devel@nongnu.org; Tue, 07 Nov 2006 12:11:25 -0500 Received: from [66.249.92.168] (helo=ug-out-1314.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GhUTr-0006wA-MI for qemu-devel@nongnu.org; Tue, 07 Nov 2006 12:11:24 -0500 Received: by ug-out-1314.google.com with SMTP id j40so1114592ugd for ; Tue, 07 Nov 2006 09:11:21 -0800 (PST) Message-ID: <779506c70611070911h2a984c11t4d82b521a315e40d@mail.gmail.com> Date: Tue, 7 Nov 2006 12:11:20 -0500 From: "Leonardo Reiter" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: [Qemu-devel] 64-bit toolchain for Solaris 10 on amd64? Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEMU Developers Mailing List Hello, I apologize in advance if this was already discussed, but I cannot find any information on it. I am trying to compile QEMU (CVS) on a 64-bit Solaris 10 host (amd64), as a 64-bit binary. This is "official" Sun Solaris 10, not OpenSolaris. I used the existing "port" from the Open Solaris project as a guide. I have also tried to compile that one on its own without modifications, and despite having the blastwave toolchain installed as suggested, the gcc 3.4.5 still does not support -m64. For example, when compiling a simple test program (with just an empty main() function): $ /opt/csw/gcc3/bin/gcc -m64 /tmp/test.c /tmp/test.c:1: sorry, unimplemented: 64-bit mode not compiled in this is also of course true with the default gcc that comes with Solaris, the one from sunfreeware, as well as any GCC that I can possibly compile myself (even trying to enable bi-arch support, but with dubious understanding of this.) I understand that the Open Solaris project has binaries already compiled, but I need to build QEMU from source on my own on this platform, and it has to be a 64-bit binary. Can someone point out where the 64-bit toolchains (gcc mainly) can be found, or if not, any special trick to get the blastwave package to install whatever 64-bit support is needed, if any? Obviously the QEMU binaries were built somehow by the Open Solaris project, but it's not clear what tool chain they used. The blastwave compiler they refer to in the configure script of the package does not support -m64 as expected, so I'm not sure how/what they used to build this. Alternatively, some hints on building my own gcc (i.e. what configure options to pass) would help, even if it means adding 3rd-party patches. I believe there is a SunSolve patch for gcc but was hoping to find a pre-built solution if possible. note that I am not concerned about the host fixes needed to the QEMU code itself, just the toolchain issues. In fact, I'd be delighted to be able to compile the source from this Open Solaris tarball on a Sun Solaris 10 amd64 host: http://opensolaris.org/os/project/qemu/downloads/qemu-0.8.2-solaris_src_20061013fri.tar.bz2 This tarball already has the changes needed to get QEMU to compile on a Solaris host, but again, it assumes a gcc toolchain that supports -m64, which I cannot find. Thank you very much in advance, Leo Reiter