Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build failure on debian sid with missing headers crypto_mb/sm3.h #283

Open
ColinIanKing opened this issue Oct 18, 2023 · 2 comments
Open

Comments

@ColinIanKing
Copy link
Contributor

Hi,

I'm trying to get QAT engine 1.4 packaged for Debian Sid (aka Unstable) and I'm hitting an issue with missing headers, these are included using:

#include "crypto_mb/sm3.h"

..the build is as follows. I didn't have this issue with version 1.2

Any ideas on how to resolve this?


I: Current time: Wed Oct 18 12:24:46 BST 2023
I: pbuilder-time-stamp: 1697628286
I: Building the build Environment
I: extracting base tarball [/home/cking/pbuilder/unstable-base.tgz]
I: copying local configuration
W: --override-config is not set; not updating apt.conf Read the manpage for details.
I: mounting /proc filesystem
I: mounting /sys filesystem
I: creating /{dev,run}/shm
I: mounting /dev/pts filesystem
I: redirecting /dev/ptmx to /dev/pts/ptmx
I: policy-rc.d already exists
I: Obtaining the cached apt archive contents
I: Copying source file
I: copying [qat-engine_1.4.0-1.dsc]
I: copying [./qat-engine_1.4.0.orig.tar.xz]
I: copying [./qat-engine_1.4.0-1.debian.tar.xz]
I: Extracting source
dpkg-source: warning: extracting unsigned source package (qat-engine_1.4.0-1.dsc)
dpkg-source: info: extracting qat-engine in qat-engine-1.4.0
dpkg-source: info: unpacking qat-engine_1.4.0.orig.tar.xz
dpkg-source: info: unpacking qat-engine_1.4.0-1.debian.tar.xz
I: Not using root during the build.
I: Installing the build-deps
 -> Attempting to satisfy build-dependencies
 -> Creating pbuilder-satisfydepends-dummy package
Package: pbuilder-satisfydepends-dummy
Version: 0.invalid.0
Architecture: amd64
Maintainer: Debian Pbuilder Team <pbuilder-maint@lists.alioth.debian.org>
Description: Dummy package to satisfy dependencies with aptitude - created by pbuilder
 This package was created automatically by pbuilder to satisfy the
 build-dependencies of the package being currently built.
Depends: debhelper (>= 13), debhelper-compat (= 13), pkgconf, autoconf, automake, libssl-dev (>= 3.0), libipsec-mb-dev, openssl (>= 3.0)
dpkg-deb: building package 'pbuilder-satisfydepends-dummy' in '/tmp/satisfydepends-aptitude/pbuilder-satisfydepends-dummy.deb'.
Selecting previously unselected package pbuilder-satisfydepends-dummy.
(Reading database ... 14761 files and directories currently installed.)
Preparing to unpack .../pbuilder-satisfydepends-dummy.deb ...
Unpacking pbuilder-satisfydepends-dummy (0.invalid.0) ...
dpkg: pbuilder-satisfydepends-dummy: dependency problems, but configuring anyway as you requested:
 pbuilder-satisfydepends-dummy depends on debhelper (>= 13); however:
  Package debhelper is not installed.
 pbuilder-satisfydepends-dummy depends on debhelper-compat (= 13); however:
  Package debhelper-compat is not installed.
 pbuilder-satisfydepends-dummy depends on pkgconf; however:
  Package pkgconf is not installed.
 pbuilder-satisfydepends-dummy depends on autoconf; however:
  Package autoconf is not installed.
 pbuilder-satisfydepends-dummy depends on automake; however:
  Package automake is not installed.
 pbuilder-satisfydepends-dummy depends on libssl-dev (>= 3.0); however:
  Package libssl-dev is not installed.
 pbuilder-satisfydepends-dummy depends on libipsec-mb-dev; however:
  Package libipsec-mb-dev is not installed.
 pbuilder-satisfydepends-dummy depends on openssl (>= 3.0); however:
  Package openssl is not installed.

