From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id DB87CA0C41; Thu, 16 Sep 2021 05:07:43 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 68BD24003F; Thu, 16 Sep 2021 05:07:43 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 46A904003C for ; Thu, 16 Sep 2021 05:07:42 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 1A7EAA0C43; Thu, 16 Sep 2021 05:07:42 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Thu, 16 Sep 2021 03:07:41 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: other X-Bugzilla-Version: 21.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: stephen@networkplumber.org X-Bugzilla-Status: UNCONFIRMED 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 811] BPF tests fail with clang X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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=3D811 Bug ID: 811 Summary: BPF tests fail with clang Product: DPDK Version: 21.11 Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: other Assignee: dev@dpdk.org Reporter: stephen@networkplumber.org Target Milestone: --- The bpf_autotest fails when DPDK 21.11 is built with clang. Same test and code work when built with Gcc. $ clang --version Debian clang version 11.0.1-2 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/bin $ gcc --version gcc (Debian 10.2.1-6) 10.2.1 20210110 Copyright (C) 2020 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ DPDK_TEST=3D'bpf_autotest' /home/shemminger/DPDK/pcapng2/build/app/test/dpdk-test -l 0-15 --no-huge -m 2048 EAL: Detected 16 lcore(s) EAL: Detected 1 NUMA nodes EAL: Detected static linkage of DPDK EAL: Multi-process socket /run/user/1000/dpdk/rte/mp_socket EAL: Selected IOVA mode 'VA' APP: HPET is not enabled, using TSC as default timer RTE>>bpf_autotest run_test(test_store1) start run_test(test_store2) start run_test(test_load1) start run_test(test_ldimm1) start run_test(test_mul1) start run_test(test_shift1) start test_shift1_check: invalid value expected: 00:80:21:81:00:00:00:00:00:00:00:00:00:00:00:00:ff:db:dd:ed:ff:ff:ff:ff:00:= 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:= 00:00:00:00:00:ff:00:00:00:00:00:00:00:00:c0:ed:27:21:00:00:00:00:00:00:00:= 00:00:00:00:00:81:ef:ad:f6:ff:76:77:fb:00:00:00:00:00:00:00:00:00:00:00:00:= 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:= 00:00:00 result: 00:80:21:81:00:00:00:00:00:00:00:00:00:00:00:00:ff:db:dd:ed:ff:ff:ff:ff:00:= 00:00:00:00:00:00:00:81:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:= 00:00:00:00:00:ff:00:00:00:00:00:00:00:00:c0:ed:27:21:00:00:00:00:00:00:00:= 00:00:00:00:00:81:ef:ad:f6:ff:76:77:fb:00:00:00:00:00:00:00:00:00:00:00:00:= 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:= 00:00:00 run_test@3196: check_result(test_shift1) failed, error: -1(Unknown error -1= ); test_shift1_check: invalid value expected: 00:00:cf:4e:00:00:00:00:00:00:00:00:00:00:00:00:cf:bb:75:ef:ff:ff:ff:ff:00:= 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:= 00:00:80:e7:dd:ba:00:00:00:00:00:00:00:00:00:00:00:c0:00:00:00:00:00:00:00:= 00:00:00:00:00:7b:de:ad:7b:ff:ff:ff:ff:00:00:00:00:00:00:00:00:00:00:00:00:= 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:= 00:00:00 result: 00:00:cf:4e:00:00:00:00:00:00:00:00:00:00:00:00:cf:bb:75:ef:ff:ff:ff:ff:00:= 00:00:00:00:00:00:00:00:9e:9d:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:= 00:00:80:e7:dd:ba:00:00:00:00:00:00:00:00:00:00:00:c0:00:00:00:00:00:00:00:= 00:00:00:00:00:7b:de:ad:7b:ff:ff:ff:ff:00:00:00:00:00:00:00:00:00:00:00:00:= 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:= 00:00:00 run_test@3210: check_result(test_shift1) failed, error: -1(Unknown error -1= ); run_test(test_jump1) start run_test(test_jump2) start run_test(test_alu1) start run_test(test_bele1) start run_test(test_xadd1) start run_test(test_div1) start bpf_exec(0x7f3a1d03d000): division by 0 at pc: 0x68; run_test(test_call1) start run_test(test_call2) start run_test(test_call3) start run_test(test_call4) start run_test(test_call5) start run_test(test_ld_mbuf1) start run_test(test_ld_mbuf2) start run_test(test_ld_mbuf3) start Test Failed RTE>> --=20 You are receiving this mail because: You are the assignee for the bug.=