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 0EE0541D55; Thu, 23 Feb 2023 23:58:54 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A71C440689; Thu, 23 Feb 2023 23:58:53 +0100 (CET) Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) by mails.dpdk.org (Postfix) with ESMTP id DCAA7400EF for ; Thu, 23 Feb 2023 23:58:51 +0100 (CET) Received: by mail-wr1-f54.google.com with SMTP id bw19so1576049wrb.13 for ; Thu, 23 Feb 2023 14:58:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=MfQ62bDA2TwN1AkxeU9IghQXu1mwYWI1zOigy2AsI/U=; b=OgqqHKGNbtaau1RE7TXUcCXKuS4N4E5Kzh27jVIzj8l9JMbI3Q6U0h1RmbRRyllX+t IUlOirc6fcx7fbrj6diT7Y4m4XkwN6alTSZ6DU3iFmiTNMmndSntYAtn2GzXoeLNAk8N jO3Qo8tRfil0BOTB1pQSgnHSWxdW68RJXKQNK2sNpPh/5eoSAFWbhfu81RgKjXu1EakH 58IdpJ7xE2EHSA4VqZyu4RGan11TZl15Z0Bel7WgfBBRcZCW8tk9xqOyuRRz5xDR9K5S YXxhM/U9vMj+45ZoxOqQiQsUnzDYfXB3wpWKQyEAvOgAdA9JWzXkIc36s9QAyan5hGAv 3iOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=MfQ62bDA2TwN1AkxeU9IghQXu1mwYWI1zOigy2AsI/U=; b=FgMD2HyY1XGm5QJAcb/vCogfS8V7munwhxQ9xryOlEAdwnPEQebGw8T7wBPzhV/Kuc /JwNXSKsSlABWqgVko9GgZuWmaPcF0g8WCukoP1IpjNVNe5fW+zfiDaISeDFNXCO9O6D GfKYthxgA67q46EAFlyqiXj64PH5s+mhnXqCrHTQplA+lgazeP2MEtEmJ+qZ4p56BTNO S45H4YAe28zchhgh8CFupuIeCckqIvVCQVBpBtVCvC1N+y1PQntpzzxaahhvg5xt94BF zlT1TGEAPsIQnFcnS+4l++f5Rxk4N6aR4oQJfc6i20C5ooyGcuRTnP1ONEdIItqL1jtb po2A== X-Gm-Message-State: AO0yUKU/77JIdSx69H/WXgJGPQtGfrffJ1IwAZOew8eb39YFEXHmQtF6 huexb/Zhzv/yaYVJpHV6DQgtc6OKtM+taVK6MMXhg5E5a4M= X-Google-Smtp-Source: AK7set+Y06aYSLORzNPqqVP+2PiCkUMYczhLln1u8uSkCqlATAGG26YJzkJOkR6PcbSPd9WhxFmmb/3M87bHJkvF8h4= X-Received: by 2002:a5d:4606:0:b0:2c3:cf02:74bf with SMTP id t6-20020a5d4606000000b002c3cf0274bfmr655905wrq.12.1677193131075; Thu, 23 Feb 2023 14:58:51 -0800 (PST) MIME-Version: 1.0 From: Tanzeel Ahmed Date: Fri, 24 Feb 2023 03:58:14 +0500 Message-ID: Subject: Devtool test-meson-build.sh failed To: dev@dpdk.org Content-Type: multipart/alternative; boundary="000000000000cc2adc05f565f469" 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 --000000000000cc2adc05f565f469 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, devs! I hope you all are doing well! I am currently working on a new patch version for "[PATCH v2] lib/net: add MPLS insert and strip functionality". However, I am facing an error when running the devtools/test-meson-build.sh script. The error is related to unused functions in rte_mpls.h that is causing warnings to be treated as errors, leading to the build failure. Following is the error snippet: *[50/3060] Compiling C object lib/librte_net.a.p/net_rte_net.c.oFAILED: lib/librte_net.a.p/net_rte_net.c.ogcc -Ilib/librte_net.a.p -Ilib -I../../lib -Ilib/net -I../../lib/net -I. -I../.. -Iconfig -I../../config -Ilib/eal/include -I../../lib/eal/include -Ilib/eal/linux/include -I../../lib/eal/linux/include -Ilib/eal/x86/include -I../../lib/eal/x86/include -Ilib/eal/common -I../../lib/eal/common -Ilib/eal -I../../lib/eal -Ilib/kvargs -I../../lib/kvargs -Ilib/metrics -I../../lib/metrics -Ilib/telemetry -I../../lib/telemetry -Ilib/mbuf -I../../lib/mbuf -Ilib/mempool -I../../lib/mempool -Ilib/ring -I../../lib/ring -pipe -D_FILE_OFFSET_BITS=3D64 -Wall -Winvalid-pch -Wextra -Werror -O2 -g -include rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -march=3Dnative -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -DCC_X86_64_SSE42_PCLMULQDQ_SUPPORT -DRTE_LOG_DEFAULT_LOGTYPE=3Dlib.net -MD -MQ lib/librte_net.a.p/net_rte_net.c.o -MF lib/librte_net.a.p/net_rte_net.c.o.d -o lib/librte_net.a.p/net_rte_net.c.o -c ../../lib/net/rte_net.cIn file included from ../../lib/net/rte_net.c:16:0:../../lib/net/rte_mpls.h:61:1: error: =E2=80=98rte_mpls_push_over_l2=E2=80=99 defined but not used [-Werror=3Dunused-function] rte_mpls_push_over_l2(struct rte_mbuf **m, cons= t struct rte_mpls_hdr *mp) ^cc1: all warnings being treated as errors[99/3060] Compiling C object lib/librte_vhost.a.p/vhost_virtio_net.c.oninja: build stopped: subcommand failed.* The same warning leads to the failure of the following checks: *ci/github-robot: build* *ci/iol-x86_64-unit-testing* *ci/iol-x86_64-compile-testing* and warning in the following check: *ci/iol-testing* Although I have added test cases under app/ in a new file called test_mpls.c and adjusted its setting in meson.build, the problem is still occurring. As per my understanding, I need to use these new functions in lib/net/rte_net to remove this warning, but I believe that the tests in the app/ directory should be sufficient. Could you please suggest a workaround to remove this warning? I would greatly appreciate any guidance or assistance you can provide. --000000000000cc2adc05f565f469 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello, devs!
I hope you all are doing well!
=
I am currently working on a new patch version for "[PAT= CH v2] lib/net: add MPLS insert and strip functionality". However, I a= m facing an error when running the devtools/test-meson-build.sh script. The= error is related to unused functions in rte_mpls.h that is causing warning= s to be treated as errors, leading to the build failure. Following is the e= rror snippet:

