(no subject)

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

(no subject)

andy-21
FreeBSD FBSD10 10.0-CURRENT FreeBSD 10.0-CURRENT #33 r246130: Wed Jan 30
15:00:08 EST 2013     root@FBSD10:/usr/obj/usr/src/sys/MYKERNEL  amd64

I just rebuilt the world and kernel.  Then I rebuilt
/usr/ports/emulators/virtualbox-ose-kmod.

# kldstat
Id Refs Address            Size     Name
  1   24 0xffffffff80200000 116fac0  kernel
  2    1 0xffffffff81370000 ee74c8   nvidia.ko
  3    3 0xffffffff82258000 1393f8   linux.ko
  4    1 0xffffffff82412000 997d     linprocfs.ko
  5    1 0xffffffff8241c000 344b     ums.ko
  6    1 0xffffffff82420000 29c3     uhid.ko
  7    1 0xffffffff82423000 2e7b0    vboxdrv.ko


# pkg info |grep box
virtualbox-ose-4.2.6           A general-purpose full virtualizer for x86
hardware
virtualbox-ose-kmod-4.2.6_1    VirtualBox kernel module for FreeBSD

Virtualbox suddenly broke for me, possibly related
to this:
http://svnweb.FreeBSD.org/base?view=revision&revision=246028

Fix some symbol version mismatches between libstdc++ and
libsupc++/libcxxrt that were causing the runtime and STL libraries to see
different versions of various classes and functions when libstdc++ is used as a filter.

When I try to start Vbox it fails with:
# VirtualBox
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


With all due respect to developers, are these changes tested at all before
they are added to the codebase?

I understand this is a development branch.  I am not a developer, but it
seems to me more thought and testing should be done before changes like
this are committed.

_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re:

Olivier Smedts
2013/1/30 AN <[hidden email]>:
> With all due respect to developers, are these changes tested at all before
> they are added to the codebase?

Won't sound respectful if the problem is not related to that commit.

Which compiler are you using for the base system, and for ports ?
(more specifically for the virtualbox ports) I had the same kind of
errors when compiling virtualbox with gcc46, not the one in base.

--
Olivier Smedts                                                 _
                                        ASCII ribbon campaign ( )
e-mail: [hidden email]        - against HTML email & vCards  X
www: http://www.gid0.org    - against proprietary attachments / \

  "Il y a seulement 10 sortes de gens dans le monde :
  ceux qui comprennent le binaire,
  et ceux qui ne le comprennent pas."
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re:

David Chisnall-2
In reply to this post by andy-21
On 30 Jan 2013, at 21:23, AN wrote:

> 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

GLIBCXX_3.4.15 is the symbol version of the libstdc++ that ships with gcc 4.6.  You are trying to compile something against a (newer) libstdc++ from ports and then run it linked against the (older) libstdc++ from the base system.  Oddly enough, this doesn't work.

David


