lsdk cross-compiler vpp problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

lsdk cross-compiler vpp problem

1,389 Views
yi-linhsieh
Contributor III

Hi all,

I followed the build step in sec 9.3.4 Build VPP in LSDKUG_Rev19.03.pdf.

 export DPDK_PATH=/home/yilin/flexbuild_lsdk1903/build/rfs/rootfs_lsdk_19.03_LS_arm64/usr/local/dpdk 

 export CROSS_PREFIX=aarch64-linux-gnu

 export ARCH=arm64

 export OPENSSL_PATH=home/yilin/flexbuild_lsdk1903/packages/apps/openssl

cd vpp

make install-dep

cd build-root

make distclean

make V=0 PLATFORM=dpaa TAG=dpaa install-deb -j8

and it had some error:

In file included from /usr/include/openssl/sha.h:13:0,
from /home/yilin/flexbuild_lsdk1903/packages/apps/vpp/build-data/../src/vnet/bfd/bfd_main.c:21:
/usr/include/openssl/e_os2.h:13:11: fatal error: openssl/opensslconf.h: No such file or directory
# include <openssl/opensslconf.h>
^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:6958: recipe for target 'vnet/bfd/bfd_main.lo' failed
make[4]: *** [vnet/bfd/bfd_main.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory '/home/yilin/flexbuild_lsdk1903/packages/apps/vpp/build-root/build-dpaa-aarch64/vpp'
Makefile:7933: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/yilin/flexbuild_lsdk1903/packages/apps/vpp/build-root/build-dpaa-aarch64/vpp'
Makefile:4037: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/yilin/flexbuild_lsdk1903/packages/apps/vpp/build-root/build-dpaa-aarch64/vpp'
Makefile:686: recipe for target 'vpp-build' failed
make[1]: *** [vpp-build] Error 2
make[1]: Leaving directory '/home/yilin/flexbuild_lsdk1903/packages/apps/vpp/build-root'
/home/yilin/flexbuild_lsdk1903/packages/apps/vpp/build-data/platforms.mk:20: recipe for target 'install-deb' failed
make: *** [install-deb] Error 1

I consider it should be export OPENSSL_PATH=<openssl path> not correct .

but I try several times to the OPENSSL_PATH but not work.

Are there any ones can help to show how to set the path make the building right?


yilin@hawk1:~/flexbuild_lsdk1903$ find . -name openssl
./build/apps/components_LS_arm64/usr/local/include/openssl
./build/apps/components_LS_arm64/usr/local/bin/openssl
./build/apps/components_LS_arm64/usr/local/share/doc/openssl
./build/rfs/rootfs_lsdk_19.03_LS_arm64/usr/include/openssl
./build/rfs/rootfs_lsdk_19.03_LS_arm64/usr/include/aarch64-linux-gnu/openssl
./build/rfs/rootfs_lsdk_19.03_LS_arm64/usr/lib/python2.7/dist-packages/cryptography/hazmat/bindings/openssl
./build/rfs/rootfs_lsdk_19.03_LS_arm64/usr/lib/python2.7/dist-packages/cryptography/hazmat/backends/openssl
./build/rfs/rootfs_lsdk_19.03_LS_arm64/usr/local/include/openssl
./build/rfs/rootfs_lsdk_19.03_LS_arm64/usr/local/bin/openssl
./build/rfs/rootfs_lsdk_19.03_LS_arm64/usr/local/share/doc/openssl
./build/rfs/rootfs_lsdk_19.03_LS_arm64/usr/bin/openssl
./build/rfs/rootfs_lsdk_19.03_LS_arm64/usr/share/doc/openssl
./build/rfs/rootfs_lsdk_19.03_LS_arm64/usr/share/lintian/overrides/openssl
./build/rfs/rootfs_lsdk_19.03_LS_arm64/etc/apparmor.d/abstractions/openssl
./packages/apps/openssl
./packages/apps/openssl/apps/openssl
./packages/apps/openssl/include/openssl
./packages/apps/openssl-1.0.2s/include/openssl
./packages/apps/dpdk/arm64-dpaa-linuxapp-gcc/build/drivers/crypto/openssl
./packages/apps/dpdk/drivers/crypto/openssl

The attaching file is my build vpp log.

Regards,

Yi-Lin

Tags (1)
0 Kudos
Reply
1 Reply

1,195 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Yi-Lin Hsieh,

Following steps are for building OpenSSL as a standalone package, outside the Flexbuild system.

git clone git://git.openssl.org/openssl.git # Clone the OpenSSL source code
cd openssl # Change into cloned directory
git checkout OpenSSL_1_1_0g # Checkout the specific branch supported by DPDK

export CROSS_COMPILE=<path to uncompressed toolchain archive>/bin/aarch64-linux-gnu-

./Configure linux-aarch64 --prefix=<OpenSSL library path> shared

make depend
make
make install
export OPENSSL_PATH=<OpenSSL library path>

VPP was not officially supported for compilation via flex-builder till 19.03. in LSDK-19.03 documentation, you should find instructions for Standalone compilation(recommended).

But form LSDK.1906 onwards, VPP compilation and image generation is supported and tested via flex-builder.

This can be enabled by setting the following in the build configuration file (build_lsdk.cfg):
CONFIG_APP_VPP=y

flex-builder -c openssl -a arm64

flex-builder -c linux -a arm64

flex-builder -c dpdk -a arm64

flex-builder -i mkrfs -a arm64

 flex-builder -c vpp -a arm64

Thanks,

Yiping

0 Kudos
Reply