archives of rust-dev@mozilla.org (2010-2015)
 help / color / mirror / Atom feed
* [rust-dev] Generate Linux executable from rustc on mac
@ 2015-01-17  4:05 C K Kashyap
       [not found] ` <CABtDyP3Kxi7XXg31OiQL3ELaF-a5WaiYY5xeU7JKXQvj=_YgNA@mail.gmail.com>
  0 siblings, 1 reply; 2+ messages in thread
From: C K Kashyap @ 2015-01-17  4:05 UTC (permalink / raw)
  To: rust-dev@mozilla.org

[-- Attachment #1: Type: text/plain, Size: 222 bytes --]

Hi,
I'd like to build executables that can run on Linux using rust on mac. What
configuration do I need to build rustc (on mac) with?

./configure --target=x86_64-unknown-linux-gnu
does not seem to work.

Regards,
Kashyap

[-- Attachment #2: Type: text/html, Size: 356 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [rust-dev] Generate Linux executable from rustc on mac
       [not found]     ` <CAGdT1gp4NsPnEgWfKfP1B3BOq5XEfcu5FOX4EMY2xUD6kLmifA@mail.gmail.com>
@ 2015-01-18  8:23       ` C K Kashyap
  0 siblings, 0 replies; 2+ messages in thread
From: C K Kashyap @ 2015-01-18  8:23 UTC (permalink / raw)
  To: Brian Anderson, rust-dev@mozilla.org

[-- Attachment #1: Type: text/plain, Size: 1792 bytes --]

+rust-dev

On Sun, Jan 18, 2015 at 1:53 PM, C K Kashyap <ckkashyap@gmail.com> wrote:

> Luckily a workaround seems to work for me - I've updated the bug with the
> same -
> ----update in the bug---
>
> For what it's worth I have a workaorund that works for me -
>
> On my mac machine, do the following
> 1. Compile the rust file (that's supposed to emit the static library)
> using --target=x86_64-unknown-linux-gnu -L library_path (library_path is
> the location where I've copied libcompiler-rt.a and libmorestack.a from the
> linux rust build)
> 2. Unarchive the generated .a file (ar x ) and then use the .o files (only
> the necessary .o files) in the final linking
>
> On Sun, Jan 18, 2015 at 8:48 AM, C K Kashyap <ckkashyap@gmail.com> wrote:
>
>> Thanks for pointing out Brian ... I had also opened an issue for this -
>>
>> #21308 - closed it for now.
>>
>> Regards,
>>
>> Kashyap
>>
>>
>>
>> On Sun, Jan 18, 2015 at 1:00 AM, Brian Anderson <banderson@mozilla.com>
>> wrote:
>>
>>> While this would be awesome, the build system generally needs explicit
>>> support for every cross-compile scenario, and I don't believe anybody has
>>> ever done this one yet.
>>>
>>> Here's some previous discussion,
>>> https://github.com/rust-lang/rust/issues/16259
>>>
>>> On Fri, Jan 16, 2015 at 8:05 PM, C K Kashyap <ckkashyap@gmail.com>
>>> wrote:
>>>
>>>> Hi,
>>>> I'd like to build executables that can run on Linux using rust on mac.
>>>> What configuration do I need to build rustc (on mac) with?
>>>>
>>>> ./configure --target=x86_64-unknown-linux-gnu
>>>> does not seem to work.
>>>>
>>>> Regards,
>>>> Kashyap
>>>>
>>>> _______________________________________________
>>>> Rust-dev mailing list
>>>> Rust-dev@mozilla.org
>>>> https://mail.mozilla.org/listinfo/rust-dev
>>>>
>>>>
>>>
>>
>

[-- Attachment #2: Type: text/html, Size: 3847 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-18  8:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-17  4:05 [rust-dev] Generate Linux executable from rustc on mac C K Kashyap
     [not found] ` <CABtDyP3Kxi7XXg31OiQL3ELaF-a5WaiYY5xeU7JKXQvj=_YgNA@mail.gmail.com>
     [not found]   ` <CAGdT1gq3gdHFm9LXY0R=x_W8Tomdnm=H03-LqCnCxe6XW6N9GA@mail.gmail.com>
     [not found]     ` <CAGdT1gp4NsPnEgWfKfP1B3BOq5XEfcu5FOX4EMY2xUD6kLmifA@mail.gmail.com>
2015-01-18  8:23       ` C K Kashyap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox