From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f44.google.com (mail-oi0-f44.google.com [209.85.218.44]) by dpdk.org (Postfix) with ESMTP id 4595058E6 for ; Sun, 3 Aug 2014 12:35:56 +0200 (CEST) Received: by mail-oi0-f44.google.com with SMTP id x69so3819641oia.17 for ; Sun, 03 Aug 2014 03:38:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=aKvIVZQOwxphAsyMBQUiIKLtj0JyaP9+uLsUzLXbYBw=; b=LUZlICUlbRtdC0lRykt/rsjRurQI8Te2/Cy8Jg56vb4OF53BeHRBtkDlZnRd18i3O9 jVxh8DQ3oFZIus2Sky2/pk4lnPsDuIKbEP7MDebX+ey+XQEHQCfem0YcXqLFPoDzyHGt UVWlBuTWAEEeXMukjTsdxUAjQrsm7xS8jNCO5hNJRJ7kTpld0JPNZ24yAuImOiOCr2GX VA0LmsNXwVaBJN0Xas074K73og20wxITUiN4KHH/Fd5hukf6zx+48m/uQRepSK9i9CRR +oA5PCys5VNvsbOncy+HiZX1wSHbYvrR8EfGbGK4v8GvsT2ury5F+cvMwio+TDx1cGU5 tCZg== X-Gm-Message-State: ALoCoQnf8wZp5cUkbYmEBlbyg9azyXYspm13Tdiy0Om+3bu1efXrirmwptJQevve0l6kiBQpoFEL MIME-Version: 1.0 X-Received: by 10.60.47.13 with SMTP id z13mr23319814oem.71.1407062288938; Sun, 03 Aug 2014 03:38:08 -0700 (PDT) Received: by 10.202.55.198 with HTTP; Sun, 3 Aug 2014 03:38:08 -0700 (PDT) In-Reply-To: <20140802164600.GA9312@mhcomputing.net> References: <20140801175138.GA31733@mhcomputing.net> <20140802152904.GA9064@mhcomputing.net> <20140802154310.GA9104@mhcomputing.net> <20140802164600.GA9312@mhcomputing.net> Date: Sun, 3 Aug 2014 13:38:08 +0300 Message-ID: From: Alex Markuze To: Matthew Hall Content-Type: text/plain; charset=UTF-8 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] Debugging EAL PCI / Driver Init X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Aug 2014 10:35:56 -0000 Hi Matt, Dev I'm Trying to compile ann app linking to dpdk and dpdk based libs. And I'm seeing the same issue you've reported. The probe function doesn't seem to find any ixgbevf(SRIOV VM) ports. Same code compiled as a dpdk app works fine. In your solution to this issue you are referring to -lintel_dpdk? I couldn't find any reference to it. Thanks Alex. On Sat, Aug 2, 2014 at 7:46 PM, Matthew Hall wrote: > On Sun, Aug 03, 2014 at 01:37:06AM +0900, Masaru Oki wrote: >> cc links library funtion from archive only if call from other object. >> but new dpdk pmd library has constractor section and not call directly. >> ld always links library funtion with constractor section. >> use -Xlinker, or use ld instead of cc. > > Hello Oki-san, > > The trick to fix it was this, I finally found it in the example Makefiles with > V=1 flag. > > -Wl,--whole-archive -Wl,--start-group -lintel_dpdk -Wl,--end-group -Wl,--no-whole-archive > > Thank you for the advice you provided, I couldn't have fixed it without your > suggestions... it got me to look more closely at the linking. Importantly, > "-Wl,--whole-archive" includes the entire archive whether or not it's called > from other objects, so we don't lose the constructors, just like you said. > > Matthew.