gcc -c -Wdate-time -D_FORTIFY_SOURCE=3 -g -O3 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fdebug-prefix-map=/<<PKGBUILDDIR>>=/usr/src/genwqe-user-4.0.18-3.1build1 -DGIT_VERSION=\"4.0.18\" -I. -I../include -I../include/linux/uapi -D_GNU_SOURCE=1 -I../include -DCONFIG_DLOPEN_MECHANISM -DCONFIG_ZLIB_PATH=\"/lib/powerpc64le-linux-gnu/libz.so.1\" -DGIT_VERSION=\"4.0.18\" -I. -I../include -I../include/linux/uapi -D_GNU_SOURCE=1 -I../include -DCONFIG_DLOPEN_MECHANISM -DCONFIG_ZLIB_PATH=\"/lib/powerpc64le-linux-gnu/libz.so.1\" -DGIT_VERSION=\"4.0.18\" -I. -I../include -I../include/linux/uapi -D_GNU_SOURCE=1 -I../include -DCONFIG_DLOPEN_MECHANISM -DCONFIG_ZLIB_PATH=\"/lib/powerpc64le-linux-gnu/libz.so.1\" -fPIC -fno-strict-aliasing ddcb_capi.c -o ddcb_capi.o
ddcb_capi.c:53:10: fatal error: libcxl.h: No such file or directory
53 | #include <libcxl.h>
| ^~~~~~~~~~
compilation terminated.
make[3]: *** [Makefile:211: ddcb_capi.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/lib'
make[2]: *** [Makefile:96: lib] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [debian/rules:24: override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:14: build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2
--------------------------------------------------------------------------------
[1]
ppc64el failure is caused by the implicit declaration of cxl_afu_open_dev. Libcxl-dev is provided by the ndctl[6] package that does not declare this function. It is present in ibm-capi libcxl[7] which is not packaged.
[1] https://launchpadlibrarian.net/757515828/buildlog_ubuntu-plucky-ppc64el.genwqe-user_4.0.18-3.1build1_BUILDING.txt.gz