From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f169.google.com (mail-io0-f169.google.com [209.85.223.169]) by dpdk.org (Postfix) with ESMTP id E9FC969D8 for ; Tue, 14 Mar 2017 08:56:41 +0100 (CET) Received: by mail-io0-f169.google.com with SMTP id b140so5351490iof.1 for ; Tue, 14 Mar 2017 00:56:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stormmq-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=3iRo3WuhmFcjXOGKsQr3rBo54UrX4cm4Bnxu6ys2W2c=; b=UiTQZzyG6iKUYNzpYXME6AzBrC+IbDYuZP6LnP8Xa7zrTHwLXykkh6CLBwaa/3j3Zb kogpDYFyxirOEeQLTIh/Z/5Pk+/ZQRLwqqpTwhpAQDI4iGEJE3XLW0dBmKY6LLNKSASD Vd2kOBQfS4sHTSB2Bcz1b2OhUBQN/fz0wb5hW+8zLUPVONTMUyNmRh56czXl4eCyDyrZ JBQ2wu3UYUiu9gbr6Jpwo7xwVfHhRB+BPBDszpOJjpTgIq2KfyrdTWxoP6jDPFXu0L9i HRFRfzQAmv2Mwbj6Vt+tOVvj+XQ4cjDScXoLs1lq0b6gdkEbHmigqGoyXdcS7DbTdsYH 4CVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=3iRo3WuhmFcjXOGKsQr3rBo54UrX4cm4Bnxu6ys2W2c=; b=MLGS1qCRnFeQCNV2hM71+/feo4MZtQFMKXadnaGMKYmtnVZasK2rqA/voI+2Qfgs5w bzZcFaylj4gYtDKOG/kmCCuThIE6dEXTOIY5imzCKQM3sZGnbp6vcjw2k69gbI/JGSLE URDDTrZmtSUMPDnSylj6Kaulf4RLJC8i+lDkJ5tgShaUS1AhqAo7oTbcbiTBUuUr7xun QSUtIDCysIsxo09HuFO2Ri+hV48Syy3QC2AK0+lthjTeVuF81BShgphY5MlaDmAkMP7n Dw+ynVYY2nwLrJQbz9lDaR/YIhfd7GFwkmUv+UNmckAmtnoiyT2tMhSpPYK8Fqs8c342 smrg== X-Gm-Message-State: AMke39k+sx6e5UWrA7ZqMozWhTboK6pbNRugTvkBIIanOGR30xhUaX049ytPt9AlKYKwvGwzG/QTSUtZwERSFA== X-Received: by 10.107.6.212 with SMTP id f81mr29899151ioi.132.1489478200855; Tue, 14 Mar 2017 00:56:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.101.3 with HTTP; Tue, 14 Mar 2017 00:56:40 -0700 (PDT) X-Originating-IP: [185.94.189.170] From: Raphael Cohn Date: Tue, 14 Mar 2017 07:56:40 +0000 Message-ID: To: dev@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] Changes to DPDK 17.02 to cross compile for Linux on Mac OS X 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: Tue, 14 Mar 2017 07:56:42 -0000 Hi, If anyone's interested, there are a few small changes needed to pmdinfogen to get it to cross-compile using Homebrew on Mac OS X. These aren't really patch worthy, as my changes will break it for other BSD-based systems. Firstly local libelfPrefix="$(brew --prefix libelf)" local extra="-I${libelfPrefix}/include/libelf -I${libelfPrefix}/include -isystem${dpdkSrcDir}/buildtools/pmdinfogen" sed -i -e 's;-g;-g '"$extra"';g' buildtools/pmdinfogen/Makefile sed -i -e 's;#include ;#include "endian.h";g' buildtools/pmdinfogen/pmdinfogen.h Secondly, create a simple endian.h file inside buildtools/pmdinfogen. There are a few ones floating around on the web. Thirdly, create a stripped down elf.h inside buildtools/pmdinfogen. There are a few public domain ones floating around on the web. I'm not sure about the copyright status of these, so I've not linked to them. I'm using these changes currently as part of a Rust crate wrapping DPDK, called `dpdk-sys` (it has a mid-level Rust wrapper called `dpdk`). It compiles but it's early days - see https://github.com/lemonrock/dpdk . Raph