From owner-freebsd-emulation@FreeBSD.ORG Tue Dec 17 10:56:03 2013 Return-Path: Delivered-To: vbox@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 04591B59 for ; Tue, 17 Dec 2013 10:56:03 +0000 (UTC) Received: from mail-ob0-x230.google.com (mail-ob0-x230.google.com [IPv6:2607:f8b0:4003:c01::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B80F715FD for ; Tue, 17 Dec 2013 10:56:02 +0000 (UTC) Received: by mail-ob0-f176.google.com with SMTP id vb8so6086543obc.7 for ; Tue, 17 Dec 2013 02:56:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bluelife.at; s=google; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=xo/fmzKup4CUE8+XPCzsUH/R887X8GN5UCbbqj+VwoM=; b=MLLXS57ea32svsAJOlQUDJOzCuQ9jPTMiJb0oge6IH72sMxGhSzunq8XDvY39jMRjN f4OOrVLsu4v27y3CQZCqDw/NHKS9KzQruVmZX4YXEcPThYIbXMvqvqU/B4kgBrBGKvGG LlXeIbYIMPuzsge355kw/SKOo/L5mqOIeT3WQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=xo/fmzKup4CUE8+XPCzsUH/R887X8GN5UCbbqj+VwoM=; b=lNwyt9KX/OoBv6084uZvO4YpqsJVDV5D3B1XeYLPqmukfCBaeh/O0ue+yXEBiZdC4Y Uq4CCfuZMt6Z7+aENDg4hbr1dfPu+XOrh4sVgoXHlh40ma+es5GUZ/VvQ1wd29LrdWRA K558kzvo3MMaaDN5cFJIrU7csiZdb665jxaT+fTtJylLdxI1mnfZj+ET2zZVmoBevDU4 Rs3uemlUCcfpTykKq/yxoe6HCAjEvBBQ9A00GmMm9eguKJG3Yp00dbLBU5zRYcqdc69b /Ax2E/+XyXBM8AkbFM7xOtYhttZh5AWqLI82Cd20jEkdiXyMZ9XG7rgm8QhK5B7vKQTq JK1A== X-Gm-Message-State: ALoCoQlwWU2nMgYWT/ImQOBjH+WWBAHsgwHNtdd68AZMm7AKTCVKVBhIo7u9CGxXB9ytY2xd6Tcc MIME-Version: 1.0 X-Received: by 10.182.213.166 with SMTP id nt6mr15553485obc.53.1387277761930; Tue, 17 Dec 2013 02:56:01 -0800 (PST) Sender: decke@bluelife.at Received: by 10.76.154.2 with HTTP; Tue, 17 Dec 2013 02:56:01 -0800 (PST) X-Originating-IP: [80.123.233.199] In-Reply-To: <52AF8F8D.7070103@FreeBSD.org> References: <52AF4676.3020102@tds.net> <52AF8F8D.7070103@FreeBSD.org> Date: Tue, 17 Dec 2013 11:56:01 +0100 X-Google-Sender-Auth: FWiNTqoZw8yGYo85ylFZ3YYOC2A Message-ID: Subject: Re: Problem with compat9x From: =?ISO-8859-1?Q?Bernhard_Fr=F6hlich?= To: Jung-uk Kim Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Mailman-Approved-At: Tue, 17 Dec 2013 12:38:46 +0000 Cc: vbox@freebsd.org, Jason bacon X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Dec 2013 10:56:03 -0000 On Tue, Dec 17, 2013 at 12:41 AM, Jung-uk Kim wrote: > On 2013-12-16 14:57:55 -0500, Bernhard Fr=F6hlich wrote: >> >> Yes I am aware of that and if you look at the commit history you >> will see that I have tried to fix that issue with the last commit. >> It has fixed the issue for a couple of vbox binaries (VBoxSVC, >> VBoxManage) but some are still broken. (VBoxHeadless, VirtualBox) >> >> The conflicts entry for compat9x was there already and I will need >> to add it again as it seems. > > BTW, I have a real fix for the problem, i.e., build with Clang (well, > as much as possible). In fact, only couple of files (under > src/recompiler) are absolutely needed to be compiled with GCC in > 4.3.x. Therefore, there is no need for libstdc++.so dependency at all. > > Here are my experimental ports (based on official vbox@ ports, i.e., > https://redports.org/browser/virtualbox/emulators) > > http://redports.org/browser/jkim/emulators Probably I don't understand what you want to archive but I don't think patching virtualbox to compile 95% of it with clang and still having to compile the remaining 5% with gcc is of any benefit. We need to carry all the clang patches in our port which makes it a big beast and have likely no chance to get those workarounds included upstream because they won't accept patches for a compiler that can't fully build vbox. The issue that this thread talks about can be fixed in a much simpler way. In fact the VBoxHeadless and VirtualBox binaries do not have a RPATH at all - so all we need to do is fix the vbox buildsystem to add the RPATH to those binaries too like they already do for VBoxSVC and VBoxManage. --=20 Bernhard Froehlich http://www.bluelife.at/