Setting up pbuilder-satisfydepends-dummy (0.invalid.0) ...
Reading package lists...
Building dependency tree...
Reading state information...
Initializing package states...
Writing extended state information...
Building tag database...
pbuilder-satisfydepends-dummy is already installed at the requested version (0.invalid.0)
pbuilder-satisfydepends-dummy is already installed at the requested version (0.invalid.0)
The following NEW packages will be installed:
  autoconf{a} automake{a} autopoint{a} autotools-dev{a} bsdextrautils{a} debhelper{a} dh-autoreconf{a} dh-strip-nondeterminism{a} dwz{a} file{a} gettext{a} gettext-base{a} groff-base{a} intltool-debian{a} libarchive-zip-perl{a} libdebhelper-perl{a} libelf1{a} libfile-stripnondeterminism-perl{a} libicu72{a} libipsec-mb-dev{a} libipsec-mb1{a} libmagic-mgc{a} libmagic1{a} libpipeline1{a} libpkgconf3{a} libssl-dev{a} libsub-override-perl{a} libtool{a} libuchardet0{a} libxml2{a} m4{a} man-db{a} openssl{a} pkgconf{a} pkgconf-bin{a} po-debconf{a} sensible-utils{a} 
The following packages are RECOMMENDED but will NOT be installed:
  curl libarchive-cpio-perl libltdl-dev libmail-sendmail-perl lynx wget 
