From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id C581BA00E6 for ; Sat, 18 May 2019 03:34:03 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4AC2B2BA5; Sat, 18 May 2019 03:34:02 +0200 (CEST) Received: by dpdk.org (Postfix, from userid 33) id 46A7E2BA5; Sat, 18 May 2019 03:34:01 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Sat, 18 May 2019 01:34:01 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: testpmd X-Bugzilla-Version: 19.08 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: michel@digirati.com.br X-Bugzilla-Status: CONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 Subject: [dpdk-dev] [Bug 281] BPF: Linking error in librte_bpf X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" https://bugs.dpdk.org/show_bug.cgi?id=3D281 Bug ID: 281 Summary: BPF: Linking error in librte_bpf Product: DPDK Version: 19.08 Hardware: x86 OS: Linux Status: CONFIRMED Severity: normal Priority: Normal Component: testpmd Assignee: dev@dpdk.org Reporter: michel@digirati.com.br Target Milestone: --- I've downloaded DPDK from the git repository (19.08-rc0), installed libelf = and libelf-dev, enabled CONFIG_RTE_LIBRTE_BPF_ELF in config/common_base, made config for target "x86_64-native-linuxapp-gcc", and built it. My machine is running Ubuntu 18.04.1. Then, I ran the following commands: $ cd $RTE_SDK/$RTE_TARGET/app/ $ sudo ./testpmd -l 0-3 -n 4 -- -i --portmask=3D0x1 --nb-cores=3D2 [INITIALIZATION MESSAGES] testpmd> bpf-load rx 0 0 - /home/michel/git/latest_dpdk/examples/bpf/t1.o rte_bpf_elf_load() is not supported with current config rebuild with libelf installed -95:Operation not supported Investigating this issue, I've found that it is a linking error since funct= ion rte_bpf_elf_load() is being mapped to bpf_load.o instead of bpf_load_elf.o: $ grep ^rte_bpf_elf_load x86_64-native-linuxapp-gcc/app/testpmd.map=20 rte_bpf_elf_load=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 /home/michel/test_latest_dpdk/dpdk/x86_64-native-linuxapp-gcc/lib/librte_bp= f.a(bpf_load.o) I also noticed that file bpf_load_elf.o after file bpf_load.o in librte_bpf= .a: $ ar t build/lib/librte_bpf.a bpf.o bpf_exec.o bpf_load.o bpf_pkt.o bpf_validate.o bpf_load_elf.o bpf_jit_x86.o --=20 You are receiving this mail because: You are the assignee for the bug.=