From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk0-f43.google.com (mail-vk0-f43.google.com [209.85.213.43]) by dpdk.org (Postfix) with ESMTP id 21B20475E for ; Tue, 29 Mar 2016 23:16:46 +0200 (CEST) Received: by mail-vk0-f43.google.com with SMTP id e6so36264636vkh.2 for ; Tue, 29 Mar 2016 14:16:46 -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=zagKXcBSw+4zqTauJa5t9zgPiA53swwU1wNgOVAK6sI=; b=W1WdvEIiiHwH5Z2JzGAXzJbx8Zk9/PkdjP3EBgIhmpgvX91ed2cQw1PS2JzJCv0+GF p16/I3h2xJfkKLWw5EllTx5mTSWOXExQgw2VUwmC7/7KlPmPop1OJjPHLFc+4P0WgCsw rufepSPddEtyrruIDMwGCL5utotKZ775AUxdeAsBakBRvT7T240dwBKi+YpuSbtRwZr/ 28Pycypk2UebiU+lw+zGQteVRxUlX7PcWJ0QuZ8D2BBcUSeOBfjGImAYL2rfjXzpwSlf I/Tmwcg/8mWepFJX6EaNocNdzD3dQ1ra1mAwKOQVz7G7qN2DKZb0OSsn+Aim2UCPTJC3 9VEw== 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=zagKXcBSw+4zqTauJa5t9zgPiA53swwU1wNgOVAK6sI=; b=QXY3I4gst8Or40HQHJ/bV3RK2rACIjEDj+pDxeLKRQWcVUZMo5R187eWZB1aek0CG7 xEt5/XRcciX2B5lowgQYoKXamxMnl8DUms/ShNQBpBGUNWjgTomurX/eDURZtqLOIePn fwxCjk1w6crVR5yRHN5+prNTNUOAMagHUlmIBpKliO2MJmE6rFO2en2EuVVOPh3yBrBn OJSBjcuCbqFDfR2pI+g+qppZXmfDgHEIPIuTr+p3EHlAfNwnWxVX/VRMg1Jky9KbnLlf wvZRDKX3krsrfcuidUGQdrlj+scqwoz8Ak9DOKLhuziS477HOLKvLC66G5iWmjawohdm PuSw== X-Gm-Message-State: AD7BkJLCu2ZUzjU2qTAkVGZdLkopV8CLvevDKe0i7Tx7974Ap1lJDUCiKVtr2YFtKZcUKlBdeq82DpDcdfP51g== MIME-Version: 1.0 X-Received: by 10.176.2.144 with SMTP id 16mr2888983uah.148.1459286205491; Tue, 29 Mar 2016 14:16:45 -0700 (PDT) Received: by 10.176.5.194 with HTTP; Tue, 29 Mar 2016 14:16:45 -0700 (PDT) In-Reply-To: <56EE4053.9060306@linux.vnet.ibm.com> References: <56EE4053.9060306@linux.vnet.ibm.com> Date: Tue, 29 Mar 2016 14:16:45 -0700 Message-ID: From: Cliff Burdick To: gowrishankar Cc: users@dpdk.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: Tue, 29 Mar 2016 21:16:46 -0000 Hi Matthew, sorry for the late response. I'm getting compilation errors when I try to do what you suggested. I should have the same headers included by the l2fwd example. I'm running g++ 4.8.5. Here are the new errors and the compilation line: g++ -I../inc -include ../../dpdk/dpdk-2.2.0/x86_64-native-linuxapp-gcc/include/rte_config.h -isystem../../dpdk/dpdk-2.2.0/x86_64-native-linuxapp-gcc/include -std=3Dc++11 -g -O2 -MT app-Main.o -MD -MP -MF .deps/app-Main.Tpo -c -o app-Main.o `test -f `Main.cpp' || echo './'`Main.cpp ../../dpdk/dpdk-2.2.0/x86_64-native-linuxapp-gcc/include/rte_memcpy.h: In function =E2=80=98void* rte_memcpy(void*, const void*, size_t)=E2=80=99: ../../dpdk/dpdk-2.2.0/x86_64-native-linuxapp-gcc/include/rte_memcpy.h:625:2= : error: =E2=80=98_mm_alignr_epi8=E2=80=99 was not declared in this scope MOVEUNALIGNED_LEFT47(dst, src, n, srcofs); ^ ../../dpdk/dpdk-2.2.0/x86_64-native-linuxapp-gcc/include/rte_memcpy.h:625:2= : error: =E2=80=98_mm_alignr_epi8=E2=80=99 was not declared in this scope MOVEUNALIGNED_LEFT47(dst, src, n, srcofs); ^ ../../dpdk/dpdk-2.2.0/x86_64-native-linuxapp-gcc/include/rte_memcpy.h:625:2= : error: =E2=80=98_mm_alignr_epi8=E2=80=99 was not declared in this scope MOVEUNALIGNED_LEFT47(dst, src, n, srcofs); ^ ../../dpdk/dpdk-2.2.0/x86_64-native-linuxapp-gcc/include/rte_memcpy.h:625:2= : error: =E2=80=98_mm_alignr_epi8=E2=80=99 was not declared in this scope MOVEUNALIGNED_LEFT47(dst, src, n, srcofs); ^ ../../dpdk/dpdk-2.2.0/x86_64-native-linuxapp-gcc/include/rte_memcpy.h:625:2= : error: =E2=80=98_mm_alignr_epi8=E2=80=99 was not declared in this scope MOVEUNALIGNED_LEFT47(dst, src, n, srcofs); ^ ../../dpdk/dpdk-2.2.0/x86_64-native-linuxapp-gcc/include/rte_memcpy.h:625:2= : error: =E2=80=98_mm_alignr_epi8=E2=80=99 was not declared in this scope MOVEUNALIGNED_LEFT47(dst, src, n, srcofs); ^ ../../dpdk/dpdk-2.2.0/x86_64-native-linuxapp-gcc/include/rte_memcpy.h:625:2= : error: =E2=80=98_mm_alignr_epi8=E2=80=99 was not declared in this scope MOVEUNALIGNED_LEFT47(dst, src, n, srcofs); ^ ../../dpdk/dpdk-2.2.0/x86_64-native-linuxapp-gcc/include/rte_memcpy.h:625:2= : error: =E2=80=98_mm_alignr_epi8=E2=80=99 was not declared in this scope MOVEUNALIGNED_LEFT47(dst, src, n, srcofs); ^ ../../dpdk/dpdk-2.2.0/x86_64-native-linuxapp-gcc/include/rte_memcpy.h:625:2= : error: =E2=80=98_mm_alignr_epi8=E2=80=99 was not declared in this scope MOVEUNALIGNED_LEFT47(dst, src, n, srcofs); ^ ../../dpdk/dpdk-2.2.0/x86_64-native-linuxapp-gcc/include/rte_memcpy.h:625:2= : error: =E2=80=98_mm_alignr_epi8=E2=80=99 was not declared in this scope MOVEUNALIGNED_LEFT47(dst, src, n, srcofs); ^ ../../dpdk/dpdk-2.2.0/x86_64-native-linuxapp-gcc/include/rte_memcpy.h:625:2= : error: =E2=80=98_mm_alignr_epi8=E2=80=99 was not declared in this scope MOVEUNALIGNED_LEFT47(dst, src, n, srcofs); ^ ../../dpdk/dpdk-2.2.0/x86_64-native-linuxapp-gcc/include/rte_memcpy.h:625:2= : error: =E2=80=98_mm_alignr_epi8=E2=80=99 was not declared in this scope MOVEUNALIGNED_LEFT47(dst, src, n, srcofs); ^ ../../dpdk/dpdk-2.2.0/x86_64-native-linuxapp-gcc/include/rte_memcpy.h:625:2= : error: =E2=80=98_mm_alignr_epi8=E2=80=99 was not declared in this scope MOVEUNALIGNED_LEFT47(dst, src, n, srcofs); ^ ../../dpdk/dpdk-2.2.0/x86_64-native-linuxapp-gcc/include/rte_memcpy.h:625:2= : error: =E2=80=98_mm_alignr_epi8=E2=80=99 was not declared in this scope MOVEUNALIGNED_LEFT47(dst, src, n, srcofs); ^ ../../dpdk/dpdk-2.2.0/x86_64-native-linuxapp-gcc/include/rte_memcpy.h:625:2= : error: =E2=80=98_mm_alignr_epi8=E2=80=99 was not declared in this scope MOVEUNALIGNED_LEFT47(dst, src, n, srcofs); ^ ../../dpdk/dpdk-2.2.0/x86_64-native-linuxapp-gcc/include/rte_memcpy.h:625:2= : error: =E2=80=98_mm_alignr_epi8=E2=80=99 was not declared in this scope MOVEUNALIGNED_LEFT47(dst, src, n, srcofs); ^ ../../dpdk/dpdk-2.2.0/x86_64-native-linuxapp-gcc/include/rte_memcpy.h:625:2= : error: =E2=80=98_mm_alignr_epi8=E2=80=99 was not declared in this scope MOVEUNALIGNED_LEFT47(dst, src, n, srcofs); ^ ../../dpdk/dpdk-2.2.0/x86_64-native-linuxapp-gcc/include/rte_memcpy.h:625:2= : error: =E2=80=98_mm_alignr_epi8=E2=80=99 was not declared in this scope MOVEUNALIGNED_LEFT47(dst, src, n, srcofs); ^ ../../dpdk/dpdk-2.2.0/x86_64-native-linuxapp-gcc/include/rte_memcpy.h:625:2= : error: =E2=80=98_mm_alignr_epi8=E2=80=99 was not declared in this scope MOVEUNALIGNED_LEFT47(dst, src, n, srcofs); ^ ../../dpdk/dpdk-2.2.0/x86_64-native-linuxapp-gcc/include/rte_memcpy.h:625:2= : error: =E2=80=98_mm_alignr_epi8=E2=80=99 was not declared in this scope MOVEUNALIGNED_LEFT47(dst, src, n, srcofs); ^ ../../dpdk/dpdk-2.2.0/x86_64-native-linuxapp-gcc/include/rte_memcpy.h:625:2= : error: =E2=80=98_mm_alignr_epi8=E2=80=99 was not declared in this scope MOVEUNALIGNED_LEFT47(dst, src, n, srcofs); ^ ../../dpdk/dpdk-2.2.0/x86_64-native-linuxapp-gcc/include/rte_memcpy.h:625:2= : error: =E2=80=98_mm_alignr_epi8=E2=80=99 was not declared in this scope MOVEUNALIGNED_LEFT47(dst, src, n, srcofs); ^ ../../dpdk/dpdk-2.2.0/x86_64-native-linuxapp-gcc/include/rte_memcpy.h:625:2= : error: =E2=80=98_mm_alignr_epi8=E2=80=99 was not declared in this scope MOVEUNALIGNED_LEFT47(dst, src, n, srcofs); ^ ../../dpdk/dpdk-2.2.0/x86_64-native-linuxapp-gcc/include/rte_memcpy.h:625:2= : error: =E2=80=98_mm_alignr_epi8=E2=80=99 was not declared in this scope MOVEUNALIGNED_LEFT47(dst, src, n, srcofs); ^ ../../dpdk/dpdk-2.2.0/x86_64-native-linuxapp-gcc/include/rte_memcpy.h:625:2= : error: =E2=80=98_mm_alignr_epi8=E2=80=99 was not declared in this scope MOVEUNALIGNED_LEFT47(dst, src, n, srcofs); ^ ../../dpdk/dpdk-2.2.0/x86_64-native-linuxapp-gcc/include/rte_memcpy.h:625:2= : error: =E2=80=98_mm_alignr_epi8=E2=80=99 was not declared in this scope MOVEUNALIGNED_LEFT47(dst, src, n, srcofs); ^ ../../dpdk/dpdk-2.2.0/x86_64-native-linuxapp-gcc/include/rte_memcpy.h:625:2= : error: =E2=80=98_mm_alignr_epi8=E2=80=99 was not declared in this scope MOVEUNALIGNED_LEFT47(dst, src, n, srcofs); ^ ../../dpdk/dpdk-2.2.0/x86_64-native-linuxapp-gcc/include/rte_memcpy.h:625:2= : error: =E2=80=98_mm_alignr_epi8=E2=80=99 was not declared in this scope MOVEUNALIGNED_LEFT47(dst, src, n, srcofs); ^ ../../dpdk/dpdk-2.2.0/x86_64-native-linuxapp-gcc/include/rte_memcpy.h:625:2= : error: =E2=80=98_mm_alignr_epi8=E2=80=99 was not declared in this scope MOVEUNALIGNED_LEFT47(dst, src, n, srcofs); ^ ../../dpdk/dpdk-2.2.0/x86_64-native-linuxapp-gcc/include/rte_memcpy.h:625:2= : error: =E2=80=98_mm_alignr_epi8=E2=80=99 was not declared in this scope MOVEUNALIGNED_LEFT47(dst, src, n, srcofs); On Sat, Mar 19, 2016 at 11:16 PM, gowrishankar < gowrishankar.m@linux.vnet.ibm.com> wrote: > Trying CONFIG_RTE_BUILD_SHARED_LIB=3Dy and calling eal_plugin_add() for y= our > dpdk driver .so > could solve this ?. > > Regards, > Gowrishankar > > > On Saturday 19 March 2016 03:15 AM, 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. Th= e >> 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. Here is a snippet from mine and an example: >> >> mine: >> EAL: Virtual area found at 0x7f93ad000000 (size =3D 0x200000) >> EAL: Ask a virtual area of 0x3fc00000 bytes >> EAL: Virtual area found at 0x7f936d200000 (size =3D 0x3fc00000) >> EAL: Ask a virtual area of 0x200000 bytes >> EAL: Virtual area found at 0x7f936ce00000 (size =3D 0x200000) >> EAL: Requesting 512 pages of size 2MB from socket 0 >> EAL: Requesting 512 pages of size 2MB from socket 1 >> EAL: TSC frequency is ~2500000 KHz >> EAL: Master lcore 0 is ready (tid=3Def4e6940;cpuset=3D[0]) >> EAL: lcore 6 is ready (tid=3D699ed700;cpuset=3D[6]) >> EAL: lcore 7 is ready (tid=3D691ec700;cpuset=3D[7]) >> EAL: lcore 4 is ready (tid=3D6a9ef700;cpuset=3D[4]) >> EAL: lcore 1 is ready (tid=3D6c1f2700;cpuset=3D[1]) >> EAL: lcore 2 is ready (tid=3D6b9f1700;cpuset=3D[2]) >> EAL: lcore 3 is ready (tid=3D6b1f0700;cpuset=3D[3]) >> EAL: lcore 5 is ready (tid=3D6a1ee700;cpuset=3D[5]) >> >> example: >> EAL: Requesting 512 pages of size 2MB from socket 1 >> EAL: TSC frequency is ~2500000 KHz >> EAL: Master lcore 0 is ready (tid=3D3019a900;cpuset=3D[0]) >> EAL: lcore 6 is ready (tid=3Daabed700;cpuset=3D[6]) >> EAL: lcore 5 is ready (tid=3Dab3ee700;cpuset=3D[5]) >> EAL: lcore 7 is ready (tid=3Daa3ec700;cpuset=3D[7]) >> EAL: lcore 1 is ready (tid=3Dad3f2700;cpuset=3D[1]) >> EAL: lcore 3 is ready (tid=3Dac3f0700;cpuset=3D[3]) >> EAL: lcore 2 is ready (tid=3Dacbf1700;cpuset=3D[2]) >> EAL: lcore 4 is ready (tid=3Dabbef700;cpuset=3D[4]) >> EAL: PCI device 0000:04:00.0 on NUMA socket 0 >> EAL: probe driver: 8086:1572 rte_i40e_pmd >> EAL: Not managed by a supported kernel driver, skipped >> EAL: PCI device 0000:04:00.1 on NUMA socket 0 >> EAL: probe driver: 8086:1572 rte_i40e_pmd >> EAL: Not managed by a supported kernel driver, skipped >> EAL: PCI device 0000:04:00.2 on NUMA socket 0 >> ... >> >> I even went so far as to port the dpdk part of my C++ code to C, then >> compile it into a standalone executable with the Makefile copied from an >> example. Sure enough, this worked and the PCI bus was scanned. 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. I can't really use the DPDK makefiles easily for my >> entire program since I'm using automake. Has anyone had this issue? >> >> > >