[50/3060] Compiling C object= lib/librte_net.a.p/net_rte_net.c.o
FAILED: lib/librte_net.a.p/net_rte_n= et.c.o
gcc -Ilib/librte_net.a.p -Ilib -I../../lib -Ilib/net -I../../lib/= net -I. -I../.. -Iconfig -I../../config -Ilib/eal/include -I../../lib/eal/i= nclude -Ilib/eal/linux/include -I../../lib/eal/linux/include -Ilib/eal/x86/= include -I../../lib/eal/x86/include -Ilib/eal/common -I../../lib/eal/common= -Ilib/eal -I../../lib/eal -Ilib/kvargs -I../../lib/kvargs -Ilib/metrics -I= ../../lib/metrics -Ilib/telemetry -I../../lib/telemetry -Ilib/mbuf -I../../= lib/mbuf -Ilib/mempool -I../../lib/mempool -Ilib/ring -I../../lib/ring -pip= e -D_FILE_OFFSET_BITS=3D64 -Wall -Winvalid-pch -Wextra -Werror -O2 -g -incl= ude rte_config.h -Wcast-qual -Wdeprecated -Wformat -Wformat-nonliteral -Wfo= rmat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs = -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -= Wundef -Wwrite-strings -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC = -march=3Dnative -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -DCC_X86_64_S= SE42_PCLMULQDQ_SUPPORT -DRTE_LOG_DEFAULT_LOGTYPE=3Dlib.net -MD -MQ lib/librte_net.a.p/net_rte_net.c.o -MF lib/librte_ne= t.a.p/net_rte_net.c.o.d -o lib/librte_net.a.p/net_rte_net.c.o -c ../../lib/= net/rte_net.c
In file included from ../../lib/net/rte_net.c:16:0:
../= ../lib/net/rte_mpls.h:61:1: error: =E2=80=98rte_mpls_push_over_l2=E2=80=99 = defined but not used [-Werror=3Dunused-function]
=C2=A0rte_mpls_push_ove= r_l2(struct rte_mbuf **m, const struct rte_mpls_hdr *mp)
=C2=A0^
cc1:= all warnings being treated as errors
[99/3060] Compiling C object lib/l= ibrte_vhost.a.p/vhost_virtio_net.c.o
ninja: build stopped: subcommand fa= iled.


The same warning leads to the= failure of the following checks:
ci/github-robot: build
ci/iol-x86_64-unit-testing
ci/iol-x86_64-compile-testing
and warning in the following check:
ci/iol-testing

Although I have added test cases under app/ in= a new file called test_mpls.c and adjusted its setting in meson.build, the= problem is still occurring.
As per my understanding, I need to u= se these new functions in lib/net/rte_net to remove this warning, but I bel= ieve that the tests in the app/ directory should be sufficient. Could you p= lease suggest a workaround to remove this warning?

I would greatly appreciate any guidance or assistance you can provide.

--000000000000cc2adc05f565f469--