signature.asc (858 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re:

andy-21
In reply to this post by Olivier Smedts


On Thu, 31 Jan 2013, Olivier Smedts wrote:

> 2013/1/30 AN <[hidden email]>:
>> With all due respect to developers, are these changes tested at all before
>> they are added to the codebase?
>
> Won't sound respectful if the problem is not related to that commit.
>
> Which compiler are you using for the base system, and for ports ?
> (more specifically for the virtualbox ports) I had the same kind of
> errors when compiling virtualbox with gcc46, not the one in base.
>
> --
> Olivier Smedts                                                 _
>                                        ASCII ribbon campaign ( )
> e-mail: [hidden email]        - against HTML email & vCards  X
> www: http://www.gid0.org    - against proprietary attachments / \
>
>  "Il y a seulement 10 sortes de gens dans le monde :
>  ceux qui comprennent le binaire,
>  et ceux qui ne le comprennent pas."
>


Hi Olivier:

FreeBSD FBSD10 10.0-CURRENT FreeBSD 10.0-CURRENT #33 r246130: Wed Jan 30
15:00:08 EST 2013     root@FBSD10:/usr/obj/usr/src/sys/MYKERNEL  amd64

# cc -v
FreeBSD clang version 3.2 (tags/RELEASE_32/final 170710) 20121221
Target: x86_64-unknown-freebsd10.0
Thread model: posix

# c++ -v
FreeBSD clang version 3.2 (tags/RELEASE_32/final 170710) 20121221
Target: x86_64-unknown-freebsd10.0
Thread model: posix

I also have installed as ports:

# pkg info |grep gcc
gcc-4.7.3.20130119             GNU Compiler Collection 4.7
gcc-4.6.4.20130125             GNU Compiler Collection 4.6
gcc-aux-20120614_1             Version of GCC 4.7 with full Ada support
gccmakedep-1.0.2               Create dependencies in makefiles using 'gcc
-M'

Here is:

# cat /etc/make.conf

# added by use.perl 2012-12-05 00:36:53
PERL_VERSION=5.16.2

#.include "/usr/local/etc/port_sites.conf"

QT4_OPTIONS= QGTKSTYLE
MALLOC_PRODUCTION=yes

OVERRIDE_LINUX_BASE_PORT=f10


I do not have anything in src.conf

I rebuilt Vbox with both gcc-4.6.4.20130125 and gcc-4.7.3.20130119, and I
get the same failure which is:
# VirtualBox
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


If I build Vbox with gcc4.2.1 it fails with:

6 warnings and 2 errors generated.
kmk: ***
[/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/out/freebsd.amd64/release/obj/VBoxC/src-client/ConsoleImpl2.o]
Error 1
The failing command:
@c++ -c -O2 -fPIC -g -pipe -pedantic -Wshadow -Wshadow -Wall -Wextra
-Wno-missing-field-initializers -Wno-unused -Wno-trigraphs
-fdiagnostics-show-option -Wno-long-long -Wno-long-long
-Wno-delete-non-virtual-dtor -Wno-variadic-macros -Wno-long-long
-Wno-non-virtual-dtor -Wshadow -fshort-wchar -fpermissive -fexceptions
-frtti -O2 -mtune=generic -fno-omit-frame-pointer -fno-strict-aliasing
-fvisibility-inlines-hidden -fvisibility=hidden
-DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT -m64
-I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/src/VBox/Main/include
-I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/out/freebsd.amd64/release/obj/VBoxC
-I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/out/freebsd.amd64/release/obj/Main/
-I/usr/include -I/usr/X11R6/include -I/usr/local/include
-I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/out/freebsd.amd64/release/bin/sdk/bindings/xpcom/include
-I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/out/freebsd.amd64/release/bin/sdk/bindings/xpcom/include/xpcom
-I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/out/freebsd.amd64/release/bin/sdk/bindings/xpcom/include/string
-I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/out/freebsd.amd64/release/bin/sdk/bindings/xpcom/include/xpcom
-I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/out/freebsd.amd64/release/bin/sdk/bindings/xpcom/include/nsprpub
-I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/out/freebsd.amd64/release/bin/sdk/bindings/xpcom/include/ipcd
-I/usr/local/include/libpng
-I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/include
-I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/out/freebsd.amd64/release
-DVBOX -DVBOX_WITH_DEBUGGER -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS
-DVBOX_WITH_HARDENING -DRT_OS_FREEBSD -D__FREEBSD__ -DRT_ARCH_AMD64
-D__AMD64__ -DRTPATH_APP_PRIVATE=\"/usr/local/share/virtualbox-ose\"
-DRTPATH_APP_PRIVATE_ARCH=\"/usr/local/lib/virtualbox\"
-DRTPATH_SHARED_LIBS=\"/usr/local/lib/virtualbox\"
-DRTPATH_APP_DOCS=\"/usr/local/share/doc/virtualbox-ose\" -DPIC -DIN_RING3
-DUNICODE -DNDEBUG=1 -DVBOX_WITH_XPCOM -DIN_RING3
-DVBOX_WITH_SYS_V_IPC_SESSION_WATCHER -DVBOX_WITH_RAW_MODE
-DVBOX_WITH_NETFLT -DVBOX_WITH_CROGL -DVBOX_WITH_GUEST_PROPS
-DVBOX_WITH_GUEST_CONTROL -DVBOX_WITH_USB_CARDREADER
-DVBOX_WITH_HOSTNETIF_API -DVBOX_WITH_NEW_SYS_V_KEYGEN -DVBOX_COM_INPROC
-DVBOX_WITH_VRDP_VIDEO_CHANNEL -DVBOX_WITH_HGCM -DVBOX_WITH_ALSA
-DVBOX_WITH_E1000 -DVBOX_WITH_VIRTIO -DVBOX_WITH_EFI
-DVBOX_WITH_PDM_ASYNC_COMPLETION -DVBOX_WITH_VUSB -DVBOX_WITH_HGSMI
-DVBOX_WITH_VIDEOHWACCEL -DVBOX_WITH_USB -DVBOX_WITH_EHCI
-DVBOX_WITH_EXTPACK -DVBOX_WITH_PCI_PASSTHROUGH -DVBOX_WITH_CRHGSMI
-DVBOX_WITH_NETSHAPER
-Wp,-MD,/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/out/freebsd.amd64/release/obj/VBoxC/src-client/ConsoleImpl2.o.dep
-Wp,-MT,/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/out/freebsd.amd64/release/obj/VBoxC/src-client/ConsoleImpl2.o
-Wp,-MP -o
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/out/freebsd.amd64/release/obj/VBoxC/src-client/ConsoleImpl2.o
/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/src/VBox/Main/src-client/ConsoleImpl2.cpp
*** [do-build] Error code 2

Stop in /usr/ports/emulators/virtualbox-ose.
*** [install] Error code 1

See full log here:
http://sebsauvage.net/paste/?ca19b77777ca1a9e#4ZPQHnM4hsCAIk2mUxbejW1zvNfCv3uGqR52u4j6fLs=

So it seems Vbox is broken using any GCC compiler right now.  I do not
know how to get Vbox to use clang compiler.  IIRC, Vbox will not build
with clang (I could be wrong).


You said "I had the same kind of
> errors when compiling virtualbox with gcc46, not the one in base."

What revision number are you at?  Does Vbox work for you right now?  How
do you compile VBox?

What do I need to do to make Vbox work again?


_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re:

Olivier Smedts
2013/1/31 AN <[hidden email]>:

>
>
> On Thu, 31 Jan 2013, Olivier Smedts wrote:
>
>> 2013/1/30 AN <[hidden email]>:
>>>
>>> With all due respect to developers, are these changes tested at all
>>> before
>>> they are added to the codebase?
>>
>>
>> Won't sound respectful if the problem is not related to that commit.
>>
>> Which compiler are you using for the base system, and for ports ?
>> (more specifically for the virtualbox ports) I had the same kind of
>> errors when compiling virtualbox with gcc46, not the one in base.
>>
>> --
>> Olivier Smedts                                                 _
>>                                        ASCII ribbon campaign ( )
>> e-mail: [hidden email]        - against HTML email & vCards  X
>> www: http://www.gid0.org    - against proprietary attachments / \
>>
>>  "Il y a seulement 10 sortes de gens dans le monde :
>>  ceux qui comprennent le binaire,
>>  et ceux qui ne le comprennent pas."
>>
>
>
> Hi Olivier:
>
>
> FreeBSD FBSD10 10.0-CURRENT FreeBSD 10.0-CURRENT #33 r246130: Wed Jan 30
> 15:00:08 EST 2013     root@FBSD10:/usr/obj/usr/src/sys/MYKERNEL  amd64
>
> # cc -v
> FreeBSD clang version 3.2 (tags/RELEASE_32/final 170710) 20121221
> Target: x86_64-unknown-freebsd10.0
> Thread model: posix
>

The answers are in your reply :

> # c++ -v
> FreeBSD clang version 3.2 (tags/RELEASE_32/final 170710) 20121221
> Target: x86_64-unknown-freebsd10.0
> Thread model: posix

So "c++" is clang, not base gcc.

> I also have installed as ports:
>
> # pkg info |grep gcc
> gcc-4.7.3.20130119             GNU Compiler Collection 4.7
> gcc-4.6.4.20130125             GNU Compiler Collection 4.6
> gcc-aux-20120614_1             Version of GCC 4.7 with full Ada support
> gccmakedep-1.0.2               Create dependencies in makefiles using 'gcc
> -M'
>
> Here is:
>
> # cat /etc/make.conf
>
> # added by use.perl 2012-12-05 00:36:53
> PERL_VERSION=5.16.2
>
> #.include "/usr/local/etc/port_sites.conf"
>
> QT4_OPTIONS= QGTKSTYLE
> MALLOC_PRODUCTION=yes
>
> OVERRIDE_LINUX_BASE_PORT=f10
>
>
> I do not have anything in src.conf
>
> I rebuilt Vbox with both gcc-4.6.4.20130125 and gcc-4.7.3.20130119, and I
> get the same failure which is:
>
> # VirtualBox
> 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
>
>
> If I build Vbox with gcc4.2.1 it fails with:
>
> 6 warnings and 2 errors generated.
> kmk: ***
> [/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/out/freebsd.amd64/release/obj/VBoxC/src-client/ConsoleImpl2.o]
> Error 1
> The failing command:
> @c++ -c -O2 -fPIC -g -pipe -pedantic -Wshadow -Wshadow -Wall -Wextra
> -Wno-missing-field-initializers -Wno-unused -Wno-trigraphs
> -fdiagnostics-show-option -Wno-long-long -Wno-long-long
> -Wno-delete-non-virtual-dtor -Wno-variadic-macros -Wno-long-long
> -Wno-non-virtual-dtor -Wshadow -fshort-wchar -fpermissive -fexceptions
> -frtti -O2 -mtune=generic -fno-omit-frame-pointer -fno-strict-aliasing
> -fvisibility-inlines-hidden -fvisibility=hidden
> -DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT -m64
> -I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/src/VBox/Main/include
> -I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/out/freebsd.amd64/release/obj/VBoxC
> -I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/out/freebsd.amd64/release/obj/Main/
> -I/usr/include -I/usr/X11R6/include -I/usr/local/include
> -I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/out/freebsd.amd64/release/bin/sdk/bindings/xpcom/include
> -I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/out/freebsd.amd64/release/bin/sdk/bindings/xpcom/include/xpcom
> -I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/out/freebsd.amd64/release/bin/sdk/bindings/xpcom/include/string
> -I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/out/freebsd.amd64/release/bin/sdk/bindings/xpcom/include/xpcom
> -I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/out/freebsd.amd64/release/bin/sdk/bindings/xpcom/include/nsprpub
> -I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/out/freebsd.amd64/release/bin/sdk/bindings/xpcom/include/ipcd
> -I/usr/local/include/libpng
> -I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/include
> -I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/out/freebsd.amd64/release
> -DVBOX -DVBOX_WITH_DEBUGGER -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS
> -DVBOX_WITH_HARDENING -DRT_OS_FREEBSD -D__FREEBSD__ -DRT_ARCH_AMD64
> -D__AMD64__ -DRTPATH_APP_PRIVATE=\"/usr/local/share/virtualbox-ose\"
> -DRTPATH_APP_PRIVATE_ARCH=\"/usr/local/lib/virtualbox\"
> -DRTPATH_SHARED_LIBS=\"/usr/local/lib/virtualbox\"
> -DRTPATH_APP_DOCS=\"/usr/local/share/doc/virtualbox-ose\" -DPIC -DIN_RING3
> -DUNICODE -DNDEBUG=1 -DVBOX_WITH_XPCOM -DIN_RING3
> -DVBOX_WITH_SYS_V_IPC_SESSION_WATCHER -DVBOX_WITH_RAW_MODE
> -DVBOX_WITH_NETFLT -DVBOX_WITH_CROGL -DVBOX_WITH_GUEST_PROPS
> -DVBOX_WITH_GUEST_CONTROL -DVBOX_WITH_USB_CARDREADER
> -DVBOX_WITH_HOSTNETIF_API -DVBOX_WITH_NEW_SYS_V_KEYGEN -DVBOX_COM_INPROC
> -DVBOX_WITH_VRDP_VIDEO_CHANNEL -DVBOX_WITH_HGCM -DVBOX_WITH_ALSA
> -DVBOX_WITH_E1000 -DVBOX_WITH_VIRTIO -DVBOX_WITH_EFI
> -DVBOX_WITH_PDM_ASYNC_COMPLETION -DVBOX_WITH_VUSB -DVBOX_WITH_HGSMI
> -DVBOX_WITH_VIDEOHWACCEL -DVBOX_WITH_USB -DVBOX_WITH_EHCI
> -DVBOX_WITH_EXTPACK -DVBOX_WITH_PCI_PASSTHROUGH -DVBOX_WITH_CRHGSMI
> -DVBOX_WITH_NETSHAPER

You can see the command failing is "c++", so... clang. Because
WITH_CLANG_IS_CC is default on 10-CURRENT now.

> -Wp,-MD,/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/out/freebsd.amd64/release/obj/VBoxC/src-client/ConsoleImpl2.o.dep
> -Wp,-MT,/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/out/freebsd.amd64/release/obj/VBoxC/src-client/ConsoleImpl2.o
> -Wp,-MP -o
> /usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/out/freebsd.amd64/release/obj/VBoxC/src-client/ConsoleImpl2.o
> /usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/src/VBox/Main/src-client/ConsoleImpl2.cpp
> *** [do-build] Error code 2
>
> Stop in /usr/ports/emulators/virtualbox-ose.
> *** [install] Error code 1
>
> See full log here:
> http://sebsauvage.net/paste/?ca19b77777ca1a9e#4ZPQHnM4hsCAIk2mUxbejW1zvNfCv3uGqR52u4j6fLs=
>
> So it seems Vbox is broken using any GCC compiler right now.  I do not know
> how to get Vbox to use clang compiler.  IIRC, Vbox will not build with clang
> (I could be wrong).
>
>
> You said "I had the same kind of
>
>> errors when compiling virtualbox with gcc46, not the one in base."
>
>
> What revision number are you at?  Does Vbox work for you right now?  How do
> you compile VBox?

Yes, it works when I compile it with base gcc (4.2).

> What do I need to do to make Vbox work again?

You can compile it with base gcc (read : not "c++" but "g++"). And
apologise for your flames against the r246028 commiter ;-)

Cheers

--
Olivier Smedts                                                 _
                                        ASCII ribbon campaign ( )
e-mail: [hidden email]        - against HTML email & vCards  X
www: http://www.gid0.org    - against proprietary attachments / \

  "Il y a seulement 10 sortes de gens dans le monde :
  ceux qui comprennent le binaire,
  et ceux qui ne le comprennent pas."
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re:

andy-21


On Fri, 1 Feb 2013, Olivier Smedts wrote:

> 2013/1/31 AN <[hidden email]>:
>>
>>
>> On Thu, 31 Jan 2013, Olivier Smedts wrote:
>>
>>> 2013/1/30 AN <[hidden email]>:
>>>>
>>>> With all due respect to developers, are these changes tested at all
>>>> before
>>>> they are added to the codebase?
>>>
>>>
>>> Won't sound respectful if the problem is not related to that commit.
>>>
>>> Which compiler are you using for the base system, and for ports ?
>>> (more specifically for the virtualbox ports) I had the same kind of
>>> errors when compiling virtualbox with gcc46, not the one in base.
>>>
>>> --
>>> Olivier Smedts                                                 _
>>>                                        ASCII ribbon campaign ( )
>>> e-mail: [hidden email]        - against HTML email & vCards  X
>>> www: http://www.gid0.org    - against proprietary attachments / \
>>>
>>>  "Il y a seulement 10 sortes de gens dans le monde :
>>>  ceux qui comprennent le binaire,
>>>  et ceux qui ne le comprennent pas."
>>>
>>
>>
>> Hi Olivier:
>>
>>
>> FreeBSD FBSD10 10.0-CURRENT FreeBSD 10.0-CURRENT #33 r246130: Wed Jan 30
>> 15:00:08 EST 2013     root@FBSD10:/usr/obj/usr/src/sys/MYKERNEL  amd64
>>
>> # cc -v
>> FreeBSD clang version 3.2 (tags/RELEASE_32/final 170710) 20121221
>> Target: x86_64-unknown-freebsd10.0
>> Thread model: posix
>>
>
> The answers are in your reply :
>
>> # c++ -v
>> FreeBSD clang version 3.2 (tags/RELEASE_32/final 170710) 20121221
>> Target: x86_64-unknown-freebsd10.0
>> Thread model: posix
>
> So "c++" is clang, not base gcc.
>
>> I also have installed as ports:
>>
>> # pkg info |grep gcc
>> gcc-4.7.3.20130119             GNU Compiler Collection 4.7
>> gcc-4.6.4.20130125             GNU Compiler Collection 4.6
>> gcc-aux-20120614_1             Version of GCC 4.7 with full Ada support
>> gccmakedep-1.0.2               Create dependencies in makefiles using 'gcc
>> -M'
>>
>> Here is:
>>
>> # cat /etc/make.conf
>>
>> # added by use.perl 2012-12-05 00:36:53
>> PERL_VERSION=5.16.2
>>
>> #.include "/usr/local/etc/port_sites.conf"
>>
>> QT4_OPTIONS= QGTKSTYLE
>> MALLOC_PRODUCTION=yes
>>
>> OVERRIDE_LINUX_BASE_PORT=f10
>>
>>
>> I do not have anything in src.conf
>>
>> I rebuilt Vbox with both gcc-4.6.4.20130125 and gcc-4.7.3.20130119, and I
>> get the same failure which is:
>>
>> # VirtualBox
>> 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
>>
>>
>> If I build Vbox with gcc4.2.1 it fails with:
>>
>> 6 warnings and 2 errors generated.
>> kmk: ***
>> [/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/out/freebsd.amd64/release/obj/VBoxC/src-client/ConsoleImpl2.o]
>> Error 1
>> The failing command:
>> @c++ -c -O2 -fPIC -g -pipe -pedantic -Wshadow -Wshadow -Wall -Wextra
>> -Wno-missing-field-initializers -Wno-unused -Wno-trigraphs
>> -fdiagnostics-show-option -Wno-long-long -Wno-long-long
>> -Wno-delete-non-virtual-dtor -Wno-variadic-macros -Wno-long-long
>> -Wno-non-virtual-dtor -Wshadow -fshort-wchar -fpermissive -fexceptions
>> -frtti -O2 -mtune=generic -fno-omit-frame-pointer -fno-strict-aliasing
>> -fvisibility-inlines-hidden -fvisibility=hidden
>> -DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT -m64
>> -I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/src/VBox/Main/include
>> -I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/out/freebsd.amd64/release/obj/VBoxC
>> -I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/out/freebsd.amd64/release/obj/Main/
>> -I/usr/include -I/usr/X11R6/include -I/usr/local/include
>> -I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/out/freebsd.amd64/release/bin/sdk/bindings/xpcom/include
>> -I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/out/freebsd.amd64/release/bin/sdk/bindings/xpcom/include/xpcom
>> -I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/out/freebsd.amd64/release/bin/sdk/bindings/xpcom/include/string
>> -I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/out/freebsd.amd64/release/bin/sdk/bindings/xpcom/include/xpcom
>> -I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/out/freebsd.amd64/release/bin/sdk/bindings/xpcom/include/nsprpub
>> -I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/out/freebsd.amd64/release/bin/sdk/bindings/xpcom/include/ipcd
>> -I/usr/local/include/libpng
>> -I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/include
>> -I/usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.2.6/out/freebsd.amd64/release
>> -DVBOX -DVBOX_WITH_DEBUGGER -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS
>> -DVBOX_WITH_HARDENING -DRT_OS_FREEBSD -D__FREEBSD__ -DRT_ARCH_AMD64
>> -D__AMD64__ -DRTPATH_APP_PRIVATE=\"/usr/local/share/virtualbox-ose\"
>> -DRTPATH_APP_PRIVATE_ARCH=\"/usr/local/lib/virtualbox\"
>> -DRTPATH_SHARED_LIBS=\"/usr/local/lib/virtualbox\"
>> -DRTPATH_APP_DOCS=\"/usr/local/share/doc/virtualbox-ose\" -DPIC -DIN_RING3
>> -DUNICODE -DNDEBUG=1 -DVBOX_WITH_XPCOM -DIN_RING3
>> -DVBOX_WITH_SYS_V_IPC_SESSION_WATCHER -DVBOX_WITH_RAW_MODE
>> -DVBOX_WITH_NETFLT -DVBOX_WITH_CROGL -DVBOX_WITH_GUEST_PROPS
>> -DVBOX_WITH_GUEST_CONTROL -DVBOX_WITH_USB_CARDREADER
>> -DVBOX_WITH_HOSTNETIF_API -DVBOX_WITH_NEW_SYS_V_KEYGEN -DVBOX_COM_INPROC
>> -DVBOX_WITH_VRDP_VIDEO_CHANNEL -DVBOX_WITH_HGCM -DVBOX_WITH_ALSA
>> -DVBOX_WITH_E1000 -DVBOX_WITH_VIRTIO -DVBOX_WITH_EFI
>> -DVBOX_WITH_PDM_ASYNC_COMPLETION -DVBOX_WITH_VUSB -DVBOX_WITH_HGSMI
>> -DVBOX_WITH_VIDEOHWACCEL -DVBOX_WITH_USB -DVBOX_WITH_EHCI
>> -DVBOX_WITH_EXTPACK -DVBOX_WITH_PCI_PASSTHROUGH -DVBOX_WITH_CRHGSMI
>> -DVBOX_WITH_NETSHAPER
>
> You can see the command failing is "c++", so... clang. Because
> WITH_CLANG_IS_CC is default on 10-CURRENT now.


Hi Olivier:

After adding USE_GCC= 4.2+ to the VBox makefile and recompiling Vbox is
working again.

I sincerely apologize to theraven@, and all developers.  My intention was
not to flame or disrespect anyone.  I appreciate and am grateful to all
the developers who work on FreeBSD, thank you for your efforts.

Thanks for your help,

Andy
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re:

David Chisnall-2
On 1 Feb 2013, at 00:37, AN wrote:

> I sincerely apologize to theraven@, and all developers.  My intention was not to flame or disrespect anyone.  I appreciate and am grateful to all the developers who work on FreeBSD, thank you for your efforts.

Bug reports are always helpful, even when not sent in exactly the right direction.  Thank you for taking the time to send them.

David


signature.asc (858 bytes) Download Attachment