===> Building for mpich-3.4 --- all --- make all-recursive --- all-recursive --- Making all in src/mpl --- src/gpu/mpl_gpu_ze.lo --- depbase=`echo src/gpu/mpl_gpu_ze.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`; /bin/sh ./libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I./include -I./include -I./include -I/usr/local/include -DNETMOD_INLINE=__netmod_inline_ofi__ -I/usr/local/include/json-c -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -MT src/gpu/mpl_gpu_ze.lo -MD -MP -MF $depbase.Tpo -c -o src/gpu/mpl_gpu_ze.lo src/gpu/mpl_gpu_ze.c && mv -f $depbase.Tpo $depbase.Plo libtool: compile: cc -DHAVE_CONFIG_H -I. -I./include -I./include -I./include -I/usr/local/include -DNETMOD_INLINE=__netmod_inline_ofi__ -I/usr/local/include/json-c -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -MT src/gpu/mpl_gpu_ze.lo -MD -MP -MF src/gpu/.deps/mpl_gpu_ze.Tpo -c src/gpu/mpl_gpu_ze.c -fPIC -DPIC -o src/gpu/.libs/mpl_gpu_ze.o src/gpu/mpl_gpu_ze.c:32:48: warning: passing 'int *' to parameter of type 'uint32_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] ret = zeDeviceGet(global_ze_driver_handle, &device_count, NULL); ^~~~~~~~~~~~~ /usr/local/include/level_zero/ze_api.h:792:15: note: passing argument to parameter 'pCount' here uint32_t* pCount, ///< [in,out] pointer to the number of devices. ^ src/gpu/mpl_gpu_ze.c:38:48: warning: passing 'int *' to parameter of type 'uint32_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] ret = zeDeviceGet(global_ze_driver_handle, &device_count, global_ze_devices_handle); ^~~~~~~~~~~~~ /usr/local/include/level_zero/ze_api.h:792:15: note: passing argument to parameter 'pCount' here uint32_t* pCount, ///< [in,out] pointer to the number of devices. ^ src/gpu/mpl_gpu_ze.c:123:11: warning: implicit declaration of function 'zeDriverGetMemIpcHandle' is invalid in C99 [-Wimplicit-function-declaration] ret = zeDriverGetMemIpcHandle(global_ze_driver_handle, ptr, ipc_handle); ^ src/gpu/mpl_gpu_ze.c:139:9: warning: implicit declaration of function 'zeDriverOpenMemIpcHandle' is invalid in C99 [-Wimplicit-function-declaration] zeDriverOpenMemIpcHandle(global_ze_driver_handle, ^ src/gpu/mpl_gpu_ze.c:140:70: error: no member named 'global_dev_id' in 'struct _ze_ipc_mem_handle_t' global_ze_devices_handle[ipc_handle.global_dev_id], ~~~~~~~~~~ ^ src/gpu/mpl_gpu_ze.c:141:45: error: no member named 'handle' in 'struct _ze_ipc_mem_handle_t' ipc_handle.handle, ZE_IPC_MEMORY_FLAG_NONE, ptr); ~~~~~~~~~~ ^ src/gpu/mpl_gpu_ze.c:141:53: error: use of undeclared identifier 'ZE_IPC_MEMORY_FLAG_NONE'; did you mean 'ZE_IPC_MEMORY_FLAG_TBD'? ipc_handle.handle, ZE_IPC_MEMORY_FLAG_NONE, ptr); ^~~~~~~~~~~~~~~~~~~~~~~ ZE_IPC_MEMORY_FLAG_TBD /usr/local/include/level_zero/ze_api.h:4043:5: note: 'ZE_IPC_MEMORY_FLAG_TBD' declared here ZE_IPC_MEMORY_FLAG_TBD = ZE_BIT(0), ///< reserved for future use ^ src/gpu/mpl_gpu_ze.c:156:11: warning: implicit declaration of function 'zeDriverCloseMemIpcHandle' is invalid in C99 [-Wimplicit-function-declaration] ret = zeDriverCloseMemIpcHandle(global_ze_driver_handle, ptr); ^ src/gpu/mpl_gpu_ze.c:171:11: warning: implicit declaration of function 'zeDriverGetMemAllocProperties' is invalid in C99 [-Wimplicit-function-declaration] ret = zeDriverGetMemAllocProperties(global_ze_driver_handle, ptr, &ptr_attr, &device); ^ src/gpu/mpl_gpu_ze.c:202:25: error: use of undeclared identifier 'ZE_DEVICE_MEM_ALLOC_FLAG_DEFAULT' device_desc.flags = ZE_DEVICE_MEM_ALLOC_FLAG_DEFAULT; ^ src/gpu/mpl_gpu_ze.c:204:17: error: no member named 'version' in 'struct _ze_device_mem_alloc_desc_t' device_desc.version = ZE_DEVICE_MEM_ALLOC_DESC_VERSION_CURRENT; ~~~~~~~~~~~ ^ src/gpu/mpl_gpu_ze.c:204:27: error: use of undeclared identifier 'ZE_DEVICE_MEM_ALLOC_DESC_VERSION_CURRENT' device_desc.version = ZE_DEVICE_MEM_ALLOC_DESC_VERSION_CURRENT; ^ src/gpu/mpl_gpu_ze.c:208:11: warning: implicit declaration of function 'zeDriverAllocDeviceMem' is invalid in C99 [-Wimplicit-function-declaration] ret = zeDriverAllocDeviceMem(global_ze_driver_handle, &device_desc, ^ src/gpu/mpl_gpu_ze.c:223:23: error: use of undeclared identifier 'ZE_HOST_MEM_ALLOC_FLAG_DEFAULT' host_desc.flags = ZE_HOST_MEM_ALLOC_FLAG_DEFAULT; ^ src/gpu/mpl_gpu_ze.c:224:15: error: no member named 'version' in 'struct _ze_host_mem_alloc_desc_t' host_desc.version = ZE_HOST_MEM_ALLOC_DESC_VERSION_CURRENT; ~~~~~~~~~ ^ src/gpu/mpl_gpu_ze.c:224:25: error: use of undeclared identifier 'ZE_HOST_MEM_ALLOC_DESC_VERSION_CURRENT' host_desc.version = ZE_HOST_MEM_ALLOC_DESC_VERSION_CURRENT; ^ src/gpu/mpl_gpu_ze.c:229:11: warning: implicit declaration of function 'zeDriverAllocHostMem' is invalid in C99 [-Wimplicit-function-declaration] ret = zeDriverAllocHostMem(global_ze_driver_handle, &host_desc, size, mem_alignment, ptr); ^ src/gpu/mpl_gpu_ze.c:240:11: warning: implicit declaration of function 'zeDriverFreeMem' is invalid in C99 [-Wimplicit-function-declaration] ret = zeDriverFreeMem(global_ze_driver_handle, ptr); ^ src/gpu/mpl_gpu_ze.c:251:11: warning: implicit declaration of function 'zeDriverFreeMem' is invalid in C99 [-Wimplicit-function-declaration] ret = zeDriverFreeMem(global_ze_driver_handle, ptr); ^ src/gpu/mpl_gpu_ze.c:280:19: error: use of undeclared identifier 'device_handles'; did you mean 'dev_handle'? *dev_handle = device_handles[dev_id]; ^~~~~~~~~~~~~~ dev_handle src/gpu/mpl_gpu_ze.c:278:66: note: 'dev_handle' declared here int MPL_gpu_get_dev_handle(int dev_id, MPL_gpu_device_handle_t * dev_handle) ^ 10 warnings and 10 errors generated. *** [src/gpu/mpl_gpu_ze.lo] Error code 1 make[4]: stopped in /usr/ports/net/mpich/work/mpich-3.4/src/mpl 1 error make[4]: stopped in /usr/ports/net/mpich/work/mpich-3.4/src/mpl ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Stop. make[1]: stopped in /usr/ports/net/mpich *** Error code 1 Stop. make: stopped in /usr/ports/net/mpich