[Pkg-rust-maintainers] Build fails with "found two different crates with name `std`"

John Paul Adrian Glaubitz glaubitz at physik.fu-berlin.de
Fri Feb 16 16:00:04 UTC 2018


On 02/16/2018 03:21 PM, Luca BRUNO wrote:
> On Friday, February 16, 2018 1:46:22 PM UTC John Paul Adrian Glaubitz wrote:
> 
>> error[E0523]: found two different crates with name `std` that are not
>> distinguished by differing `-C metadata`. This will result in symbol
>> conflicts between the two.
> 
>> Anyone knows where the problem might be? Is Cargo too old?
> 
> It looks like it is picking multiple libstd from your FS, do you perhaps still
> have the previous libstd-rust-dev installed?

That's what I initially thought but even using a clean chroot, the problem
still exists. I also just see a single copy of libstd*so and libstd*rlib
in my Debian packages.

> Are you re-bootstrapping this from "pkg.rustc.dlstage0" build profile or from
> a previous stage2?

I built the package manually using a cross-built rustc installed into
/usr/local/bin. There is currently no precompiled rustc available for
sparc64-linux for download.

There must be one important detail in the packaging that I am missing, but
I have no clue what it is.

Of course, I can just wait until Ximin updates the package to 1.24 and
then do a fresh built again using the proper 1.24 package. But I also
want to understand the problem so I can fix it myself in the future.

Adrian

-- 
  .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz at debian.org
`. `'   Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
   `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



More information about the Pkg-rust-maintainers mailing list