LX2160A cannot self-host build debian 12 flex-build

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

LX2160A cannot self-host build debian 12 flex-build

318 Views
bezeria
Contributor I

I am buildig the latest flex-build from github.

By cross-compiling via docker, I managed to build an image.

However, when trying to build the same image of flex-build on the LX2160A itself, I get the error after a while:

Building pktgen_dpdk ...
The Meson build system
Version: 1.0.1
Source dir: /root/flexbuild/components_lsdk2506/apps/networking/pktgen_dpdk
Build dir: /root/flexbuild/components_lsdk2506/apps/networking/pktgen_dpdk/build_debian_arm64
Build type: cross build
Program cat found: YES (/usr/bin/cat)
Project name: pktgen
Project version: 23.06.1
C compiler for the host machine: gcc -march=armv8-a+crc+crypto -fstack-protector-strong -O2 --sysroot=/root/flexbuild/build_lsdk2506/rfs/rootfs_lsdk2506_debian_server_arm64 (gcc 12.2.0 "gcc (Debian 12.2.0-14+deb12u1) 12.2.0")
C linker for the host machine: gcc -march=armv8-a+crc+crypto -fstack-protector-strong -O2 --sysroot=/root/flexbuild/build_lsdk2506/rfs/rootfs_lsdk2506_debian_server_arm64 ld.bfd 2.40
C compiler for the build machine: ccache cc (gcc 12.2.0 "cc (Debian 12.2.0-14+deb12u1) 12.2.0")
C linker for the build machine: cc ld.bfd 2.40
Build machine cpu family: aarch64
Build machine cpu: aarch64
Host machine cpu family: aarch64
Host machine cpu: aarch64
Target machine cpu family: aarch64
Target machine cpu: aarch64
Compiler for C supports arguments -mavx: NO
Compiler for C supports arguments -mavx2: NO
Compiler for C supports arguments -Wno-pedantic: YES
Compiler for C supports arguments -Wno-format-truncation: YES
Found pkg-config: /usr/bin/pkg-config (1.8.1)
Found CMake: NO
Run-time dependency libdpdk found: NO

meson.build:70:1: ERROR: Dependency lookup for libdpdk with method 'pkgconfig' failed: Could not generate cargs for libdpdk:
Package jansson was not found in the pkg-config search path.
Perhaps you should add the directory containing `jansson.pc'
to the PKG_CONFIG_PATH environment variable
Package 'jansson', required by 'libdpdk', not found

Labels (1)
0 Kudos
Reply
1 Reply

196 Views
yipingwang
NXP TechSupport
NXP TechSupport

Confirmed with the LSDK development team.

Building debian on the target board is not supported.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2202060%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ELX2160A%20cannot%20self-host%20build%20debian%2012%20flex-build%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2202060%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20am%20buildig%20the%20latest%20flex-build%20from%20github.%3C%2FP%3E%3CP%3EBy%20cross-compiling%20via%20docker%2C%20I%20managed%20to%20build%20an%20image.%3C%2FP%3E%3CP%3EHowever%2C%20when%20trying%20to%20build%20the%20same%20image%20of%20flex-build%20on%20the%20LX2160A%20itself%2C%20I%20get%20the%20error%20after%20a%20while%3A%3C%2FP%3E%3CBLOCKQUOTE%3E%3CP%3EBuilding%20pktgen_dpdk%20...%3CBR%20%2F%3EThe%20Meson%20build%20system%3CBR%20%2F%3EVersion%3A%201.0.1%3CBR%20%2F%3ESource%20dir%3A%20%2Froot%2Fflexbuild%2Fcomponents_lsdk2506%2Fapps%2Fnetworking%2Fpktgen_dpdk%3CBR%20%2F%3EBuild%20dir%3A%20%2Froot%2Fflexbuild%2Fcomponents_lsdk2506%2Fapps%2Fnetworking%2Fpktgen_dpdk%2Fbuild_debian_arm64%3CBR%20%2F%3EBuild%20type%3A%20cross%20build%3CBR%20%2F%3EProgram%20cat%20found%3A%20YES%20(%2Fusr%2Fbin%2Fcat)%3CBR%20%2F%3EProject%20name%3A%20pktgen%3CBR%20%2F%3EProject%20version%3A%2023.06.1%3CBR%20%2F%3EC%20compiler%20for%20the%20host%20machine%3A%20gcc%20-march%3Darmv8-a%2Bcrc%2Bcrypto%20-fstack-protector-strong%20-O2%20--sysroot%3D%2Froot%2Fflexbuild%2Fbuild_lsdk2506%2Frfs%2Frootfs_lsdk2506_debian_server_arm64%20(gcc%2012.2.0%20%22gcc%20(Debian%2012.2.0-14%2Bdeb12u1)%2012.2.0%22)%3CBR%20%2F%3EC%20linker%20for%20the%20host%20machine%3A%20gcc%20-march%3Darmv8-a%2Bcrc%2Bcrypto%20-fstack-protector-strong%20-O2%20--sysroot%3D%2Froot%2Fflexbuild%2Fbuild_lsdk2506%2Frfs%2Frootfs_lsdk2506_debian_server_arm64%20ld.bfd%202.40%3CBR%20%2F%3EC%20compiler%20for%20the%20build%20machine%3A%20ccache%20cc%20(gcc%2012.2.0%20%22cc%20(Debian%2012.2.0-14%2Bdeb12u1)%2012.2.0%22)%3CBR%20%2F%3EC%20linker%20for%20the%20build%20machine%3A%20cc%20ld.bfd%202.40%3CBR%20%2F%3EBuild%20machine%20cpu%20family%3A%20aarch64%3CBR%20%2F%3EBuild%20machine%20cpu%3A%20aarch64%3CBR%20%2F%3EHost%20machine%20cpu%20family%3A%20aarch64%3CBR%20%2F%3EHost%20machine%20cpu%3A%20aarch64%3CBR%20%2F%3ETarget%20machine%20cpu%20family%3A%20aarch64%3CBR%20%2F%3ETarget%20machine%20cpu%3A%20aarch64%3CBR%20%2F%3ECompiler%20for%20C%20supports%20arguments%20-mavx%3A%20NO%3CBR%20%2F%3ECompiler%20for%20C%20supports%20arguments%20-mavx2%3A%20NO%3CBR%20%2F%3ECompiler%20for%20C%20supports%20arguments%20-Wno-pedantic%3A%20YES%3CBR%20%2F%3ECompiler%20for%20C%20supports%20arguments%20-Wno-format-truncation%3A%20YES%3CBR%20%2F%3EFound%20pkg-config%3A%20%2Fusr%2Fbin%2Fpkg-config%20(1.8.1)%3CBR%20%2F%3EFound%20CMake%3A%20NO%3CBR%20%2F%3ERun-time%20dependency%20libdpdk%20found%3A%20NO%3C%2FP%3E%3CP%3Emeson.build%3A70%3A1%3A%20ERROR%3A%20Dependency%20lookup%20for%20libdpdk%20with%20method%20'pkgconfig'%20failed%3A%20Could%20not%20generate%20cargs%20for%20libdpdk%3A%3CBR%20%2F%3EPackage%20jansson%20was%20not%20found%20in%20the%20pkg-config%20search%20path.%3CBR%20%2F%3EPerhaps%20you%20should%20add%20the%20directory%20containing%20%60jansson.pc'%3CBR%20%2F%3Eto%20the%20PKG_CONFIG_PATH%20environment%20variable%3CBR%20%2F%3EPackage%20'jansson'%2C%20required%20by%20'libdpdk'%2C%20not%20found%3C%2FP%3E%3C%2FBLOCKQUOTE%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2202060%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EQorIQ%20LS2%20Device%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E