[EXT] [PATCH resend v3 0/6] crypto/uadk: introduce uadk crypto driver

Zhangfei Gao zhangfei.gao at linaro.org
Mon Oct 10 11:30:15 CEST 2022



On 2022/10/10 下午3:55, Akhil Goyal wrote:
> Hi Zhangfei,
>
> I see below compilation error after executing the steps mentioned in UADK README. It would be better if you could add compilation steps for UADK in uadk.rst as well.

Sure

Will add something like this

Build & Install UADK on ARM
--------------------

```
     git clone https://github.com/Linaro/uadk.git
     cd uadk
     ./cleanup.sh
     ./autogen.sh
     ./conf.sh
     make
     sudo make install
```
* If get error:"cannot find -lnuma", please install the libnuma-dev

>
> gakhil at cavium-SR1-T640:/home/gakhil/up/uadk$ make
> make  all-recursive
> make[1]: Entering directory '/home/gakhil/up/uadk'
> Making all in .
> make[2]: Entering directory '/home/gakhil/up/uadk'
> depbase=`echo wd.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
> /bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -Wall -Werror -fno-strict-aliasing -I./include  -DUADK_VERSION_NUMBER="\"UADK version: 2.3.37\"" -DUADK_RELEASED_TIME="\"Released Jun 11, 2022\""  -g -O2 -MT wd.lo -MD -MP -MF $depbase.Tpo -c -o wd.lo wd.c &&\
> mv -f $depbase.Tpo $depbase.Plo
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Werror -fno-strict-aliasing -I./include "-DUADK_VERSION_NUMBER=\"UADK version: 2.3.37\"" "-DUADK_RELEASED_TIME=\"Released Jun 11, 2022\"" -g -O2 -MT wd.lo -MD -MP -MF .deps/wd.Tpo -c wd.c  -fPIC -DPIC -o .libs/wd.o
> depbase=`echo wd_mempool.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
> /bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -Wall -Werror -fno-strict-aliasing -I./include  -DUADK_VERSION_NUMBER="\"UADK version: 2.3.37\"" -DUADK_RELEASED_TIME="\"Released Jun 11, 2022\""  -g -O2 -MT wd_mempool.lo -MD -MP -MF $depbase.Tpo -c -o wd_mempool.lo wd_mempool.c &&\
> mv -f $depbase.Tpo $depbase.Plo
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Werror -fno-strict-aliasing -I./include "-DUADK_VERSION_NUMBER=\"UADK version: 2.3.37\"" "-DUADK_RELEASED_TIME=\"Released Jun 11, 2022\"" -g -O2 -MT wd_mempool.lo -MD -MP -MF .deps/wd_mempool.Tpo -c wd_mempool.c  -fPIC -DPIC -o .libs/wd_mempool.o
> depbase=`echo v1/wd.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
> /bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.    -Wall -Werror -fno-strict-aliasing -I./include  -DUADK_VERSION_NUMBER="\"UADK version: 2.3.37\"" -DUADK_RELEASED_TIME="\"Released Jun 11, 2022\""  -g -O2 -MT v1/wd.lo -MD -MP -MF $depbase.Tpo -c -o v1/wd.lo v1/wd.c &&\
> mv -f $depbase.Tpo $depbase.Plo
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -Werror -fno-strict-aliasing -I./include "-DUADK_VERSION_NUMBER=\"UADK version: 2.3.37\"" "-DUADK_RELEASED_TIME=\"Released Jun 11, 2022\"" -g -O2 -MT v1/wd.lo -MD -MP -MF v1/.deps/wd.Tpo -c v1/wd.c  -fPIC -DPIC -o v1/.libs/wd.o
> In file included from v1/wd.c:30:
> ./v1/wd_util.h:354:2: error: #error "no platform mb, define one before compiling"
>    354 | #error "no platform mb, define one before compiling"
>        |  ^~~~~
> make[2]: *** [Makefile:788: v1/wd.lo] Error 1
> make[2]: Leaving directory '/home/gakhil/up/uadk'
> make[1]: *** [Makefile:859: all-recursive] Error 1
> make[1]: Leaving directory '/home/gakhil/up/uadk'
> make: *** [Makefile:565: all] Error 2
By the way, what platform are you using.
I can not reproduce this error.

Thanks






More information about the dev mailing list