From owner-freebsd-fs@freebsd.org Sat Aug 17 20:24:08 2019 Return-Path: Delivered-To: freebsd-fs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 705E8B041B for ; Sat, 17 Aug 2019 20:24:08 +0000 (UTC) (envelope-from hausen@punkt.de) Received: from kagate.punkt.de (kagate.punkt.de [217.29.33.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 469s933zCSz3F67; Sat, 17 Aug 2019 20:24:07 +0000 (UTC) (envelope-from hausen@punkt.de) Received: from hugo10.ka.punkt.de (hugo10.ka.punkt.de [217.29.44.10]) by gate2.intern.punkt.de with ESMTP id x7HKO6ea056839; Sat, 17 Aug 2019 22:24:06 +0200 (CEST) Received: from [217.29.46.66] (unassigned [217.29.46.66] (may be forged)) by hugo10.ka.punkt.de (8.14.2/8.14.2) with ESMTP id x7HKO510089205; Sat, 17 Aug 2019 22:24:06 +0200 (CEST) (envelope-from hausen@punkt.de) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: OpenZFS port compile error From: "Patrick M. Hausen" In-Reply-To: <7EB4F36F-5384-4A35-916D-87739692DC6B@punkt.de> Date: Sat, 17 Aug 2019 22:24:04 +0200 Cc: "freebsd-fs@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: <57F902BF-E2B5-487C-B49C-2B0F3CA95CBE@FreeBSD.org> <7EB4F36F-5384-4A35-916D-87739692DC6B@punkt.de> To: Dimitry Andric X-Mailer: Apple Mail (2.3445.104.11) X-Rspamd-Queue-Id: 469s933zCSz3F67 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hausen@punkt.de designates 217.29.33.131 as permitted sender) smtp.mailfrom=hausen@punkt.de X-Spamd-Result: default: False [-3.01 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:217.29.32.0/20:c]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; MV_CASE(0.50)[]; DMARC_NA(0.00)[punkt.de]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; RCVD_COUNT_THREE(0.00)[3]; RCVD_TLS_LAST(0.00)[]; NEURAL_HAM_SHORT(-0.83)[-0.831,0]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(-0.38)[ip: (-0.21), ipnet: 217.29.32.0/20(-0.94), asn: 16188(-0.75), country: DE(-0.01)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:16188, ipnet:217.29.32.0/20, country:DE]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Aug 2019 20:24:08 -0000 >> Disable -Werror, or cast 't' to uintmax_t and use %jd as the format. >=20 > My intention was more like =E2=80=9Ehey guys, the official port seems = to be broken, > WTF is going on here?=E2=80=9C - but thanks, I=E2=80=99ll try to = figure out how to actually do > what you suggested =E2=80=A6 I did the cast and format change, since I could not find how to change = the compiler options for this particular port. No =E2=80=9E-Werror=E2=80=9C = for =E2=80=9Ecc=E2=80=9C anywhere in /usr/ports/Mk/* =E2=80=A6 That got a few more files to compile, but then: ../../module/zfs/arc.c:7818:51: error: implicit conversion from = 'unsigned long long' to 'unsigned long' changes value from 4294967296 to 0 [-Werror,-Wconstant-conversion] zfs_dirty_data_max_max =3D MIN(4ULL * 1024 * 1024 * = 1024, ~ ~~~~~~~~~~~~~~~~~~~^~~~~~ /usr/include/sys/param.h:305:30: note: expanded from macro 'MIN' #define MIN(a,b) (((a)<(b))?(a):(b)) ^ 1 error generated. Seriously, there was a public call for users/admins to install and try = ZoF - not in production, of course. So I got an unused toy machine that I wanted to convert to OpenZFS. How do you expect an admin to do that if the one official port does not even compile =E2=80=A6? Kind regards, Patrick --=20 punkt.de GmbH Internet - Dienstleistungen - Beratung Kaiserallee 13a Tel.: 0721 9109-0 Fax: -100 76133 Karlsruhe info@punkt.de http://punkt.de AG Mannheim 108285 Gf: Juergen Egeling