[Bug 280136] devel/py-libzfs doesn't build on 14.1 with python311 (2024Q3)

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 05 Jul 2024 08:54:09 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280136

            Bug ID: 280136
           Summary: devel/py-libzfs doesn't build on 14.1 with python311
                    (2024Q3)
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freqlabs@FreeBSD.org
          Reporter: rainer@ultra-secure.de
          Assignee: freqlabs@FreeBSD.org
             Flags: maintainer-feedback?(freqlabs@FreeBSD.org)

===========================================================================
=======================<phase: build          >============================
===== env: NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Building for py311-libzfs-1.1.2023020700
running build
running build_ext
cythoning libzfs.pyx to libzfs.c
building 'libzfs' extension
creating build
creating build/temp.freebsd-14.1-RELEASE-p2-amd64-cpython-311
cc -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe
-fstack-protector-strong -fno-strict-aliasing -O2 -pipe
-fstack-protector-strong -fno-strict-aliasing -fPIC
-I/usr/local/include/python3.11 -c libzfs.c -o
build/temp.freebsd-14.1-RELEASE-p2-amd64-cp
ython-311/libzfs.o -DCYTHON_FALLTHROUGH -DIN_BASE -DHAVE_RPC_TYPES
-I/usr/src/sys/contrib/openzfs/include
-I/usr/src/sys/contrib/openzfs/include/os/freebsd
-I/usr/src/sys/contrib/openzfs/lib/libspl/include
-I/usr/src/sys/contrib/openzfs/lib/libspl/includ
e/os/freebsd -I/usr/src/sys -I/usr/src/cddl/compat/opensolaris/include -include
/usr/src/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h
-DHAVE_ISSETUGID -Werror=implicit-function-declaration
libzfs.c:950:11: warning: 'likely' macro redefined [-Wmacro-redefined]
  950 |   #define likely(x)   __builtin_expect(!!(x), 1)
      |           ^
/usr/src/sys/contrib/openzfs/include/sys/zfs_context.h:131:9: note: previous
definition is here
  131 | #define likely(x)       __builtin_expect((x), 1)
      |         ^
libzfs.c:951:11: warning: 'unlikely' macro redefined [-Wmacro-redefined]
  951 |   #define unlikely(x) __builtin_expect(!!(x), 0)
      |           ^
/usr/src/sys/contrib/openzfs/include/sys/zfs_context.h:132:9: note: previous
definition is here
  132 | #define unlikely(x)     __builtin_expect((x), 0)
      |         ^
libzfs.c:6354:46: warning: passing 'char **' to parameter of type 'const char
**' discards qualifiers in nested pointer types
[-Wincompatible-pointer-types-discards-qualifiers]
 6354 |     (void)(nvpair_value_string(__pyx_v_pair, (&__pyx_v_cstr)));
      |                                              ^~~~~~~~~~~~~~~
/usr/src/sys/contrib/openzfs/include/sys/nvpair.h:291:70: note: passing
argument to parameter here
  291 | _SYS_NVPAIR_H int nvpair_value_string(const nvpair_t *, const char **);
      |                                                                      ^
libzfs.c:7327:52: warning: passing 'char ***' to parameter of type 'const char
***' discards qualifiers in nested pointer types
[-Wincompatible-pointer-types-discards-qualifiers]
 7327 |     (void)(nvpair_value_string_array(__pyx_v_pair, ((char
***)(&__pyx_v_carray)), (&__pyx_v_carraylen)));
      |                                                   
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/sys/contrib/openzfs/include/sys/nvpair.h:304:71: note: passing
argument to parameter here
  304 | _SYS_NVPAIR_H int nvpair_value_string_array(nvpair_t *, const char ***,
      |                                                                       ^
libzfs.c:9192:72: warning: passing 'char **' to parameter of type 'const char
*const *' discards qualifiers in nested pointer types
[-Wincompatible-pointer-types-discards-qualifiers]
 9192 |       (void)(nvlist_add_string_array(__pyx_v_self->handle, __pyx_t_34,
((char **)__pyx_v_carray), __pyx_t_29));
      |                                                                       
^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/sys/contrib/openzfs/include/sys/nvpair.h:204:25: note: passing
argument to parameter here
  204 |     const char * const *, uint_t);
      |                         ^
