-
Notifications
You must be signed in to change notification settings - Fork 52
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
undefined reference to `qaeMemFreeNUMA' #1
Comments
Hi Martin, The symbol qaeMemFreeNUMA or cpaDcCompressData are defined in QuickAssit driver and qzip or libqatzip.a just link to it. The log showing no symbol find in your driver library . BR, |
Hi David,
which seems that the "QuickAssist driver link path" is good. Thank you for your support. Best Regards, |
Hi Martin, The log seems good, no error/fail shows. BR, |
Hi David, Thanks, |
Same error on kernel ubuntu 4.4.0-116-generic |
Hi Martin, The symbol qaeMemFreeNUMA is defined in libusdm_drv_s.so. Here's the dynamic symbol list of my USDM library: If it does exist, please export the folder where libusdm_drv_s.so located as environment variant "ICP_ROOT", reconfigure the QATzip and recompile. If not, it is driver compiling issue please contact with Intel AE for further support. Thank you, |
Thank you David, root@ubuntu:/opt/QAT/build# objdump -T libusdm_drv_s.so libusdm_drv_s.so: file format elf64-x86-64 DYNAMIC SYMBOL TABLE: If I change "ICP_ROOT" directly, it will lead to other check failure in configure file when ./configure. I've copied the libusdm_drv_s.so from "ICP_ROOT"/build to "ICP_ROOT", same error. Best Regards, |
Hi David, |
Good, what's Linux distribution you saw compile error? |
QATzip compile errror: Ubuntu 16.04, kernel 4.16.1. However, on 4.16.1 kernel the QAT_engine based openssl runs with no error, which also uses the QAT driver. |
Hi David, In using the qzip: it will report error: However, Thank you for your support. Best Regards, |
I have exactly the same problem as @martin-m-wang with Intel Atom® C3000 Processor QATzip compile errror: Ubuntu 16.04, kernel 4.16.1. We have the same compilation error and if we use the shared library libqatzip.so for linking qzip, compilations is successful but using the qzip fails with error:
In addition, I would like to ask which config file is the proper one to use for Intel Atom c3xxx Best Regards |
@martin-m-wang This is how it looks like in QAT config file:
|
It should be the same compilation error. Best regards, |
Based on @LazarosLazaridis question and the conf file example @daweiq provided, I copy the conf files generated by QATzip to /etc to replace the original generated by QAT_driver, no more errors. Now I'm running performance test
the conf file is from "/QATzip/config_file/c6xx/multiple_process_opt", the Throughput seems to be not as high as expected. Is there any modification that we could make to maximize the throughput? Thank you for your great support! Best Regards, |
What I did was. I moved to CentOS 7.
To move past that I copied the conf files from /QATzip/config_file/c6xx/multiple_process_opt to /etc but as my original conf file was c3xxx_dev0.conf I renamed the generated c6xx_dev0.conf to c3xxx_dev0.conf. The result was that now qzip is running without throwing errors.
Have a great day, |
Hi, First, please move to CentOS 7.X 1st to fix the compilation error. For your platform "Intel Atom® C3000 Processor", you need to use the device configure file: /etc/c3xxx_dev0.conf which should be installed when you install the QAT driver.
|
Hi,
I've installed the driver For Intel® Xeon® with Intel® C62X Series Chipset and the QuickAssist Technology(QAT) OpenSSL Engine* was able to run successfully. In installing the driver, the contiguous memory driver could not be built due to some error and load the User Space DMA-able Memory (USDM) Component instead.
And installed libelf-dev through
apt-get install libelf-dev
before running ./configure
It seems that qaeMemFreeNUMA and cpaDcCompressData ... could not be found.
root@ubuntu:/opt/QATzip# make all install
make -C /opt/QATzip/src libqatzip.a
make[1]: Entering directory '/opt/QATzip/src'
gcc -Wall -Werror -std=gnu99 -pedantic -O2 -fstack-protector -fPIE -fPIC -D_FORTIFY_SOURCE=2 -m64 -I/opt/QAT/quickassist/include -I/opt/QAT/quickassist/include/dc -I/opt/QAT/quickassist/lookaside/access_layer/include -I/opt/QAT/quickassist/utilities/libusdm_drv -I/opt/QATzip/include -c qatzip.c -o qatzip.o
gcc -Wall -Werror -std=gnu99 -pedantic -O2 -fstack-protector -fPIE -fPIC -D_FORTIFY_SOURCE=2 -m64 -I/opt/QAT/quickassist/include -I/opt/QAT/quickassist/include/dc -I/opt/QAT/quickassist/lookaside/access_layer/include -I/opt/QAT/quickassist/utilities/libusdm_drv -I/opt/QATzip/include -c qatzip_counter.c -o qatzip_counter.o
gcc -Wall -Werror -std=gnu99 -pedantic -O2 -fstack-protector -fPIE -fPIC -D_FORTIFY_SOURCE=2 -m64 -I/opt/QAT/quickassist/include -I/opt/QAT/quickassist/include/dc -I/opt/QAT/quickassist/lookaside/access_layer/include -I/opt/QAT/quickassist/utilities/libusdm_drv -I/opt/QATzip/include -c qatzip_gzip.c -o qatzip_gzip.o
gcc -Wall -Werror -std=gnu99 -pedantic -O2 -fstack-protector -fPIE -fPIC -D_FORTIFY_SOURCE=2 -m64 -I/opt/QAT/quickassist/include -I/opt/QAT/quickassist/include/dc -I/opt/QAT/quickassist/lookaside/access_layer/include -I/opt/QAT/quickassist/utilities/libusdm_drv -I/opt/QATzip/include -c qatzip_sw.c -o qatzip_sw.o
gcc -Wall -Werror -std=gnu99 -pedantic -O2 -fstack-protector -fPIE -fPIC -D_FORTIFY_SOURCE=2 -m64 -I/opt/QAT/quickassist/include -I/opt/QAT/quickassist/include/dc -I/opt/QAT/quickassist/lookaside/access_layer/include -I/opt/QAT/quickassist/utilities/libusdm_drv -I/opt/QATzip/include -c qatzip_mem.c -o qatzip_mem.o
gcc -Wall -Werror -std=gnu99 -pedantic -O2 -fstack-protector -fPIE -fPIC -D_FORTIFY_SOURCE=2 -m64 -I/opt/QAT/quickassist/include -I/opt/QAT/quickassist/include/dc -I/opt/QAT/quickassist/lookaside/access_layer/include -I/opt/QAT/quickassist/utilities/libusdm_drv -I/opt/QATzip/include -c qatzip_utils.c -o qatzip_utils.o
ar rcs libqatzip.a qatzip.o qatzip_counter.o qatzip_gzip.o qatzip_sw.o qatzip_mem.o qatzip_utils.o
make[1]: Leaving directory '/opt/QATzip/src'
make -C /opt/QATzip/src libqatzip.so
make[1]: Entering directory '/opt/QATzip/src'
gcc qatzip.o qatzip_counter.o qatzip_gzip.o qatzip_sw.o qatzip_mem.o qatzip_utils.o -o libqatzip.so -fstack-protector -fPIC -pie -z relro -z now -Wl,-z,noexecstack -L/opt/QAT/build -Wl,-R/opt/QAT/build -shared -Wl,-soname,libqatzip.so -lqat_s -lusdm_drv_s -lz -lpthread -lnuma
make[1]: Leaving directory '/opt/QATzip/src'
make -C /opt/QATzip/utils qzip
make[1]: Entering directory '/opt/QATzip/utils'
gcc -Wall -Werror -std=gnu99 -pedantic -O2 -fstack-protector -fPIE -fPIC -D_FORTIFY_SOURCE=2 -m64 -I/opt/QAT/quickassist/include -I/opt/QAT/quickassist/include/dc -I/opt/QAT/quickassist/lookaside/access_layer/include -I/opt/QAT/quickassist/utilities/libusdm_drv -I/opt/QATzip/include -c qzip.c -o qzip.o
gcc qzip.o -o qzip -fstack-protector -fPIC -pie -z relro -z now -Wl,-z,noexecstack -L/opt/QAT/build -Wl,-R/opt/QAT/build -lqat_s -lusdm_drv_s -lz -lpthread -lnuma /opt/QATzip/src/libqatzip.a
/opt/QATzip/src/libqatzip.a(qatzip.o): In function
cleanUpInstMem': qatzip.c:(.text+0x36d): undefined reference to
qaeMemFreeNUMA'qatzip.c:(.text+0x3a6): undefined reference to
qaeMemFreeNUMA' qatzip.c:(.text+0x455): undefined reference to
qaeMemFreeNUMA'qatzip.c:(.text+0x4c5): undefined reference to
qaeMemFreeNUMA' qatzip.c:(.text+0x4fe): undefined reference to
qaeMemFreeNUMA'/opt/QATzip/src/libqatzip.a(qatzip.o):qatzip.c:(.text+0x595): more undefined references to
qaeMemFreeNUMA' follow /opt/QATzip/src/libqatzip.a(qatzip.o): In function
doCompressIn':qatzip.c:(.text+0x82a): undefined reference to
cpaDcCompressData' /opt/QATzip/src/libqatzip.a(qatzip.o): In function
doCompressOut':qatzip.c:(.text+0xad0): undefined reference to
icp_sal_DcPollInstance' qatzip.c:(.text+0xdfc): undefined reference to
crc32_combine'/opt/QATzip/src/libqatzip.a(qatzip.o): In function
doDecompressIn': qatzip.c:(.text+0x1183): undefined reference to
cpaDcDecompressData'/opt/QATzip/src/libqatzip.a(qatzip.o): In function
doDecompressOut': qatzip.c:(.text+0x154b): undefined reference to
icp_sal_DcPollInstance'/opt/QATzip/src/libqatzip.a(qatzip.o): In function
stopQat.part.3': qatzip.c:(.text+0x186b): undefined reference to
cpaDcStopInstance'qatzip.c:(.text+0x18aa): undefined reference to
icp_sal_userStop' /opt/QATzip/src/libqatzip.a(qatzip.o): In function
qzInit':qatzip.c:(.text+0x1a8c): undefined reference to
icp_sal_userStartMultiProcess' qatzip.c:(.text+0x1a9c): undefined reference to
cpaDcGetNumInstances'qatzip.c:(.text+0x1bbd): undefined reference to
cpaDcGetInstances' qatzip.c:(.text+0x1c1b): undefined reference to
cpaDcInstanceGetInfo2'qatzip.c:(.text+0x1c37): undefined reference to
cpaDcQueryCapabilities' /opt/QATzip/src/libqatzip.a(qatzip.o): In function
qzSetupHW':qatzip.c:(.text+0x1fbd): undefined reference to
cpaDcBufferListGetMetaSize' qatzip.c:(.text+0x2010): undefined reference to
cpaDcGetSessionSize'qatzip.c:(.text+0x202f): undefined reference to
qaeMemAllocNUMA' qatzip.c:(.text+0x2064): undefined reference to
cpaDcInitSession'qatzip.c:(.text+0x2097): undefined reference to
cpaDcGetNumIntermediateBuffers' qatzip.c:(.text+0x20a7): undefined reference to
numa_set_preferred'qatzip.c:(.text+0x212a): undefined reference to
qaeMemAllocNUMA' qatzip.c:(.text+0x215f): undefined reference to
qaeMemAllocNUMA'qatzip.c:(.text+0x2196): undefined reference to
qaeMemAllocNUMA' qatzip.c:(.text+0x21f9): undefined reference to
qaeMemAllocNUMA'qatzip.c:(.text+0x2329): undefined reference to
qaeMemAllocNUMA' /opt/QATzip/src/libqatzip.a(qatzip.o):qatzip.c:(.text+0x2363): more undefined references to
qaeMemAllocNUMA' follow/opt/QATzip/src/libqatzip.a(qatzip.o): In function
qzSetupHW': qatzip.c:(.text+0x25ea): undefined reference to
qaeVirtToPhysNUMA'qatzip.c:(.text+0x25f3): undefined reference to
cpaDcSetAddressTranslation' qatzip.c:(.text+0x261d): undefined reference to
cpaDcStartInstance'/opt/QATzip/src/libqatzip.a(qatzip.o): In function
removeSession': qatzip.c:(.text+0x271a): undefined reference to
cpaDcRemoveSession'qatzip.c:(.text+0x273b): undefined reference to
qaeMemFreeNUMA' /opt/QATzip/src/libqatzip.a(qatzip_sw.o): In function
qzSWCompress':qatzip_sw.c:(.text+0x19d): undefined reference to
deflateSetHeader' qatzip_sw.c:(.text+0x1f1): undefined reference to
deflate'qatzip_sw.c:(.text+0x275): undefined reference to
deflateEnd' qatzip_sw.c:(.text+0x2a6): undefined reference to
deflateInit2_'/opt/QATzip/src/libqatzip.a(qatzip_sw.o): In function
qzSWDecompress': qatzip_sw.c:(.text+0x348): undefined reference to
inflateInit2_'qatzip_sw.c:(.text+0x35b): undefined reference to
inflateEnd' qatzip_sw.c:(.text+0x381): undefined reference to
inflate'/opt/QATzip/src/libqatzip.a(qatzip_mem.o): In function
qzMalloc': qatzip_mem.c:(.text+0xe4): undefined reference to
qaeMemAllocNUMA'/opt/QATzip/src/libqatzip.a(qatzip_mem.o): In function
qzFree': qatzip_mem.c:(.text+0x216): undefined reference to
qaeMemFreeNUMA'collect2: error: ld returned 1 exit status
Makefile:40: recipe for target 'qzip' failed
make[1]: *** [qzip] Error 1
make[1]: Leaving directory '/opt/QATzip/utils'
Makefile:92: recipe for target 'qzip' failed
make: *** [qzip] Error 2
The text was updated successfully, but these errors were encountered: