Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation failed for unknown reason #24

Closed
Phosphorus15 opened this issue Aug 2, 2019 · 2 comments
Closed

Installation failed for unknown reason #24

Phosphorus15 opened this issue Aug 2, 2019 · 2 comments

Comments

@Phosphorus15
Copy link
Contributor

Simply typing cargo install cargo-clone, encountered mysterious build failure.

Rustc : rustc 1.36.0 (a53f9df32 2019-07-03)

Toolchain : stable-x86_64-pc-windows-gnu

The error messages are too long so I truncated it

(blob.o):blob.c:(.text$StringCatNWorkerA+0x0): first defined here
          C:\Users\Phosphorus15\AppData\Local\Temp\cargo-install52V8Sy\release\deps\liblibgit2_sys-431fcc36e11dd03d.rlib(settings.o):settings.c:(.text$StringCatNWorkerW+0x0): multiple definition of `StringCatNWorkerW'
          C:\Users\Phosphorus15\AppData\Local\Temp\cargo-install52V8Sy\release\deps\liblibgit2_sys-431fcc36e11dd03d.rlib(blob.o):blob.c:(.text$StringCatNWorkerW+0x0): first defined here
          C:\Users\Phosphorus15\AppData\Local\Temp\cargo-install52V8Sy\release\deps\liblibgit2_sys-431fcc36e11dd03d.rlib(settings.o):settings.c:(.text$StringCatNExWorkerA+0x0): multiple definition of `StringCatNExWorkerA'
          C:\Users\Phosphorus15\AppData\Local\Temp\cargo-install52V8Sy\release\deps\liblibgit2_sys-431fcc36e11dd03d.rlib(blob.o):blob.c:(.text$StringCatNExWorkerA+0x0): first defined here
          C:\Users\Phosphorus15\AppData\Local\Temp\cargo-install52V8Sy\release\deps\liblibgit2_sys-431fcc36e11dd03d.rlib(settings.o):settings.c:(.text$StringCatNExWorkerW+0x0): multiple definition of `StringCatNExWorkerW'
          C:\Users\Phosphorus15\AppData\Local\Temp\cargo-install52V8Sy\release\deps\liblibgit2_sys-431fcc36e11dd03d.rlib(blob.o):blob.c:(.text$StringCatNExWorkerW+0x0): first defined here
          C:\Users\Phosphorus15\AppData\Local\Temp\cargo-install52V8Sy\release\deps\liblibgit2_sys-431fcc36e11dd03d.rlib(settings.o):settings.c:(.text$StringVPrintfWorkerA+0x0): multiple definition of `StringVPrintfWorkerA'
          C:\Users\Phosphorus15\AppData\Local\Temp\cargo-install52V8Sy\release\deps\liblibgit2_sys-431fcc36e11dd03d.rlib(blob.o):blob.c:(.text$StringVPrintfWorkerA+0x0): first defined here
          C:\Users\Phosphorus15\AppData\Local\Temp\cargo-install52V8Sy\release\deps\liblibgit2_sys-431fcc36e11dd03d.rlib(settings.o):settings.c:(.text$StringVPrintfWorkerW+0x0): multiple definition of `StringVPrintfWorkerW'
          C:\Users\Phosphorus15\AppData\Local\Temp\cargo-install52V8Sy\release\deps\liblibgit2_sys-431fcc36e11dd03d.rlib(blob.o):blob.c:(.text$StringVPrintfWorkerW+0x0): first defined here
          C:\Users\Phosphorus15\AppData\Local\Temp\cargo-install52V8Sy\release\deps\liblibgit2_sys-431fcc36e11dd03d.rlib(settings.o):settings.c:(.text$StringVPrintfExWorkerA+0x0): multiple definition of `StringVPrintfExWorkerA'
          C:\Users\Phosphorus15\AppData\Local\Temp\cargo-install52V8Sy\release\deps\liblibgit2_sys-431fcc36e11dd03d.rlib(blob.o):blob.c:(.text$StringVPrintfExWorkerA+0x0): first defined here
          C:\Users\Phosphorus15\AppData\Local\Temp\cargo-install52V8Sy\release\deps\liblibgit2_sys-431fcc36e11dd03d.rlib(settings.o):settings.c:(.text$StringVPrintfExWorkerW+0x0): multiple definition of `StringVPrintfExWorkerW'
          C:\Users\Phosphorus15\AppData\Local\Temp\cargo-install52V8Sy\release\deps\liblibgit2_sys-431fcc36e11dd03d.rlib(blob.o):blob.c:(.text$StringVPrintfExWorkerW+0x0): first defined here
          C:\Users\Phosphorus15\AppData\Local\Temp\cargo-install52V8Sy\release\deps\liblibgit2_sys-431fcc36e11dd03d.rlib(settings.o):settings.c:(.text$StringLengthWorkerA+0x0): multiple definition of `StringLengthWorkerA'
          C:\Users\Phosphorus15\AppData\Local\Temp\cargo-install52V8Sy\release\deps\liblibgit2_sys-431fcc36e11dd03d.rlib(blob.o):blob.c:(.text$StringLengthWorkerA+0x0): first defined here
          C:\Users\Phosphorus15\AppData\Local\Temp\cargo-install52V8Sy\release\deps\liblibgit2_sys-431fcc36e11dd03d.rlib(settings.o):settings.c:(.text$StringLengthWorkerW+0x0): multiple definition of `StringLengthWorkerW'
          C:\Users\Phosphorus15\AppData\Local\Temp\cargo-install52V8Sy\release\deps\liblibgit2_sys-431fcc36e11dd03d.rlib(blob.o):blob.c:(.text$StringLengthWorkerW+0x0): first defined here


error: aborting due to previous error

error: failed to compile `cargo-clone v0.1.3`, intermediate artifacts can be found at `C:\Users\PHOSPH~1\AppData\Local\Temp\cargo-install52V8Sy`

Caused by:
  Could not compile `cargo-clone`.
@Phosphorus15 Phosphorus15 changed the title Installation failed for unknow reason Installation failed for unknown reason Aug 2, 2019
@Phosphorus15
Copy link
Contributor Author

It seems that the problem was caused by git2_sys, but this should have been fixed in its previous version.

@Phosphorus15
Copy link
Contributor Author

Well, it turns out that using msvc toolchain instead of gnu ones solves the problem, But I'm still confused why gnu toolchain couldn't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant