Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Sep 2017 22:37:01 -0700
From:      John-Mark Gurney <jmg@funkthat.com>
To:        Darius Mihai <dariusmihaim@gmail.com>
Cc:        freebsd-virtualization@freebsd.org, freebsd-arm@freebsd.org
Subject:   Re: Cross-compiling socat
Message-ID:  <20170926053701.GT64616@funkthat.com>
In-Reply-To: <CAPj=67twLBUm5ks5i_F7GfiLMiptJMSeM5jk3aXn-p14ej2rgQ@mail.gmail.com>
References:  <CAPj=67twLBUm5ks5i_F7GfiLMiptJMSeM5jk3aXn-p14ej2rgQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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?20170926053701.GT64616>