読者です 読者をやめる 読者になる 読者になる

BHyVeビルドめも2

BHyVe DragonFlyBSD

ちょっと進めたからφ( ̄ー ̄ )メモメモ

コミットのdiff
done’
sys/_cpuset.h、sys/cpuset.hをFreeBSDから持ってきて追加。これとsys/_types.hにcpusetid_tの定義を追加して、cpusetid_tのコンパイルエラーは解消と思ったら、vmm.hで#include を追加してあげる必要があったという落ち。
sys/_types.hもFreeBSDから持ってきて追加。DragonFlyだと_type.hは使ってないんだね。

toto
次に直すのは__inlineのところかな。

ビルドエラーログ:

cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -W
missing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wold-style-definition 
-std=c99 -Wold-style-declaration -g -nostdinc -I. -Iinclude -I/usr/src/sys -I/us
r/src/sys/../include -I/usr/obj/usr/src/sys/BHYVE -I”/usr/src/sys/dev/acpica5” -
I”/usr/src/sys/contrib/dev/acpica-unix/include” -I/usr/src/sys/dev/netif/ath/hal
-I/usr/src/sys/dev/netif/ath/hal/ath_hal -D_KERNEL -include opt_global.h -fin
line-limit=8000 —param inline-unit-growth=100 —param large-function-growth=100
0 -fno-common -ffreestanding -mpreferred-stack-boundary=4 -fno-stack-protector -
mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-mmx -mno-3dnow -mno-sse -mno-sse2
-mno-sse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4 -mno-sse4a -mno-sse5 -m
no-abm -mno-aes -mno-avx -mno-pclmul -mno-popcnt -msoft-float -fno-asynchronous-
unwind-tables -fno-omit-frame-pointer /usr/src/sys/platform/pc64/vmm/intel/ept.
c -Werror
cc1: warnings being treated as errors
In file included from /usr/src/sys/platform/pc64/vmm/intel/ept.c:46:
./machine/vmm.h:135: error: ‘__inline’ is not at beginning of declaration
In file included from /usr/src/sys/platform/pc64/vmm/intel/ept.c:47:
/usr/src/sys/platform/pc64/vmm/intel/vmx_cpufunc.h:132: error: ‘__inline’ is not
at beginning of declaration
/usr/src/sys/platform/pc64/vmm/intel/vmx_cpufunc.h: In function ‘VMCLEAR’:
/usr/src/sys/platform/pc64/vmm/intel/vmx_cpufunc.h:141: error: implicit declarat
ion of function ‘critical_exit’
/usr/src/sys/platform/pc64/vmm/intel/vmx_cpufunc.h:141: error: nested extern dec
laration of ‘critical_exit’
/usr/src/sys/platform/pc64/vmm/intel/vmx_cpufunc.h: At top level:
/usr/src/sys/platform/pc64/vmm/intel/vmx_cpufunc.h:144: error: ‘__inline’ is not
at beginning of declaration
/usr/src/sys/platform/pc64/vmm/intel/vmx_cpufunc.h: In function ‘VMPTRLD’:
/usr/src/sys/platform/pc64/vmm/intel/vmx_cpufunc.h:149: error: implicit declarat
ion of function ‘critical_enter’
/usr/src/sys/platform/pc64/vmm/intel/vmx_cpufunc.h:149: error: nested extern dec
laration of ‘critical_enter’
/usr/src/sys/platform/pc64/vmm/intel/vmx_cpufunc.h: At top level:
/usr/src/sys/platform/pc64/vmm/intel/vmx_cpufunc.h:168: error: ‘__inline’ is not
at beginning of declaration
/usr/src/sys/platform/pc64/vmm/intel/vmx_cpufunc.h:188: error: ‘__inline’ is not
at beginning of declaration
/usr/src/sys/platform/pc64/vmm/intel/ept.c: In function ‘ept_create_mapping’:
/usr/src/sys/platform/pc64/vmm/intel/ept.c:168: error: implicit declaration of f
unction ‘malloc’
/usr/src/sys/platform/pc64/vmm/intel/ept.c:168: error: nested extern declaration
of ‘malloc’
/usr/src/sys/platform/pc64/vmm/intel/ept.c:168: error: initialization makes poin
ter from integer without a cast
/usr/src/sys/platform/pc64/vmm/intel/ept.c: In function ‘ept_free_pd_entry’:
/usr/src/sys/platform/pc64/vmm/intel/ept.c:231: error: implicit declaration of f
unction ‘free’
/usr/src/sys/platform/pc64/vmm/intel/ept.c:231: error: nested extern declaration
of ‘free’
/usr/src/sys/platform/pc64/vmm/intel/ept.c: In function ‘ept_invalidate_mappings
‘:
/usr/src/sys/platform/pc64/vmm/intel/ept.c:309: error: ‘PAT_WRITE_BACK’ undeclar
ed (first use in this function)
/usr/src/sys/platform/pc64/vmm/intel/ept.c:309: error: (Each undeclared identifi
er is reported only once
/usr/src/sys/platform/pc64/vmm/intel/ept.c:309: error: for each function it appe
ars in.)
/usr/src/sys/platform/pc64/vmm/intel/ept.c:311: error: implicit declaration of f
unction ‘smp_rendezvous’
/usr/src/sys/platform/pc64/vmm/intel/ept.c:311: error: nested extern declaration
of ‘smp_rendezvous’
*** Error code 1

Stop in /usr/obj/usr/src/sys/BHYVE.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.