From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 6 10:36:28 2015 Return-Path: Delivered-To: vbox@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9C7D21DF; Fri, 6 Mar 2015 10:36:28 +0000 (UTC) Received: from mailrelay109.isp.belgacom.be (mailrelay109.isp.belgacom.be [195.238.20.136]) by mx1.freebsd.org (Postfix) with ESMTP id B36E5332; Fri, 6 Mar 2015 10:36:27 +0000 (UTC) X-Belgacom-Dynamic: yes X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=hkFBDakPHWYIOok4y3pcivnmCJQbEK2MeX2RAJ8hs1E= c=1 sm=2 a=kj9zAlcOel0A:10 a=pGLkceISAAAA:8 a=6I5d2MoRAAAA:8 a=NEAV23lmAAAA:8 a=38tiLHQ9hqWXtKdUOdAA:9 a=CjuIK1q_8ugA:10 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2BhBgB6gflU/y+M8VFcgwZSWsFrhXACgTpOAQEBAQEBfIQPAQEBAwE6HB4FEAsYCSUPEhgeBhOIGwMJDAEIyjkNhToBAQEBAQEEAQEBAQEBGASLF4JEgXczB4QrBYV3jXOEIoFHgRuDJohRTIYSI4ICHIFRPTEBgkIBAQE Received: from 47.140-241-81.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([81.241.140.47]) by relay.skynet.be with ESMTP; 06 Mar 2015 11:35:10 +0100 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.9/8.14.9) with ESMTP id t26AZ9FK001772; Fri, 6 Mar 2015 11:35:09 +0100 (CET) (envelope-from tijl@FreeBSD.org) Date: Fri, 6 Mar 2015 11:35:08 +0100 From: Tijl Coosemans To: Scott Furry Subject: Re: GCC 4.8.4 wchar error blocking devel/kBuild (virtualbox-ose dependency) Message-ID: <20150306113508.05c2bcc9@kalimero.tijl.coosemans.org> In-Reply-To: <54F8BA89.4000302@gmail.com> References: <54F86D96.1020505@gmail.com> <54F8BA89.4000302@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Fri, 06 Mar 2015 12:40:53 +0000 Cc: vbox@FreeBSD.org, gerald@FreeBSD.org X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.18-1 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, 06 Mar 2015 10:36:28 -0000 On Thu, 05 Mar 2015 13:20:25 -0700 Scott Furry wrote: > Originally sent to vbox@FreeBSD.org this morning: > On 05/03/2015 07:52, Scott Furry wrote: > > While attempting to build emulators/virtualbox-ose(4.3.24) from > > FreeBSD ports, I keep running into a error during the build of > > devel/kBuild(0.1.9998). > > Error stops the build, but it seems a strange error being unable to > > determine a '__wchar_t' type. > > > > I should also not there are numerous warnings given during the build. > > Below are the details of the hardware and reported error. > > > > Please let me know if you require any further information. > > ==================================== > > Hardware: > > hw.machine: amd64 > > hw.model: AMD FX(tm)-6100 Six-Core Processor > > hw.ncpu: 6 > > hw.byteorder: 1234 > > hw.physmem: 34313621504 > > hw.usermem: 32687337472 > > hw.pagesize: 4096 > > hw.floatingpoint: 1 > > hw.machine_arch: amd64 > > > > OS: > > FreeBSD 10.1-RELEASE-p6 (current latest) > > > > Error Message: > > --------------- > > kBuild: Compiling wrapper - > > /usr/ports/devel/kBuild/work/kBuild-0.1.9998/src/lib/wrapper.c > > kmk_builtin_cp -f > > /usr/ports/devel/kBuild/work/kBuild-0.1.9998/src/sed/config.h.freebsd > > /usr/ports/devel/kBuild/work/kBuild-0.1.9998/out/freebsd.amd64/release/obj/kmk_sed/config.h > > > > kmk_builtin_cp -f > > /usr/ports/devel/kBuild/work/kBuild-0.1.9998/src/sed/lib/regex_.h > > /usr/ports/devel/kBuild/work/kBuild-0.1.9998/out/freebsd.amd64/release/obj/kmk_sed/regex.h > > > > kBuild: Compiling kmk_sed - > > /usr/ports/devel/kBuild/work/kBuild-0.1.9998/src/sed/sed/sed.c > > kBuild: Compiling kmk_sed - > > /usr/ports/devel/kBuild/work/kBuild-0.1.9998/src/sed/lib/regex.c > > In file included from > > /usr/ports/devel/kBuild/work/kBuild-0.1.9998/src/sed/basicdefs.h:46:0, > > from > > /usr/ports/devel/kBuild/work/kBuild-0.1.9998/src/sed/sed/sed.h:23, > > from > > /usr/ports/devel/kBuild/work/kBuild-0.1.9998/src/sed/sed/sed.c:23: > > /usr/local/lib/gcc48/gcc/x86_64-portbld-freebsd10.0/ > > typedef __wchar_t wchar_t; > > ^ > > kmk: *** > > [/usr/ports/devel/kBuild/work/kBuild-0.1.9998/out/freebsd.amd64/release/obj/kmk_sed/sed/sed.o] > > Error 1 > > The failing command: > > @gcc48 -c -O2 -g -O3 -m64 > > -I/usr/ports/devel/kBuild/work/kBuild-0.1.9998/out/freebsd.amd64/release/obj/kmk_sed > > -I/usr/ports/devel/kBuild/work/kBuild-0.1.9998/src/sed > > -I/usr/ports/devel/kBuild/work/kBuild-0.1.9998/src/sed/lib > > -I/usr/ports/devel/kBuild/work/kBuild-0.1.9998/src/sed/intl > > -I/usr/ports/devel/kBuild/work/kBuild-0.1.9998/src/lib > > -I/usr/ports/devel/kBuild/work/kBuild-0.1.9998/src/kmk/glob > > -I/usr/local/include -DKBUILD_VERSION_MAJOR=0 -DKBUILD_VERSION_MINOR=1 > > -DKBUILD_VERSION_PATCH=9998 -DKBUILD_OS_FREEBSD -DKBUILD_ARCH_AMD64 > > -DHAVE_CONFIG_H -DNDEBUG > > -Wp,-MD,/usr/ports/devel/kBuild/work/kBuild-0.1.9998/out/freebsd.amd64/release/obj/kmk_sed/sed/sed.o.dep > > -Wp,-MT,/usr/ports/devel/kBuild/work/kBuild-0.1.9998/out/freebsd.amd64/release/obj/kmk_sed/sed/sed.o > > -Wp,-MP -o > > /usr/ports/devel/kBuild/work/kBuild-0.1.9998/out/freebsd.amd64/release/obj/kmk_sed/sed/sed.o > > /usr/ports/devel/kBuild/work/kBuild-0.1.9998/src/sed/sed/sed.c > > kmk: *** Waiting for unfinished jobs.... > > kmk: Leaving directory `/usr/ports/devel/kBuild/work/kBuild-0.1.9998' > > kmk: Entering directory `/usr/ports/devel/kBuild/work/kBuild-0.1.9998' > > kmk: *** Exiting with status 2 > > bootstrap.gmk:221: recipe for target > > '/usr/ports/devel/kBuild/work/kBuild-0.1.9998/out/freebsd.amd64/release/bootstrap/ts-stage2-build' > > failed > > gmake[4]: *** > > [/usr/ports/devel/kBuild/work/kBuild-0.1.9998/out/freebsd.amd64/release/bootstrap/ts-stage2-build] > > Error 2 > > gmake[4]: Leaving directory > > '/usr/ports/devel/kBuild/work/kBuild-0.1.9998' > > ./kBuild/env.sh: info: rc=2: gmake -f bootstrap.gmk > > *** Error code 2 > > --------------- > > Further to above... > > Did portsnap update this afternoon. kBuild reported warning: > ------ > In file included from > /usr/ports/devel/kBuild/work/kBuild-0.1.9998/src/kmk/make.h:67: > /usr/include/sys/timeb.h:42:2: warning: "this file includes > which is deprecated" [-W#warnings] > ----- > > emulators/virtualbox-ose-kmod (4.3.24) and emulators/virtualbox-ose > (4.3.24) are still blocked by error given above. > > I may not be the only one affected here. A quick google search dug up > this thread: > https://gist.github.com/tangentstorm/af2c97d89e194b3356c3 > > User indicated exact same error using gcc4.8.4 build. Try rebuilding gcc. During installation gcc thinks it's a good idea to fix "bugs" in some system headers by copying them to an obscure directory and then using those "fixed" copies instead of the real headers. When these system headers are updated gcc has an outdated copy that can cause errors in other headers. So, to be safe, whenever you update the base system you also have to rebuild the gcc ports.