Re: Hyperv driver related error on make buildkernel on -r255933

2013-10-01 Thread Гуляев Гоша
   Good day!

   I don't know is it possible to build kernel with CLANG, because now my
   system builded without clang, so right now I can rebuild world only
   with gcc (because clang is not present in my system), or maybe I can
   install clang from ports and rebuild world with clang from ports?

   30.09.2013, 02:29, Abhishek Gupta (LIS) abgu...@microsoft.com:

 Hi,
 Is it possible for you to compile with the clang compiler instead of
 gcc?
 It seems that you are compiling with gcc and that is why the error
 is showing up:
 WITHOUT_CLANG=YES
 WITH_GCC=YES
 Let me know if that is not acceptable and I will try to address this
 as soon as possible.
 Thanks,
 Abhishek
 
 From: [1]owner-freebsd-virtualizat...@freebsd.org
 [2]owner-freebsd-virtualizat...@freebsd.org on behalf of Гуляев
 Гоша [3]gosha-n...@yandex.ru
 Sent: Sunday, September 29, 2013 11:18 AM
 To: [4]freebsd-curr...@freebsd.org;
 [5]freebsd-virtualization@freebsd.org
 Subject: Hyperv driver related error on make buildkernel on -r255933
 I have an error when tryin to compile kernel with recent -CURRENT
 sources
 There is additional info uname -a, /etc/src.conf, error output and
 kernel config
  uname -a
 FreeBSD MYBSD 10.0-CURRENT FreeBSD 10.0-CURRENT #0: Mon Aug 12
 22:31:24
 MSK 2013 xlr@MYBSD:/usr/obj/usr/src/sys/MYBSD amd64
  /etc/src.conf
 WITHOUT_ACCT=YES
 #WITHOUT_AMD=YES
 WITHOUT_ASSERT_DEBUG=YES
 WITHOUT_ATM=YES
 WITHOUT_AUDIT=YES
 WITHOUT_AUTHPF=YES
 WITHOUT_BIND=YES
 #WITHOUT_BLUETOOTH=YES
 WITHOUT_BSNMP=YES
 WITHOUT_CLANG=YES
 WITHOUT_CTM=YES
 WITHOUT_FDT=YES
 WITHOUT_FLOPPY=YES
 WITHOUT_GDB=YES
 WITHOUT_HTML=YES
 WITH_GCC=YES
 WITH_GNUCXX=YES
 WITHOUT_ICONV=YES
 #WITH_LIBICONV_COMPAT=YES
 WITHOUT_INET6=YES
 WITHOUT_INFO=YES
 WITHOUT_IPFILTER=YES
 WITHOUT_IPX=YES
 WITHOUT_KERNEL_SYMBOLS=YES
 WITHOUT_KVM=YES
 WITHOUT_LPR=YES
 WITHOUT_MAIL=YES
 WITHOUT_NCP=YES
 #WITHOUT_NDIS=YES
 WITHOUT_OFED=YES
 WITHOUT_PF=YES
 WITHOUT_PMC=YES
 WITHOUT_QUOTAS=YES
 WITHOUT_RCMDS=YES
 WITHOUT_RCS=YES
 WITHOUT_SHAREDOCS=YES
 #WITHOUT_USB=YES
 #WITHOUT_WIRELESS=YES
 WITHOUT_ZFS=YES
  ERROR OUTPUT
 awk -f /usr/src/sys/conf/kmod_syms.awk hwpmc.ko export_syms | xargs
 -J%
 objcopy % hwpmc.ko
 objcopy --strip-debug hwpmc.ko
 === hyperv (all)
 === hyperv/vmbus (all)
 cc -O2 -pipe -msse -msse2 -msse3 -mmmx -m3dnow -mtune=core2
 -march=core2 -fno-strict-aliasing -Wno-error -D_KERNEL -DKLD_MODULE
 -nostdinc
 -I/usr/src/sys/modules/hyperv/vmbus/../../../dev/hyperv/include
 -I/usr/src/sys/modules/hyperv/vmbus/../../../dev/hyperv/vmbus
 -I/usr/src/sys/modules/hyperv/vmbus/../../../dev/hyperv/utilities
 -DHAVE_KERNEL_OPTION_HEADERS -include
 /usr/obj/usr/src/sys/MYBSD/opt_global.h -I. -I@ -I@/contrib/altq
 -finline-limit=8000 --param inline-unit-growth=100 --param
 large-function-growth=1000 -fno-common -fno-omit-frame-pointer
 -mno-omit-leaf-frame-pointer -I/usr/obj/usr/src/sys/MYBSD
 -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float
 -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector
 -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls
 -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes
 -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign
 -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option
 -c
 /usr/src/sys/modules/hyperv/vmbus/../../../dev/hyperv/vmbus/hv_chann
 el.
 c
 In file included from
 /usr/src/sys/modules/hyperv/vmbus/../../../dev/hyperv/vmbus/hv_chann
 el.
 c:40:
 /usr/src/sys/modules/hyperv/vmbus/../../../dev/hyperv/vmbus/hv_vmbus
 _pr
 iv.h:288: warning: declaration does not declare anything
 /usr/src/sys/modules/hyperv/vmbus/../../../dev/hyperv/vmbus/hv_vmbus
 _pr
 iv.h:396: warning: declaration does not declare anything
 /usr/src/sys/modules/hyperv/vmbus/../../../dev/hyperv/vmbus/hv_vmbus
 _pr
 iv.h:410: warning: declaration does not declare anything
 /usr/src/sys/modules/hyperv/vmbus/../../../dev/hyperv/vmbus/hv_vmbus
 _pr
 iv.h:418: warning: declaration does not declare anything
 /usr/src/sys/modules/hyperv/vmbus/../../../dev/hyperv/vmbus/hv_vmbus
 _pr
 iv.h:426: warning: declaration does not declare anything
 /usr/src/sys/modules/hyperv/vmbus/../../../dev/hyperv/vmbus/hv_vmbus
 _pr
 iv.h:502: warning: declaration does not declare anything
 /usr/src/sys/modules/hyperv/vmbus/../../../dev/hyperv/vmbus/hv_vmbus
 _pr
 iv.h:514: warning: declaration does 

Re: Hyperv driver related error on make buildkernel on -r255933

2013-10-01 Thread John-Mark Gurney
??  wrote this message on Tue, Oct 01, 2013 at 16:01 +0600:
Good day!
 
I don't know is it possible to build kernel with CLANG, because now my
system builded without clang, so right now I can rebuild world only
with gcc (because clang is not present in my system), or maybe I can
install clang from ports and rebuild world with clang from ports?

If you use the normal way to build a kernel, then yes, you can build a
kernel w/ clang...  Do:
make kernel-toolchain WITH_CLANG_IS_CC=YES WITH_CLANG=YES other options
make buildkernel KERNCONF=kernfile

See src/UPDATING for more info/help.

30.09.2013, 02:29, Abhishek Gupta (LIS) abgu...@microsoft.com:
 
  Hi,
  Is it possible for you to compile with the clang compiler instead of
  gcc?
  It seems that you are compiling with gcc and that is why the error
  is showing up:
  WITHOUT_CLANG=YES
  WITH_GCC=YES
  Let me know if that is not acceptable and I will try to address this
  as soon as possible.
  Thanks,
  Abhishek
  
  From: [1]owner-freebsd-virtualizat...@freebsd.org
  [2]owner-freebsd-virtualizat...@freebsd.org on behalf of ??
   [3]gosha-n...@yandex.ru
  Sent: Sunday, September 29, 2013 11:18 AM
  To: [4]freebsd-curr...@freebsd.org;
  [5]freebsd-virtualization@freebsd.org
  Subject: Hyperv driver related error on make buildkernel on -r255933
  I have an error when tryin to compile kernel with recent -CURRENT
  sources
  There is additional info uname -a, /etc/src.conf, error output and
  kernel config
   uname -a
  FreeBSD MYBSD 10.0-CURRENT FreeBSD 10.0-CURRENT #0: Mon Aug 12
  22:31:24
  MSK 2013 xlr@MYBSD:/usr/obj/usr/src/sys/MYBSD amd64
   /etc/src.conf
  WITHOUT_ACCT=YES
  #WITHOUT_AMD=YES
  WITHOUT_ASSERT_DEBUG=YES
  WITHOUT_ATM=YES
  WITHOUT_AUDIT=YES
  WITHOUT_AUTHPF=YES
  WITHOUT_BIND=YES
  #WITHOUT_BLUETOOTH=YES
  WITHOUT_BSNMP=YES
  WITHOUT_CLANG=YES
  WITHOUT_CTM=YES
  WITHOUT_FDT=YES
  WITHOUT_FLOPPY=YES
  WITHOUT_GDB=YES
  WITHOUT_HTML=YES
  WITH_GCC=YES
  WITH_GNUCXX=YES
  WITHOUT_ICONV=YES
  #WITH_LIBICONV_COMPAT=YES
  WITHOUT_INET6=YES
  WITHOUT_INFO=YES
  WITHOUT_IPFILTER=YES
  WITHOUT_IPX=YES
  WITHOUT_KERNEL_SYMBOLS=YES
  WITHOUT_KVM=YES
  WITHOUT_LPR=YES
  WITHOUT_MAIL=YES
  WITHOUT_NCP=YES
  #WITHOUT_NDIS=YES
  WITHOUT_OFED=YES
  WITHOUT_PF=YES
  WITHOUT_PMC=YES
  WITHOUT_QUOTAS=YES
  WITHOUT_RCMDS=YES
  WITHOUT_RCS=YES
  WITHOUT_SHAREDOCS=YES
  #WITHOUT_USB=YES
  #WITHOUT_WIRELESS=YES
  WITHOUT_ZFS=YES
   ERROR OUTPUT
  awk -f /usr/src/sys/conf/kmod_syms.awk hwpmc.ko export_syms | xargs
  -J%
  objcopy % hwpmc.ko
  objcopy --strip-debug hwpmc.ko
  === hyperv (all)
  === hyperv/vmbus (all)
  cc -O2 -pipe -msse -msse2 -msse3 -mmmx -m3dnow -mtune=core2
  -march=core2 -fno-strict-aliasing -Wno-error -D_KERNEL -DKLD_MODULE
  -nostdinc
  -I/usr/src/sys/modules/hyperv/vmbus/../../../dev/hyperv/include
  -I/usr/src/sys/modules/hyperv/vmbus/../../../dev/hyperv/vmbus
  -I/usr/src/sys/modules/hyperv/vmbus/../../../dev/hyperv/utilities
  -DHAVE_KERNEL_OPTION_HEADERS -include
  /usr/obj/usr/src/sys/MYBSD/opt_global.h -I. -I@ -I@/contrib/altq
  -finline-limit=8000 --param inline-unit-growth=100 --param
  large-function-growth=1000 -fno-common -fno-omit-frame-pointer
  -mno-omit-leaf-frame-pointer -I/usr/obj/usr/src/sys/MYBSD
  -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float
  -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector
  -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls
  -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes
  -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign
  -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option
  -c
  /usr/src/sys/modules/hyperv/vmbus/../../../dev/hyperv/vmbus/hv_chann
  el.
  c
  In file included from
  /usr/src/sys/modules/hyperv/vmbus/../../../dev/hyperv/vmbus/hv_chann
  el.
  c:40:
  /usr/src/sys/modules/hyperv/vmbus/../../../dev/hyperv/vmbus/hv_vmbus
  _pr
  iv.h:288: warning: declaration does not declare anything
  /usr/src/sys/modules/hyperv/vmbus/../../../dev/hyperv/vmbus/hv_vmbus
  _pr
  iv.h:396: warning: declaration does not declare anything
  /usr/src/sys/modules/hyperv/vmbus/../../../dev/hyperv/vmbus/hv_vmbus
  _pr
  iv.h:410: warning: declaration does not declare anything
  /usr/src/sys/modules/hyperv/vmbus/../../../dev/hyperv/vmbus/hv_vmbus
  _pr
  iv.h:418: warning: declaration does not 

