Fwd: hyperv doesn't compile on i386 with gcc

Garrett Cooper yanegomi at gmail.com
Sun Jan 12 08:11:33 UTC 2014


	Please see the below message.
Thanks,
-Garrett

Begin forwarded message:

> From: "yaneurabeya ." <yanegomi at gmail.com>
> Subject: hyperv doesn't compile on i386 with gcc
> Date: January 10, 2014 at 11:33:25 AM PST
> To: Peter Grehan <grehan at freebsd.org>
> Cc: Gleb Smirnoff <glebius at freebsd.org>
> 
>    Keep on running into this issue when compiling GENERIC on i386
> with gcc (not clang). Could someone please fix this type issue (sizeof
> returns size_t, not uint32_t)?
> Thanks,
> -Garrett
> 
> int
> hv_vmbus_channel_send_packet(
>        hv_vmbus_channel*       channel,
>        void*                   buffer,
>        uint32_t                buffer_len,
>        uint64_t                request_id,
>        hv_vmbus_packet_type    type,
>        uint32_t                flags)
> 
> cc  -c -O -pipe -march=core2 -std=c99 -g -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
> -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq
> -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS
> -include opt_global.h -fno-common -finline-limit=8000 --param
> inline-unit-growth=100 --param large-function-growth=1000
> -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-sse
> -msoft-float -ffreestanding -fstack-protector -Werror
> /usr/src/sys/dev/hyperv/netvsc/hv_net_vsc.c
> cc1: warnings being treated as errors
> /usr/src/sys/dev/hyperv/netvsc/hv_net_vsc.c: In function
> 'hv_nv_init_rx_buffer_with_net_vsp':
> /usr/src/sys/dev/hyperv/netvsc/hv_net_vsc.c:185: warning: cast from
> pointer to integer of different size [-Wpointer-to-int-cast]
> /usr/src/sys/dev/hyperv/netvsc/hv_net_vsc.c: In function
> 'hv_nv_init_send_buffer_with_net_vsp':
> /usr/src/sys/dev/hyperv/netvsc/hv_net_vsc.c:283: warning: cast from
> pointer to integer of different size [-Wpointer-to-int-cast]
> /usr/src/sys/dev/hyperv/netvsc/hv_net_vsc.c: In function
> 'hv_nv_destroy_rx_buffer':
> /usr/src/sys/dev/hyperv/netvsc/hv_net_vsc.c:337: warning: cast from
> pointer to integer of different size [-Wpointer-to-int-cast]
> /usr/src/sys/dev/hyperv/netvsc/hv_net_vsc.c: In function
> 'hv_nv_destroy_send_buffer':
> /usr/src/sys/dev/hyperv/netvsc/hv_net_vsc.c:405: warning: cast from
> pointer to integer of different size [-Wpointer-to-int-cast]
> /usr/src/sys/dev/hyperv/netvsc/hv_net_vsc.c: In function
> 'hv_nv_negotiate_nvsp_protocol':
> /usr/src/sys/dev/hyperv/netvsc/hv_net_vsc.c:467: warning: cast from
> pointer to integer of different size [-Wpointer-to-int-cast]
> /usr/src/sys/dev/hyperv/netvsc/hv_net_vsc.c: In function
> 'hv_nv_send_ndis_config':
> /usr/src/sys/dev/hyperv/netvsc/hv_net_vsc.c:511: warning: cast from
> pointer to integer of different size [-Wpointer-to-int-cast]
> /usr/src/sys/dev/hyperv/netvsc/hv_net_vsc.c: In function 'hv_nv_connect_to_vsp':
> /usr/src/sys/dev/hyperv/netvsc/hv_net_vsc.c:583: warning: cast from
> pointer to integer of different size [-Wpointer-to-int-cast]
> /usr/src/sys/dev/hyperv/netvsc/hv_net_vsc.c: In function 'hv_nv_on_send':
> /usr/src/sys/dev/hyperv/netvsc/hv_net_vsc.c:833: warning: cast from
> pointer to integer of different size [-Wpointer-to-int-cast]
> /usr/src/sys/dev/hyperv/netvsc/hv_net_vsc.c:836: warning: cast from
> pointer to integer of different size [-Wpointer-to-int-cast]
> *** [hv_net_vsc.o] Error code 1
> 1 error
> *** [buildkernel] Error code 2
> 1 error
> *** [buildkernel] Error code 2
> 1 error
> + [ -f /root/bk.s ]
> You have new mail in /var/mail/root
> [root at fbsd-vm /usr/src]#



More information about the freebsd-virtualization mailing list