From owner-freebsd-virtualization@FreeBSD.ORG Sun Jan 12 08:11:33 2014 Return-Path: Delivered-To: virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 07DBEE75 for ; Sun, 12 Jan 2014 08:11:33 +0000 (UTC) Received: from mail-pd0-x233.google.com (mail-pd0-x233.google.com [IPv6:2607:f8b0:400e:c02::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D070F1EC0 for ; Sun, 12 Jan 2014 08:11:32 +0000 (UTC) Received: by mail-pd0-f179.google.com with SMTP id y13so3736699pdi.38 for ; Sun, 12 Jan 2014 00:11:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:date:cc :content-transfer-encoding:message-id:references:to; bh=0C9pf5z5ABupRzRiKGqo3C/aANKTH0jg7I3g4bFjSkA=; b=h+a1qXhO41hFMqcEnDp8VNzJkVKGIf3Pw6ThNNM643wCOmNmMuHDiKUN/O4aiWZXRJ LMna3cNK2H0FwIfT+lbozqNWTIESnNipWdKG1gk7TzVr55X0yIofiFqiV6iGt72XnIGL UyKhkcQ+Cz9CuembET0AwYvebREjESu83xVnJElbbr5xffi+JnGTvXO0XkpSvGNFVbrv V2WH/YmiEZEy10VU5503hflvRlfZzhih+g418UpTKj2bhzv8tJkzK995kTmxph03bdnQ yBwqaf99E0RR45NE4z1pStx8atsI5ia743DLI0An0zk8str3wdC+oU36KQp6WECvkspd mqoA== X-Received: by 10.66.141.144 with SMTP id ro16mr22318414pab.131.1389514292484; Sun, 12 Jan 2014 00:11:32 -0800 (PST) Received: from [192.168.20.5] (c-50-181-163-89.hsd1.wa.comcast.net. [50.181.163.89]) by mx.google.com with ESMTPSA id tu3sm37576535pab.1.2014.01.12.00.11.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 12 Jan 2014 00:11:31 -0800 (PST) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Subject: Fwd: hyperv doesn't compile on i386 with gcc From: Garrett Cooper Date: Sun, 12 Jan 2014 00:11:28 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: virtualization@FreeBSD.org X-Mailer: Apple Mail (2.1827) X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Jan 2014 08:11:33 -0000 Please see the below message. Thanks, -Garrett Begin forwarded message: > From: "yaneurabeya ." > Subject: hyperv doesn't compile on i386 with gcc > Date: January 10, 2014 at 11:33:25 AM PST > To: Peter Grehan > Cc: Gleb Smirnoff >=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]#