From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by dpdk.org (Postfix) with ESMTP id 17D793977 for ; Tue, 15 Nov 2016 17:33:06 +0100 (CET) Received: by mail-wm0-f47.google.com with SMTP id f82so9991190wmf.1 for ; Tue, 15 Nov 2016 08:33:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=Set4t8jkqfW5wvCQFX2Jx0QMt9b/ebFwfeHTZMDLxGE=; b=gUWNn6mgRwdrrKrFv567dcCvJy5sg94dBm7nhuavbLdb2xu0hLB/d+bCQIEpJmBRQE UhPpb8xyW3DLMUQyaWu2gzVIOeg63DaJ2vW8PLZ/rVmqYXyJrwHdXdW35PB2wDMIr6hD 6k2Czno6LfGhUToKYonA42eWURUo40RdPQP+RCWvMoTv28zi6/U9d7ClJsLgL/WkKzpz NJYk79N7lF5+aA9LxiO9jMen47bNCqSG0tNCBulyTEXkMcJPC30Zc3InZD6UfRDloAWx mPGOwSXDXuqm3CPa0uZ3tqpwn4K/C23OPD1XAT2g1QkzOXNtDTJjh/EHcImEDmqZIe3J rqqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=Set4t8jkqfW5wvCQFX2Jx0QMt9b/ebFwfeHTZMDLxGE=; b=XNiLapenaRYvl4mXgsijJx4ITNiDOzptt5BipRTTLdxV3MFAp06XESEFBS3ifdTCd/ j3f/28IdHKRSxOD+/oficklGFDsrbll12mZdjBfWydd91I8+boiZyCzJ/uURPbztObwd QKkjXRIy+hwgsSlyJBvmLoAq48mU0YzjoaSYYLWpIoxvqzpl1HsnBqJ8aRdGesMad0xK 1nxD/UZ4XHQH5oQOJDmuEmOul3rjbBgGQmoU96+F38uKkE84BingYL9NOkefxySinpBO LsmmlEI9kzMRryutUJB9rPBl1KRMSDKODlq1TSSfJhmg5DiwJFZTVs1ZSYv5JW1xlo60 k34A== X-Gm-Message-State: ABUngvdps7SYBa5c8vFFjohZPjaxbe48SJ6/aUuFgwLVQssplAtyhJMRPUS0T3ckr5ZfrCJ7 X-Received: by 10.194.142.243 with SMTP id rz19mr24571859wjb.132.1479227585701; Tue, 15 Nov 2016 08:33:05 -0800 (PST) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id f76sm5105281wmd.15.2016.11.15.08.33.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Nov 2016 08:33:05 -0800 (PST) From: Thomas Monjalon To: Neil Horman Cc: dev@dpdk.org, Hemant Agrawal , Jerin Jacob , Jerin.Jacob@cavium.com, Jan Viktorin Date: Tue, 15 Nov 2016 17:33:04 +0100 Message-ID: <1735931.lIL2RbIZ06@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <20161115142750.GA11283@hmsreliant.think-freely.org> References: <20161115142750.GA11283@hmsreliant.think-freely.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] pmdinfogen issues: cross compilation for ARM fails with older host compiler 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: Tue, 15 Nov 2016 16:33:06 -0000 2016-11-15 09:27, Neil Horman: > On Tue, Nov 15, 2016 at 09:34:16AM +0000, Hemant Agrawal wrote: > > > > On Fri, Nov 11, 2016 at 10:34:39AM +0000, Hemant Agrawal wrote: > > > > > Hi Neil, > > > > > Pmdinfogen compiles with host compiler. It usages rte_byteorder.h > > > > > of the target platform. [...] > > > Yeah, so what we need is a way to get to the host version of rte_byteorder.h > > > when building in a cross environment > > > > > +1 > > > Actually, looking at this, I think we're 90% there anyway. The buildtools > already uses the hostapp.mk file (as it should), to target the host build > system, rather than any cross target, so we're good there. The only question > is, should we be using rte_byteorder.h at all, and I think the answer is no, we > shouldn't. I assert that because the byteorder file is configured for the > target, not the host, and so we shouldn't be touching it at all. Instead we > should just be using the posix htobe*/htole*/letoh*/betoh* variants to do the > endian conversion, as those are always configured to work on the local build > host. Yes there are 2 possible fixes: - get a host version of EAL - do not use EAL for host applications As Neil, I think there is no point in using EAL for a host application.