RE: Hyperv driver related error on make buildkernel on -r255933

2013-09-29 Thread Abhishek Gupta (LIS)
Hi,

Is it possible for you to compile with the clang compiler instead of gcc?

It seems that you are compiling with gcc and that is why the error is showing 
up:

WITHOUT_CLANG=YES
WITH_GCC=YES

Let me know if that is not acceptable and I will try to address this as soon as 
possible.

Thanks,
Abhishek

From: owner-freebsd-virtualizat...@freebsd.org 
owner-freebsd-virtualizat...@freebsd.org on behalf of Гуляев Гоша 
gosha-n...@yandex.ru
Sent: Sunday, September 29, 2013 11:18 AM
To: freebsd-curr...@freebsd.org; freebsd-virtualization@freebsd.org
Subject: Hyperv driver related error on make buildkernel on -r255933

   I have an error when tryin to compile kernel with recent -CURRENT
   sources

   There is additional info uname -a, /etc/src.conf, error output and
   kernel config

    uname -a

   FreeBSD MYBSD 10.0-CURRENT FreeBSD 10.0-CURRENT #0: Mon Aug 12 22:31:24
   MSK 2013 xlr@MYBSD:/usr/obj/usr/src/sys/MYBSD amd64

    /etc/src.conf

   WITHOUT_ACCT=YES
   #WITHOUT_AMD=YES
   WITHOUT_ASSERT_DEBUG=YES
   WITHOUT_ATM=YES
   WITHOUT_AUDIT=YES
   WITHOUT_AUTHPF=YES
   WITHOUT_BIND=YES
   #WITHOUT_BLUETOOTH=YES
   WITHOUT_BSNMP=YES
   WITHOUT_CLANG=YES
   WITHOUT_CTM=YES
   WITHOUT_FDT=YES
   WITHOUT_FLOPPY=YES
   WITHOUT_GDB=YES
   WITHOUT_HTML=YES
   WITH_GCC=YES
   WITH_GNUCXX=YES
   WITHOUT_ICONV=YES
   #WITH_LIBICONV_COMPAT=YES
   WITHOUT_INET6=YES
   WITHOUT_INFO=YES
   WITHOUT_IPFILTER=YES
   WITHOUT_IPX=YES
   WITHOUT_KERNEL_SYMBOLS=YES
   WITHOUT_KVM=YES
   WITHOUT_LPR=YES
   WITHOUT_MAIL=YES
   WITHOUT_NCP=YES
   #WITHOUT_NDIS=YES
   WITHOUT_OFED=YES
   WITHOUT_PF=YES
   WITHOUT_PMC=YES
   WITHOUT_QUOTAS=YES
   WITHOUT_RCMDS=YES
   WITHOUT_RCS=YES
   WITHOUT_SHAREDOCS=YES
   #WITHOUT_USB=YES
   #WITHOUT_WIRELESS=YES
   WITHOUT_ZFS=YES

    ERROR OUTPUT

   awk -f /usr/src/sys/conf/kmod_syms.awk hwpmc.ko export_syms | xargs -J%
   objcopy % hwpmc.ko
   objcopy --strip-debug hwpmc.ko
   === hyperv (all)
   === hyperv/vmbus (all)
   cc -O2 -pipe -msse -msse2 -msse3 -mmmx -m3dnow -mtune=core2
   -march=core2 -fno-strict-aliasing -Wno-error -D_KERNEL -DKLD_MODULE
   -nostdinc
   -I/usr/src/sys/modules/hyperv/vmbus/../../../dev/hyperv/include
   -I/usr/src/sys/modules/hyperv/vmbus/../../../dev/hyperv/vmbus
   -I/usr/src/sys/modules/hyperv/vmbus/../../../dev/hyperv/utilities
   -DHAVE_KERNEL_OPTION_HEADERS -include
   /usr/obj/usr/src/sys/MYBSD/opt_global.h -I. -I@ -I@/contrib/altq
   -finline-limit=8000 --param inline-unit-growth=100 --param
   large-function-growth=1000 -fno-common -fno-omit-frame-pointer
   -mno-omit-leaf-frame-pointer -I/usr/obj/usr/src/sys/MYBSD
   -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float
   -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector
   -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls
   -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes
   -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign
   -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -c
   /usr/src/sys/modules/hyperv/vmbus/../../../dev/hyperv/vmbus/hv_channel.
   c
   In file included from
   /usr/src/sys/modules/hyperv/vmbus/../../../dev/hyperv/vmbus/hv_channel.
   c:40:
   /usr/src/sys/modules/hyperv/vmbus/../../../dev/hyperv/vmbus/hv_vmbus_pr
   iv.h:288: warning: declaration does not declare anything
   /usr/src/sys/modules/hyperv/vmbus/../../../dev/hyperv/vmbus/hv_vmbus_pr
   iv.h:396: warning: declaration does not declare anything
   /usr/src/sys/modules/hyperv/vmbus/../../../dev/hyperv/vmbus/hv_vmbus_pr
   iv.h:410: warning: declaration does not declare anything
   /usr/src/sys/modules/hyperv/vmbus/../../../dev/hyperv/vmbus/hv_vmbus_pr
   iv.h:418: warning: declaration does not declare anything
   /usr/src/sys/modules/hyperv/vmbus/../../../dev/hyperv/vmbus/hv_vmbus_pr
   iv.h:426: warning: declaration does not declare anything
   /usr/src/sys/modules/hyperv/vmbus/../../../dev/hyperv/vmbus/hv_vmbus_pr
   iv.h:502: warning: declaration does not declare anything
   /usr/src/sys/modules/hyperv/vmbus/../../../dev/hyperv/vmbus/hv_vmbus_pr
   iv.h:514: warning: declaration does not declare anything
   /usr/src/sys/modules/hyperv/vmbus/../../../dev/hyperv/vmbus/hv_vmbus_pr
   iv.h:528: warning: declaration does not declare anything
   /usr/src/sys/modules/hyperv/vmbus/../../../dev/hyperv/vmbus/hv_vmbus_pr
   iv.h:539: warning: declaration does not declare anything
   /usr/src/sys/modules/hyperv/vmbus/../../../dev/hyperv/vmbus/hv_channel.
   c: In function 'vmbus_channel_set_event':
   /usr/src/sys/modules/hyperv/vmbus/../../../dev/hyperv/vmbus/hv_channel.
   c:73: error: 'union anonymous' has no member named 'pending'
   *** Error code 1
   Stop.
   make: stopped in /usr/src/sys/modules/hyperv/vmbus
   *** Error code 1
   Stop.
   make: stopped in /usr/src/sys/modules/hyperv