From owner-freebsd-emulation@FreeBSD.ORG Sat Jan 11 02:49:13 2014 Return-Path: Delivered-To: freebsd-emulation@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 D2863AF2; Sat, 11 Jan 2014 02:49:13 +0000 (UTC) Received: from mail-lb0-x236.google.com (mail-lb0-x236.google.com [IPv6:2a00:1450:4010:c04::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C8B19174E; Sat, 11 Jan 2014 02:49:09 +0000 (UTC) Received: by mail-lb0-f182.google.com with SMTP id l4so3997234lbv.27 for ; Fri, 10 Jan 2014 18:49:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:cc:content-type; bh=Je4f6bKX4wSz6gIQDLqMYVqMlrGwB3mMsVnVeBdMPKk=; b=LfV7Qdljhqw+oFIy44nuytckYuQX+SzaHQNrpUK3Dd3vCszjPqX3sN0qTDnSQb5Dy7 WSu8p7VfG57WIkCQDXRpTCprB+nh9GzSmGO3eFeR2ORXgeKVd24BbL8ochz+JWTNB8cy Eki2eHF2AS6TDsl5KSbfCOZk3IiJrd97V98nHyjrIWfrQreTAoOcPt8LNpRHE5+Jqsey 2tb/VLACtv+10UJhD1x4fnOtYy/aTQ7N6hGdhK/EsU3YG+wOJAad47LqVWE9wVmqUS9y 9/MujTRijiga++64lm6vWol/rQr71EzQsjs28U2H7HsVYP3NCDLwp2PwG8AccXxQe2/0 NzZw== MIME-Version: 1.0 X-Received: by 10.152.143.101 with SMTP id sd5mr5181350lab.26.1389408547669; Fri, 10 Jan 2014 18:49:07 -0800 (PST) Sender: crodr001@gmail.com Received: by 10.112.38.43 with HTTP; Fri, 10 Jan 2014 18:49:07 -0800 (PST) Date: Fri, 10 Jan 2014 18:49:07 -0800 X-Google-Sender-Auth: hTkiL2SyEsSUTWzG1ZahpzCpN-g Message-ID: Subject: VirtualBox 4.3.6 + FreeBSD 10 + clang, [SUCCESS] From: Craig Rodrigues To: freebsd-emulation@freebsd.org, freebsd-ports@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 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: Sat, 11 Jan 2014 02:49:13 -0000 Hi, I had problems with the virtualbox-ose-4.22 port under FreeBSD 10.0-RC5, where VirtualBox would occasionally crash. It looks like the mix of QT C++ libraries compiled with clang, vs. the virtualbox-ose port compiled with g++46 was not a good mix After reading this post: http://lists.freebsd.org/pipermail/freebsd-emulation/2013-December/011171.html I obtained Jung-uk Kim's port Makefiles for VirtualBox and I managed to compile a build of VirtualBox 4.3.6 on my system which is not crashing. This is what I did: (1) Delete the virtualbox-ose port from my system: pkg delete virtualbox-ose pkg delete virtualbox-ose-kmod (2) Delete the gsoap port from my system pkg delete gsoap (3) Make sure that a valid FreeBSD src tree exists under /usr/src, otherwise the build will fail. (4) Check out jkim's tree from redports: mkdir -p /tmp/xy cd /tmp/xy svn co https://svn.redports.org/jkim (5) Build and install gsoap from jkim's port (you need to do this because the version of gsoap in the ports tree will result in failed compilation): cd /tmp/xy/jkim/devel/gsoap make make install (6) Build and install virtualbox-ose and virtualbox-ose-kmod ports. cd /tmp/xy/jkim/emulators/virtualbox-ose make make install cd /tmp/xy/jkim/emulators/virtualbox-ose-kmod make make install After doing this, I got a build of VirtualBox that: -> built against clang, does not depend on g++ libraries -> no need to unset QT_PLUGIN_PATH -> works and doesn't crash :) Thank you for doing this Jung-uk, it was quite a lot of work to port VirtualBox to clang! -- Craig