OpenZFS port compile error

Patrick M. Hausen hausen at punkt.de
Sat Aug 17 20:24:08 UTC 2019


>> 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 …?

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



More information about the freebsd-fs mailing list