From owner-freebsd-stable@FreeBSD.ORG Sat Dec 21 18:53:57 2013 Return-Path: Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E5634269 for ; Sat, 21 Dec 2013 18:53:56 +0000 (UTC) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6E0331A58 for ; Sat, 21 Dec 2013 18:53:56 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::8e8:7357:fa2a:947a] (unknown [IPv6:2001:7b8:3a7:0:8e8:7357:fa2a:947a]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 741EC5C43; Sat, 21 Dec 2013 19:53:46 +0100 (CET) Content-Type: multipart/signed; boundary="Apple-Mail=_CDF6B3E9-9F80-4341-AEA6-62D454923361"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Subject: Re: unable to build 10.0-RC2/i386 GENERIC kernel with gcc (stop at hyperv module) From: Dimitry Andric In-Reply-To: Date: Sat, 21 Dec 2013 19:53:10 +0100 Message-Id: <281FAC75-F24D-4849-8BD2-4F46ED9F45DA@FreeBSD.org> References: To: Yury Tsybizov X-Mailer: Apple Mail (2.1827) Cc: freebsd-stable@FreeBSD.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Dec 2013 18:53:57 -0000 --Apple-Mail=_CDF6B3E9-9F80-4341-AEA6-62D454923361 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On 21 Dec 2013, at 19:25, Yury Tsybizov = wrote: >=20 > I am trying to update (clean) install of 9.2 to releng/10.0 svn on = i386. >=20 > It did not work with freebsd-update or usual build = world/buildkernel/installworld/reboot/ etc procedure You are using the incorrect order. The correct order is: * make buildworld * make buildkernel * make installkernel * reboot to single user * make installworld * mergemaster (or etcupdate, whichever you prefer) * reboot > - looks like 9.2 gcc world is unable to run =93make installworld" = under 10.0 clang kernel. No, this has nothing to do with clang or gcc. You are attempting to install a 10.0 world while still running a 9.2 kernel, which is unsupported. (That means, it might work if you are lucky, but it is more likely to break.) > As recommended by UPDATING, I am trying to build it with gcc instead = of clang. >=20 > Everything builds well, but hyperv module has some problems: ... > cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE = -nostdinc = -I/usr/src/sys/modules/hyperv/netvsc/../../../dev/hyperv/netvsc = -DHAVE_KERNEL_OPTION_HEADERS -include = /usr/obj/usr/src/sys/GENERIC/opt_global.h -I. -I@ -I@/contrib/altq = -finline-limit=3D8000 --param inline-unit-growth=3D100 --param = large-function-growth=3D1000 -fno-common -g = -I/usr/obj/usr/src/sys/GENERIC -mno-align-long-strings = -mpreferred-stack-boundary=3D2 -mno-mmx -mno-sse -msoft-float = -ffreestanding -fstack-protector -std=3Diso9899: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/netvsc/../../../dev/hyperv/netvsc/hv_net_vsc.c= > cc1: warnings being treated as errors > = /usr/src/sys/modules/hyperv/netvsc/../../../dev/hyperv/netvsc/hv_net_vsc.c= : In function 'hv_nv_init_rx_buffer_with_net_vsp': > = /usr/src/sys/modules/hyperv/netvsc/../../../dev/hyperv/netvsc/hv_net_vsc.c= :182: warning: cast from pointer to integer of different size = [-Wpointer-to-int-cast] Yes, this is a known problem in the hyperv code. I have tried to get some attention for it, but apparently it is not that important to be able to build 10.0 with gcc anymore... If you do not care about hyperv, just use WERROR=3D to build your = kernel, e.g.: make buildkernel WERROR=3D to disable -Werror. -Dimitry --Apple-Mail=_CDF6B3E9-9F80-4341-AEA6-62D454923361 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iEYEARECAAYFAlK145wACgkQsF6jCi4glqMJhQCcDRg0uccya8tNOOVydwoUEO0t hPIAmgLCm/m7Rsyqo4wo8hV9XwCPhBvR =hxaR -----END PGP SIGNATURE----- --Apple-Mail=_CDF6B3E9-9F80-4341-AEA6-62D454923361--