libzfs.c:10578:72: warning: passing 'nvlist_t **' (aka 'struct nvlist **') to
parameter of type 'const nvlist_t *const *' (aka 'const struct nvlist *const
*') discards qualifiers in nested pointer types
[-Wincompatible-pointer-types-discards-qualifiers]
 10578 |       (void)(nvlist_add_nvlist_array(__pyx_v_self->handle, __pyx_t_45,
((nvlist_t **)__pyx_v_carray), __pyx_t_29));
       |                                                                       
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/sys/contrib/openzfs/include/sys/nvpair.h:206:29: note: passing
argument to parameter here
  206 |     const nvlist_t * const *, uint_t);
      |                             ^
libzfs.c:18403:13: warning: code will never be executed [-Wunreachable-code]
 18403 |   __pyx_r = 0;
       |             ^
libzfs.c:23388:13: warning: code will never be executed [-Wunreachable-code]
 23388 |   __pyx_r = 0;
       |             ^
libzfs.c:56086:13: warning: code will never be executed [-Wunreachable-code]
 56086 |   __pyx_r = 0;
       |             ^
libzfs.c:58694:88: warning: passing 'char **' to parameter of type 'const char
**' discards qualifiers in nested pointer types
[-Wincompatible-pointer-types-discards-qualifiers]
 58694 |     __pyx_t_4 =
__Pyx_PyInt_From_zpool_status_t(zpool_get_status(__pyx_v_self->handle,
(&__pyx_v_msg_id), NULL)); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 2818,
__pyx_L1_error)
       |                                                                       
                ^~~~~~~~~~~~~~~~~
/usr/src/sys/contrib/openzfs/include/libzfs.h:449:74: note: passing argument to
parameter here
  449 | _LIBZFS_H zpool_status_t zpool_get_status(zpool_handle_t *, const char
**,
      |                                                                        
 ^
libzfs.c:63310:81: error: too few arguments to function call, expected 3, have
2
 63310 |         __pyx_v_ret = zpool_add(__pyx_v_self->handle,
__pyx_v_vd->nvlist->handle);
       |                       ~~~~~~~~~                                       
         ^
/usr/src/sys/contrib/openzfs/include/libzfs.h:265:15: note: 'zpool_add'
declared here
  265 | _LIBZFS_H int zpool_add(zpool_handle_t *, nvlist_t *, boolean_t
check_ashift);
      |               ^        
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libzfs.c:83149:85: warning: passing 'const char *' to parameter of type 'char
*' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
 83149 |         __pyx_v_ret =
zfs_destroy_snaps(__pyx_v_self->__pyx_base.__pyx_base.handle, __pyx_v_c_name,
__pyx_v_defer_deletion);
       |                                                                       
             ^~~~~~~~~~~~~~
/usr/src/sys/contrib/openzfs/include/libzfs.h:729:55: note: passing argument to
parameter here
  729 | _LIBZFS_H int zfs_destroy_snaps(zfs_handle_t *, char *, boolean_t);
      |                                                       ^
11 warnings and 1 error generated.
error: command '/usr/bin/cc' failed with exit code 1
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/py-libzfs
=>> Cleaning up wrkdir
===>  Cleaning for py311-libzfs-1.1.2023020700
build of devel/py-libzfs@py311 | py311-libzfs-1.1.2023020700 ended at Fri Jul 
5 10:47:21 CEST 2024
build time: 00:00:29
!!! build failure encountered !!!

-- 
You are receiving this mail because:
You are the assignee for the bug.