h2oai / deepwater

Deep Learning in H2O using Native GPU Backends
Apache License 2.0
282 stars 93 forks source link

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

Open velconia opened 6 years ago

velconia commented 6 years ago

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