On Wed, Nov 19, 2014 at 07:46:27PM -0800, Dave Huseby wrote:
> Hi everybody,
> 
> In my free time over the last few weeks I have been attempting to
> cross-compile the rust compiler using the same method that was used to
> add support for Dragonfly BSD.  I started with the scripts from the
> Dragonfly effort and fixed them up to work with OpenBSD and Linux.
> All of my code and documentation is here:
> 
> https://github.com/dhuseby/rust-cross-openbsd
> 
> Currently, I'm stuck on stage 3.  The part where all of the object
> files from both OpenBSD and Linux need to be linked together into an
> OpenBSD executable.  I'm pretty certain the reason stage 3 doesn't
> complete is because of the old linker on OpenBSD.  At the bottom of
> the README.md file I discuss some options on what to try next.  I have
> also included build logs of all stages so that other people can see
> the output without jumping through all of the hoops I did.
> 
> My options at this point are this:
> 
> 1. Use the same version compiler/assembler/linker on Linux and OpenBSD
> so that the object files will be more compatible.  Hopefully this will
> allow stage 3 to finish linking.
> 
> 2. Apply my OpenBSD target patches to Rust and build a Linux rust
> compiler that knows how to target OpenBSD.  Then I use Linux emulation
> on OpenBSD to run it to compile itself from scratch.

Linux emul only works on OpenBSD/i386 iirc..

Did you try communicating with the dfly developer to exchange ideas on
the issues you encounter, and the upstream developers ?

Anyway, your effort is appreciated. I'll port servo on top as soon as
rust is working :)

Landry

Attachment: pgpj96M1eCILW.pgp
Description: PGP signature

Reply via email to