You are not logged in.

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

jonathon
Member
From: UK
Registered: 2017-07-19
Posts: 40
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 05:59:21

levi
Moderator
From: Yorkshire, UK
Registered: 2018-06-16
Posts: 1,197

Re: community/rust

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


Architecture: pentium4, Testing repos: Yes, Hardware: EeePC 901+2GB RAM+OS half on the SD card.

Offline

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

jonathon
Member
From: UK
Registered: 2017-07-19
Posts: 40
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 18:10:06

levi
Moderator
From: Yorkshire, UK
Registered: 2018-06-16
Posts: 1,197

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.


Architecture: pentium4, Testing repos: Yes, Hardware: EeePC 901+2GB RAM+OS half on the SD card.

Offline

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

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

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 19:09:39

jonathon
Member
From: UK
Registered: 2017-07-19
Posts: 40
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 09:17:45

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

Re: community/rust

thank you, we successfully built rust smile

Offline

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

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

Re: community/rust

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

Offline

Board footer

Powered by FluxBB