From owner-freebsd-current@freebsd.org Wed Jan 25 18:46:16 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 94D1ACBC8BE for ; Wed, 25 Jan 2017 18:46:16 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3A6013D9 for ; Wed, 25 Jan 2017 18:46:16 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:7b8:3a7::b900:7275:4b13:60d0] (unknown [IPv6:2001:7b8:3a7:0:b900:7275:4b13:60d0]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id C15ED48A16; Wed, 25 Jan 2017 19:46:12 +0100 (CET) Content-Type: multipart/signed; boundary="Apple-Mail=_FE6FF923-9FCE-4EF5-B91A-BB71F971D511"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: How building sys/boot From: Dimitry Andric In-Reply-To: <9680921485352709@web26h.yandex.ru> Date: Wed, 25 Jan 2017 19:46:04 +0100 Cc: freebsd-current Current Message-Id: <450EEB74-2B4D-493C-82E2-FD4AF0BC4CEC@FreeBSD.org> References: <9680921485352709@web26h.yandex.ru> To: "Ilya A. Arkhipov" X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jan 2017 18:46:16 -0000 --Apple-Mail=_FE6FF923-9FCE-4EF5-B91A-BB71F971D511 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 25 Jan 2017, at 14:58, Ilya A. Arkhipov wrote: >=20 > Somebody can explain to me how build sys/boot? > Right now I doing: > make -C sys/boot obj depend all > And I get: > cc -O2 -pipe -DSKEIN_LOOP=3D111 -fPIC = -I/usr/src/sys/boot/efi/loader -I/usr/src/sys/boot/efi/loader/arch/amd64 = -I/usr/src/sys/boot/efi/loader/../include = -I/usr/src/sys/boot/efi/loader/../include/amd64 = -I/usr/src/sys/boot/efi/loader/../../../contrib/dev/acpica/include = -I/usr/src/sys/boot/efi/loader/../../.. = -I/usr/src/sys/boot/efi/loader/../../i386/libi386 = -I/usr/src/sys/boot/efi/loader/../../zfs = -I/usr/src/sys/boot/efi/loader/../../../cddl/boot/zfs = -I/usr/src/sys/boot/efi/loader/../../../crypto/skein -DEFI_ZFS_BOOT = -DNO_PCI -DEFI -DSMBIOS_SERIAL_NUMBERS -DBOOT_FORTH = -I/usr/src/sys/boot/efi/loader/../../ficl = -I/usr/src/sys/boot/efi/loader/../../ficl/amd64 -DLOADER_DISK_SUPPORT = -DLOADER_GPT_SUPPORT -DLOADER_MBR_SUPPORT -fPIC -I/usr/src/sys/boot/ficl = -I/usr/src/sys/boot/ficl/amd64 -I/usr/src/sys/boot/ficl/../common = -I/usr/src/sys/boot/efi/loader/../../common -ffreestanding -Wformat = -msoft-float -mno-mmx -mno-sse -mno-avx -fshort-wchar -mno-red-zone = -mno-aes -g -MD -MF.depend.zfs.o - > MTzfs.o -std=3Dgnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W = -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes = -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body = -Wno-string-plus-int -Wno-unused-const-variable = -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality = -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef = -Wno-sign-compare -Wno-array-bounds -Wno-missing-prototypes = -Qunused-arguments -c /usr/src/sys/boot/efi/loader/../../zfs/zfs.c -o = zfs.o > /usr/src/sys/boot/efi/loader/../../zfs/zfs.c:602:17: error: = incompatible pointer types initializing 'int (*)(void *, int, daddr_t, = size_t, size_t, char *, size_t *)' (aka 'int > (*)(void *, int, long, unsigned long, unsigned long, char *, = unsigned long *)') with an expression of type 'int (void *, int, = daddr_t, size_t, char *, size_t *)' (aka 'int > (void *, int, long, unsigned long, char *, unsigned long *)') = [-Werror,-Wincompatible-pointer-types] > .dv_strategy =3D zfs_dev_strategy, > ^~~~~~~~~~~~~~~~ > /usr/src/sys/boot/efi/loader/../../zfs/zfs.c:606:14: error: = incompatible pointer types initializing 'void (*)(int)' with an = expression of type 'int (int)' > [-Werror,-Wincompatible-pointer-types] > .dv_print =3D zfs_dev_print, > ^~~~~~~~~~~~~ > 2 errors generated. This is because of r310850, which changed the dv_strategy member of struct devsw in stand.h [1]. You need to update your libstand before you can build sys/boot, e.g: cd /usr/src/lib/libstand make obj make depend make sudo make install Then try building sys/boot again. Or just run a regular buildworld. :) -Dimitry [1] = https://svnweb.freebsd.org/base/head/lib/libstand/stand.h?r1=3D310850&r2=3D= 310849&pathrev=3D310850 --Apple-Mail=_FE6FF923-9FCE-4EF5-B91A-BB71F971D511 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.30 iEYEARECAAYFAliI8nQACgkQsF6jCi4glqNAgQCgjmwROy4H+kgGZb7c75V8m5iv wNgAn0LTwPXF1lu+rKTh/qlP3r5XIHA+ =69zS -----END PGP SIGNATURE----- --Apple-Mail=_FE6FF923-9FCE-4EF5-B91A-BB71F971D511--