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=-9.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 59DC4C07E9B for ; Wed, 21 Jul 2021 01:41:37 +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 DC2CC610F7 for ; Wed, 21 Jul 2021 01:41:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DC2CC610F7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:32858 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m61Eu-00088Y-0F for qemu-devel@archiver.kernel.org; Tue, 20 Jul 2021 21:41:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36928) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m61De-0007NX-LQ for qemu-devel@nongnu.org; Tue, 20 Jul 2021 21:40:18 -0400 Received: from mail-vk1-xa31.google.com ([2607:f8b0:4864:20::a31]:45624) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m61Dc-0007R0-Tc for qemu-devel@nongnu.org; Tue, 20 Jul 2021 21:40:18 -0400 Received: by mail-vk1-xa31.google.com with SMTP id t5so209283vkm.12 for ; Tue, 20 Jul 2021 18:40:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=gIWSH3xm8AK7WYl7lAlEZZkzE39wsiptD/RtcPbccfc=; b=Cy7XW1X+GpeLpq+5ZqHDeVaL/2Elzfx81s4Y00shuFi1DwojLrTVtlWtfZJB7sqDmL e+47BnhkrAsKwSqVFO6hU/sF61FdTHVUg86V22UMPWTu88s8eK0uLSLFSehUUvSjEE6V qKTAYkHIjgK3ThVA48vnbxXvadtEqNxPEEsfZWokJOeRTqZNxMNJq2oWvUhOpT9N+pjK qkcNZ8JgXNy/reOiupNejmmZne/SQCaipUvdKJJmpJ8UOhjTK5KYOxofjZaEpn5tjRKe xkpPuN9OLg/zIZwHRLE4gTnNCCzRmbfGc2svSe3b7pizw1rwpqU3qmpCEHKXqc1uEy/f PNhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=gIWSH3xm8AK7WYl7lAlEZZkzE39wsiptD/RtcPbccfc=; b=f6E8xYEEosCMOdDGM9TMCw4D5Sf9DRnAyiKxrEUt0QtUFvKo6P1B4KPhEuYBVCd1xK 7RpWMGsqo0wNCBvBY8Lujg2nfMJVKs359KJJK8NqyEPsUJBj6eaOU1M7CzM0Yo0oat2s /uz/M+ZkZy5o67JRg91OyhChIhM1ZdQYJ44AreUPCpHXtjvHjztX1GYTbCB5dBwQ3+AF sJ1KrlYJeM609WRRO4Ov0xlCiyb5wegdSDlRUfwUzHquo8iJLfoWAiSSKo4wOYvywoy0 To5gcPEww4R9gQX7aiQ04h8G2lSdEmDkTzuZ/bTmFF1mLCJa3EyR/9cDDifK3e2NACb1 OhcQ== X-Gm-Message-State: AOAM5331KGV/oC8r5NxUgLQvk8EnG1NMiFxkHpzD8umtu23ybpYSLVvl joKf+vUiud5mXE8ch4RsBm14I0Kc94xhbtf9cpcSXKrBCBI= X-Google-Smtp-Source: ABdhPJxwxoIXbKLbFbml1FrwL5L+v/H/3x+QyTAU48MDsnODgoXMJU0U8Qu4RpB/xWrq7/wEMt8C+ThmdLc+732rOjI= X-Received: by 2002:a05:6122:17a7:: with SMTP id o39mr30053273vkf.25.1626831614770; Tue, 20 Jul 2021 18:40:14 -0700 (PDT) MIME-Version: 1.0 From: Richard Zak Date: Tue, 20 Jul 2021 21:40:04 -0400 Message-ID: Subject: [PATCH 1/2 v5] Configure script for Haiku To: QEMU Developers , Thomas Huth Content-Type: multipart/alternative; boundary="0000000000008209d905c7984013" Received-SPF: pass client-ip=2607:f8b0:4864:20::a31; envelope-from=richard.j.zak@gmail.com; helo=mail-vk1-xa31.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no 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" --0000000000008209d905c7984013 Content-Type: text/plain; charset="UTF-8" Signed-off-by: Richard Zak --- configure | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 232c54dcc1..163af793e9 100755 --- a/configure +++ b/configure @@ -768,7 +768,8 @@ SunOS) ;; Haiku) haiku="yes" - QEMU_CFLAGS="-DB_USE_POSITIVE_POSIX_ERRORS -D_BSD_SOURCE $QEMU_CFLAGS" + pie="no" + QEMU_CFLAGS="-DB_USE_POSITIVE_POSIX_ERRORS -D_BSD_SOURCE -fPIC $QEMU_CFLAGS" ;; Linux) audio_drv_list="try-pa oss" -- 2.25.1 v5: Proper formatting for patch (sorry) v4: This refers to the email from a few weeks ago, regarding TPM & Haiku. It seems the assertion failure isn't really about the TPM, but about disabling PIE and adding -fPIC. There's discussion on the Haiku forum[1] about the incompatibility with PIE, and this fixes the assertion failure without altering the TPM configuration variable. [1] https://discuss.haiku-os.org/t/qemu-on-haiku-sdl-issue/10961/6?u=rjzak Previously, the TPM option was causing an assertion error at util/async.c:669 qemu_set_current_aio_context() !my_aiocontext. I suspect it was because the TPM option may have implied PIE. This patch ensures PIE doesn't get used, but -fPIC is used instead. -- Regards, Richard J. Zak Professional Genius PGP Key: https://keybase.io/rjzak/key.asc --0000000000008209d905c7984013 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Signed-off-by: Richard Zak <richard.j.zak@gmail.com>
---
=C2=A0configure |= 3 ++-
=C2=A01 file changed, 2 insertions(+), 1 deletion(-)

diff = --git a/configure b/configure
index 232c54dcc1..163af793e9 100755
---= a/configure
+++ b/configure
@@ -768,7 +768,8 @@ SunOS)
=C2=A0;;=C2=A0Haiku)
=C2=A0 =C2=A0haiku=3D"yes"
- =C2=A0QEMU_CFLA= GS=3D"-DB_USE_POSITIVE_POSIX_ERRORS -D_BSD_SOURCE $QEMU_CFLAGS"+ =C2=A0pie=3D"no"
+ =C2=A0QEMU_CFLAGS=3D"-DB_USE_POSIT= IVE_POSIX_ERRORS -D_BSD_SOURCE -fPIC $QEMU_CFLAGS"
=C2=A0;;
=C2= =A0Linux)
=C2=A0 =C2=A0audio_drv_list=3D"try-pa oss"
-- 2.25.1

v5: Proper formatting for patch (sorry)
<= /div>
v4:
This refers to the email from a few weeks = ago, regarding TPM &=20 Haiku. It seems the assertion failure isn't really about the TPM, but= =20 about disabling PIE and adding -fPIC. There's discussion on the Haiku= =20 forum[1] about the incompatibility with PIE, and this fixes the=20 assertion failure without altering the TPM configuration variable.
[1] https://discuss.haiku-os.org/t/qemu-on-ha= iku-sdl-issue/10961/6?u=3Drjzak

Previously, the TPM option was causing an assertion error at util/async.c:669=20 qemu_set_current_aio_context() !my_aiocontext. I suspect it was because=20 the TPM option may have implied PIE. This patch ensures PIE doesn't get= =20 used, but -fPIC is used instead.



-- <= br>
Reg= ards,

Richard J. Zak
Professional Genius
--0000000000008209d905c7984013--