0 packages upgraded, 37 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/25.1 MB of archives. After unpacking 128 MB will be used.
Writing extended state information...
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package sensible-utils.
(Reading database ... 14761 files and directories currently installed.)
Preparing to unpack .../00-sensible-utils_0.0.20_all.deb ...
Unpacking sensible-utils (0.0.20) ...
Selecting previously unselected package libmagic-mgc.
Preparing to unpack .../01-libmagic-mgc_1%3a5.45-2_amd64.deb ...
Unpacking libmagic-mgc (1:5.45-2) ...
Selecting previously unselected package libmagic1:amd64.
Preparing to unpack .../02-libmagic1_1%3a5.45-2_amd64.deb ...
Unpacking libmagic1:amd64 (1:5.45-2) ...
Selecting previously unselected package file.
Preparing to unpack .../03-file_1%3a5.45-2_amd64.deb ...
Unpacking file (1:5.45-2) ...
Selecting previously unselected package gettext-base.
Preparing to unpack .../04-gettext-base_0.21-13+b1_amd64.deb ...
Unpacking gettext-base (0.21-13+b1) ...
Selecting previously unselected package libuchardet0:amd64.
Preparing to unpack .../05-libuchardet0_0.0.7-1_amd64.deb ...
Unpacking libuchardet0:amd64 (0.0.7-1) ...
Selecting previously unselected package groff-base.
Preparing to unpack .../06-groff-base_1.23.0-3_amd64.deb ...
Unpacking groff-base (1.23.0-3) ...
Selecting previously unselected package bsdextrautils.
Preparing to unpack .../07-bsdextrautils_2.39.2-3_amd64.deb ...
Unpacking bsdextrautils (2.39.2-3) ...
Selecting previously unselected package libpipeline1:amd64.
Preparing to unpack .../08-libpipeline1_1.5.7-1_amd64.deb ...
Unpacking libpipeline1:amd64 (1.5.7-1) ...
Selecting previously unselected package man-db.
Preparing to unpack .../09-man-db_2.12.0-1_amd64.deb ...
Unpacking man-db (2.12.0-1) ...
Selecting previously unselected package m4.
Preparing to unpack .../10-m4_1.4.19-4_amd64.deb ...
Unpacking m4 (1.4.19-4) ...
Selecting previously unselected package autoconf.
Preparing to unpack .../11-autoconf_2.71-3_all.deb ...
Unpacking autoconf (2.71-3) ...
Selecting previously unselected package autotools-dev.
Preparing to unpack .../12-autotools-dev_20220109.1_all.deb ...
Unpacking autotools-dev (20220109.1) ...
Selecting previously unselected package automake.
Preparing to unpack .../13-automake_1%3a1.16.5-1.3_all.deb ...
Unpacking automake (1:1.16.5-1.3) ...
Selecting previously unselected package autopoint.
Preparing to unpack .../14-autopoint_0.21-13_all.deb ...
Unpacking autopoint (0.21-13) ...
Selecting previously unselected package libdebhelper-perl.
Preparing to unpack .../15-libdebhelper-perl_13.11.6_all.deb ...
Unpacking libdebhelper-perl (13.11.6) ...
Selecting previously unselected package libtool.
Preparing to unpack .../16-libtool_2.4.7-7_all.deb ...
Unpacking libtool (2.4.7-7) ...
Selecting previously unselected package dh-autoreconf.
Preparing to unpack .../17-dh-autoreconf_20_all.deb ...
Unpacking dh-autoreconf (20) ...
Selecting previously unselected package libarchive-zip-perl.
Preparing to unpack .../18-libarchive-zip-perl_1.68-1_all.deb ...
Unpacking libarchive-zip-perl (1.68-1) ...
Selecting previously unselected package libsub-override-perl.
Preparing to unpack .../19-libsub-override-perl_0.09-4_all.deb ...
Unpacking libsub-override-perl (0.09-4) ...
Selecting previously unselected package libfile-stripnondeterminism-perl.
Preparing to unpack .../20-libfile-stripnondeterminism-perl_1.13.1-1_all.deb ...
Unpacking libfile-stripnondeterminism-perl (1.13.1-1) ...
Selecting previously unselected package dh-strip-nondeterminism.
Preparing to unpack .../21-dh-strip-nondeterminism_1.13.1-1_all.deb ...
Unpacking dh-strip-nondeterminism (1.13.1-1) ...
Selecting previously unselected package libelf1:amd64.
Preparing to unpack .../22-libelf1_0.189-4_amd64.deb ...
Unpacking libelf1:amd64 (0.189-4) ...
Selecting previously unselected package dwz.
Preparing to unpack .../23-dwz_0.15-1_amd64.deb ...
Unpacking dwz (0.15-1) ...
Selecting previously unselected package libicu72:amd64.
Preparing to unpack .../24-libicu72_72.1-3_amd64.deb ...
Unpacking libicu72:amd64 (72.1-3) ...
Selecting previously unselected package libxml2:amd64.
Preparing to unpack .../25-libxml2_2.9.14+dfsg-1.3_amd64.deb ...
Unpacking libxml2:amd64 (2.9.14+dfsg-1.3) ...
Selecting previously unselected package gettext.
Preparing to unpack .../26-gettext_0.21-13+b1_amd64.deb ...
Unpacking gettext (0.21-13+b1) ...
Selecting previously unselected package intltool-debian.
Preparing to unpack .../27-intltool-debian_0.35.0+20060710.6_all.deb ...
Unpacking intltool-debian (0.35.0+20060710.6) ...
Selecting previously unselected package po-debconf.
Preparing to unpack .../28-po-debconf_1.0.21+nmu1_all.deb ...
Unpacking po-debconf (1.0.21+nmu1) ...
Selecting previously unselected package debhelper.
Preparing to unpack .../29-debhelper_13.11.6_all.deb ...
Unpacking debhelper (13.11.6) ...
Selecting previously unselected package libipsec-mb1.
Preparing to unpack .../30-libipsec-mb1_1.4-3_amd64.deb ...
Unpacking libipsec-mb1 (1.4-3) ...
Selecting previously unselected package libipsec-mb-dev.
Preparing to unpack .../31-libipsec-mb-dev_1.4-3_amd64.deb ...
Unpacking libipsec-mb-dev (1.4-3) ...
Selecting previously unselected package libpkgconf3:amd64.
Preparing to unpack .../32-libpkgconf3_1.8.1-1_amd64.deb ...
Unpacking libpkgconf3:amd64 (1.8.1-1) ...
Selecting previously unselected package libssl-dev:amd64.
Preparing to unpack .../33-libssl-dev_3.0.11-1_amd64.deb ...
Unpacking libssl-dev:amd64 (3.0.11-1) ...
Selecting previously unselected package openssl.
Preparing to unpack .../34-openssl_3.0.11-1_amd64.deb ...
Unpacking openssl (3.0.11-1) ...
Selecting previously unselected package pkgconf-bin.
Preparing to unpack .../35-pkgconf-bin_1.8.1-1_amd64.deb ...
Unpacking pkgconf-bin (1.8.1-1) ...
Selecting previously unselected package pkgconf:amd64.
Preparing to unpack .../36-pkgconf_1.8.1-1_amd64.deb ...
Unpacking pkgconf:amd64 (1.8.1-1) ...
Setting up libpipeline1:amd64 (1.5.7-1) ...
Setting up libicu72:amd64 (72.1-3) ...
Setting up bsdextrautils (2.39.2-3) ...
Setting up libmagic-mgc (1:5.45-2) ...
Setting up libarchive-zip-perl (1.68-1) ...
Setting up libdebhelper-perl (13.11.6) ...
Setting up libmagic1:amd64 (1:5.45-2) ...
Setting up gettext-base (0.21-13+b1) ...
Setting up m4 (1.4.19-4) ...
Setting up file (1:5.45-2) ...
Setting up libipsec-mb1 (1.4-3) ...
Setting up autotools-dev (20220109.1) ...
Setting up libpkgconf3:amd64 (1.8.1-1) ...
Setting up libssl-dev:amd64 (3.0.11-1) ...
Setting up autopoint (0.21-13) ...
Setting up pkgconf-bin (1.8.1-1) ...
Setting up autoconf (2.71-3) ...
Setting up sensible-utils (0.0.20) ...
Setting up libipsec-mb-dev (1.4-3) ...
Setting up libuchardet0:amd64 (0.0.7-1) ...
Setting up libsub-override-perl (0.09-4) ...
Setting up openssl (3.0.11-1) ...
Setting up libelf1:amd64 (0.189-4) ...
Setting up libxml2:amd64 (2.9.14+dfsg-1.3) ...
Setting up automake (1:1.16.5-1.3) ...
update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode
Setting up libfile-stripnondeterminism-perl (1.13.1-1) ...
Setting up gettext (0.21-13+b1) ...
Setting up libtool (2.4.7-7) ...
Setting up pkgconf:amd64 (1.8.1-1) ...
Setting up intltool-debian (0.35.0+20060710.6) ...
Setting up dh-autoreconf (20) ...
Setting up dh-strip-nondeterminism (1.13.1-1) ...
Setting up dwz (0.15-1) ...
Setting up groff-base (1.23.0-3) ...
Setting up po-debconf (1.0.21+nmu1) ...
Setting up man-db (2.12.0-1) ...
Not building database; man-db/auto-update is not 'true'.
Setting up debhelper (13.11.6) ...
Processing triggers for libc-bin (2.37-12) ...
Reading package lists...
Building dependency tree...
Reading state information...
Reading extended state information...
Initializing package states...
Writing extended state information...
Building tag database...
 -> Finished parsing the build-deps
