emulators/virtualbox-ose-kmod build error

Tommy Scheunemann net at arrishq.net
Thu Feb 25 08:39:48 UTC 2016


> Am Wed, 24 Feb 2016 22:04:29 +0200
> Ivan Klymenko <fidaj at ukr.net> schrieb:
>
>> After update from r295867 to r295994:
>>
>> ...
>> /usr/local/bin/ccache cc -O2 -pipe -march=native -fno-strict-aliasing -DRT_OS_FREEBSD
>> -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DSUPDRV_WITH_RELEASE_LOGGER -DVBOX -DRT_WITH_VBOX -w
>> -DVBOX_WITH_HARDENING -DVBOX_WITH_64_BITS_GUESTS -DRT_ARCH_AMD64 -march=native  -Werror
>> -D_KERNEL -DKLD_MODULE -nostdinc  -Iinclude -I. -Ir0drv -I. -I/usr/src/sys -fno-common
>> -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -mcmodel=kernel -mno-red-zone
>> -mno-mmx -mno-sse -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding -fwrapv
>> -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
>> -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign
>> -D__printf__=__freebsd_kprintf__  -Wmissing-include-dirs -fdiagnostics-show-option
>> -Wno-unknown-pragmas  -Wno-error-tautological-compare -Wno-error-empty-body
>> -Wno-error-parentheses-equality -Wno-error-unused-function  -Wno-error-pointer-sign
>> -Wno-error-shift-negative-value  -fvectorize -fslp-vectorize -fbloc ks
>> -fcolor-diagnostics -mno-aes -mno-avx  -std=iso9899:1999
>> -c /media/da0s1/obj/usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.3.36/out/freebsd.amd64/release/bin/src/vboxdrv/r0drv/freebsd/memobj-r0drv-freebsd.c
>> -o memobj-r0drv-freebsd.o --- assert-r0drv-freebsd.o --- In file included
>> from /media/da0s1/obj/usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.3.36/out/freebsd.amd64/release/bin/src/vboxdrv/r0drv/freebsd/assert-r0drv-freebsd.c:34:
>> In file included
>> from /media/da0s1/obj/usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.3.36/out/freebsd.amd64/release/bin/src/vboxdrv/r0drv/freebsd/the-freebsd-kernel.h:39: /usr/src/sys/sys/bus.h:659:10:
>> fatal error: 'device_if.h' file not found #include "device_if.h" ^ ---
>> alloc-r0drv-freebsd.o --- In file included
>> from /media/da0s1/obj/usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.3.36/out/freebsd.amd64/release/bin/src/vboxdrv/r0drv/freebsd/alloc-r0drv-freebsd.c:34:
>> In file included
>> from /media/da0s1/obj/usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.3.36/out/freebsd.amd64/release/bin/src/vboxdrv/r0drv/freebsd/the-freebsd-kernel.h:39: /usr/src/sys/sys/bus.h:659:10:
>> fatal error: 'device_if.h' file not found #include "device_if.h" ^ ---
>> assert-r0drv-freebsd.o --- 1 error generated. --- initterm-r0drv-freebsd.o --- In file
>> included
>> from /media/da0s1/obj/usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.3.36/out/freebsd.amd64/release/bin/src/vboxdrv/r0drv/freebsd/initterm-r0drv-freebsd.c:34:
>> In file included
>> from /media/da0s1/obj/usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.3.36/out/freebsd.amd64/release/bin/src/vboxdrv/r0drv/freebsd/the-freebsd-kernel.h:39: /usr/src/sys/sys/bus.h:659:10:
>> fatal error: 'device_if.h' file not found #include "device_if.h" ^ ---
>> assert-r0drv-freebsd.o --- *** [assert-r0drv-freebsd.o] Error code 1
>>
>> make[3]: stopped
>> in /media/da0s1/obj/usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.3.36/out/freebsd.amd64/release/bin/src/vboxdrv
>> --- initterm-r0drv-freebsd.o --- 1 error generated.
>> --- alloc-r0drv-freebsd.o ---
>> 1 error generated.
>> --- initterm-r0drv-freebsd.o ---
>> *** [initterm-r0drv-freebsd.o] Error code 1
>>
>> make[3]: stopped
>> in /media/da0s1/obj/usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.3.36/out/freebsd.amd64/release/bin/src/vboxdrv
>> --- memobj-r0drv-freebsd.o --- In file included
>> from /media/da0s1/obj/usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.3.36/out/freebsd.amd64/release/bin/src/vboxdrv/r0drv/freebsd/memobj-r0drv-freebsd.c:36:
>> In file included
>> from /media/da0s1/obj/usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.3.36/out/freebsd.amd64/release/bin/src/vboxdrv/r0drv/freebsd/the-freebsd-kernel.h:39: /usr/src/sys/sys/bus.h:659:10:
>> fatal error: 'device_if.h' file not found #include "device_if.h" ^
>> --- alloc-r0drv-freebsd.o ---
>> *** [alloc-r0drv-freebsd.o] Error code 1
>>
>> make[3]: stopped
>> in /media/da0s1/obj/usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.3.36/out/freebsd.amd64/release/bin/src/vboxdrv
>> --- memobj-r0drv-freebsd.o --- 1 error generated.
>> *** [memobj-r0drv-freebsd.o] Error code 1
>>
>> make[3]: stopped
>> in /media/da0s1/obj/usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.3.36/out/freebsd.amd64/release/bin/src/vboxdrv
>> 4 errors
>>
>> make[3]: stopped
>> in /media/da0s1/obj/usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.3.36/out/freebsd.amd64/release/bin/src/vboxdrv
>> *** [all] Error code 2
>>
>> make[2]: stopped
>> in /media/da0s1/obj/usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.3.36/out/freebsd.amd64/release/bin/src
>> 1 error
>>
>> make[2]: stopped
>> in /media/da0s1/obj/usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.3.36/out/freebsd.amd64/release/bin/src
>> ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild
>> before reporting the failure to the maintainer.
>> *** Error code 1
>>
>> Stop.
>> make[1]: stopped in /usr/ports/emulators/virtualbox-ose-kmod
>> *** Error code 1
>>
>> Stop.
>> make: stopped in /usr/ports/emulators/virtualbox-ose-kmod
>>
>> ===>>> make build failed for emulators/virtualbox-ose-kmod
>> ===>>> Aborting update
>>
>>
>> ===>>> You can restart from the point of failure with this command line:
>>        portmaster <flags> emulators/virtualbox-ose-kmod
>>
>> root at nonamehost:/ #
>> _______________________________________________
>> freebsd-current at freebsd.org mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-current
>> To unsubscribe, send any mail to "freebsd-current-unsubscribe at freebsd.org"
>
> Same here ...
>

Hi,

try to disable ccache for building the port. Been running into the same 
problem and disabling ccache fixed it.

Kind regards


More information about the freebsd-ports mailing list