From owner-freebsd-arm@freebsd.org Tue Sep 26 05:37:07 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D7801E2FAF9; Tue, 26 Sep 2017 05:37:07 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gate2.funkthat.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B8B8C7756C; Tue, 26 Sep 2017 05:37:07 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (localhost [127.0.0.1]) by gold.funkthat.com (8.15.2/8.15.2) with ESMTPS id v8Q5b1W2051411 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 25 Sep 2017 22:37:01 -0700 (PDT) (envelope-from jmg@gold.funkthat.com) Received: (from jmg@localhost) by gold.funkthat.com (8.15.2/8.15.2/Submit) id v8Q5b1vD051410; Mon, 25 Sep 2017 22:37:01 -0700 (PDT) (envelope-from jmg) Date: Mon, 25 Sep 2017 22:37:01 -0700 From: John-Mark Gurney To: Darius Mihai Cc: freebsd-virtualization@freebsd.org, freebsd-arm@freebsd.org Subject: Re: Cross-compiling socat Message-ID: <20170926053701.GT64616@funkthat.com> Mail-Followup-To: Darius Mihai , freebsd-virtualization@freebsd.org, freebsd-arm@freebsd.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 11.0-RELEASE-p7 amd64 X-PGP-Fingerprint: D87A 235F FB71 1F3F 55B7 ED9B D5FF 5A51 C0AC 3D65 X-Files: The truth is out there X-URL: https://www.funkthat.com/ X-Resume: https://www.funkthat.com/~jmg/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? User-Agent: Mutt/1.6.1 (2016-04-27) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (gold.funkthat.com [127.0.0.1]); Mon, 25 Sep 2017 22:37:01 -0700 (PDT) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Sep 2017 05:37:08 -0000 Darius Mihai wrote this message on Mon, Sep 25, 2017 at 13:58 +0300: > I am currently implementing the VirtIO devices for bhyve on ARM, more > specifically the VirtIO-console device. > > However, I am stuck since I need to use 'socat' on the host, but > cross-compiling always fails (the ports do not seem to have a > straight-forward make system for cross-compiling as far as I could tell). > I have tried using `./configure --host=amd64 --build=armv6 > CC=arm-none-eabi-gcc`, > in the 'work/socat-1.7.3.2' directory, but this doesn't seem to work. > > If anyone could provide any insight, it would be greatly appreciated. You shoudl be able to do a toolchain TARGET_ARCH=armv6 to build a cross build environment, and then you can run make buildenv to launch a shell to build socat in this environment... I've done it this way in the past, though I forget if it needs a complete buildworld to work, or if toolchain is enough.. There also appears to be the xdev-build and xdev-install which I think install them into the current environment which you can use... Though I'm not sure if the libraries and other things are built as I've only used it once a long time ago.. Hope this helps. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."