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 196BEA0524; Tue, 1 Jun 2021 10:03:11 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CF9DF40041; Tue, 1 Jun 2021 10:03:10 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 58DEF40040 for ; Tue, 1 Jun 2021 10:03:09 +0200 (CEST) IronPort-SDR: nLR0xWvzEWt91Pks2W/pP+AzG8J2BhbIO/B0GzQK09h85yI3Re52CT7sWGeK1TT7IGVpIk2fDH ZTSoj8lHTWxw== X-IronPort-AV: E=McAfee;i="6200,9189,10001"; a="183858708" X-IronPort-AV: E=Sophos;i="5.83,239,1616482800"; d="scan'208";a="183858708" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jun 2021 01:03:08 -0700 IronPort-SDR: G8UdYzXNDIo5keTdBB9bUC/8yBg8DvwjdTaFPlqNp9MiDsHTA4wAbmkvRgCMFBj9javFdHmPO1 mH4rESoc57kA== X-IronPort-AV: E=Sophos;i="5.83,239,1616482800"; d="scan'208";a="399212299" Received: from bricha3-mobl.ger.corp.intel.com ([10.252.26.222]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-SHA; 01 Jun 2021 01:03:06 -0700 Date: Tue, 1 Jun 2021 09:03:01 +0100 From: Bruce Richardson To: Raunak Laddha Cc: "dev@dpdk.org" , Mike Banatt Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [dpdk-dev] Problem while running dpdk 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" On Thu, May 27, 2021 at 10:05:39PM +0000, Raunak Laddha wrote: > Hello, > I am using dpdk 20.11.1 . I tried to use your resource to build a custom application which uses dpdk. I compiled my app using meson and makefile to see if I get different result for my issue. I have used pkg-config to load cflags and ldflags in my application and linking it as a static library. > Problem I am facing: > No buses are loaded. I can see that RTE_INIT_PRIO is used as constructor to load the buses. But in my application, buses are not loaded. > I tried to run the dpdk app named test-pipeline to check if it works and it does in that case. But same application with my makefile or meson file does not work. > First call in my program is rte_eal_init(argc, argv); (the init call of dpdk). > My app gets compiles. Also verified cflags and ldflags to check if dpdk flags are added. > My assumption is whatever RTE_INIT_PRIO is loading, it gets loaded correctly in dpdk test-pipeline app but not in my custom app. > Is there any config I am missing? > I have attached the makefile and meson file. > > Thanks, > Raunak Hi Raunak, I'm afraid that the attachments got stripped on the email. To help resolve the problem you encountered, the first thing to check would be the actual link-command used when linking your app. Check that the drivers are being linked into the static binary appropriately. Also, depending on the Linux distro in use, some versions of pkg-config have a problem with reordering the linker flags, so I'd recommend installing and using pkgconf package rather than pkg-config to remove this as a source of error. Regards, /Bruce