guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 05/06: gnu: rust: Don't build for "native" arch on ARM.


From: Danny Milosavljevic
Subject: Re: 05/06: gnu: rust: Don't build for "native" arch on ARM.
Date: Tue, 17 Apr 2018 09:17:12 +0200

Hi Mark,

On Mon, 16 Apr 2018 16:05:04 -0400
Mark H Weaver <address@hidden> wrote:

> If it would be beneficial, you might consider using gcc-7 to compile
> 'rust', by adding 'gcc-7' to native-inputs.  We're already using gcc-7
> to compile a few other packages, including linux-libre on x86_64.

Yeah, it would be possible.

Rust right now has only limited C++ FFI - so I guess the risk of having
a gcc-7 Rust dlopen'ing a gcc-4 library with incompatible C++ classes/
templates in it is low.  (that stuff has been a nightmare to debug in
my working life and I'd rather not repeat it)

I had no compatibility problems with C FFI - so we are covered here.

So all in all we can do it - and let's do it.  But I've just pushed
a large update for Rust.  Let's have it built and see what else
breaks on other architectures first - before we change more.

Also, AFAIK "-march=native" autodetects the CPU in the build machine
and then optimizes for exactly that CPU.  Arguably that's not what
we want in general.

Attachment: pgpldRuH5ywJ0.pgp
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]