You are not logged in.

#1 2019-01-19 21:31:10

jonathon
Member
From: UK
Registered: 2017-07-19
Posts: 32
Website

community/rust

I've got rust building again. It's a fairly lengthy process to get up-to-date with 1.32.0, but it will get there eventually.

The main change needed is to edit `config.toml` and add a target section for i686:

[target.i686-unknown-linux-gnu]
llvm-config = "/usr/bin/llvm-config"

Then, 1.30.0 will build with 1.29.0, 1.31.0 with 1.30.0, and finally 1.32.0 with 1.31.0. Phew.

Offline

#2 2019-01-20 04:59:21

levi
Moderator
From: UK
Registered: 2018-06-16
Posts: 227

Re: community/rust

Nice.  Doesn't that cause us problems if we ever want to have reproducible builds though?

Offline

#3 2019-01-20 12:19:53

jonathon
Member
From: UK
Registered: 2017-07-19
Posts: 32
Website

Re: community/rust

The config.toml file is part of the Arch packaging files so I think it should be fine... I'm no expert on reproducible builds though.

Offline

#4 2019-01-20 17:10:06

levi
Moderator
From: UK
Registered: 2018-06-16
Posts: 227

Re: community/rust

As I understand them to have a reproducible build you want a process based on a small defined set of binaries that is itself well defined and probably put into a makefile or similar.  If you build 1.31 you need to build 1.30 first, and to build 1.30 you need to have already built 1.29, how do you build 1.29 in the first place?  It's not clear to me how having the config.toml helps with this, but I'm also not a rust build expert.

Offline

#5 2019-01-20 18:01:40

deep42thought
Administrator
From: Jena, Germany
Registered: 2017-06-17
Posts: 365

Re: community/rust

Thanks for the fix!

I'm not sure, but afaik: reproducibility does not mean, that you must not update incrementally - you simply need to "define" what packages are required for building ...

jonathon: do you have some intermediate package around, so we can skip some steps of the bootstrapping?

cheers,
deep42thought

Offline

#6 2019-01-20 18:09:39

jonathon
Member
From: UK
Registered: 2017-07-19
Posts: 32
Website

Re: community/rust

levi wrote:

how do you build 1.29 in the first place?

Against 1.28. big_smile

deep42thought wrote:

Thanks for the fix!
jonathon: do you have some intermediate package around, so we can skip some steps of the bootstrapping?

I don't have the 1.30 and 1.31 packages, but the 1.32 package is here: https://mirror.netzspielplatz.de/manjar … pkg.tar.xz

You can rebuild 1.32 against that and hopefully it will all work... I think the "miri" component failed to build but I don't know what effect that has on the rest of the package.

Offline

#7 2019-01-21 08:17:45

deep42thought
Administrator
From: Jena, Germany
Registered: 2017-06-17
Posts: 365

Re: community/rust

thank you, we successfully built rust smile

Offline

#8 2019-01-21 11:34:14

andreas_baumann
Administrator
From: Zurich, Switzerland
Registered: 2017-08-10
Posts: 591
Website

Re: community/rust

@jonathon: thanks for tackling this one. :-)

Offline

Board footer

Powered by FluxBB