From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=0.5 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, HTML_MESSAGE,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 922D6C433DF for ; Thu, 25 Jun 2020 18:37:06 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5C1A520789 for ; Thu, 25 Jun 2020 18:37:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=gmx.net header.i=@gmx.net header.b="GUKrxhCu" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5C1A520789 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=gmx.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:44398 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1joWkD-0006so-Ae for qemu-devel@archiver.kernel.org; Thu, 25 Jun 2020 14:37:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36562) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1joWg1-0004wn-8p for qemu-devel@nongnu.org; Thu, 25 Jun 2020 14:32:45 -0400 Received: from mout.gmx.net ([212.227.17.21]:48375) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1joWfz-0004FJ-07 for qemu-devel@nongnu.org; Thu, 25 Jun 2020 14:32:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1593109958; bh=eErjgf1ZFT03E6KnoZMERdnsUazevRGlvWvGZEMFBfo=; h=X-UI-Sender-Class:Date:From:To:Subject:References:In-Reply-To; b=GUKrxhCuUbHZaUXi9OpkXNtAp6HKBk6SPSJVNcH6YRedam8gW6D2nej8wIGZo6y/e 9vATVxFZs7NSSRpvg/N446N0Qshnc5hOboRMiaAZUu2CfrP3uT7y2dLCdzHPGqEsjj h013Ay3SOve2g6mpuPy1EspBHERci8kN/Fr4Uj5k= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.0.78] ([8.9.81.230]) by mail.gmx.com (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MulqN-1iyLf31g0Z-00rmXq; Thu, 25 Jun 2020 20:32:38 +0200 Message-ID: <5EF4EDC4.3030009@gmx.com> Date: Thu, 25 Jun 2020 14:32:36 -0400 From: Michele Denber User-Agent: Mozilla/5.0 (X11; SunOS sun4v; rv:10.0.7) Gecko/20121005 Thunderbird/10.0.7 MIME-Version: 1.0 To: eblake@redhat.com, qemu-devel@nongnu.org Subject: Re: Building in Solaris 11.4 References: <5EF4D332.6040003@gmx.com> In-Reply-To: <5EF4D332.6040003@gmx.com> Content-Type: multipart/alternative; boundary="------------080106010809040705050807" X-Provags-ID: V03:K1:8qUhtuFD4z0tO4SlUu3ua1M8YnjK8N1SaSON/DYJhhCEI6BxwPQ lIYTuvgvStKGWJdJAxzq2yRSI7sMmsXIZVpNJNg+hHTnV94eHZ/6kqCZqBrGqfDqVLH8Ykf cy3xgSB3sfdNRAFG89M6ea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 8s1CP5X45YNKGd/mWwIZICXqJx0xoAxZxIFWN1iJU9uMe5raO9FAHsG3N5zlYEmUoi8fOzstj zIY9aXaMPxC5YCkveJfNKqSx6hgWuKdln685MQA+EQA9FYrWC19Ewf6BJkLEx85NQeaA4LuG4 hr9wYrPlxcMJE7xcB64PZ+0nMgyLJ1o8rbFb7pzrJCAw9kxNOVpJNIJTGShjkHd5C68YsJ3MN ZmKzr3nqLdtS4ayvnMZ8sF425DYeBhU2FXL2fHmCc3zoy+bG0QqEkNfXQ4lBXO4D3dP8C8gLy QsaAQ9lYQIqPbZUXw Received-SPF: pass client-ip=212.227.17.21; envelope-from=mdenber@gmx.com; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/25 13:36:55 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -35 X-Spam_score: -3.6 X-Spam_bar: --- X-Spam_report: (-3.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" This is a multi-part message in MIME format. --------------080106010809040705050807 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: Building in Solaris 11.4 Date: Wed, 24 Jun 2020 16:48:51 -0500 From: Eric Blake Organization: Red Hat, Inc. To: Michele Denber , qemu-devel@nongnu.org > > As a short-term workaround, you can always do: > > /path/to/bash ./configure Ah yes, thank you. I now recall having that problem building 2.12 in Solaris 10 a few years ago. The default bash in Solaris 11.4 is /usr/bin/bash and that won't work. I used /opt/csw/bin/bash instead and that took care of the "local" problem. Similarly, the default Solaris grep is missing the -e option so I changed grep to ggrep in configure. POSIX was always problematic in Solaris because, I believe of Sun's efforts to maintain backward compatibility. So now I've got: root@hemlock:~/qemu-5.0.0# /opt/csw/bin/bash ./configure --cc=3Dgcc ERROR: sizeof(size_t) doesn't match GLIB_SIZEOF_SIZE_T. You probably need to set PKG_CONFIG_LIBDIR to point to the right pkg-config files for your build target root@hemlock:~/qemu-5.0.0# I fixed that by saying # LD_LIBRARY_PATH =3D/usr/openwin/lib:opt/csw/lib:/usr/local/lib:/lib:/opt/sfw/lib:/opt/csw/= gxx/lib:/usr/X11/lib # PKG_CONFIG_PATH=3D/opt/csw/lib/pkgconfig:/usr/local/lib/pkgconfig:/opt/sfw= /lib/pkgconfig:/usr/lib/pkgconfig # PKG_CONFIG_LIBDIR=3D/opt/csw/lib/pkgconfig:/usr/local/lib/pkgconfig:/opt/s= fw/lib/pkgconfig:/usr/lib/pkgconfig # /opt/csw/bin/bash ./configure --cc=3Dgcc --extra-cflags=3D"-m32" (Thankfully I still have some notes from building QEMU 2.12.) That gave me a successful configure ending with: The QEMU project intends to remove support for this host OS in a future release if nobody volunteers to maintain it and to provide a build host for our continuous integration setup. configure has succeeded and you can continue to build, but if you care about QEMU on this platform you should contact us upstream at qemu-devel@nongnu.org. So I hereby volunteer. I have an 8 core 64 thread 2.85 GHz. Sun T4-1 with 64 GB and three 900 GB disks and a 500 MB/50 MB fiber Internet connection.. Anyway, that's enough for one day. On to the gmake. I'm sure I'll have more questions soon :-) - Michele --------------080106010809040705050807 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable
Subjec= t: Re: Building in Solaris 11.4
Date: = Wed, 24 Jun 2020 16:48:51 -0500
From: = Eric Blake <eblake@redhat.com><= /a>
Organi= zation: Red Hat, Inc.
To: Michele Denber <mdenber@gmx.com>, qemu-devel@nongnu.org<= /a>



As a short-term workaround, you can always do:

/path/to/bash ./configure
Ah yes, thank you.=A0 I now recall having that problem building 2.12= =A0 in Solaris 10 a few years ago.=A0 The default bash in Solaris 11.4 is /usr/bin/bash and that won't work.=A0 I used /opt/csw/bin/bash instead and that took care of the "local" problem.

Similarly, the default Solaris grep is missing the -e option so I changed grep to ggrep in configure.=A0 POSIX was always problematic in Solaris because, I believe of Sun's efforts to maintain backward compatibility.

So now I've got:

root@hemlock:~/qemu-5.0.0# /opt/csw/bin/bash ./configur= e --cc=3Dgcc

ERROR: sizeof(size_t) doesn't match GLIB_SIZEOF_SIZE_T.
=A0=A0=A0=A0=A0=A0 You probably need to set PKG_CONFIG_LIBDIR
=A0=A0=A0=A0=A0=A0 to point to the right pkg-config files for your=
=A0=A0=A0=A0=A0=A0 build target
root@hemlock:~/qemu-5.0.0#


I fixed that by saying

# LD_LIBRARY_PATH =3D/usr/openwin/lib:opt/csw/lib:/usr/local/lib:/lib:/opt/sfw/lib:/opt/csw/= gxx/lib:/usr/X11/lib
# PKG_CONFIG_PATH=3D/opt/csw/lib/pkgconfig:/usr/local/lib/pkgconfig:/opt/sfw= /lib/pkgconfig:/usr/lib/pkgconfig
# PKG_CONFIG_LIBDIR=3D/opt/csw/lib/pkgconfig:/usr/local/lib/pkgconfig:/opt/s= fw/lib/pkgconfig:/usr/lib/pkgconfig

# /opt/csw/bin/bash ./configure --cc=3Dgcc=A0 --extra-cflags=3D"-m32= "

(Thankfully I still have some notes from building QEMU 2.12.)

That gave me a successful configure ending with:

The QEMU project intends to remove support for this host OS in
a future release if nobody volunteers to maintain it and to
provide a build host for our continuous integration setup.
configure has succeeded and you can continue to build, but
if you care about QEMU on this platform you should contact
us upstream at qemu-devel@nongnu.org.


So I hereby volunteer.=A0 I have an 8 core 64 thread 2.85 GHz. Sun T4-1 with 64 GB and three 900 GB disks and a 500 MB/50 MB fiber Internet connection..

Anyway, that's enough for one day.=A0 On to the gmake.=A0 I'm sure I'l= l have more questions soon :-)

=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 - Michele


--------------080106010809040705050807--