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 5FF17A0547; Mon, 30 Aug 2021 20:41:13 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E78724113C; Mon, 30 Aug 2021 20:41:12 +0200 (CEST) Received: from mail-il1-f172.google.com (mail-il1-f172.google.com [209.85.166.172]) by mails.dpdk.org (Postfix) with ESMTP id 1B2B040DF7 for ; Mon, 30 Aug 2021 20:41:12 +0200 (CEST) Received: by mail-il1-f172.google.com with SMTP id l10so17141736ilh.8 for ; Mon, 30 Aug 2021 11:41:12 -0700 (PDT) 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=SF3KeG4sPqKEROHacGjs7h0Q7UFVL50i2vtf/bfMkV4=; b=JvIEEyZoC7CG0JugvwgLTQ8WbQuEO+1dLi+cjrahdpROAa83dJ80zOfTMwSfnTth6r KnHKifwaADG+T5jWHk1hqCdAlH0RTzmHWQigfbQ8RTiwSKsW996VkhF2bcJJqM0dOWD7 /HfKR6fZkqqo/NiKMc2mcfKDP3QCI+OgGUjqfi++5SpF/p6GNnq7ULqD33qYDKeJXvhQ eskvARXB39ts7NB4Z1kUC7mJdrxDvbmS9mi/IVt91F0eyx0i1o//0T3c6lng1inuXDih MNrRtgin/O9jQwseL6VIY8LS97tIiyeDe6BDZiQn3PCAuAF0A1SPIiy2iYga/Z7QPUgH YbsA== 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=SF3KeG4sPqKEROHacGjs7h0Q7UFVL50i2vtf/bfMkV4=; b=EAeECcoVQBny/HxVFw0iClRmmm1HtqkgQrFZReW1d+IOnnqiAFVzY0jCnRbdT9y55W H/qIgBDgC9bla56QDNNPB6FaAJXypkdKdfAOZrac7eW1BVykW+FsU97Q7FKqVU6ufAtN /BiQMkXNbx7GDNDvm/TtFTcSWFUO+JWE1+wLL0jp1uNR88CSYtU83kuUo4P+gOEUCf/X /ABqN/IDJgCtklRiygy9jOFxziFRsUUksGr3kkefo8FsdbAorBTgU1yCTfiqvRZ7bhjd OfSupZPRPFXb2fqa5c9MDx35QgCdiOuR3BsE+BAhY1Bs+O25dj0KoqYwOB80QQtmpOhN c09w== X-Gm-Message-State: AOAM531/Pmk1D1hbMJmeMWcALyaldJc5skVK53ycFFx0AoQV3UWJ6mUh tvLZkj6wzMQIu/1MO3xUXOthzxOnRw+QOuCzYP42QQXrTn9yCA== X-Google-Smtp-Source: ABdhPJwnNuuz/DLu0mH/WSwf2wzsv8h98RWyxoedTK/9l9PPpOHaFzbx9KsEuSGYbhZ8ZXuDjeZ2UsNr1Dk0RH7e37A= X-Received: by 2002:a05:6e02:78d:: with SMTP id q13mr17558622ils.262.1630348871322; Mon, 30 Aug 2021 11:41:11 -0700 (PDT) MIME-Version: 1.0 References: <5bc2db4b-0cf8-d474-281c-551213c25532@intel.com> In-Reply-To: <5bc2db4b-0cf8-d474-281c-551213c25532@intel.com> From: spyroot Date: Mon, 30 Aug 2021 22:41:00 +0400 Message-ID: To: Ferruh Yigit Cc: dev@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [dpdk-dev] KNI compilation 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" Hi Ferruh, Sorry, I forgot to mention, Yes, I was compiling with -Denable_kmods=true. I just partially found a root cause. The target system Photon OS (It VMware distro) It has 4 kernels variation regular, RT, ESX, security. ( I was using ESX variation that optimized for ESXi but it looks like something is disabled in the kernel that prevents KNI to compile) when I use a regular kernel source tree, it does compile. I was trying to figure out what KNI actually requires from the kernel source tree or what instrumentation I can use it to see the more verbose errors. ninja -v doesn't really provide details. Thank you very much On Mon, Aug 30, 2021 at 9:44 PM Ferruh Yigit wrote: > On 8/30/2021 5:47 PM, spyroot wrote: > > Hi Folks, > > > > I troubleshooting already for a couple of hours but still not clear why > > exactly the build process > > failing on the KNI module. I've tried to disable KNI but it same issue. > > Any ideas what might be a root cause. It x86_64 > > > > > > [1/2] Generating rte_kni with a custom command > > FAILED: kernel/linux/kni/rte_kni.ko > > make -j4 -C /lib/modules/5.10.52-3.ph4-esx/build > > M=/root/dpdk-stable-20.11.2/build/kernel/linux/kni > > src=/root/dpdk-stable-20.11.2/kernel/linux/kni 'MODULE_CFLAGS=-include > > /root/dpdk-stable-20.11.2/config/rte_config.h > > -I/root/dpdk-stable-20.11.2/lib/librte_eal/include > > -I/root/dpdk-stable-20.11.2/lib/librte_kni > > -I/root/dpdk-stable-20.11.2/build > > -I/root/dpdk-stable-20.11.2/kernel/linux/kni' modules > > make: Entering directory '/usr/src/linux-headers-5.10.52-3.ph4-esx' > > make[1]: *** No rule to make target > > '/root/dpdk-stable-20.11.2/build/kernel/linux/kni/kni_misc.o', needed by > > '/root/dpdk-stable-20.11.2/build/kernel/linux/kni/rte_kni.o'. Stop. > > make: *** [Makefile:1821: > /root/dpdk-stable-20.11.2/build/kernel/linux/kni] > > Error 2 > > make: Leaving directory '/usr/src/linux-headers-5.10.52-3.ph4-esx' > > ninja: build stopped: subcommand failed. > > > > Kind Regards, > > Mus> > > > > Hi spyroot (Mus> ?), > > modules already disabled by default, you should be enabling it via > '-Denable_kmods=true' meson option, if you want to disable kni just not > enabling > kmods should be enough. > > btw, I have tried and not able to reproduce the issue in 20.11.2 in my > platforml, kni compiles fine. > Can you confirm you have kernel source installed in your system? > Or to be more specific, does '/usr/src/linux-headers-5.10.52-3.ph4-esx' > patch > has kernel source code? > > And can you please share your full commands for build? > > Cheers, > ferruh >