I: Copying back the cached apt archive contents
I: Building the package
I: Running cd /build/qat-engine-1.4.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin" HOME="/nonexistent" dpkg-buildpackage -us -uc  && env PATH="/usr/sbin:/usr/bin:/sbin:/bin" HOME="/nonexistent" dpkg-genchanges -S  > ../qat-engine_1.4.0-1_source.changes
dpkg-buildpackage: info: source package qat-engine
dpkg-buildpackage: info: source version 1.4.0-1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Colin Ian King <colin.i.king@gmail.com>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
 debian/rules clean
dh clean --with autoreconf
   dh_clean
 dpkg-source -b .
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building qat-engine using existing ./qat-engine_1.4.0.orig.tar.xz
dpkg-source: info: building qat-engine in qat-engine_1.4.0-1.debian.tar.xz
dpkg-source: info: building qat-engine in qat-engine_1.4.0-1.dsc
 debian/rules binary
dh binary --with autoreconf
   dh_update_autotools_config
   dh_autoreconf
aclocal: warning: couldn't open directory 'm4': No such file or directory
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:13: installing './compile'
configure.ac:13: installing './config.guess'
configure.ac:13: installing './config.sub'
configure.ac:9: installing './install-sh'
configure.ac:9: installing './missing'
Makefile.am: installing './depcomp'
   debian/rules override_dh_auto_configure
make[1]: Entering directory '/build/qat-engine-1.4.0'
dh_auto_configure -- --enable-qat_sw
	./configure --build=x86_64-linux-gnu --prefix=/usr --includedir=\${prefix}/include --mandir=\${prefix}/share/man --infodir=\${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-option-checking --disable-silent-rules --libdir=\${prefix}/lib/x86_64-linux-gnu --runstatedir=/run --disable-maintainer-mode --disable-dependency-tracking --enable-qat_sw
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... none
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for file... file
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether ln -s works... yes
checking for g++... g++
checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... none needed
checking dependency style of g++... none
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for gcc... (cached) gcc
checking whether the compiler supports GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to enable C11 features... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) none
checking for /usr/include/qat/icp_sal_versions.h... no
checking for pkg-config... /usr/bin/pkg-config
configure: Build QAT Engine against system OpenSSL 3.0
configure: Install engine/provider in the system OpenSSL Path
./configure: line 18869: lspci: command not found
checking for mbx_getversion in -lcrypto_mb... no
configure: crypto_mb Library not found, QAT_SW disabled for PKE algorithms
checking for imb_get_version in -lIPSec_MB... yes
configure: QAT_SW for AES-GCM enabled with IPsec_mb library from standard path
configure: Build with existing error files without regenerating from OpenSSL source
configure: Insecure Algorithms disabled
configure: Accelerating RSA to Software (Multi-buffer)
configure: Accelerating ECDSA to Software (Multi-buffer)
configure: Accelerating ECDH to Software (Multi-buffer)
configure: Accelerating X25519/X448 to Software (Multi-buffer)
configure: Accelerating SM2 to Software (Multi-buffer)
configure: Accelerating GCM to Software (IPSec_mb)
configure: Accelerating SHA2 to Software (IPSec_mb)
checking for ldd... yes
checking for head... yes
configure: glibc version >= 2.23. glibc AVX-512 memcpy optimisation supported.
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
===========================================
Enabled Algorithms and Additional Flags
===========================================
QAT_HW ALGORITHMS :
QAT_SW ALGORITHMS : -DQAT_SW -DENABLE_QAT_SW_RSA -DENABLE_QAT_SW_ECDSA -DENABLE_QAT_SW_ECDH -DENABLE_QAT_SW_ECX -DENABLE_QAT_SW_SM2
ADDITIONAL FLAGS  : -Wall -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fno-delete-null-pointer-checks -fwrapv -fstack-protector-strong -DQAT_OPENSSL_3 -DOPENSSL_SUPPRESS_DEPRECATED
===========================================
make[1]: Leaving directory '/build/qat-engine-1.4.0'
   dh_auto_build
	make -j8
