Re: emulators/virtualbox-ose can't work when switching to gcc46

2013-11-11 Thread Beeblebrox
Volodymyr:
I ran into the same problem. Plus, I don't remember which port it was that I
compiled with gcc46.
I re-compiled VirtualBox normally (clang), bu the error persists.
Did you solve this? How?
Regards.



-
FreeBSD-11-current_amd64_root-on-zfs_RadeonKMS
--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/emulators-virtualbox-ose-can-t-work-when-switching-to-gcc46-tp5843793p5860186.html
Sent from the freebsd-emulation mailing list archive at Nabble.com.
___
freebsd-emulation@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscr...@freebsd.org"


Re: emulators/virtualbox-ose can't work when switching to gcc46

2013-09-13 Thread John Hein
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)

___
freebsd-emulation@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscr...@freebsd.org"


Re: emulators/virtualbox-ose can't work when switching to gcc46

2013-09-13 Thread Baptiste Daroussin
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++.

regards,
Bapt


pgpKTmq1WltNI.pgp
Description: PGP signature


emulators/virtualbox-ose can't work when switching to gcc46

2013-09-13 Thread Volodymyr Kostyrko

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?


--
Sphinx of black quartz, judge my vow.
___
freebsd-emulation@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscr...@freebsd.org"