From owner-freebsd-emulation@FreeBSD.ORG Fri Sep 13 13:22:38 2013 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 ESMTP id 68E8F16B for ; Fri, 13 Sep 2013 13:22:38 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: from mail-we0-x233.google.com (mail-we0-x233.google.com [IPv6:2a00:1450:400c:c03::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 008622246 for ; Fri, 13 Sep 2013 13:22:37 +0000 (UTC) Received: by mail-we0-f179.google.com with SMTP id x55so1115653wes.38 for ; Fri, 13 Sep 2013 06:22:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=xTdo+v6btdqBVvPWzGWgfUsnvNH1fs9epwsmyYBN3Iw=; b=jDxPE+nbNwb7afsWb2DLUS9/lSk/cPyjxesJJc2P7nQAnjTMw+YCZDUw7e/DKXs0NV euAzCI6dsaTHXBsmFaQCm5opkVEwT9iMve7vD+yHxxjhZsQhNaXcIAOb+eH9nEGyAjsb fb7oPcnVmEgjslhqz65L+RXj9jhZOh89I6FJNsloG4/5+Jb/qscJXBoJHThkPh+JhRh5 ss4ha4S6nkoO9ybhatL1mGxncNsVwbK/Aj+dI3Q2olYo2bOv3oZMl62Aqk/loMDuX1mf OwO0/Z/UCtVjS9z5xJLmydj8fcKsaz0ldNEW3jJIyjFoG645usEoaxpYQEkAthc8/8X6 enuQ== X-Received: by 10.194.5.35 with SMTP id p3mr1534351wjp.47.1379078556395; Fri, 13 Sep 2013 06:22:36 -0700 (PDT) Received: from ithaqua.etoilebsd.net (ithaqua.etoilebsd.net. [37.59.37.188]) by mx.google.com with ESMTPSA id e5sm3549233wiy.2.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 06:22:35 -0700 (PDT) Sender: Baptiste Daroussin Date: Fri, 13 Sep 2013 15:22:32 +0200 From: Baptiste Daroussin To: Volodymyr Kostyrko Subject: Re: emulators/virtualbox-ose can't work when switching to gcc46 Message-ID: <20130913132232.GK33103@ithaqua.etoilebsd.net> References: <52330635.5080301@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="aziWXe2aaRGlkyg3" Content-Disposition: inline In-Reply-To: <52330635.5080301@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-emulation@freebsd.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.14 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: Fri, 13 Sep 2013 13:22:38 -0000 --aziWXe2aaRGlkyg3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 13, 2013 at 03:33:57PM +0300, Volodymyr Kostyrko wrote: > Hello. >=20 > Just a tiny background. I'm just experimenting with getting rid of=20 > in-base gcc and using compiler from ports whenever possible. And gcc46=20 > produces much better code then our gcc42. >=20 > When I change USE_GCC to yes everything compiles and install perfectly.= =20 > But when I try to run VirtualBox I get this: >=20 > VirtualBox: Error -610 in supR3HardenedMainInitRuntime! > VirtualBox: dlopen("/usr/local/lib/virtualbox/VBoxRT.so",) failed:=20 > /usr/lib/libstdc++.so.6: version GLIBCXX_3.4.15 required by=20 > /usr/local/lib/virtualbox/VBoxRT.so not found >=20 > VirtualBox: Tip! It may help to reinstall VirtualBox. >=20 > Substituting /usr/lib/libstdc++.so.6 with=20 > /usr/local/lib/gcc46/libstdc++.so.6 fixes that and VirtualBox is fully=20 > functional, but this looks like wrong library resolution order or what?= =20 > Can this be fixed somewhere in the port or should I brag the guys that=20 > stay behind adopting clang? Or is this rather a problem with gcc port? This looks like the libstdc++ nigthmare, you can't mix multiple version of libstdc++ because they are incompatible! one of the vbox dependency is link= ed against the base version of libstdc++ and vbox with gcc46 is linking agains= t a newer version of libstdc++. regards, Bapt --aziWXe2aaRGlkyg3 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlIzEZgACgkQ8kTtMUmk6Ez9xQCfQUKHOwl7lhe1Kp5J8y3dNn9T ov0Anj/kWjoWEoWt+qDIC9ItiwlpLcK0 =X+yT -----END PGP SIGNATURE----- --aziWXe2aaRGlkyg3--