Hi Michael,

El vie, 6 ago 2021 a las 8:25, Michael Olbrich (<m.olbr...@pengutronix.de>)
escribió:

> On Thu, Aug 05, 2021 at 07:36:36PM +0200, Guillermo Rodriguez Garcia wrote:
> > El mié, 4 ago 2021 a las 9:41, Michael Olbrich (<
> m.olbr...@pengutronix.de>)
> > escribió:
> >
> > > On Fri, Jul 30, 2021 at 07:41:56PM +0200, avazquez....@gmail.com
> wrote:
> > > > From: Alejandro Vazquez <avazquez....@gmail.com>
> > > >
> > > > - host-rust: This package provides a pre-built version of rustc,
> > > > cargo and standard library for the host.
> > > > - host-rust-std-target: A pre-built version of the standard library
> for
> > > > the target.
> > >
> > > No. The compiler should be built not just downloaded.
> > >
> > > Please take a look at the latest OSELAS.Toolchain. It contains a rust
> > > compiler and std libraries for the target. I've done very little
> testing
> > > with that so far and I would be interested in some feedback.
> Especially if
> > > something isn't working.
> > >
> > > Also, I'm pretty sure that there are some hidden downloads in there for
> > > cargo and maybe the host std library. So if you keep those rules
> locally,
> > > you should add that to the downloads. This way, they will be cached
> with
> > > the rest of the source. Take a look at what I did for the toolchain.
> > >
> >
> > Just for the record, looks like there are no hidden downloads.
> > The package that is donwloaded includes rustc, cargo, and the selected
> > host-std lib.
>
> Thanks for the feedback. That's good to know. So there seem to be different
> binary packages available. When building rustc from sources then for
> bootstrapping rustc, cargo and the std lib are downloaded separately.
>

I am trying to build the rust-enabled toolchain from sources and I am
having some trouble with the cross-rustc package.
It seems that there are hidden downloads when using the toolchain rules.
Specifically when you are building rustc 1.54, all sources for 1.54 are
downloaded explicitly (so this is OK), but then in the compile stage it
tries to download 1.53 automatically (this actually failed in my test,
which is how I noticed). See this:

===
---------------------------
target: cross-rustc.compile
---------------------------

downloading
https://static.rust-lang.org/dist/2021-06-17/rust-std-1.53.0-x86_64-unknown-linux-gnu.tar.xz.sha256
running: curl -# -y 30 -Y 10 --connect-timeout 30 --retry 3 -Sf -o
/tmp/tmpherqj8wk.sha256
https://static.rust-lang.org/dist/2021-06-17/rust-std-1.53.0-x86_64-unknown-linux-gnu.tar.xz.sha256
curl: (5) Could not resolve proxy: -
Warning: Transient problem: timeout Will retry in 1 seconds. 3 retries left.
#=#=- #

curl: (5) Could not resolve proxy: -
Warning: Transient problem: timeout Will retry in 2 seconds. 2 retries left.
##O=#  #

curl: (5) Could not resolve proxy: -
Warning: Transient problem: timeout Will retry in 4 seconds. 1 retries left.
#=#=-#   #

curl: (5) Could not resolve proxy: -
===

I guess this is not what is wanted?

Guillermo
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de

Reply via email to