From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3CA71A0524; Fri, 27 Nov 2020 09:53:40 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EEB5DC926; Fri, 27 Nov 2020 09:53:38 +0100 (CET) Received: from mail-il1-f195.google.com (mail-il1-f195.google.com [209.85.166.195]) by dpdk.org (Postfix) with ESMTP id 7DA4EC8E4 for ; Fri, 27 Nov 2020 09:53:36 +0100 (CET) Received: by mail-il1-f195.google.com with SMTP id b8so3929598ila.13 for ; Fri, 27 Nov 2020 00:53:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=RaYEvOfycS6VI5mTLygQiT7ROR2fr+pB2GAbnj8lJLU=; b=W175ivqZRM0b1trPROSL+Ue89RVcyeElXmMxAmdrOY7d00UylfvezKW2/4fYxIjY0f tHpCJQ0DPD1XhRV7eG+bqvajJmHnh7yqXsrPEeV+cz9wV6y3oZY/8is5yLtY/8Aqpxy9 HhzgTi/SdBHUVLI1OyyjVVbhW3gWiEd6iajkemhQvcy9T4j3bipH1ZZbkr1p1gK2L3XC qvVk3BE2lJ4D63BlxYNNxdr8YRCQY+kAkvfq98wxN3joXrwiVY7XWBvCJxY5aKOXVvao ZVsshAoDM+qJILflyGVglO/PwILIDJ5xR2zylILNLk/gSV1d1fxoe811XvFnXzWk4aFC didA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=RaYEvOfycS6VI5mTLygQiT7ROR2fr+pB2GAbnj8lJLU=; b=Pa4IzhCueJrodLbeFHEtxAKGG7NEaC77yVArLmfMlgCtnE4mHWLpzXNgKP0Vggsxjv CTLgC3esFcoxirJY1aVuq5r9h2OuMoEll7sWmkZXihuvwBOPy6zqfzDQexrXjSLs/bEd T/Qi4D6ARHOMFBZ69/V1+rijGQwN2nd3coe0mG3N2qFdOc+uBvgZa57Nf+T5OmMVRazN +qHis5FWw9eVHgDmup8Rt24pX3bfh0PHrYpn/Gsv180fT4aAiYwo75irUVbHuNkUhb1z VXnKCkfrkfFALSt1eDDl45aS8/k46ddbqYkeV+GpkXXOTW2sLRnp58V/GVsk7hmH04+9 rJEg== X-Gm-Message-State: AOAM533hc71XQeAmSEIgF1nUwop/I4ATu+svAq8MulKrPRpJ/8714bhL QCXVKx2XIpwaE/+Y9Al1uoGG11C+if9Iwgy0D0A= X-Google-Smtp-Source: ABdhPJzxhn0Ix6NRrLRJsGUGt87I1WrsFOYCbYBMLvZcYwCsDabcdRpxHi50v/HNKXISFUIXj4rTofm5fy7E+z4maAg= X-Received: by 2002:a92:c089:: with SMTP id h9mr5975452ile.162.1606467215945; Fri, 27 Nov 2020 00:53:35 -0800 (PST) MIME-Version: 1.0 References: <20201127080903.26817-1-ruifeng.wang@arm.com> <20201127080903.26817-3-ruifeng.wang@arm.com> In-Reply-To: <20201127080903.26817-3-ruifeng.wang@arm.com> From: Jerin Jacob Date: Fri, 27 Nov 2020 14:23:19 +0530 Message-ID: To: Ruifeng Wang Cc: Jeff Guo , Haiyue Wang , Alvin Zhang , Ferruh Yigit , dpdk-dev , Honnappa Nagarahalli , nd , Feifei Wang Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH 2/2] net/igc: fix gcc build for optimization level 0 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" On Fri, Nov 27, 2020 at 1:40 PM Ruifeng Wang wrote: > > Gcc build with '-O0' failed for: > ../drivers/net/igc/base/igc_api.c > Assembler messages: > 29: Error: selected processor does not support `casp x0,x1,x2,x3,[x4]' > 82: Error: selected processor does not support `caspa x0,x1,x2,x3,[x4]' > 135: Error: selected processor does not support `caspl x0,x1,x2,x3,[x4]' > 188: Error: selected processor does not support `caspal x0,x1,x2,x3,[x4]' > > This is due to c_args not been passed to meson. > > Fixes: 8cb7c57d9b3c ("net/igc: support device initialization") > Cc: alvinx.zhang@intel.com > > Reported-by: Feifei Wang > Signed-off-by: Ruifeng Wang Able to reproduce the issue with meson build -Dbuildtype=debug --cross-file config/arm/arm64_octeontx2_linux_gcc and verified the build issue. Tested-by: Jerin Jacob > --- > drivers/net/igc/base/meson.build | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/net/igc/base/meson.build b/drivers/net/igc/base/meson.build > index 299985180..690704fe0 100644 > --- a/drivers/net/igc/base/meson.build > +++ b/drivers/net/igc/base/meson.build > @@ -13,6 +13,7 @@ sources = [ > ] > > base_lib = static_library('igc_base', sources, > - dependencies: static_rte_eal) > + dependencies: static_rte_eal, > + c_args: cflags) > > base_objs = base_lib.extract_all_objects() > -- > 2.20.1 >