OpenZFS port compile error

Warner Losh imp at bsdimp.com
Sat Aug 17 20:44:23 UTC 2019


On Sat, Aug 17, 2019, 2:24 PM Patrick M. Hausen <hausen at punkt.de> wrote:

> >> Disable -Werror, or cast 't' to uintmax_t and use %jd as the format.
> >
> > My intention was more like „hey guys, the official port seems to be
> broken,
> > WTF is going on here?“ - but thanks, I’ll try to figure out how to
> actually do
> > what you suggested …
>
> I did the cast and format change, since I could not find how to change the
> compiler options for this particular port. No „-Werror“ for „cc“ anywhere
> in /usr/ports/Mk/* …
>
> 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 = 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 …?
>

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 at punkt.de   http://punkt.de
> AG Mannheim 108285              Gf: Juergen Egeling
>
> _______________________________________________
> freebsd-fs at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe at freebsd.org"
>


More information about the freebsd-fs mailing list