Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Aug 2019 14:44:08 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        "Patrick M. Hausen" <hausen@punkt.de>
Cc:        Dimitry Andric <dim@freebsd.org>, FreeBSD FS <freebsd-fs@freebsd.org>
Subject:   Re: OpenZFS port compile error
Message-ID:  <CANCZdfrpsQWMfznAcXo1z5XRcvXZAXwQxZS4YPxTZVk1of6qkw@mail.gmail.com>
In-Reply-To: <C8CC35C3-97A9-4543-9A15-98BC1221F5E3@punkt.de>
References:  <A19323B1-BC1D-444E-9122-D6EC98D748F6@punkt.de> <57F902BF-E2B5-487C-B49C-2B0F3CA95CBE@FreeBSD.org> <7EB4F36F-5384-4A35-916D-87739692DC6B@punkt.de> <C8CC35C3-97A9-4543-9A15-98BC1221F5E3@punkt.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Aug 17, 2019, 2:24 PM Patrick M. Hausen <hausen@punkt.de> wrote:

> >> Disable -Werror, or cast 't' to uintmax_t and use %jd as the format.
> >
> > My intention was more like =E2=80=9Ehey guys, the official port seems t=
o 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 th=
e
> compiler options for this particular port. No =E2=80=9E-Werror=E2=80=9C f=
or =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 Zo=
F
> - 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?
>

I386 or amd64? I386 doesn't get enough love these days.

Warner

Kind regards,
> Patrick
> --
> 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
>
> _______________________________________________
> freebsd-fs@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfrpsQWMfznAcXo1z5XRcvXZAXwQxZS4YPxTZVk1of6qkw>