From owner-freebsd-virtualization@freebsd.org Tue Sep 26 05:42:53 2017 Return-Path: Delivered-To: freebsd-virtualization@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 E7762E2FE34; Tue, 26 Sep 2017 05:42:53 +0000 (UTC) (envelope-from dariusmihaim@gmail.com) Received: from mail-qt0-x236.google.com (mail-qt0-x236.google.com [IPv6:2607:f8b0:400d:c0d::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A0DCB77A57; Tue, 26 Sep 2017 05:42:53 +0000 (UTC) (envelope-from dariusmihaim@gmail.com) Received: by mail-qt0-x236.google.com with SMTP id b1so9247432qtc.4; Mon, 25 Sep 2017 22:42:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=u8WG4Mk3OeAy4U6AF7RxJV9yqyA+X5st8rOaY/su/r4=; b=EjqhKKRjHFgte74r216W4HK/nEEMA9xQRYmNy/i0Fo1tH4jRgIcEMkzoqGearXaHao 5YLTNoZc2Wf1cwcH5FtnwlhqXutB0FJGkwf4FXqM/gXP4eGgxt4dgZum9O/ciUqOjRvO mUch26Z/px+KyocpuysRnfFjDTnSmEY52CUJNVhKGRfOu3NG7v3vu9wfBjcX4pZs9iao kEFqdmRMKxGwH0ginOFgeQygTcE640QvjDKotmCVC374jzbGneyRY6+AqzpBsuwGwmOP fLNQ8gyhRC0sosxQ8TqbSJdsm+trbRFUgtm3VahgimJ8WX7MFikO5Eo4Inn//xL/S+iF Ui1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=u8WG4Mk3OeAy4U6AF7RxJV9yqyA+X5st8rOaY/su/r4=; b=MitahxA7OEwaiuFrf+Pgqfi6YNPQINnknVH65E6UjiMyph6XMilCdBaEPmr6kWzcrY JAiWyplSCO/lXNmtGzCBdvCdQzPHpORntvRHQ9uwL6v3vtAltHP9shfWsRyU4QKMP3x0 fZFShLtaUjb/KLR7+JCvTs2ts7eXXPeEdPrBUISTk4tVSVuHE1USHbswgXY41muhiXTq f8YUAxqyyXhMN4I5LkAhBBrT7QTD6npw1v4AsawF8oWZc9p6hibfMA6FZOK4NMmhehYI HKehwNJ37ZODxwIgqzRhSsZ+0HKkqrRJ5DIM4RDlevu/q1uh4A4E5lPQlB87mIWLSfmY KAOg== X-Gm-Message-State: AHPjjUhI/bkhF/Yy1f6HNZNvaj6dwJHTzEz6nOeEeYL2ZZuWr5vhXLHi M+1iB5x4yXYZjZb/7nzMr2fURKVA53VdRSVWZSMBOw== X-Google-Smtp-Source: AOwi7QBL2h3S6rGTe4TbThHkmLTLhp24qXrn3DA37aG9lVllC/xjaZjJ+bx8A8UsdOYjxbuF92YjVlw69uLgV0Y0F1I= X-Received: by 10.200.34.167 with SMTP id f36mr14151869qta.173.1506404572558; Mon, 25 Sep 2017 22:42:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.47.171 with HTTP; Mon, 25 Sep 2017 22:42:52 -0700 (PDT) Received: by 10.200.47.171 with HTTP; Mon, 25 Sep 2017 22:42:52 -0700 (PDT) In-Reply-To: <20170926053701.GT64616@funkthat.com> References: <20170926053701.GT64616@funkthat.com> From: Darius Mihai Date: Tue, 26 Sep 2017 08:42:52 +0300 Message-ID: Subject: Re: Cross-compiling socat To: freebsd-virtualization@freebsd.org, freebsd-arm@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Sep 2017 05:42:54 -0000 Hello, Thank you for the advice. For socat I have downloaded the precompiled version available on pkg.freebsd.org, but I will use your method, should the need for another ported binary arise. Have a great day, Darius On Sep 26, 2017 8:37 AM, "John-Mark Gurney" wrote: > 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." >