Skip to content
This repository was archived by the owner on Mar 20, 2025. It is now read-only.
This repository was archived by the owner on Mar 20, 2025. It is now read-only.

Tensorflow-bindings can NOT be compiled with bazel-0.4.5 in Mac OS X environment #63

@velconia

Description

@velconia

My environments:
bazel: 0.4.5
gcc: 4.9.4 (Homebrew GCC 4.9.4_1)
jdk: 1.8.0_51

From the main project directory, I ran ./gradlew clean tensorflowCompile to build the so and jar TensorFlow files.
But gcc reported the errors below and stopped:
gcc: error: unrecognized command line option '-Wthread-safety'
gcc: error: unrecognized command line option '-Wself-assign'

Problem was fixed after I changed the bazel version to 0.5.4

So I supposed that, the Prerequisites of Tensorflow Bindings should be changed from
"Install Bazel 0.4.5 or later" to "Install Bazel 0.5.*"

PS:
Extra errors will be raised after I changed the bazel version to 0.6.0 and later, because set() was deprecated in 0.6.0 and later version

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