From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) by dpdk.org (Postfix) with ESMTP id 0CA901C01 for ; Sat, 20 Oct 2018 07:07:15 +0200 (CEST) Received: by mail-wr1-f51.google.com with SMTP id y16so39419397wrw.3 for ; Fri, 19 Oct 2018 22:07:14 -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=IhmUD+wUZSAT/Rue3IbN3ipE+/e0cmH4R0f5pXOmJps=; b=ntKR3Tel0QlEhtvUQc/YHuYq8apNQT4l+Rzk4yed2lGuqop1tkEYTmYuk5EgYJUTPT RU2kI/nwcVP2yyir3hKk+EhWVQV1BR6fulOOlicpTaK3rwXQz8eHIinbiXoBcVh2slwq O5GqLOShxEMD7VATse2PyPtJu52L3ZO6f4mFoAtXWKYkAFiwSvoYftRj9/2qlQ8ei63a w6AJN8pNOUusywZNiAT7bgATEZFnKmI2t2Rt1qfJQTN4KLFKRVX01h7wl5tododN8jJV 74yREqGcBTDLd3U39uGiaRpKTjeyF0JB+7nQKc3TGWEYIudK5n6iaq8GWQftHLGZBZP3 E12g== 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=IhmUD+wUZSAT/Rue3IbN3ipE+/e0cmH4R0f5pXOmJps=; b=V3Nafkj3nw9At7RKGoNDjZHyGLi63W4s+xbeNFRP/iY8T3KNEs2MwtyneyTF8wg3S6 H+AcqW+v8SJ/bJ8DHFZ252pMSDEu5TeP52YWZAGjTV1aiZyN0YYrsXMFHaf0jvhfYunA /y+3LkXqK4hd5KRVnxIjXIWESXKBd4K9m6Wk8uH4bsMLCGX1A/wO4FUs07PRDZrCREiz aNxE7+39dWTX2KbetNNAnT8AQ7yX7E1PYmUBjjMqCLM7moMnZjaEY0ZAHpF8hPUcul4j m1WhP7s0uLfAUDW0z65hm73Bz/5TT+I50CZT/DCW3cLD9apSsmnpJUjT8liRtIH7DUwR 3/9g== X-Gm-Message-State: ABuFfoiYdKOtf7sdcUgw8GoMG/mq5hH37lujb2m39/4E44VYLZkybZBx ommbpKE9bdugNTSdA2d9pX1QurEtu8YevHHvtUM= X-Google-Smtp-Source: ACcGV62W/Xg7hPq1PB6uHe+sM5LSGnrnjxs2G4IN9XeIhJijzkS2IOadXLtPVmDih3AS2srbQ662dNjg9uoH4BszvFU= X-Received: by 2002:a5d:4292:: with SMTP id k18-v6mr35686647wrq.225.1540012034429; Fri, 19 Oct 2018 22:07:14 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Shyam Shrivastav Date: Sat, 20 Oct 2018 10:36:57 +0530 Message-ID: To: Chaitanya.Shubhachint@netscout.com Cc: dev@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] Build DPDK for different target machine. X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Oct 2018 05:07:15 -0000 I am doing same but including dpdk libraries with application, you can do same. Other thing to try, copy the shared libraries from the build machine into targets instead of building them on targets. On Fri, Oct 19, 2018 at 9:55 PM Shubhachint, Chaitanya < Chaitanya.Shubhachint@netscout.com> wrote: > Hello, > > I am trying to build DPDK library set (shared) so that there are somewhat > portable. I want to build them once on a designated build machine and run > them on other machines of similar architecture. I can build DPDK and use it > locally successfully but running them on a different target machine always > gives me core dump with 'Illegal instruction'. > > I am building with > make install T=x86_64-native-linuxapp-gcc > export RTE_TARGET=x86_64-native-linuxapp-gcc > and CONFIG_RTE_BUILD_SHARED_LIB=y > > I have tried setting CONFIG_RTE_MACHINE, as "default" or "snb" but that > does not help. > > Help is much appreciated. Details of Build machine and target machine > below: > > Thanks > Chai. > > Build machine: > DPDK_Build/dpdk-18.08# lscpu > Architecture: x86_64 > CPU op-mode(s): 32-bit, 64-bit > Byte Order: Little Endian > CPU(s): 8 > On-line CPU(s) list: 0-7 > Thread(s) per core: 1 > Core(s) per socket: 8 > Socket(s): 1 > NUMA node(s): 1 > Vendor ID: GenuineIntel > CPU family: 6 > Model: 79 > Model name: Intel(R) Xeon(R) CPU E5-2640 v4 @ 2.40GHz > Stepping: 1 > CPU MHz: 2399.998 > BogoMIPS: 4799.99 > Hypervisor vendor: VMware > Virtualization type: full > L1d cache: 32K > L1i cache: 32K > L2 cache: 256K > L3 cache: 25600K > NUMA node0 CPU(s): 0-7 > Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr > pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss ht syscall nx > pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology > tsc_reliable nonstop_tsc cpuid aperfmperf pni pclmulqdq ssse3 fma cx16 pcid > sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c > rdrand hypervisor lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single > pti fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 invpcid rtm rdseed adx smap > xsaveopt dtherm ida arat pln pts > > > Target Machine: > $lscpu > Architecture: x86_64 > CPU op-mode(s): 32-bit, 64-bit > Byte Order: Little Endian > CPU(s): 6 > On-line CPU(s) list: 0-5 > Thread(s) per core: 1 > Core(s) per socket: 6 > Socket(s): 1 > NUMA node(s): 1 > Vendor ID: GenuineIntel > CPU family: 6 > Model: 45 > Model name: Intel(R) Xeon(R) CPU E5-2667 0 @ 2.90GHz > Stepping: 7 > CPU MHz: 1682.069 > CPU max MHz: 3500.0000 > CPU min MHz: 1200.0000 > BogoMIPS: 5785.61 > Virtualization: VT-x > L1d cache: 32K > L1i cache: 32K > L2 cache: 256K > L3 cache: 15360K > NUMA node0 CPU(s): 0-5 > Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr > pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe > syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good > nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor > ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic > popcnt tsc_deadline_timer aes xsave avx lahf_lm epb pti tpr_shadow vnmi > flexpriority ept vpid xsaveopt ibpb ibrs stibp dtherm ida arat pln pts > >