From owner-freebsd-emulation@FreeBSD.ORG Fri Sep 13 15:19:41 2013 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 88D348D4 for ; Fri, 13 Sep 2013 15:19:41 +0000 (UTC) (envelope-from emul-jfbml@snkmail.com) Received: from sneak2.sneakemail.com (sneak2.sneakemail.com [38.113.6.65]) by mx1.freebsd.org (Postfix) with SMTP id 2918F28D2 for ; Fri, 13 Sep 2013 15:19:40 +0000 (UTC) Received: (qmail 14490 invoked from network); 13 Sep 2013 15:13:00 -0000 Received: from unknown (HELO localhost.localdomain) (192.168.0.1) by sneak2.sneakemail.com with SMTP; 13 Sep 2013 15:13:00 -0000 Received: from 206.168.13.214 by mail.sneakemail.com with SMTP; 13 Sep 2013 15:13:00 -0000 Received: (sneakemail censored 6880-1379085164-101086 #2); 13 Sep 2013 15:13:00 -0000 Received: (sneakemail censored 6880-1379085164-101086 #1); 13 Sep 2013 15:13:00 -0000 Date: Fri, 13 Sep 2013 09:10:38 -0600 (MDT) Message-ID: <6880-1379085164-101086@sneakemail.com> From: "John Hein" To: emulation@freebsd.org To: Volodymyr Kostyrko , MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: emulators/virtualbox-ose can't work when switching to gcc46 In-Reply-To: <20130913132232.GK33103@ithaqua.etoilebsd.net> References: <20130913132232.GK33103@ithaqua.etoilebsd.net> <52330635.5080301@gmail.com> X-Mailer: Perl5 Mail::Internet v 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 15:19:41 -0000 Baptiste Daroussin wrote at 15:22 +0200 on Sep 13, 2013: > On Fri, Sep 13, 2013 at 03:33:57PM +0300, Volodymyr Kostyrko wrote: > > Hello. > > > > Just a tiny background. I'm just experimenting with getting rid of > > in-base gcc and using compiler from ports whenever possible. And gcc46 > > produces much better code then our gcc42. > > > > When I change USE_GCC to yes everything compiles and install perfectly. > > But when I try to run VirtualBox I get this: > > > > VirtualBox: Error -610 in supR3HardenedMainInitRuntime! > > VirtualBox: dlopen("/usr/local/lib/virtualbox/VBoxRT.so",) failed: > > /usr/lib/libstdc++.so.6: version GLIBCXX_3.4.15 required by > > /usr/local/lib/virtualbox/VBoxRT.so not found > > > > VirtualBox: Tip! It may help to reinstall VirtualBox. > > > > Substituting /usr/lib/libstdc++.so.6 with > > /usr/local/lib/gcc46/libstdc++.so.6 fixes that and VirtualBox is fully > > functional, but this looks like wrong library resolution order or what? > > Can this be fixed somewhere in the port or should I brag the guys that > > 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 linked > against the base version of libstdc++ and vbox with gcc46 is linking against a > newer version of libstdc++. -nostdlib? or maybe -nodefaultlibs? & related options (see gcc info docs)