Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Feb 2015 12:55:07 -0500
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        Tommy Scheunemann <net@arrishq.net>, vbox@freebsd.org
Subject:   Re: Compiling fails at 10.1-RELEASE
Message-ID:  <54E3807B.7090205@FreeBSD.org>
In-Reply-To: <alpine.BSF.2.11.1502171507430.1027@tscheunemann_bsd>
References:  <alpine.BSF.2.11.1502171507430.1027@tscheunemann_bsd>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 02/17/2015 09:16, Tommy Scheunemann wrote:
> Hello there,
> 
> after updating the ports tree a bit ago, VirtualBox came along with
> an update from the installed 4.3.20_4 to 4.3.22. Each installed
> port (gcc-4.8.4, kBuild etc.) is up to date, still the compile run
> fails with the following error:
> 
> ---- SNIP ---- kBuild: Compiling VBoxRemPrimary - 
> /usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/src/recompiler/VBoxRecompiler.c
>
>  kBuild: Compiling VBoxRemPrimary - 
> /usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/src/recompiler/cpu-exec.c
>
>  kBuild: Compiling VBoxRemPrimary - 
> /usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/src/recompiler/exec.c
>
>  kBuild: Compiling VBoxRemPrimary - 
> /usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/src/recompiler/translate-all.c
>
>  cc1: error: to generate dependencies you must specify either -M or
> -MM cc1: error: to generate dependencies you must specify either -M
> or -MM cc1: error: to generate dependencies you must specify either
> -M or -MM cc1: error: to generate dependencies you must specify
> either -M or -MM kmk: *** 
> [/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/out/freebsd.amd64/release/obj/VBoxRemPrimary/cpu-exec.o]
>
> 
Error 1
> The failing command: @gcc48 -c -O2 -g -pipe -Wall -Wextra
> -Wno-missing-field-initializers -Wno-unused -Wno-trigraphs
> -fdiagnostics-show-option -Wno-unused-parameter -Wno-long-long
> -Wno-long-long -Werror-implicit-function-declaration
> -Wno-variadic-macros -O2 -mtune=generic -fno-omit-frame-pointer
> -fno-strict-aliasing -fvisibility=hidden
> -DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT -fPIC
> -Wno-sign-compare -Werror-implicit-function-declaration -m64 
> -I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/src/recompiler/Sun/crt
>
> 
-
-I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/src/recompiler/Sun
> -I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/src/recompiler/target-i386
>
> 
-
-I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/src/recompiler/tcg
> -I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/src/recompiler/fpu
>
> 
-
-I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/out/freebsd.amd64/release/obj/VBoxRemPrimary
> -I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/src/VBox/VMM/include
>
> 
-
-I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/src/recompiler/tcg/i386
> -I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/src/recompiler
>
> 
- -I/usr/local/include
> -I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/out/freebsd.amd64/release/obj/VBoxRemPrimary/dtrace
>
> 
- -I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/include
> -I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/out/freebsd.amd64/release
>
> 
- -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_DEBUGGER
> -DRT_OS_FREEBSD -D__FREEBSD__ -DRT_ARCH_AMD64 -D__AMD64__ 
> -DVBOX_WITH_HARDENING 
> -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\"
> -DIN_RING3 -DHC_ARCH_BITS=64 -DGC_ARCH_BITS=64 -DPIC -DIN_REM_R3 
> -DREM_INCLUDE_CPU_H -DNEED_CPU_H -DVBOX_WITH_RAW_MODE 
> -DVBOX_WITH_RAW_RING1 -DLOG_USE_C99 -D_BSD -D__x86_64__ 
> -Wp,-MD,/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/out/freebsd.amd64/release/obj/VBoxRemPrimary/cpu-exec.o.dep
>
> 
-
-Wp,-MT,/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/out/freebsd.amd64/release/obj/VBoxRemPrimary/cpu-exec.o
> -Wp,-MP -o 
> /usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/out/freebsd.amd64/release/obj/VBoxRemPrimary/cpu-exec.o
>
> 
/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/src/recompiler/cpu-exec.c
> 
> kmk: *** Waiting for unfinished jobs.... kmk: *** 
> [/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/out/freebsd.amd64/release/obj/VBoxRemPrimary/translate-all.o]
>
> 
Error 1
> The failing command: @gcc48 -c -O2 -g -pipe -Wall -Wextra
> -Wno-missing-field-initializers -Wno-unused -Wno-trigraphs
> -fdiagnostics-show-option -Wno-unused-parameter -Wno-long-long
> -Wno-long-long -Werror-implicit-function-declaration
> -Wno-variadic-macros -O2 -mtune=generic -fno-omit-frame-pointer
> -fno-strict-aliasing -fvisibility=hidden
> -DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT -fPIC
> -Wno-sign-compare -Werror-implicit-function-declaration -m64 
> -I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/src/recompiler/Sun/crt
>
> 
-
-I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/src/recompiler/Sun
> -I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/src/recompiler/target-i386
>
> 
-
-I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/src/recompiler/tcg
> -I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/src/recompiler/fpu
>
> 
-
-I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/out/freebsd.amd64/release/obj/VBoxRemPrimary
> -I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/src/VBox/VMM/include
>
> 
-
-I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/src/recompiler/tcg/i386
> -I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/src/recompiler
>
> 
- -I/usr/local/include
> -I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/out/freebsd.amd64/release/obj/VBoxRemPrimary/dtrace
>
> 
- -I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/include
> -I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/out/freebsd.amd64/release
>
> 
- -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_DEBUGGER
> -DRT_OS_FREEBSD -D__FREEBSD__ -DRT_ARCH_AMD64 -D__AMD64__ 
> -DVBOX_WITH_HARDENING 
> -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\"
> -DIN_RING3 -DHC_ARCH_BITS=64 -DGC_ARCH_BITS=64 -DPIC -DIN_REM_R3 
> -DREM_INCLUDE_CPU_H -DNEED_CPU_H -DVBOX_WITH_RAW_MODE 
> -DVBOX_WITH_RAW_RING1 -DLOG_USE_C99 -D_BSD -D__x86_64__ 
> -Wp,-MD,/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/out/freebsd.amd64/release/obj/VBoxRemPrimary/translate-all.o.dep
>
> 
-
-Wp,-MT,/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/out/freebsd.amd64/release/obj/VBoxRemPrimary/translate-all.o
> -Wp,-MP -o 
> /usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/out/freebsd.amd64/release/obj/VBoxRemPrimary/translate-all.o
>
> 
/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/src/recompiler/translate-all.c
> 
> kmk: *** 
> [/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/out/freebsd.amd64/release/obj/VBoxRemPrimary/VBoxRecompiler.o]
>
> 
Error 1
> The failing command: @gcc48 -c -O2 -g -pipe -Wall -Wextra
> -Wno-missing-field-initializers -Wno-unused -Wno-trigraphs
> -fdiagnostics-show-option -Wno-unused-parameter -Wno-long-long
> -Wno-long-long -Werror-implicit-function-declaration
> -Wno-variadic-macros -O2 -mtune=generic -fno-omit-frame-pointer
> -fno-strict-aliasing -fvisibility=hidden
> -DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT -fPIC
> -Wno-sign-compare -Werror-implicit-function-declaration -m64 
> -I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/src/recompiler/Sun/crt
>
> 
-
-I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/src/recompiler/Sun
> -I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/src/recompiler/target-i386
>
> 
-
-I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/src/recompiler/tcg
> -I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/src/recompiler/fpu
>
> 
-
-I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/out/freebsd.amd64/release/obj/VBoxRemPrimary
> -I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/src/VBox/VMM/include
>
> 
-
-I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/src/recompiler/tcg/i386
> -I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/src/recompiler
>
> 
- -I/usr/local/include
> -I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/out/freebsd.amd64/release/obj/VBoxRemPrimary/dtrace
>
> 
- -I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/include
> -I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/out/freebsd.amd64/release
>
> 
- -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_DEBUGGER
> -DRT_OS_FREEBSD -D__FREEBSD__ -DRT_ARCH_AMD64 -D__AMD64__ 
> -DVBOX_WITH_HARDENING 
> -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\"
> -DIN_RING3 -DHC_ARCH_BITS=64 -DGC_ARCH_BITS=64 -DPIC -DIN_REM_R3 
> -DREM_INCLUDE_CPU_H -DNEED_CPU_H -DVBOX_WITH_RAW_MODE 
> -DVBOX_WITH_RAW_RING1 -DLOG_USE_C99 -D_BSD -D__x86_64__ 
> -Wp,-MD,/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/out/freebsd.amd64/release/obj/VBoxRemPrimary/VBoxRecompiler.o.dep
>
> 
-
-Wp,-MT,/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/out/freebsd.amd64/release/obj/VBoxRemPrimary/VBoxRecompiler.o
> -Wp,-MP -o 
> /usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/out/freebsd.amd64/release/obj/VBoxRemPrimary/VBoxRecompiler.o
>
> 
/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/src/recompiler/VBoxRecompiler.c
> 
> kmk: *** 
> [/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/out/freebsd.amd64/release/obj/VBoxRemPrimary/exec.o]
>
> 
Error 1
> The failing command: @gcc48 -c -O2 -g -pipe -Wall -Wextra
> -Wno-missing-field-initializers -Wno-unused -Wno-trigraphs
> -fdiagnostics-show-option -Wno-unused-parameter -Wno-long-long
> -Wno-long-long -Werror-implicit-function-declaration
> -Wno-variadic-macros -O2 -mtune=generic -fno-omit-frame-pointer
> -fno-strict-aliasing -fvisibility=hidden
> -DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT -fPIC
> -Wno-sign-compare -Werror-implicit-function-declaration -m64 
> -I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/src/recompiler/Sun/crt
>
> 
-
-I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/src/recompiler/Sun
> -I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/src/recompiler/target-i386
>
> 
-
-I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/src/recompiler/tcg
> -I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/src/recompiler/fpu
>
> 
-
-I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/out/freebsd.amd64/release/obj/VBoxRemPrimary
> -I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/src/VBox/VMM/include
>
> 
-
-I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/src/recompiler/tcg/i386
> -I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/src/recompiler
>
> 
- -I/usr/local/include
> -I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/out/freebsd.amd64/release/obj/VBoxRemPrimary/dtrace
>
> 
- -I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/include
> -I/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/out/freebsd.amd64/release
>
> 
- -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_DEBUGGER
> -DRT_OS_FREEBSD -D__FREEBSD__ -DRT_ARCH_AMD64 -D__AMD64__ 
> -DVBOX_WITH_HARDENING 
> -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\"
> -DIN_RING3 -DHC_ARCH_BITS=64 -DGC_ARCH_BITS=64 -DPIC -DIN_REM_R3 
> -DREM_INCLUDE_CPU_H -DNEED_CPU_H -DVBOX_WITH_RAW_MODE 
> -DVBOX_WITH_RAW_RING1 -DLOG_USE_C99 -D_BSD -D__x86_64__ 
> -Wp,-MD,/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/out/freebsd.amd64/release/obj/VBoxRemPrimary/exec.o.dep
>
> 
-
-Wp,-MT,/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/out/freebsd.amd64/release/obj/VBoxRemPrimary/exec.o
> -Wp,-MP -o 
> /usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/out/freebsd.amd64/release/obj/VBoxRemPrimary/exec.o
>
> 
/usr/src/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.22/src/recompiler/exec.c
> 
> kmk: *** Exiting with status 2 **e *** Error code 1
> 
> Stop. make: stopped in /usr/src/ports/emulators/virtualbox-ose
> 
> ===>>> make build failed for emulators/virtutart from the point of 
> failure with this command line: portmaster <flags>
> emulators/virtualbox-ose ---- SNIP ----
> 
> My "make.conf" looks like:
> 
> ---- SNIP ---- MAKE_SHELL?=sh SVN=/usr/bin/svnlite SVN_UPDATE=yes 
> KERNCONF=CUSTOM CPUTYPE?=nocona CFLAGS=-O2 -pipe
> -D_FORTIFY_SOURCE=2 -fstack-protector CPPLAGS=-O2 -pipe
> -D_FORTIFY_SOURCE=2 -fstack-protector COPTFLAGS=-O2 -pipe
> -D_FORTIFY_SOURCE=2 -fstack-protector .if
> ${.CURDIR:M*/devel/ccache} NO_CCACHE=yes .endif .if
> (!empty(.CURDIR:M/usr/src/sys*) || !empty(.CURDIR:M/usr/obj*)) && 
> !defined(NOCCACHE) CC=/usr/local/libexec/ccache/cc 
> CXX=/usr/local/libexec/ccache/c++ CFLAGS=-O2 -pipe CPPLAGS=-O2
> -pipe COPTFLAGS=-O2 -pipe .endif OPTIONS_UNSET_IPV6=yes 
> LUA_DEFAULT_VERSION=52 ---- SNIP ----
> 
> And the port is configured with:
> 
> DBUS, GUESTADDITIONS, QT4, UDPTUNNEL, X11
> 
> enabled. The rest of the settings is disabled.
> 
> Running a "make distclean" and another "make" doesn't help and the
> error is reproducible. What has been changed is that the PORTSDIR
> is mounted under /usr/src/ports, though the environment variable
> has been set - in case that causes problems. Also removing the
> CFLAGS options (or better the FORTIFY_SOURCE) doesn't help much. 
> So, is there anything else I can do at my end ? Maybe changing
> options of the port ? Basically DBUS isn't maybe required,
> UDPTUNNEL might be - X11 and QT4 yes because the intention is to
> run a Windows - if possible with the seamless option.

It looks like you're using ccache.  I believe you need to disable it.
 Please try "make NOCCACHE=yes".

Jung-uk Kim
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJU44B1AAoJEHyflib82/FGMsUH/iOZTaN70OghKhRO8y7sSA7G
D0lCQCkqYXG/aHVmcwSFyj0EAGGa4oHGidQaRnxgC2PROPujBTdw7yCAWcqmuSqS
ACSn/jB97nTLiDgXIbaGpuCoCTJhKStVhfNgGk+/yt5AnL5pEg/ctXW+DXIcLhEI
dDogCxSO4Vy8fubUKKgIfild1uFRAupSuNAAza16MpP1qU8rLplcV+RNyhlLPNY5
oOQCZA+YS87g28ZEVyHOBJTd0hcm7MLV/31yThMgPZSFc9ozPJPdtIv4sYogAn0W
mYErnXuNFLHuRvTEpW7NJymSK+tmThNc/6kC3knonZAxYAevmE6qVn517Efuwzo=
=CcHq
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54E3807B.7090205>