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

nix flake fails to build on macos #16

Open
aripiprazole opened this issue Feb 19, 2024 · 0 comments
Open

nix flake fails to build on macos #16

aripiprazole opened this issue Feb 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@aripiprazole
Copy link

Description

Tell us what happened. In particular, be specific about any changes you made to this template.
Ideally, provide a link to your project's GitHub repository. Please note that we are not able to
support all conceivable changes to this template project, but the more information you are able to
provide the more equipped we will be to help.

Steps to Reproduce

image

Replace the example steps below with actual steps to reproduce the bug you're reporting.

  1. nix develop
  2. cargo build --release

Expected vs. Actual Behavior

What did you expect to happen after you followed the steps you described in the last section? What
actually happened?

Environment

Describe the environment in which you encountered this bug. Use the list below as a starting point
and add additional information if you think it's relevant.

warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package:   /Users/gabrielle/Developer/Agicommies/subspace/runtime/Cargo.toml
workspace: /Users/gabrielle/Developer/Agicommies/subspace/Cargo.toml
warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"`
note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest
note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest
note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions
   Compiling wasmtime-jit v8.0.1
   Compiling libp2p-identity v0.1.3
   Compiling webpki v0.22.4
   Compiling snow v0.9.4
   Compiling tikv-jemalloc-sys v0.5.4+5.3.0-patched
   Compiling wasm-opt-sys v0.112.0
   Compiling librocksdb-sys v0.11.0+8.1.1
   Compiling cxx v1.0.111
   Compiling lz4-sys v1.9.4
   Compiling zstd v0.12.4
   Compiling rustls v0.21.10
   Compiling lz4 v1.24.0
The following warnings were emitted during compilation:

warning: [email protected]+5.3.0-patched: "Unprefixed `malloc` requested on unsupported platform `aarch64-apple-darwin` => using prefixed `malloc`"

error: failed to run custom build command for `tikv-jemalloc-sys v0.5.4+5.3.0-patched`

Caused by:
  process didn't exit successfully: `/Users/gabrielle/Developer/Agicommies/subspace/target/release/build/tikv-jemalloc-sys-eb5d0911749f8f96/build-script-build` (exit status: 101)
  --- stdout
  TARGET=aarch64-apple-darwin
  HOST=aarch64-apple-darwin
  NUM_JOBS=11
  OUT_DIR="/Users/gabrielle/Developer/Agicommies/subspace/target/release/build/tikv-jemalloc-sys-b6c255e33510871e/out"
  BUILD_DIR="/Users/gabrielle/Developer/Agicommies/subspace/target/release/build/tikv-jemalloc-sys-b6c255e33510871e/out/build"
  SRC_DIR="/Users/gabrielle/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tikv-jemalloc-sys-0.5.4+5.3.0-patched"
  cargo:warning="Unprefixed `malloc` requested on unsupported platform `aarch64-apple-darwin` => using prefixed `malloc`"
  cargo:rustc-cfg=prefixed
  cargo:rerun-if-env-changed=JEMALLOC_OVERRIDE
  jemalloc override set

  --- stderr
  thread 'main' panicked at /Users/gabrielle/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tikv-jemalloc-sys-0.5.4+5.3.0-patched/build.rs:106:9:
  Path to `jemalloc` in `JEMALLOC_OVERRIDE=/nix/store/1r9jhkzfz6q55qciyla3mz7nmh2w6cmz-jemalloc-5.3.0/lib/libjemalloc.so` does not exist
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
  • Operating system: macOS 14.1 23B2073 arm64
  • Template version/tag:
  • Rust version (run rustup show):

Logs, Errors or Screenshots

Please provide the text of any logs or errors that you experienced; if
applicable, provide screenshots to help illustrate the problem.

Additional Information

Please add any other details that you think may help us solve your problem.

@aripiprazole aripiprazole added the bug Something isn't working label Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant