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

error: failed to compile #1

Open
adamzerner opened this issue Jun 16, 2021 · 1 comment
Open

error: failed to compile #1

adamzerner opened this issue Jun 16, 2021 · 1 comment

Comments

@adamzerner
Copy link

When running brew install unused I get the following error:

error: failed to compile `unused v0.2.0 (/private/tmp/unused-20210615-4950-cn3ai4/unused-0.2.0)`, intermediate artifacts can be found at `/private/tmp/unused-20210615-4950-cn3ai4/unused-0.2.0/target`

Here's the full output:

code/springbig [DEV-8641-post-api] » brew install unused
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> Updated Formulae
Updated 11 formulae.
==> Updated Casks
Updated 2 casks.

==> Installing unused from unused-code/formulae
==> Downloading https://github.com/unused-code/unused/archive/0.2.0.tar.gz
Already downloaded: /Users/Adam/Library/Caches/Homebrew/downloads/a52afdd1a0dab474b7a8ac1341edb654b13a79836718c69b461c55bd2b3f67fd--unused-0.2.0.tar.gz
==> cargo install --features mimalloc
Last 15 lines from /Users/Adam/Library/Logs/Homebrew/unused/01.cargo:
--locked
--root
/usr/local/Cellar/unused/0.2.0
--path
.
--features
mimalloc

  Installing unused v0.2.0 (/private/tmp/unused-20210615-4950-cn3ai4/unused-0.2.0)
    Updating crates.io index
warning: package `crossbeam-epoch v0.9.1` in Cargo.lock is yanked in registry `crates.io`, consider running without --locked
error: failed to compile `unused v0.2.0 (/private/tmp/unused-20210615-4950-cn3ai4/unused-0.2.0)`, intermediate artifacts can be found at `/private/tmp/unused-20210615-4950-cn3ai4/unused-0.2.0/target`

Caused by:
  Package `unused v0.2.0 (/private/tmp/unused-20210615-4950-cn3ai4/unused-0.2.0)` does not have feature `mimalloc`. It has a required dependency with that name, but only optional dependencies can be used as features.

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/unused-code/homebrew-formulae/issues

code/springbig [DEV-8641-post-api] »
@LucasBilkMatos
Copy link

Got the same error while trying to install Unused

==> Downloading https://github.com/unused-code/unused/archive/0.4.0.tar.gz
Already downloaded: /home/lucas/.cache/Homebrew/downloads/edc3dd4aee8a5a932dbdc7df14b5fce223450f460487fd2b81f13ff730781a0e--unused-0.4.0.tar.gz
==> Installing unused from unused-code/formulae
==> cargo install --features mimalloc
Last 15 lines from /home/lucas/.cache/Homebrew/Logs/unused/01.cargo:
    CMake will not be able to correctly generate this project.
  Call Stack (most recent call first):
    CMakeLists.txt:2 (project)


  thread 'main' panicked at '
  command did not execute successfully, got: exit status: 1

  build script failed, must exit now', /home/lucas/.cache/Homebrew/cargo_cache/registry/src/github.com-1ecc6299db9ec823/cmake-0.1.45/src/lib.rs:894:5
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `unused v0.4.0 (/tmp/unused-20220126-26371-gh39lk/unused-0.4.0)`, intermediate artifacts can be found at `/tmp/unused-20220126-26371-gh39lk/unused-0.4.0/target`

Caused by:
  build failed

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/unused-code/homebrew-formulae/issues

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

2 participants