Skip to content

Build failure on macOS with rustc 1.25.0 #233

Closed
@andreastt

Description

@andreastt

sccache fails to build with rustc 1.25.0 or newer on macOS:

   Compiling app_dirs v1.1.1
error[E0282]: type annotations needed
  --> /Users/ato/.cargo/registry/src/proxy-git.cwkhome.fun-1ecc6299db9ec823/app_dirs-1.1.1/src/imp/platform/macos.rs:10:40
   |
10 |         Ok(Component::RootDir.as_ref().into())
   |                                        ^^^^ cannot infer type for `T`

error: aborting due to previous error

If you want more information on this error, try using "rustc --explain E0282"
error: Could not compile `app_dirs`.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `sccache v0.2.6`, intermediate artifacts can be found at `/var/folders/3z/3yj7t8sx7_55xscc7v57h6p40000gn/T/cargo-install.WphO2iS8aUK8`

Caused by:
  build failed

This is reported to the app_dirs dependency in andybarron/app-dirs-rs#28 and was caused by rust-lang/rust#46985. According to the rustc issue rust-lang/rust#48716 this will not be reverted, and a patch to app_dirs is necessary. One exists, but appears to have stalled, in andybarron/app-dirs-rs#29.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions