Date: Thu, 31 Jan 2013 19:37:49 -0500 (EST) From: AN <andy@neu.net> To: Olivier Smedts <olivier@gid0.org> Cc: vbox@freebsd.org, freebsd-current@freebsd.org, theraven@freebsd.org Subject: Re: Message-ID: <alpine.BSF.2.00.1301311914010.55503@mail.neu.net> In-Reply-To: <CABzXLYPSPywgX3MyHHTNnvLx%2B683Up_1mM=Ko9HY=%2BoJ9mWN7A@mail.gmail.com> References: <alpine.BSF.2.00.1301301522330.55503@mail.neu.net> <CABzXLYMo=MJGhfhP7bL6uU57Qc3UAvK1=PkRWT-L1GbC9ejQPg@mail.gmail.com> <alpine.BSF.2.00.1301310931350.55503@mail.neu.net> <CABzXLYPSPywgX3MyHHTNnvLx%2B683Up_1mM=Ko9HY=%2BoJ9mWN7A@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 1 Feb 2013, Olivier Smedts wrote: > 2013/1/31 AN <andy@neu.net>: >> >> >> On Thu, 31 Jan 2013, Olivier Smedts wrote: >> >>> 2013/1/30 AN <andy@neu.net>: >>>> >>>> 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: olivier@gid0.org - 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1301311914010.55503>