From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk0-f54.google.com (mail-vk0-f54.google.com [209.85.213.54]) by dpdk.org (Postfix) with ESMTP id F169F2BEF for ; Sat, 19 Mar 2016 00:40:28 +0100 (CET) Received: by mail-vk0-f54.google.com with SMTP id e185so159775589vkb.1 for ; Fri, 18 Mar 2016 16:40:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=jfvCcyZo7HTHhqBf5x0La5UEnyZGqHr3S4P4rMVAKhg=; b=bz5VbhbRSu8gW+A6NY2KOhVkbMY4wyseNTJvcHxzrP7RhTd0euzVY2wctqrHtGOimx YHo0FyEZkbNugRSGvKcyP5pe8A6u6Q7cnxN1bALShp2aroYCNIRi48OFclAUDeYbYLvY lMRQXkj2CUHW+u4VhTBarfLr3yAUiX5bquRGChjkNgJZKWzFtBWx9YsNPP22PJEGK+GS kxCfxPqZGsELMtRGS2E650oqejI6HtHT6DZdcwd4IX/oyfyDlIxn7uDqcrhiOiWFMEGo 1vhe0hJz/goVT+e8legVL0FyOl8w0oKa3H3Duvu0qyDELzJRQguBCE6YQ6Ypo92cIoBq ObXQ== 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; bh=jfvCcyZo7HTHhqBf5x0La5UEnyZGqHr3S4P4rMVAKhg=; b=ShnU+A5YR1R1J6dR3L2eccFufD8Lk9c+fv1cO7TDx8jMNcc5YA0aIbCinhA3JXFMnc GV9ZZ6vpSpghEcl3gBlldX0Eq7m0SImJd0uEn6EsRUVBxUPDPA7L+WpVomMYIbLET/c+ NivtfGRqCxJkabD3YyzzE1SoMtYxAZCf/bIuyw5k/9CNAyq5P/kKTq3v5V2UZ1XCwm2q V00VrNalDUZ/VaDtuBwTv9RjcGy31yVpRGu7TRH4zh5pdhBA2Fd13/dqtrklPrJBV62T 20fm6LQG9mhFEXuJVlQKFbkc9pXXl00yfr1yAp5tU1RE0aXexfnFaww/CyIG9F1eWCeL L2jQ== X-Gm-Message-State: AD7BkJKO/bDIN5x09NkYMiNI9NUI/mNwhoE0Nfnpr9miB6JbD1355edA8GHvrVi+LVG8f2+zXx7UjTueHOMaqQ== MIME-Version: 1.0 X-Received: by 10.31.48.216 with SMTP id w207mr20172986vkw.36.1458344428415; Fri, 18 Mar 2016 16:40:28 -0700 (PDT) Received: by 10.176.64.167 with HTTP; Fri, 18 Mar 2016 16:40:28 -0700 (PDT) In-Reply-To: <20160318215602.GC23135@mhcomputing.net> References: <20160318215602.GC23135@mhcomputing.net> Date: Fri, 18 Mar 2016 16:40:28 -0700 Message-ID: From: Cliff Burdick To: Matthew Hall Cc: users@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] Difficulty With rte_eal_init() X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2016 23:40:29 -0000 In regards to your fix above, how does this change the probing behavior? It seems that it's just combining all the .a files into a single library, right? I still needed to include that whole lost if -D options that the examples use, or it still didn't seem to probe the bus. I must be missing something else as well. Do you mind pasting all of the defines/libraries that you pass into your app to get it to work? Currently the examples in mine pass this large list: -march=native -DRTE_MACHINE_CPUFLAG_SSE -DRTE_MACHINE_CPUFLAG_SSE2 -DRTE_MACHINE_CPUFLAG_SSE3 -DRTE_MACHINE_CPUFLAG_SSSE3 -DRTE_MACHINE_CPUFLAG_SSE4_1 -DRTE_MACHINE_CPUFLAG_SSE4_2 -DRTE_MACHINE_CPUFLAG_PCLMULQDQ -DRTE_MACHINE_CPUFLAG_AVX -DRTE_MACHINE_CPUFLAG_RDRAND -DRTE_MACHINE_CPUFLAG_FSGSBASE -DRTE_MACHINE_CPUFLAG_F16C -DRTE_MACHINE_CPUFLAG_AVX2 -DRTE_COMPILE_TIME_CPUFLAGS=RTE_CPUFLAG_SSE,RTE_CPUFLAG_SSE2,RTE_CPUFLAG_SSE3,RTE_CPUFLAG_SSSE3,RTE_CPUFLAG_SSE4_1,RTE_CPUFLAG_SSE4_2,RTE_CPUFLAG_PCLMULQDQ,RTE_CPUFLAG_AVX,RTE_CPUFLAG_RDRAND,RTE_CPUFLAG_FSGSBASE,RTE_CPUFLAG_F16C,RTE_CPUFLAG_AVX2 -include $(RTE_SDK)/include/rte_config.h -O3 On Fri, Mar 18, 2016 at 2:56 PM, Matthew Hall wrote: > On Fri, Mar 18, 2016 at 02:45:10PM -0700, Cliff Burdick wrote: > > Hi, I've been trying to create a standalone application linked against > > DPDK, and I'm having some issues getting the program to run properly. The > > main problem is that in my standalone app compared to the example code, > > rte_eal_init() from the example code seems to probe the PCI bus, whereas > > mine doesn't. > [SNIP] > > However, when I then tried compiling the dpdk part of my app into a > library > > and linking against it from my main program, the PCI scanning goes away > and > > no devices are found. > > This hoses up every new app developer. Especially me, as I used DPDK before > the PCI probe behavior was changed between versions and got totally lost > when > it broke. You need the following: > > Build Configuration: > > CONFIG_RTE_BUILD_COMBINE_LIBS=y > > Linker Flags (LDFLAGS): > > -Wl,--whole-archive -Wl,--start-group -ldpdk -Wl,--end-group > -Wl,--no-whole-archive > > Sincerely. > Matthew. >