From owner-freebsd-current@FreeBSD.ORG Thu Jan 31 23:18:44 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 258981E7 for ; Thu, 31 Jan 2013 23:18:44 +0000 (UTC) (envelope-from olivier@gid0.org) Received: from mail-ee0-f46.google.com (mail-ee0-f46.google.com [74.125.83.46]) by mx1.freebsd.org (Postfix) with ESMTP id B7D58A3E for ; Thu, 31 Jan 2013 23:18:43 +0000 (UTC) Received: by mail-ee0-f46.google.com with SMTP id e49so1761604eek.19 for ; Thu, 31 Jan 2013 15:18:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:x-gm-message-state; bh=9NCu+kBCfodWuf1cWXsoso8weB4KgjQRIt+KJP+YnL0=; b=mBU7vZ0MjXBjdVHzcLL/vJYU8f6IUq+RulH12wJtctlxzeSozuxpcso4IkKS7vzubD JzeMZurR98VwlG9VWAZZTEzOENYn4L0Y7TuWPY11TUR8wkJ6jt+Rx7/W5LtpP2dqMEBj NKCKnTJxT8TDa8eINr7InE2WQeYWhGhdlCA/ADsLXkRp6uyEMKnQPITobwLgVtQIbpql /YgC6us5SBTgqH6dnxqOmJFTqULV+JLI6ZGa56xEd02TM3/lCKVFYZ37WsPkgWXabgaH NVVBcweWPGzgh8UQN36vdPFTPHoVbPLfDeCUyBieTSr/ggcmHNqF5ydPqooMUCtRqUrz cXGQ== MIME-Version: 1.0 X-Received: by 10.14.194.195 with SMTP id m43mr32488890een.44.1359674317319; Thu, 31 Jan 2013 15:18:37 -0800 (PST) Received: by 10.14.189.5 with HTTP; Thu, 31 Jan 2013 15:18:37 -0800 (PST) In-Reply-To: References: Date: Fri, 1 Feb 2013 00:18:37 +0100 Message-ID: Subject: Re: From: Olivier Smedts To: AN Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQl01STIn+yRG+GPOtvqlrkV+xPAHY34mnSRWR3zy6d41jcGv4oVs7jxJbfnKYbSMlK5UPi9 Cc: vbox@freebsd.org, freebsd-current@freebsd.org, theraven@freebsd.org, decke@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jan 2013 23:18:44 -0000 2013/1/31 AN : > > > On Thu, 31 Jan 2013, Olivier Smedts wrote: > >> 2013/1/30 AN : >>> >>> 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. > -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: 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."