make[1]: Entering directory '/build/qat-engine-1.4.0'
make  all-am
make[2]: Entering directory '/build/qat-engine-1.4.0'
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.  -I/usr/include    -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2    -DQAT_OPENSSL_3 -DOPENSSL_SUPPRESS_DEPRECATED   -DQAT_SW -DENABLE_QAT_SW_RSA -DENABLE_QAT_SW_ECDSA -DENABLE_QAT_SW_ECDH -DENABLE_QAT_SW_ECX -DENABLE_QAT_SW_SM2 -DQAT_SW_IPSEC -DENABLE_QAT_SW_GCM -DENABLE_QAT_SW_SHA2 -Wall -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fno-delete-null-pointer-checks -fwrapv -fstack-protector-strong  -g -O2 -ffile-prefix-map=/build/qat-engine-1.4.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o e_qat.lo e_qat.c
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.  -I/usr/include    -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2    -DQAT_OPENSSL_3 -DOPENSSL_SUPPRESS_DEPRECATED   -DQAT_SW -DENABLE_QAT_SW_RSA -DENABLE_QAT_SW_ECDSA -DENABLE_QAT_SW_ECDH -DENABLE_QAT_SW_ECX -DENABLE_QAT_SW_SM2 -DQAT_SW_IPSEC -DENABLE_QAT_SW_GCM -DENABLE_QAT_SW_SHA2 -Wall -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fno-delete-null-pointer-checks -fwrapv -fstack-protector-strong  -g -O2 -ffile-prefix-map=/build/qat-engine-1.4.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o qat_fork.lo qat_fork.c
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.  -I/usr/include    -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2    -DQAT_OPENSSL_3 -DOPENSSL_SUPPRESS_DEPRECATED   -DQAT_SW -DENABLE_QAT_SW_RSA -DENABLE_QAT_SW_ECDSA -DENABLE_QAT_SW_ECDH -DENABLE_QAT_SW_ECX -DENABLE_QAT_SW_SM2 -DQAT_SW_IPSEC -DENABLE_QAT_SW_GCM -DENABLE_QAT_SW_SHA2 -Wall -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fno-delete-null-pointer-checks -fwrapv -fstack-protector-strong  -g -O2 -ffile-prefix-map=/build/qat-engine-1.4.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o qat_events.lo qat_events.c
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.  -I/usr/include    -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2    -DQAT_OPENSSL_3 -DOPENSSL_SUPPRESS_DEPRECATED   -DQAT_SW -DENABLE_QAT_SW_RSA -DENABLE_QAT_SW_ECDSA -DENABLE_QAT_SW_ECDH -DENABLE_QAT_SW_ECX -DENABLE_QAT_SW_SM2 -DQAT_SW_IPSEC -DENABLE_QAT_SW_GCM -DENABLE_QAT_SW_SHA2 -Wall -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fno-delete-null-pointer-checks -fwrapv -fstack-protector-strong  -g -O2 -ffile-prefix-map=/build/qat-engine-1.4.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o qat_utils.lo qat_utils.c
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.  -I/usr/include    -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2    -DQAT_OPENSSL_3 -DOPENSSL_SUPPRESS_DEPRECATED   -DQAT_SW -DENABLE_QAT_SW_RSA -DENABLE_QAT_SW_ECDSA -DENABLE_QAT_SW_ECDH -DENABLE_QAT_SW_ECX -DENABLE_QAT_SW_SM2 -DQAT_SW_IPSEC -DENABLE_QAT_SW_GCM -DENABLE_QAT_SW_SHA2 -Wall -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fno-delete-null-pointer-checks -fwrapv -fstack-protector-strong  -g -O2 -ffile-prefix-map=/build/qat-engine-1.4.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o qat_evp.lo qat_evp.c
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.  -I/usr/include    -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2    -DQAT_OPENSSL_3 -DOPENSSL_SUPPRESS_DEPRECATED   -DQAT_SW -DENABLE_QAT_SW_RSA -DENABLE_QAT_SW_ECDSA -DENABLE_QAT_SW_ECDH -DENABLE_QAT_SW_ECX -DENABLE_QAT_SW_SM2 -DQAT_SW_IPSEC -DENABLE_QAT_SW_GCM -DENABLE_QAT_SW_SHA2 -Wall -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fno-delete-null-pointer-checks -fwrapv -fstack-protector-strong  -g -O2 -ffile-prefix-map=/build/qat-engine-1.4.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o qat_prov_err.lo qat_prov_err.c
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.  -I/usr/include    -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2    -DQAT_OPENSSL_3 -DOPENSSL_SUPPRESS_DEPRECATED   -DQAT_SW -DENABLE_QAT_SW_RSA -DENABLE_QAT_SW_ECDSA -DENABLE_QAT_SW_ECDH -DENABLE_QAT_SW_ECX -DENABLE_QAT_SW_SM2 -DQAT_SW_IPSEC -DENABLE_QAT_SW_GCM -DENABLE_QAT_SW_SHA2 -Wall -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fno-delete-null-pointer-checks -fwrapv -fstack-protector-strong  -g -O2 -ffile-prefix-map=/build/qat-engine-1.4.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o qat_sw_init.lo qat_sw_init.c
/bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.  -I/usr/include    -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2    -DQAT_OPENSSL_3 -DOPENSSL_SUPPRESS_DEPRECATED   -DQAT_SW -DENABLE_QAT_SW_RSA -DENABLE_QAT_SW_ECDSA -DENABLE_QAT_SW_ECDH -DENABLE_QAT_SW_ECX -DENABLE_QAT_SW_SM2 -DQAT_SW_IPSEC -DENABLE_QAT_SW_GCM -DENABLE_QAT_SW_SHA2 -Wall -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fno-delete-null-pointer-checks -fwrapv -fstack-protector-strong  -g -O2 -ffile-prefix-map=/build/qat-engine-1.4.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o qat_sw_polling.lo qat_sw_polling.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/usr/include -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2 -DQAT_OPENSSL_3 -DOPENSSL_SUPPRESS_DEPRECATED -DQAT_SW -DENABLE_QAT_SW_RSA -DENABLE_QAT_SW_ECDSA -DENABLE_QAT_SW_ECDH -DENABLE_QAT_SW_ECX -DENABLE_QAT_SW_SM2 -DQAT_SW_IPSEC -DENABLE_QAT_SW_GCM -DENABLE_QAT_SW_SHA2 -Wall -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fno-delete-null-pointer-checks -fwrapv -fstack-protector-strong -g -O2 -ffile-prefix-map=/build/qat-engine-1.4.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c qat_events.c  -fPIC -DPIC -o .libs/qat_events.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/usr/include -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2 -DQAT_OPENSSL_3 -DOPENSSL_SUPPRESS_DEPRECATED -DQAT_SW -DENABLE_QAT_SW_RSA -DENABLE_QAT_SW_ECDSA -DENABLE_QAT_SW_ECDH -DENABLE_QAT_SW_ECX -DENABLE_QAT_SW_SM2 -DQAT_SW_IPSEC -DENABLE_QAT_SW_GCM -DENABLE_QAT_SW_SHA2 -Wall -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fno-delete-null-pointer-checks -fwrapv -fstack-protector-strong -g -O2 -ffile-prefix-map=/build/qat-engine-1.4.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c qat_utils.c  -fPIC -DPIC -o .libs/qat_utils.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/usr/include -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2 -DQAT_OPENSSL_3 -DOPENSSL_SUPPRESS_DEPRECATED -DQAT_SW -DENABLE_QAT_SW_RSA -DENABLE_QAT_SW_ECDSA -DENABLE_QAT_SW_ECDH -DENABLE_QAT_SW_ECX -DENABLE_QAT_SW_SM2 -DQAT_SW_IPSEC -DENABLE_QAT_SW_GCM -DENABLE_QAT_SW_SHA2 -Wall -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fno-delete-null-pointer-checks -fwrapv -fstack-protector-strong -g -O2 -ffile-prefix-map=/build/qat-engine-1.4.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c qat_evp.c  -fPIC -DPIC -o .libs/qat_evp.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/usr/include -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2 -DQAT_OPENSSL_3 -DOPENSSL_SUPPRESS_DEPRECATED -DQAT_SW -DENABLE_QAT_SW_RSA -DENABLE_QAT_SW_ECDSA -DENABLE_QAT_SW_ECDH -DENABLE_QAT_SW_ECX -DENABLE_QAT_SW_SM2 -DQAT_SW_IPSEC -DENABLE_QAT_SW_GCM -DENABLE_QAT_SW_SHA2 -Wall -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fno-delete-null-pointer-checks -fwrapv -fstack-protector-strong -g -O2 -ffile-prefix-map=/build/qat-engine-1.4.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c qat_prov_err.c  -fPIC -DPIC -o .libs/qat_prov_err.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/usr/include -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2 -DQAT_OPENSSL_3 -DOPENSSL_SUPPRESS_DEPRECATED -DQAT_SW -DENABLE_QAT_SW_RSA -DENABLE_QAT_SW_ECDSA -DENABLE_QAT_SW_ECDH -DENABLE_QAT_SW_ECX -DENABLE_QAT_SW_SM2 -DQAT_SW_IPSEC -DENABLE_QAT_SW_GCM -DENABLE_QAT_SW_SHA2 -Wall -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fno-delete-null-pointer-checks -fwrapv -fstack-protector-strong -g -O2 -ffile-prefix-map=/build/qat-engine-1.4.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c qat_sw_init.c  -fPIC -DPIC -o .libs/qat_sw_init.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/usr/include -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2 -DQAT_OPENSSL_3 -DOPENSSL_SUPPRESS_DEPRECATED -DQAT_SW -DENABLE_QAT_SW_RSA -DENABLE_QAT_SW_ECDSA -DENABLE_QAT_SW_ECDH -DENABLE_QAT_SW_ECX -DENABLE_QAT_SW_SM2 -DQAT_SW_IPSEC -DENABLE_QAT_SW_GCM -DENABLE_QAT_SW_SHA2 -Wall -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fno-delete-null-pointer-checks -fwrapv -fstack-protector-strong -g -O2 -ffile-prefix-map=/build/qat-engine-1.4.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c qat_fork.c  -fPIC -DPIC -o .libs/qat_fork.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/usr/include -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2 -DQAT_OPENSSL_3 -DOPENSSL_SUPPRESS_DEPRECATED -DQAT_SW -DENABLE_QAT_SW_RSA -DENABLE_QAT_SW_ECDSA -DENABLE_QAT_SW_ECDH -DENABLE_QAT_SW_ECX -DENABLE_QAT_SW_SM2 -DQAT_SW_IPSEC -DENABLE_QAT_SW_GCM -DENABLE_QAT_SW_SHA2 -Wall -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fno-delete-null-pointer-checks -fwrapv -fstack-protector-strong -g -O2 -ffile-prefix-map=/build/qat-engine-1.4.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c e_qat.c  -fPIC -DPIC -o .libs/e_qat.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/usr/include -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2 -DQAT_OPENSSL_3 -DOPENSSL_SUPPRESS_DEPRECATED -DQAT_SW -DENABLE_QAT_SW_RSA -DENABLE_QAT_SW_ECDSA -DENABLE_QAT_SW_ECDH -DENABLE_QAT_SW_ECX -DENABLE_QAT_SW_SM2 -DQAT_SW_IPSEC -DENABLE_QAT_SW_GCM -DENABLE_QAT_SW_SHA2 -Wall -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fno-delete-null-pointer-checks -fwrapv -fstack-protector-strong -g -O2 -ffile-prefix-map=/build/qat-engine-1.4.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c qat_sw_polling.c  -fPIC -DPIC -o .libs/qat_sw_polling.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/usr/include -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2 -DQAT_OPENSSL_3 -DOPENSSL_SUPPRESS_DEPRECATED -DQAT_SW -DENABLE_QAT_SW_RSA -DENABLE_QAT_SW_ECDSA -DENABLE_QAT_SW_ECDH -DENABLE_QAT_SW_ECX -DENABLE_QAT_SW_SM2 -DQAT_SW_IPSEC -DENABLE_QAT_SW_GCM -DENABLE_QAT_SW_SHA2 -Wall -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fno-delete-null-pointer-checks -fwrapv -fstack-protector-strong -g -O2 -ffile-prefix-map=/build/qat-engine-1.4.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c qat_prov_err.c -o qat_prov_err.o >/dev/null 2>&1
In file included from qat_sw_queue.h:51,
                 from e_qat.h:79,
                 from qat_sw_init.c:71:
qat_sw_request.h:61:10: fatal error: crypto_mb/sm3.h: No such file or directory
   61 | #include "crypto_mb/sm3.h"
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
In file included from qat_sw_queue.h:51,
                 from e_qat.h:79,
                 from qat_evp.c:58:
qat_sw_request.h:61:10: fatal error: crypto_mb/sm3.h: No such file or directory
   61 | #include "crypto_mb/sm3.h"
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
In file included from qat_sw_queue.h:51,
                 from e_qat.h:79,
                 from qat_utils.c:49:
qat_sw_request.h:61:10: fatal error: crypto_mb/sm3.h: No such file or directory
   61 | #include "crypto_mb/sm3.h"
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:1292: qat_evp.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [Makefile:1292: qat_sw_init.lo] Error 1
make[2]: *** [Makefile:1292: qat_utils.lo] Error 1
In file included from qat_sw_queue.h:51,
                 from e_qat.h:79,
                 from qat_events.c:86:
qat_sw_request.h:61:10: fatal error: crypto_mb/sm3.h: No such file or directory
   61 | #include "crypto_mb/sm3.h"
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:1292: qat_events.lo] Error 1
In file included from qat_sw_queue.h:51,
                 from e_qat.h:79,
                 from e_qat.c:81:
qat_sw_request.h:61:10: fatal error: crypto_mb/sm3.h: No such file or directory
   61 | #include "crypto_mb/sm3.h"
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:1292: e_qat.lo] Error 1
In file included from qat_sw_queue.h:51,
                 from e_qat.h:79,
                 from qat_fork.h:49,
                 from qat_fork.c:64:
qat_sw_request.h:61:10: fatal error: crypto_mb/sm3.h: No such file or directory
   61 | #include "crypto_mb/sm3.h"
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:1292: qat_fork.lo] Error 1
In file included from qat_sw_queue.h:51,
                 from e_qat.h:79,
                 from qat_sw_polling.c:64:
qat_sw_request.h:61:10: fatal error: crypto_mb/sm3.h: No such file or directory
   61 | #include "crypto_mb/sm3.h"
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:1292: qat_sw_polling.lo] Error 1
make[2]: Leaving directory '/build/qat-engine-1.4.0'
make[1]: *** [Makefile:938: all] Error 2
make[1]: Leaving directory '/build/qat-engine-1.4.0'

@Yogaraj-Alamenda
Copy link
Contributor

can you share your build configure flags of debian package? It looks like qat_sw is enabled in your build and crypto_mb and ipsec_mb library is not installed prior to qatengine installation.

From the flags below it looks QAT_HW is not enabled, Please see if qatlib library is also installed.

QAT_HW ALGORITHMS :
QAT_SW ALGORITHMS : -DQAT_SW -DENABLE_QAT_SW_RSA -DENABLE_QAT_SW_ECDSA -DENABLE_QAT_SW_ECDH -DENABLE_QAT_SW_ECX -DENABLE_QAT_SW_SM2
ADDITIONAL FLAGS  : -Wall -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fno-delete-null-pointer-checks -fwrapv -fstack-protector-strong -DQAT_OPENSSL_3 -DOPENSSL_SUPPRESS_DEPRECATED

@mythi
Copy link

mythi commented Oct 18, 2023

FWIW, I'm not able to re-produce with my Dockerfile when I change to

diff --git a/demo/openssl-qat-engine/Dockerfile b/demo/openssl-qat-engine/Dockerfile
index 8e41bd73..216fea7a 100644
--- a/demo/openssl-qat-engine/Dockerfile
+++ b/demo/openssl-qat-engine/Dockerfile
@@ -1,4 +1,4 @@
-FROM ubuntu:22.04 as builder
+FROM debian:unstable as builder
 
 ARG QATLIB_VERSION="23.08.0"
 ARG QAT_ENGINE_VERSION="v1.4.0"
@@ -68,7 +68,7 @@ RUN cd /asynch_mode_nginx && \
     --with-ld-opt="-L/src" && \
     make && make install
 
-FROM ubuntu:22.04
+FROM debian:unstable-slim
 
 COPY --from=builder /usr/bin/*_sample* /usr/bin/
 COPY --from=builder /usr/lib/libqat.so.4.0.0 /usr/lib/

maybe this Dockerfile can give you tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants