Skip to content

unable to build on apple m4 #431

@madelaney

Description

@madelaney

While trying to build a sample project; see gist.

However, when I try to build with cargo run, I get the following error:

ERROR: /Users/mdelaney/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tensorflow-sys-0.24.0/target/source-v2.13.0/tensorflow/BUILD:1134:21: declared output 'tensorflow/libtensorflow_framework.2.dylib' was not created by genrule. This is probably because the genrule actually didn't create this output, or because the output was a directory and the genrule was run remotely (note that only the contents of declared file outputs are copied from genrules run remotely)
  ERROR: /Users/mdelaney/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tensorflow-sys-0.24.0/target/source-v2.13.0/tensorflow/BUILD:1134:21: Executing genrule //tensorflow:libtensorflow_framework.2.dylib_sym failed: not all outputs were created or valid
  realpath: illegal option -- -
  usage: realpath [-q] [path ...]
  Target //tensorflow:libtensorflow.dylib failed to build
  Use --verbose_failures to see the command lines of failed build steps.
  INFO: Elapsed time: 0.477s, Critical Path: 0.05s
  INFO: 14 processes: 13 internal, 1 local.
  FAILED: Build did NOT complete successfully
  FAILED: Build did NOT complete successfully

Environment:

  • Apple M4
  • Xcode 16.1
  • rust/cargo rustc 1.83.0 (90b35a623 2024-11-26)

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