Date: Sun, 12 Jan 2014 00:11:28 -0800 From: Garrett Cooper <yanegomi@gmail.com> To: virtualization@FreeBSD.org Subject: Fwd: hyperv doesn't compile on i386 with gcc Message-ID: <B8B9AE2F-BAB0-4235-BDB0-6BD874DD93EC@gmail.com> References: <CAGH67wRjZBUVe-ymOWN4MMe%2B0598fgWfWKXsyDn=zKHdBycDOw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Please see the below message. Thanks, -Garrett Begin forwarded message: > From: "yaneurabeya ." <yanegomi@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@freebsd.org> > Cc: Gleb Smirnoff <glebius@freebsd.org> >=20 > 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 >=20 > 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) >=20 > cc -c -O -pipe -march=3Dcore2 -std=3Dc99 -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=3D8000 --param > inline-unit-growth=3D100 --param large-function-growth=3D1000 > -mno-align-long-strings -mpreferred-stack-boundary=3D2 -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@fbsd-vm /usr/src]#
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B8B9AE2F-BAB0-4235-BDB0-6BD874DD93EC>