Cross-compiling socat

Darius Mihai dariusmihaim at gmail.com
Tue Sep 26 05:42:54 UTC 2017


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 at 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."
>


More information about the freebsd-virtualization mailing list