Date: Tue, 26 Sep 2017 08:42:52 +0300 From: Darius Mihai <dariusmihaim@gmail.com> To: freebsd-virtualization@freebsd.org, freebsd-arm@freebsd.org Subject: Re: Cross-compiling socat Message-ID: <CAPj=67t_=V4XWoZNFnL36FgdWMKMqxH-vO7%2BrAw4EPMc1BfzeA@mail.gmail.com> In-Reply-To: <20170926053701.GT64616@funkthat.com> References: <CAPj=67twLBUm5ks5i_F7GfiLMiptJMSeM5jk3aXn-p14ej2rgQ@mail.gmail.com> <20170926053701.GT64616@funkthat.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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" <jmg@funkthat.com> 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." >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPj=67t_=V4XWoZNFnL36FgdWMKMqxH-vO7%2BrAw4EPMc1BfzeA>