Index: rustc-1.27.1+dfsg1/src/bootstrap/bootstrap.py
===================================================================
--- rustc-1.27.1+dfsg1.orig/src/bootstrap/bootstrap.py
+++ rustc-1.27.1+dfsg1/src/bootstrap/bootstrap.py
@@ -591,6 +591,8 @@ class RustBuild(object):
             (os.pathsep + env["LIBRARY_PATH"]) \
             if "LIBRARY_PATH" in env else ""
         env["RUSTFLAGS"] = "-Cdebuginfo=2"
+        if self.build_triple().startswith('mips'):
+            env["RUSTFLAGS"] += " -Cllvm-args=-mxgot"
         env["PATH"] = os.path.join(self.bin_root(), "bin") + \
             os.pathsep + env["PATH"]
         if not os.path.isfile(self.cargo()):


This patch should work.
And I pasted it on the upstream github.
YunQiang Su <wzss...@gmail.com> 于2018年7月24日周二 上午9:04写道:
>
> 1.27.1+dfsg1-1~exp4 still FTBFS.
> As rustc seems need big got.
>
> --- a/src/bootstrap/bootstrap.py
> +++ b/src/bootstrap/bootstrap.py
> @@ -590,7 +590,7 @@
>          env["LIBRARY_PATH"] = os.path.join(self.bin_root(), "lib") + \
>              (os.pathsep + env["LIBRARY_PATH"]) \
>              if "LIBRARY_PATH" in env else ""
> -        env["RUSTFLAGS"] = "-Cdebuginfo=2"
> +        env["RUSTFLAGS"] = "-Cdebuginfo=2 -Cllvm-args=-mxgot"
>          env["PATH"] = os.path.join(self.bin_root(), "bin") + \
>              os.pathsep + env["PATH"]
>          if not os.path.isfile(self.cargo()):
> --- a/src/vendor/cc/src/lib.rs
> +++ b/src/vendor/cc/src/lib.rs
> @@ -1106,6 +1106,8 @@
>                      cmd.args.push("-mx32".into());
>                  } else if target.contains("x86_64") ||
> target.contains("powerpc64") {
>                      cmd.args.push("-m64".into());
> +                } else if target.contains("mips") {
> +                    cmd.args.push("-mxgot".into());
>                  }
>
>                  if self.static_flag.is_none() {
> John Paul Adrian Glaubitz <glaub...@physik.fu-berlin.de> 于2018年7月20日周五
> 下午11:30写道:
> >
> > Blacklisting doesn’t fix the transition block.
> >
> > Once the package is outdated on any of the release architectures, 
> > transition is blocked.
> >
> > > On Jul 20, 2018, at 5:15 PM, YunQiang Su <wzss...@gmail.com> wrote:
> > >
> > > On Tue, 17 Jul 2018 18:10:14 +0200 John Paul Adrian Glaubitz
> > > <glaub...@physik.fu-berlin.de> wrote:
> > >> On 07/17/2018 06:03 PM, Ximin Luo wrote:
> > >>> Aron, the next version 1.27.1 is already in binary-NEW so the same 
> > >>> issue will block testing migration again, when that gets accepted.
> > >>
> > >> Well, I have to partially take my criticism back. Aron has pointed out 
> > >> on IRC
> > >> that rustc was not yet removed for mips64el, I thought that had happened 
> > >> but
> > >> indeed that wasn't the case, just cargo was removed.
> > >>
> > >> So, his upload didn't really change anything in this regard.
> > >>
> > >>> Earlier you said "Binary only upload from porter is allowed [..]" but I 
> > >>> am not sure the other porters have access to a loongson-3a box. Will 
> > >>> you continue to run builds of new rustc versions on your box? I think 
> > >>> that is the key point here.
> > >>
> > >> DSA could blacklist rustc from being built on buildds other than eberlin
> > >> but I assume they won't agree to applying such a hack.
> > >
> > > I have asked Aurelien to blacklist rustc.
> > > @Aurelien, oh the rustc problem is not about `make', it is about llvm.
> > >
> > >>
> > >> Adrian
> > >>
> > >> --
> > >> .''`.  John Paul Adrian Glaubitz
> > >> : :' :  Debian Developer - glaub...@debian.org
> > >> `. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
> > >>  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
> > >>
> > >>
> > >
> > > _______________________________________________
> > > Pkg-rust-maintainers mailing list
> > > pkg-rust-maintain...@alioth-lists.debian.net
> > > https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-rust-maintainers
> >
>
>
> --
> YunQiang Su



-- 
YunQiang Su

Reply via email to