lpil / lpil/sonic-pi-tool

Build failure MacOS Monterey 12.4

Open
#43 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
234
Forks
32
PR merge metrics
No merged PRs in 30d

Description

Hi,

The build fails on my OS. Cargo 1.56.0, rustc 1.56.1. Here are some logs:

error[E0282]: type annotations needed
   --> src/lib.rs:111:13
    |
111 |             execv(cmd, &[]).unwrap_or_else(|_| panic!("Unable to start {}", *p))
    |             ^^^^^ cannot infer type for type parameter `S` declared on the function `execv`

For more information about this error, try `rustc --explain E0282`.
error: could not compile `sonic-pi-tool` due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `sonic-pi-tool v0.1.0 (https://github.com/lpil/sonic-pi-tool/#48265a12)`, intermediate artifacts can be found at `/var/folders/zq/nwpwzg_s2rq87xq7zggqfvhw0000gn/T/cargo-installtpNTv9`

Caused by:
  build failed

I don't really know what can be the cause of it. I think that my rustc and cargo version are pretty standard and I very rarely use these tools.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported build with Cargo 1.56.0 and rustc 1.56.1, then inspect src/lib.rs around line 111 and the E0282 diagnostic. Confirm the build succeeds on the reported macOS environment, with the failing execv call compiling without the type-inference error.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system, cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.