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 C16CFA034F; Sat, 16 Oct 2021 18:26:37 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7AD4E4003F; Sat, 16 Oct 2021 18:26:37 +0200 (CEST) Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) by mails.dpdk.org (Postfix) with ESMTP id 5D3554003C for ; Sat, 16 Oct 2021 18:26:36 +0200 (CEST) Received: by mail-pf1-f171.google.com with SMTP id m26so11134012pff.3 for ; Sat, 16 Oct 2021 09:26:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BKbDb0v5esmGTNaA5Wq0TLs/EUkpiLn0vmImBFWwlps=; b=q0mn0FBMP5C+6eYcCV1B/9S207PKH3rsm08SUNoav713nZPV2toLOlNBQ5OeLVC4HQ 0FTNKYLp0/YhbsPxGTyomHiYuKIwO5j0CP5SP7NJ3cvvMqKvXBIGatcdBu5n4BT1EAQZ 4UWGz6SD7MEZOefT7/uk00Juiqk2uc5ENxKObimEAzXIx9gmdNDrh8LrWnLgedaqV4LD C8UESPlgBJxxuc2fniAO1xikPZUO3bMgWyxhMxdMny2Ndlli9kcjR3m+QSfSa2nx9u8E qTBh7Lnb4UipMsnXa+jkLVJS9YibVY5PF3gqokLmrq1TshcQhb2dxdoveTxajxUJI353 N27g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=BKbDb0v5esmGTNaA5Wq0TLs/EUkpiLn0vmImBFWwlps=; b=r+Uj8MSazrKTUh3maytAOsZHusCWxHgYsdaNZ10/jPJwrvhE5eAWrqr3SPQ0EIP7oD iu05a78t7zS5Jn9T1RBDnrAL5tO5Co3PNkRUz0swDggwiADYaJlEImZCA6WYFjKTd/7U yYcxuTNnWImSMzde9D922N3zBoHSJQPFXdZOpqhuqaiO7rMA7w+o7qBgMAR2rqBzZlnj hF2x9OCOOZkAm8Gcj9zlu8CSk8+1F9JiFiHiVXSBNJR1KQkd9q9w2X9LTf3Wk2MLpmoX bk5zYxbYcaRT5Hm77sKVGX4N37zq0Hm+CsTwXwW2tZUgkrdxYm28aHZsIajEAv/NZ0Mc lvQQ== X-Gm-Message-State: AOAM530RBcyqQooxgpjBwTxzSHT5nr53p+LzU5z/xoRuGG9J0suQ0lqF gGwUMSIKWTEL+n48eyehHm93hg== X-Google-Smtp-Source: ABdhPJxG1bCPNUfCdgqXjK8ZclxejG1Y5cGoxop2p3UCtdSZNTaLVjHr3+0F2pHRZVJGggQwXAMwow== X-Received: by 2002:a05:6a00:15c8:b0:44d:9f7e:ece2 with SMTP id o8-20020a056a0015c800b0044d9f7eece2mr8473204pfu.86.1634401595204; Sat, 16 Oct 2021 09:26:35 -0700 (PDT) Received: from hermes.local (204-195-33-123.wavecable.com. [204.195.33.123]) by smtp.gmail.com with ESMTPSA id r31sm14473617pjg.28.2021.10.16.09.26.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Oct 2021 09:26:34 -0700 (PDT) Date: Sat, 16 Oct 2021 09:26:32 -0700 From: Stephen Hemminger To: bugzilla@dpdk.org, Konstantin Ananyev Cc: dev@dpdk.org Message-ID: <20211016092632.72cfed5e@hermes.local> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [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" Any progress on this issue? Perhaps we should just disable BPF with clang build? On Thu, 16 Sep 2021 03:07:41 +0000 bugzilla@dpdk.org wrote: > https://bugs.dpdk.org/show_bug.cgi?id=811 > > 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='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>> >