eaplatanios / tensorflow_scala

TensorFlow API for the Scala Programming Language
http://platanios.org/tensorflow_scala/
Apache License 2.0
937 stars 95 forks source link

Errors when loading the TensorFlow dynamic libraries #41

Closed eaplatanios closed 6 years ago

eaplatanios commented 6 years ago

@lucaRadicalbit @mandar2812 @siddhartha-gadgil @sujitbiswas @tarjeir

There have been multiple issues reported related to loading the TensorFlow dynamic libraries (namely libtensorflow.so and libtensorflow_framework.so). I want to collect everybody's experiences and issues here so we can keep track of them and finally fix this problem. It seems that every time I provide a fix for some platform/configuration something else breaks. The issues seems to be non-trivial and tiresome to some extend so let's put all information here and try to resolve it.

There are initially four configurations we need to make sure work fine:

  1. Linux using pre-compiled binaries using the SBT classifier: libraryDependencies += "org.platanios" %% "tensorflow" % "0.1.0-SNAPSHOT" classifier "linux-cpu-x86_64"
  2. Linux using installed binaries: libraryDependencies += "org.platanios" %% "tensorflow" % "0.1.0-SNAPSHOT"
  3. Mac using pre-compiled binaries using the SBT classifier: libraryDependencies += "org.platanios" %% "tensorflow" % "0.1.0-SNAPSHOT" classifier "darwin-cpu-x86_64"
  4. Mac using installed binaries: libraryDependencies += "org.platanios" %% "tensorflow" % "0.1.0-SNAPSHOT"

From my tests, cases 1, 2, and 4, seem to work fine. I'll also test 3 later today.

Please let me know of other experiences you have and let's try to resolve this soon. I'll keep working on this starting with case 3 which is currently not working.

Also, please remember to clear you Ivy cache every time before re-testing as the snapshot release will not be updated automatically by SBT. You can do that by deleting the relevant directory, which by default usually is ~/.ivy2/cache/org.platanios.

eaplatanios commented 6 years ago

I was able to reproduce the problem where case 3 is not working and I'm working on a fix.

eaplatanios commented 6 years ago

I think the issue was fixed with commit b3b0aad. All four cases seem to work fine for me. Could people who had issues please check and confirm that all works fine for them? Thanks! :)

siddhartha-gadgil commented 6 years ago

Since my error persists, here it is in painful detail

Welcome to Scala 2.12.4 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_101).
Type in expressions for evaluation. Or try :help.

scala> import org.platanios.tensorflow.api._
import org.platanios.tensorflow.api._
import org.platanios.tensorflow.api._

scala> val tensor = Tensor.zeros(INT32, Shape(2, 5))
val tensor = Tensor.zeros(INT32, Shape(2, 5))
2017-11-07 10:48:10.940 [run-main-0] INFO  TensorFlow Native - Extracting the 'tensorflow_jni' native library to /tmp/tensorflow_scala_native_libraries50870837689741446/libtensorflow_jni.so.
2017-11-07 10:48:10.944 [run-main-0] INFO  TensorFlow Native - Copied 607880 bytes to /tmp/tensorflow_scala_native_libraries50870837689741446/libtensorflow_jni.so.
2017-11-07 10:48:10.972 [run-main-0] INFO  TensorFlow Native - Extracting the 'tensorflow_ops' native library to /tmp/tensorflow_scala_native_libraries50870837689741446/libtensorflow_ops.so.
2017-11-07 10:48:10.972 [run-main-0] INFO  TensorFlow Native - Copied 51128 bytes to /tmp/tensorflow_scala_native_libraries50870837689741446/libtensorflow_ops.so.
org.platanios.tensorflow.jni.NotFoundException: /tmp/tensorflow_scala_native_libraries50870837689741446/libtensorflow_ops.so: undefined symbol: _ZN10tensorflow7strings8internal9CatPiecesESt16initializer_listINS_11StringPieceEE
  at org.platanios.tensorflow.jni.TensorFlow$.loadOpLibrary(Native Method)
  at org.platanios.tensorflow.jni.TensorFlow$.$anonfun$load$6(TensorFlow.scala:107)
  at scala.Option.foreach(Option.scala:257)
  at org.platanios.tensorflow.jni.TensorFlow$.load(TensorFlow.scala:107)
  at org.platanios.tensorflow.jni.TensorFlow$.<init>(TensorFlow.scala:155)
  at org.platanios.tensorflow.jni.TensorFlow$.<clinit>(TensorFlow.scala)
  at org.platanios.tensorflow.jni.Tensor$.<init>(Tensor.scala:24)
  at org.platanios.tensorflow.jni.Tensor$.<clinit>(Tensor.scala)
  at org.platanios.tensorflow.api.tensors.Context$.apply(Context.scala:50)
  at org.platanios.tensorflow.api.package$.<init>(package.scala:47)
  at org.platanios.tensorflow.api.package$.<clinit>(package.scala)
  ... 36 elided
eaplatanios commented 6 years ago

@siddhartha-gadgil Can you check out the master branch from the TensorFlow repository and try with that? If you still get the same error, I will investigate further.

siddhartha-gadgil commented 6 years ago

Got the same error on master (after cleaning bazel and ivy caches).

mandar2812 commented 6 years ago

Hi @eaplatanios , I refreshed my ivy and coursier cache and now the tensorflow library is loading fine on MacOS Sierra, hopefully this addresses point 3.

I am refreshing my builds on linux (point 1.) to confirm on the success on that as well

siddhartha-gadgil commented 6 years ago

The problem in my case may be not running nativeCompile. Will verify tomorrow morning (Indian time)

eaplatanios commented 6 years ago

@siddhartha-gadgil Do you also have libtensorflow_framework.so in the same directory as libtensorflow.so?

@mandar2812 That's good to hear. :)

tarjeir commented 6 years ago

@eaplatanios I can confirm that the problem seem solved now!. Thanks. Will test more during the weekend

siddhartha-gadgil commented 6 years ago

Yes, I do have libtensorflow_framework.so and libtensorflow.so in the same directory, and this is my LD_LIBRARY_PATH

siddhartha-gadgil commented 6 years ago

In case this helps, here is a much bigger dump of my session. There were warnings (logged as errors) in the build stage.

[info] Loading project definition from /home/gadgil/software/tensorflow_scala/project/project
[info] Loading settings from plugins.sbt ...
[info] Loading project definition from /home/gadgil/software/tensorflow_scala/project
[info] Loading settings from version.sbt,build.sbt ...
[info] Set current project to TensorFlow for Scala (in build file:/home/gadgil/software/tensorflow_scala/)
[info] Executing in batch mode. For better performance use sbt's shell
[info] Cleaning native build
[success] Total time: 0 s, completed 8 Nov, 2017 8:53:25 AM
[info] Generating TensorFlow tensor op files.
[info] Updating {file:/home/gadgil/software/tensorflow_scala/}jni...
[info] Building library with native build tool CMake.
[info] Done updating.
[info] Updating {file:/home/gadgil/software/tensorflow_scala/}api...
[info] Done updating.
[info] Updating {file:/home/gadgil/software/tensorflow_scala/}site...
[info] Updating {file:/home/gadgil/software/tensorflow_scala/}all...
[info] Updating {file:/home/gadgil/software/tensorflow_scala/}data...
[info] Compiling 1 protobuf files to /home/gadgil/software/tensorflow_scala/api/src/main/generated/java
[info] Compiling schema /home/gadgil/software/tensorflow_scala/api/src/main/proto/CheckpointState.proto
[info] Compiling protobuf
[info] Protoc target directory: /home/gadgil/software/tensorflow_scala/api/src/main/generated/java
[info] Done updating.
[info] Done updating.
[info] Updating {file:/home/gadgil/software/tensorflow_scala/}examples...
[info] Done updating.
[info] Done updating.
[info] -- The C compiler identification is GNU 5.4.1
[info] -- The CXX compiler identification is GNU 5.4.1
[info] -- Check for working C compiler: /usr/bin/cc
[info] -- Check for working C compiler: /usr/bin/cc -- works
[info] -- Detecting C compiler ABI info
[info] -- Detecting C compiler ABI info - done
[info] -- Detecting C compile features
[info] -- Detecting C compile features - done
[info] -- Check for working CXX compiler: /usr/bin/c++
[info] -- Check for working CXX compiler: /usr/bin/c++ -- works
[info] -- Detecting CXX compiler ABI info
[info] -- Detecting CXX compiler ABI info - done
[info] -- Detecting CXX compile features
[info] -- Detecting CXX compile features - done
[info] -- Found JNI: /usr/lib/jvm/java-8-oracle/jre/lib/amd64/libjawt.so  
[info] -- JNI include directories: /usr/lib/jvm/java-8-oracle/include;/usr/lib/jvm/java-8-oracle/include/linux;/usr/lib/jvm/java-8-oracle/include
[info] -- Configuring done
[info] -- Generating done
[info] -- Build files have been written to: /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build
[error] CMake Warning:
[error]   Manually-specified variables were not used by the project:
[error]     LD_LIBRARY_PATH
[info] /usr/bin/cmake -H/home/gadgil/software/tensorflow_scala/jni/src/main/native -B/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build --check-build-system CMakeFiles/Makefile.cmake 0
[info] /usr/bin/cmake -E cmake_progress_start /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build/CMakeFiles /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build/CMakeFiles/progress.marks
[info] make -f CMakeFiles/Makefile2 all
[info] make[1]: Entering directory '/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build'
[info] make -f CMakeFiles/tensorflow_jni.dir/build.make CMakeFiles/tensorflow_jni.dir/depend
[info] make[2]: Entering directory '/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build'
[info] cd /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/gadgil/software/tensorflow_scala/jni/src/main/native /home/gadgil/software/tensorflow_scala/jni/src/main/native /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build/CMakeFiles/tensorflow_jni.dir/DependInfo.cmake --color=
[info] Dependee "/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build/CMakeFiles/tensorflow_jni.dir/DependInfo.cmake" is newer than depender "/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build/CMakeFiles/tensorflow_jni.dir/depend.internal".
[info] Dependee "/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build/CMakeFiles/tensorflow_jni.dir/depend.internal".
[info] Scanning dependencies of target tensorflow_jni
[info] make[2]: Leaving directory '/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build'
[info] make -f CMakeFiles/tensorflow_jni.dir/build.make CMakeFiles/tensorflow_jni.dir/build
[info] make[2]: Entering directory '/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build'
[info] [  4%] Building CXX object CMakeFiles/tensorflow_jni.dir/tensor.cc.o
[info] /usr/bin/c++   -Dtensorflow_jni_EXPORTS -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/. -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./generated -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./include -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./ops -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux  -D_GLIBCXX_USE_CXX11_ABI=0 -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/tensorflow_jni.dir/tensor.cc.o -c /home/gadgil/software/tensorflow_scala/jni/src/main/native/tensor.cc
[info] [  8%] Building CXX object CMakeFiles/tensorflow_jni.dir/session.cc.o
[info] /usr/bin/c++   -Dtensorflow_jni_EXPORTS -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/. -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./generated -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./include -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./ops -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux  -D_GLIBCXX_USE_CXX11_ABI=0 -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/tensorflow_jni.dir/session.cc.o -c /home/gadgil/software/tensorflow_scala/jni/src/main/native/session.cc
[info] [ 12%] Building CXX object CMakeFiles/tensorflow_jni.dir/record_reader.cc.o
[info] /usr/bin/c++   -Dtensorflow_jni_EXPORTS -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/. -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./generated -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./include -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./ops -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux  -D_GLIBCXX_USE_CXX11_ABI=0 -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/tensorflow_jni.dir/record_reader.cc.o -c /home/gadgil/software/tensorflow_scala/jni/src/main/native/record_reader.cc
[info] [ 16%] Building CXX object CMakeFiles/tensorflow_jni.dir/op.cc.o
[info] /usr/bin/c++   -Dtensorflow_jni_EXPORTS -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/. -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./generated -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./include -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./ops -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux  -D_GLIBCXX_USE_CXX11_ABI=0 -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/tensorflow_jni.dir/op.cc.o -c /home/gadgil/software/tensorflow_scala/jni/src/main/native/op.cc
[error] /home/gadgil/software/tensorflow_scala/jni/src/main/native/op.cc: In function ‘_jlongArray* Java_org_platanios_tensorflow_jni_Op_00024_getAttrIntList(JNIEnv*, jobject, jlong, jstring)’:
[error] /home/gadgil/software/tensorflow_scala/jni/src/main/native/op.cc:538:63: warning: passing NULL to non-pointer argument 3 of ‘void JNIEnv_::ReleaseLongArrayElements(jlongArray, jlong*, jint)’ [-Wconversion-null]
[error]      env->Release##jname##ArrayElements(ret, ret_elements, NULL);                                  \
[error]                                                                ^
[error] /home/gadgil/software/tensorflow_scala/jni/src/main/native/op.cc:543:1: note: in expansion of macro ‘DEFINE_GET_ATTR_LIST’
[error]  DEFINE_GET_ATTR_LIST(Int, Long, jlong, int64_t, TF_ATTR_INT);
[error]  ^
[error] /home/gadgil/software/tensorflow_scala/jni/src/main/native/op.cc: In function ‘_jfloatArray* Java_org_platanios_tensorflow_jni_Op_00024_getAttrFloatList(JNIEnv*, jobject, jlong, jstring)’:
[error] /home/gadgil/software/tensorflow_scala/jni/src/main/native/op.cc:538:63: warning: passing NULL to non-pointer argument 3 of ‘void JNIEnv_::ReleaseFloatArrayElements(jfloatArray, jfloat*, jint)’ [-Wconversion-null]
[error]      env->Release##jname##ArrayElements(ret, ret_elements, NULL);                                  \
[error]                                                                ^
[error] /home/gadgil/software/tensorflow_scala/jni/src/main/native/op.cc:545:1: note: in expansion of macro ‘DEFINE_GET_ATTR_LIST’
[error]  DEFINE_GET_ATTR_LIST(Float, Float, jfloat, float, TF_ATTR_FLOAT);
[error]  ^
[error] /home/gadgil/software/tensorflow_scala/jni/src/main/native/op.cc: In function ‘_jbooleanArray* Java_org_platanios_tensorflow_jni_Op_00024_getAttrBoolList(JNIEnv*, jobject, jlong, jstring)’:
[error] /home/gadgil/software/tensorflow_scala/jni/src/main/native/op.cc:538:63: warning: passing NULL to non-pointer argument 3 of ‘void JNIEnv_::ReleaseBooleanArrayElements(jbooleanArray, jboolean*, jint)’ [-Wconversion-null]
[error]      env->Release##jname##ArrayElements(ret, ret_elements, NULL);                                  \
[error]                                                                ^
[error] /home/gadgil/software/tensorflow_scala/jni/src/main/native/op.cc:547:1: note: in expansion of macro ‘DEFINE_GET_ATTR_LIST’
[error]  DEFINE_GET_ATTR_LIST(Bool, Boolean, jboolean, unsigned char, TF_ATTR_BOOL);
[error]  ^
[error] /home/gadgil/software/tensorflow_scala/jni/src/main/native/op.cc: In function ‘_jintArray* Java_org_platanios_tensorflow_jni_Op_00024_getAttrTypeList(JNIEnv*, jobject, jlong, jstring)’:
[error] /home/gadgil/software/tensorflow_scala/jni/src/main/native/op.cc:538:63: warning: passing NULL to non-pointer argument 3 of ‘void JNIEnv_::ReleaseIntArrayElements(jintArray, jint*, jint)’ [-Wconversion-null]
[error]      env->Release##jname##ArrayElements(ret, ret_elements, NULL);                                  \
[error]                                                                ^
[error] /home/gadgil/software/tensorflow_scala/jni/src/main/native/op.cc:549:1: note: in expansion of macro ‘DEFINE_GET_ATTR_LIST’
[error]  DEFINE_GET_ATTR_LIST(Type, Int, jint, TF_DataType, TF_ATTR_TYPE);
[error]  ^
[info] [ 20%] Building CXX object CMakeFiles/tensorflow_jni.dir/function.cc.o
[info] /usr/bin/c++   -Dtensorflow_jni_EXPORTS -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/. -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./generated -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./include -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./ops -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux  -D_GLIBCXX_USE_CXX11_ABI=0 -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/tensorflow_jni.dir/function.cc.o -c /home/gadgil/software/tensorflow_scala/jni/src/main/native/function.cc
[info] [ 25%] Building CXX object CMakeFiles/tensorflow_jni.dir/file_io.cc.o
[info] /usr/bin/c++   -Dtensorflow_jni_EXPORTS -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/. -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./generated -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./include -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./ops -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux  -D_GLIBCXX_USE_CXX11_ABI=0 -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/tensorflow_jni.dir/file_io.cc.o -c /home/gadgil/software/tensorflow_scala/jni/src/main/native/file_io.cc
[info] [ 29%] Building CXX object CMakeFiles/tensorflow_jni.dir/graph.cc.o
[info] /usr/bin/c++   -Dtensorflow_jni_EXPORTS -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/. -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./generated -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./include -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./ops -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux  -D_GLIBCXX_USE_CXX11_ABI=0 -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/tensorflow_jni.dir/graph.cc.o -c /home/gadgil/software/tensorflow_scala/jni/src/main/native/graph.cc
[info] [ 33%] Building CXX object CMakeFiles/tensorflow_jni.dir/checkpoint_reader.cc.o
[info] /usr/bin/c++   -Dtensorflow_jni_EXPORTS -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/. -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./generated -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./include -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./ops -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux  -D_GLIBCXX_USE_CXX11_ABI=0 -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/tensorflow_jni.dir/checkpoint_reader.cc.o -c /home/gadgil/software/tensorflow_scala/jni/src/main/native/checkpoint_reader.cc
[info] [ 37%] Building CXX object CMakeFiles/tensorflow_jni.dir/server.cc.o
[info] /usr/bin/c++   -Dtensorflow_jni_EXPORTS -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/. -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./generated -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./include -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./ops -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux  -D_GLIBCXX_USE_CXX11_ABI=0 -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/tensorflow_jni.dir/server.cc.o -c /home/gadgil/software/tensorflow_scala/jni/src/main/native/server.cc
[info] [ 41%] Building CXX object CMakeFiles/tensorflow_jni.dir/tensorflow.cc.o
[info] /usr/bin/c++   -Dtensorflow_jni_EXPORTS -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/. -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./generated -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./include -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./ops -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux  -D_GLIBCXX_USE_CXX11_ABI=0 -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/tensorflow_jni.dir/tensorflow.cc.o -c /home/gadgil/software/tensorflow_scala/jni/src/main/native/tensorflow.cc
[info] [ 45%] Building CXX object CMakeFiles/tensorflow_jni.dir/generated/tensor_nn_ops.cc.o
[info] /usr/bin/c++   -Dtensorflow_jni_EXPORTS -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/. -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./generated -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./include -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./ops -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux  -D_GLIBCXX_USE_CXX11_ABI=0 -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/tensorflow_jni.dir/generated/tensor_nn_ops.cc.o -c /home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_nn_ops.cc
[info] [ 50%] Building CXX object CMakeFiles/tensorflow_jni.dir/generated/tensor_sparse_ops.cc.o
[info] /usr/bin/c++   -Dtensorflow_jni_EXPORTS -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/. -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./generated -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./include -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./ops -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux  -D_GLIBCXX_USE_CXX11_ABI=0 -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/tensorflow_jni.dir/generated/tensor_sparse_ops.cc.o -c /home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_sparse_ops.cc
[info] [ 54%] Building CXX object CMakeFiles/tensorflow_jni.dir/generated/tensor_math_ops.cc.o
[info] /usr/bin/c++   -Dtensorflow_jni_EXPORTS -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/. -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./generated -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./include -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./ops -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux  -D_GLIBCXX_USE_CXX11_ABI=0 -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/tensorflow_jni.dir/generated/tensor_math_ops.cc.o -c /home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_math_ops.cc
[info] [ 58%] Building CXX object CMakeFiles/tensorflow_jni.dir/generated/tensor_basic_ops.cc.o
[info] /usr/bin/c++   -Dtensorflow_jni_EXPORTS -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/. -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./generated -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./include -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./ops -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux  -D_GLIBCXX_USE_CXX11_ABI=0 -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/tensorflow_jni.dir/generated/tensor_basic_ops.cc.o -c /home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_basic_ops.cc
[info] [ 62%] Building CXX object CMakeFiles/tensorflow_jni.dir/generated/tensor_text_ops.cc.o
[info] /usr/bin/c++   -Dtensorflow_jni_EXPORTS -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/. -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./generated -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./include -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./ops -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux  -D_GLIBCXX_USE_CXX11_ABI=0 -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/tensorflow_jni.dir/generated/tensor_text_ops.cc.o -c /home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_text_ops.cc
[info] [ 66%] Building CXX object CMakeFiles/tensorflow_jni.dir/generated/tensor_random_ops.cc.o
[info] /usr/bin/c++   -Dtensorflow_jni_EXPORTS -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/. -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./generated -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./include -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./ops -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux  -D_GLIBCXX_USE_CXX11_ABI=0 -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/tensorflow_jni.dir/generated/tensor_random_ops.cc.o -c /home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_random_ops.cc
[info] [ 70%] Building CXX object CMakeFiles/tensorflow_jni.dir/include/tensorflow/c/status_helper.cc.o
[info] /usr/bin/c++   -Dtensorflow_jni_EXPORTS -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/. -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./generated -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./include -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./ops -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux  -D_GLIBCXX_USE_CXX11_ABI=0 -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/tensorflow_jni.dir/include/tensorflow/c/status_helper.cc.o -c /home/gadgil/software/tensorflow_scala/jni/src/main/native/include/tensorflow/c/status_helper.cc
[info] [ 75%] Building CXX object CMakeFiles/tensorflow_jni.dir/include/tensorflow/c/record_reader.cc.o
[info] /usr/bin/c++   -Dtensorflow_jni_EXPORTS -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/. -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./generated -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./include -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./ops -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux  -D_GLIBCXX_USE_CXX11_ABI=0 -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/tensorflow_jni.dir/include/tensorflow/c/record_reader.cc.o -c /home/gadgil/software/tensorflow_scala/jni/src/main/native/include/tensorflow/c/record_reader.cc
[info] [ 79%] Building CXX object CMakeFiles/tensorflow_jni.dir/include/tensorflow/c/python_api.cc.o
[info] /usr/bin/c++   -Dtensorflow_jni_EXPORTS -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/. -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./generated -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./include -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./ops -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux  -D_GLIBCXX_USE_CXX11_ABI=0 -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/tensorflow_jni.dir/include/tensorflow/c/python_api.cc.o -c /home/gadgil/software/tensorflow_scala/jni/src/main/native/include/tensorflow/c/python_api.cc
[info] [ 83%] Building CXX object CMakeFiles/tensorflow_jni.dir/include/tensorflow/c/checkpoint_reader.cc.o
[info] /usr/bin/c++   -Dtensorflow_jni_EXPORTS -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/. -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./generated -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./include -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./ops -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux  -D_GLIBCXX_USE_CXX11_ABI=0 -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/tensorflow_jni.dir/include/tensorflow/c/checkpoint_reader.cc.o -c /home/gadgil/software/tensorflow_scala/jni/src/main/native/include/tensorflow/c/checkpoint_reader.cc
[info] [ 87%] Building CXX object CMakeFiles/tensorflow_jni.dir/include/tensorflow/core/distributed_runtime/server_lib.cc.o
[info] /usr/bin/c++   -Dtensorflow_jni_EXPORTS -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/. -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./generated -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./include -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./ops -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux  -D_GLIBCXX_USE_CXX11_ABI=0 -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/tensorflow_jni.dir/include/tensorflow/core/distributed_runtime/server_lib.cc.o -c /home/gadgil/software/tensorflow_scala/jni/src/main/native/include/tensorflow/core/distributed_runtime/server_lib.cc
[info] [ 91%] Linking CXX shared library libtensorflow_jni.so
[info] /usr/bin/cmake -E cmake_link_script CMakeFiles/tensorflow_jni.dir/link.txt --verbose=1
[info] /usr/bin/c++  -fPIC  -D_GLIBCXX_USE_CXX11_ABI=0 -O3 -DNDEBUG  -shared -Wl,-soname,libtensorflow_jni.so -o libtensorflow_jni.so CMakeFiles/tensorflow_jni.dir/tensor.cc.o CMakeFiles/tensorflow_jni.dir/session.cc.o CMakeFiles/tensorflow_jni.dir/record_reader.cc.o CMakeFiles/tensorflow_jni.dir/op.cc.o CMakeFiles/tensorflow_jni.dir/function.cc.o CMakeFiles/tensorflow_jni.dir/file_io.cc.o CMakeFiles/tensorflow_jni.dir/graph.cc.o CMakeFiles/tensorflow_jni.dir/checkpoint_reader.cc.o CMakeFiles/tensorflow_jni.dir/server.cc.o CMakeFiles/tensorflow_jni.dir/tensorflow.cc.o CMakeFiles/tensorflow_jni.dir/generated/tensor_nn_ops.cc.o CMakeFiles/tensorflow_jni.dir/generated/tensor_sparse_ops.cc.o CMakeFiles/tensorflow_jni.dir/generated/tensor_math_ops.cc.o CMakeFiles/tensorflow_jni.dir/generated/tensor_basic_ops.cc.o CMakeFiles/tensorflow_jni.dir/generated/tensor_text_ops.cc.o CMakeFiles/tensorflow_jni.dir/generated/tensor_random_ops.cc.o CMakeFiles/tensorflow_jni.dir/include/tensorflow/c/status_helper.cc.o CMakeFiles/tensorflow_jni.dir/include/tensorflow/c/record_reader.cc.o CMakeFiles/tensorflow_jni.dir/include/tensorflow/c/python_api.cc.o CMakeFiles/tensorflow_jni.dir/include/tensorflow/c/checkpoint_reader.cc.o CMakeFiles/tensorflow_jni.dir/include/tensorflow/core/distributed_runtime/server_lib.cc.o  -L/home/gadgil/software/tensorflow/bazel-bin/tensorflow -ltensorflow -ltensorflow_framework -Wl,-rpath,"\$ORIGIN" 
[info] make[2]: Leaving directory '/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build'
[info] [ 91%] Built target tensorflow_jni
[info] make -f CMakeFiles/tensorflow_ops.dir/build.make CMakeFiles/tensorflow_ops.dir/depend
[info] make[2]: Entering directory '/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build'
[info] cd /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/gadgil/software/tensorflow_scala/jni/src/main/native /home/gadgil/software/tensorflow_scala/jni/src/main/native /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build/CMakeFiles/tensorflow_ops.dir/DependInfo.cmake --color=
[info] Dependee "/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build/CMakeFiles/tensorflow_ops.dir/DependInfo.cmake" is newer than depender "/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build/CMakeFiles/tensorflow_ops.dir/depend.internal".
[info] Dependee "/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build/CMakeFiles/tensorflow_ops.dir/depend.internal".
[info] Scanning dependencies of target tensorflow_ops
[info] make[2]: Leaving directory '/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build'
[info] make -f CMakeFiles/tensorflow_ops.dir/build.make CMakeFiles/tensorflow_ops.dir/build
[info] make[2]: Entering directory '/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build'
[info] [ 95%] Building CXX object CMakeFiles/tensorflow_ops.dir/ops/jvm_callback_op.cc.o
[info] /usr/bin/c++   -Dtensorflow_ops_EXPORTS -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/. -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./generated -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./include -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./ops -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux  -D_GLIBCXX_USE_CXX11_ABI=0 -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/tensorflow_ops.dir/ops/jvm_callback_op.cc.o -c /home/gadgil/software/tensorflow_scala/jni/src/main/native/ops/jvm_callback_op.cc
[info] [100%] Linking CXX shared module libtensorflow_ops.so
[info] /usr/bin/cmake -E cmake_link_script CMakeFiles/tensorflow_ops.dir/link.txt --verbose=1
[info] /usr/bin/c++  -fPIC  -D_GLIBCXX_USE_CXX11_ABI=0 -O3 -DNDEBUG  -shared  -o libtensorflow_ops.so CMakeFiles/tensorflow_ops.dir/ops/jvm_callback_op.cc.o  -L/home/gadgil/software/tensorflow/bazel-bin/tensorflow -ltensorflow -ltensorflow_framework -Wl,-rpath,"\$ORIGIN" 
[info] make[2]: Leaving directory '/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build'
[info] [100%] Built target tensorflow_ops
[info] make[1]: Leaving directory '/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build'
[info] /usr/bin/cmake -E cmake_progress_start /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build/CMakeFiles 0
[info] [ 91%] Built target tensorflow_jni
[info] [100%] Built target tensorflow_ops
[info] Install the project...
[info] -- Install configuration: "Release"
[info] -- Installing: /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/bin/./libtensorflow_jni.so
[info] -- Installing: /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/bin/./libtensorflow_ops.so
[success] Libraries built in:
[success]   - /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/bin/libtensorflow_ops.so
[success]   - /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/bin/libtensorflow_jni.so
[info] Compiling 18 Scala sources to /home/gadgil/software/tensorflow_scala/jni/target/scala-2.12/classes ...
[info] Done compiling.
[info] Compiling 160 Scala sources and 1 Java source to /home/gadgil/software/tensorflow_scala/api/target/scala-2.12/classes ...
[warn] /home/gadgil/software/tensorflow_scala/api/src/main/scala/org/platanios/tensorflow/api/ops/Math.scala:2531:51: method floorDivide in trait Math is deprecated (since 0.1): Use `truncateDivide` instead.
[warn]     def floorDivide(other: Output): Output = Math.floorDivide(output, other)
[warn]                                                   ^
[warn] /home/gadgil/software/tensorflow_scala/api/src/main/scala/org/platanios/tensorflow/api/ops/variables/Saver.scala:831:27: method saveSlicesOp in object SaverDefBuilder is deprecated (since 0.1): The V1 checkpoint format version has been deprecated.
[warn]           SaverDefBuilder.saveSlicesOp(prefix, tensorNames, tensors, slices, name)
[warn]                           ^
[warn] /home/gadgil/software/tensorflow_scala/api/src/main/scala/org/platanios/tensorflow/api/tensors/ops/Math.scala:2204:51: method floorDivide in trait Math is deprecated (since 0.1): Use `truncateDivide` instead.
[warn]     def floorDivide(other: Tensor): Tensor = Math.floorDivide(tensor, other)
[warn]                                                   ^
[warn] three warnings found
[info] Done compiling.
[info] Compiling 4 Scala sources to /home/gadgil/software/tensorflow_scala/data/target/scala-2.12/classes ...
[info] Done compiling.
[info] Compiling 4 Scala sources to /home/gadgil/software/tensorflow_scala/examples/target/scala-2.12/classes ...
[info] Done compiling.
[success] Total time: 114 s, completed 8 Nov, 2017 8:55:19 AM
[info] Generating TensorFlow tensor op files.
[info] Building library with native build tool CMake.
[info] -- JNI include directories: /usr/lib/jvm/java-8-oracle/include;/usr/lib/jvm/java-8-oracle/include/linux;/usr/lib/jvm/java-8-oracle/include
[info] -- Configuring done
[info] -- Generating done
[info] -- Build files have been written to: /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build
[info] /usr/bin/cmake -H/home/gadgil/software/tensorflow_scala/jni/src/main/native -B/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build --check-build-system CMakeFiles/Makefile.cmake 0
[info] /usr/bin/cmake -E cmake_progress_start /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build/CMakeFiles /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build/CMakeFiles/progress.marks
[info] make -f CMakeFiles/Makefile2 all
[info] make[1]: Entering directory '/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build'
[info] make -f CMakeFiles/tensorflow_jni.dir/build.make CMakeFiles/tensorflow_jni.dir/depend
[info] make[2]: Entering directory '/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build'
[info] cd /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/gadgil/software/tensorflow_scala/jni/src/main/native /home/gadgil/software/tensorflow_scala/jni/src/main/native /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build/CMakeFiles/tensorflow_jni.dir/DependInfo.cmake --color=
[info] Dependee "/home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_basic_ops.cc" is newer than depender "CMakeFiles/tensorflow_jni.dir/generated/tensor_basic_ops.cc.o".
[info] Dependee "/home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_basic_ops.h" is newer than depends file "/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build/CMakeFiles/tensorflow_jni.dir/depend.internal".
[info] Dependee "/home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_math_ops.cc" is newer than depender "CMakeFiles/tensorflow_jni.dir/generated/tensor_math_ops.cc.o".
[info] Dependee "/home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_math_ops.h" is newer than depends file "/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build/CMakeFiles/tensorflow_jni.dir/depend.internal".
[info] Dependee "/home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_nn_ops.cc" is newer than depender "CMakeFiles/tensorflow_jni.dir/generated/tensor_nn_ops.cc.o".
[info] Dependee "/home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_nn_ops.h" is newer than depends file "/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build/CMakeFiles/tensorflow_jni.dir/depend.internal".
[info] Dependee "/home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_random_ops.cc" is newer than depender "CMakeFiles/tensorflow_jni.dir/generated/tensor_random_ops.cc.o".
[info] Dependee "/home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_random_ops.h" is newer than depends file "/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build/CMakeFiles/tensorflow_jni.dir/depend.internal".
[info] Dependee "/home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_sparse_ops.cc" is newer than depender "CMakeFiles/tensorflow_jni.dir/generated/tensor_sparse_ops.cc.o".
[info] Dependee "/home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_sparse_ops.h" is newer than depends file "/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build/CMakeFiles/tensorflow_jni.dir/depend.internal".
[info] Dependee "/home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_text_ops.cc" is newer than depender "CMakeFiles/tensorflow_jni.dir/generated/tensor_text_ops.cc.o".
[info] Dependee "/home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_text_ops.h" is newer than depends file "/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build/CMakeFiles/tensorflow_jni.dir/depend.internal".
[info] Clearing dependencies in "/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build/CMakeFiles/tensorflow_jni.dir/depend.make".
[info] Scanning dependencies of target tensorflow_jni
[info] make[2]: Leaving directory '/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build'
[info] make -f CMakeFiles/tensorflow_jni.dir/build.make CMakeFiles/tensorflow_jni.dir/build
[info] make[2]: Entering directory '/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build'
[info] [  4%] Building CXX object CMakeFiles/tensorflow_jni.dir/generated/tensor_nn_ops.cc.o
[info] /usr/bin/c++   -Dtensorflow_jni_EXPORTS -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/. -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./generated -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./include -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./ops -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux  -D_GLIBCXX_USE_CXX11_ABI=0 -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/tensorflow_jni.dir/generated/tensor_nn_ops.cc.o -c /home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_nn_ops.cc
[info] [  8%] Building CXX object CMakeFiles/tensorflow_jni.dir/generated/tensor_sparse_ops.cc.o
[info] /usr/bin/c++   -Dtensorflow_jni_EXPORTS -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/. -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./generated -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./include -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./ops -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux  -D_GLIBCXX_USE_CXX11_ABI=0 -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/tensorflow_jni.dir/generated/tensor_sparse_ops.cc.o -c /home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_sparse_ops.cc
[info] [ 12%] Building CXX object CMakeFiles/tensorflow_jni.dir/generated/tensor_math_ops.cc.o
[info] /usr/bin/c++   -Dtensorflow_jni_EXPORTS -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/. -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./generated -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./include -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./ops -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux  -D_GLIBCXX_USE_CXX11_ABI=0 -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/tensorflow_jni.dir/generated/tensor_math_ops.cc.o -c /home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_math_ops.cc
[info] [ 16%] Building CXX object CMakeFiles/tensorflow_jni.dir/generated/tensor_basic_ops.cc.o
[info] /usr/bin/c++   -Dtensorflow_jni_EXPORTS -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/. -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./generated -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./include -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./ops -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux  -D_GLIBCXX_USE_CXX11_ABI=0 -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/tensorflow_jni.dir/generated/tensor_basic_ops.cc.o -c /home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_basic_ops.cc
[info] [ 20%] Building CXX object CMakeFiles/tensorflow_jni.dir/generated/tensor_text_ops.cc.o
[info] /usr/bin/c++   -Dtensorflow_jni_EXPORTS -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/. -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./generated -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./include -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./ops -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux  -D_GLIBCXX_USE_CXX11_ABI=0 -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/tensorflow_jni.dir/generated/tensor_text_ops.cc.o -c /home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_text_ops.cc
[info] [ 25%] Building CXX object CMakeFiles/tensorflow_jni.dir/generated/tensor_random_ops.cc.o
[info] /usr/bin/c++   -Dtensorflow_jni_EXPORTS -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/. -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./generated -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./include -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./ops -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux  -D_GLIBCXX_USE_CXX11_ABI=0 -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/tensorflow_jni.dir/generated/tensor_random_ops.cc.o -c /home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_random_ops.cc
[info] [ 29%] Linking CXX shared library libtensorflow_jni.so
[info] /usr/bin/cmake -E cmake_link_script CMakeFiles/tensorflow_jni.dir/link.txt --verbose=1
[info] /usr/bin/c++  -fPIC  -D_GLIBCXX_USE_CXX11_ABI=0 -O3 -DNDEBUG  -shared -Wl,-soname,libtensorflow_jni.so -o libtensorflow_jni.so CMakeFiles/tensorflow_jni.dir/tensor.cc.o CMakeFiles/tensorflow_jni.dir/session.cc.o CMakeFiles/tensorflow_jni.dir/record_reader.cc.o CMakeFiles/tensorflow_jni.dir/op.cc.o CMakeFiles/tensorflow_jni.dir/function.cc.o CMakeFiles/tensorflow_jni.dir/file_io.cc.o CMakeFiles/tensorflow_jni.dir/graph.cc.o CMakeFiles/tensorflow_jni.dir/checkpoint_reader.cc.o CMakeFiles/tensorflow_jni.dir/server.cc.o CMakeFiles/tensorflow_jni.dir/tensorflow.cc.o CMakeFiles/tensorflow_jni.dir/generated/tensor_nn_ops.cc.o CMakeFiles/tensorflow_jni.dir/generated/tensor_sparse_ops.cc.o CMakeFiles/tensorflow_jni.dir/generated/tensor_math_ops.cc.o CMakeFiles/tensorflow_jni.dir/generated/tensor_basic_ops.cc.o CMakeFiles/tensorflow_jni.dir/generated/tensor_text_ops.cc.o CMakeFiles/tensorflow_jni.dir/generated/tensor_random_ops.cc.o CMakeFiles/tensorflow_jni.dir/include/tensorflow/c/status_helper.cc.o CMakeFiles/tensorflow_jni.dir/include/tensorflow/c/record_reader.cc.o CMakeFiles/tensorflow_jni.dir/include/tensorflow/c/python_api.cc.o CMakeFiles/tensorflow_jni.dir/include/tensorflow/c/checkpoint_reader.cc.o CMakeFiles/tensorflow_jni.dir/include/tensorflow/core/distributed_runtime/server_lib.cc.o  -L/home/gadgil/software/tensorflow/bazel-bin/tensorflow -ltensorflow -ltensorflow_framework -Wl,-rpath,"\$ORIGIN" 
[info] make[2]: Leaving directory '/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build'
[info] [ 91%] Built target tensorflow_jni
[info] make -f CMakeFiles/tensorflow_ops.dir/build.make CMakeFiles/tensorflow_ops.dir/depend
[info] make[2]: Entering directory '/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build'
[info] cd /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/gadgil/software/tensorflow_scala/jni/src/main/native /home/gadgil/software/tensorflow_scala/jni/src/main/native /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build/CMakeFiles/tensorflow_ops.dir/DependInfo.cmake --color=
[info] make[2]: Leaving directory '/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build'
[info] make -f CMakeFiles/tensorflow_ops.dir/build.make CMakeFiles/tensorflow_ops.dir/build
[info] make[2]: Entering directory '/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build'
[info] make[2]: Nothing to be done for 'CMakeFiles/tensorflow_ops.dir/build'.
[info] make[2]: Leaving directory '/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build'
[info] [100%] Built target tensorflow_ops
[info] make[1]: Leaving directory '/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build'
[info] /usr/bin/cmake -E cmake_progress_start /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build/CMakeFiles 0
[info] [ 91%] Built target tensorflow_jni
[info] [100%] Built target tensorflow_ops
[info] Install the project...
[info] -- Install configuration: "Release"
[info] -- Installing: /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/bin/./libtensorflow_jni.so
[info] -- Up-to-date: /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/bin/./libtensorflow_ops.so
[success] Libraries built in:
[success]   - /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/bin/libtensorflow_ops.so
[success]   - /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/bin/libtensorflow_jni.so
[success] Total time: 18 s, completed 8 Nov, 2017 8:55:38 AM
[info] Generating TensorFlow tensor op files.
[info] Building library with native build tool CMake.
[info] -- JNI include directories: /usr/lib/jvm/java-8-oracle/include;/usr/lib/jvm/java-8-oracle/include/linux;/usr/lib/jvm/java-8-oracle/include
[info] -- Configuring done
[info] -- Generating done
[info] -- Build files have been written to: /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build
[info] /usr/bin/cmake -H/home/gadgil/software/tensorflow_scala/jni/src/main/native -B/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build --check-build-system CMakeFiles/Makefile.cmake 0
[info] /usr/bin/cmake -E cmake_progress_start /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build/CMakeFiles /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build/CMakeFiles/progress.marks
[info] make -f CMakeFiles/Makefile2 all
[info] make[1]: Entering directory '/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build'
[info] make -f CMakeFiles/tensorflow_jni.dir/build.make CMakeFiles/tensorflow_jni.dir/depend
[info] make[2]: Entering directory '/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build'
[info] cd /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/gadgil/software/tensorflow_scala/jni/src/main/native /home/gadgil/software/tensorflow_scala/jni/src/main/native /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build/CMakeFiles/tensorflow_jni.dir/DependInfo.cmake --color=
[info] Dependee "/home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_basic_ops.cc" is newer than depender "CMakeFiles/tensorflow_jni.dir/generated/tensor_basic_ops.cc.o".
[info] Dependee "/home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_basic_ops.h" is newer than depends file "/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build/CMakeFiles/tensorflow_jni.dir/depend.internal".
[info] Dependee "/home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_math_ops.cc" is newer than depender "CMakeFiles/tensorflow_jni.dir/generated/tensor_math_ops.cc.o".
[info] Dependee "/home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_math_ops.h" is newer than depends file "/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build/CMakeFiles/tensorflow_jni.dir/depend.internal".
[info] Dependee "/home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_nn_ops.cc" is newer than depender "CMakeFiles/tensorflow_jni.dir/generated/tensor_nn_ops.cc.o".
[info] Dependee "/home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_nn_ops.h" is newer than depends file "/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build/CMakeFiles/tensorflow_jni.dir/depend.internal".
[info] Dependee "/home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_random_ops.cc" is newer than depender "CMakeFiles/tensorflow_jni.dir/generated/tensor_random_ops.cc.o".
[info] Dependee "/home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_random_ops.h" is newer than depends file "/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build/CMakeFiles/tensorflow_jni.dir/depend.internal".
[info] Dependee "/home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_sparse_ops.cc" is newer than depender "CMakeFiles/tensorflow_jni.dir/generated/tensor_sparse_ops.cc.o".
[info] Dependee "/home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_sparse_ops.h" is newer than depends file "/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build/CMakeFiles/tensorflow_jni.dir/depend.internal".
[info] Dependee "/home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_text_ops.cc" is newer than depender "CMakeFiles/tensorflow_jni.dir/generated/tensor_text_ops.cc.o".
[info] Dependee "/home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_text_ops.h" is newer than depends file "/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build/CMakeFiles/tensorflow_jni.dir/depend.internal".
[info] Clearing dependencies in "/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build/CMakeFiles/tensorflow_jni.dir/depend.make".
[info] Scanning dependencies of target tensorflow_jni
[info] make[2]: Leaving directory '/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build'
[info] make -f CMakeFiles/tensorflow_jni.dir/build.make CMakeFiles/tensorflow_jni.dir/build
[info] make[2]: Entering directory '/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build'
[info] [  4%] Building CXX object CMakeFiles/tensorflow_jni.dir/generated/tensor_nn_ops.cc.o
[info] /usr/bin/c++   -Dtensorflow_jni_EXPORTS -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/. -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./generated -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./include -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./ops -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux  -D_GLIBCXX_USE_CXX11_ABI=0 -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/tensorflow_jni.dir/generated/tensor_nn_ops.cc.o -c /home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_nn_ops.cc
[info] [  8%] Building CXX object CMakeFiles/tensorflow_jni.dir/generated/tensor_sparse_ops.cc.o
[info] /usr/bin/c++   -Dtensorflow_jni_EXPORTS -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/. -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./generated -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./include -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./ops -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux  -D_GLIBCXX_USE_CXX11_ABI=0 -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/tensorflow_jni.dir/generated/tensor_sparse_ops.cc.o -c /home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_sparse_ops.cc
[info] [ 12%] Building CXX object CMakeFiles/tensorflow_jni.dir/generated/tensor_math_ops.cc.o
[info] /usr/bin/c++   -Dtensorflow_jni_EXPORTS -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/. -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./generated -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./include -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./ops -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux  -D_GLIBCXX_USE_CXX11_ABI=0 -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/tensorflow_jni.dir/generated/tensor_math_ops.cc.o -c /home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_math_ops.cc
[info] [ 16%] Building CXX object CMakeFiles/tensorflow_jni.dir/generated/tensor_basic_ops.cc.o
[info] /usr/bin/c++   -Dtensorflow_jni_EXPORTS -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/. -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./generated -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./include -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./ops -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux  -D_GLIBCXX_USE_CXX11_ABI=0 -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/tensorflow_jni.dir/generated/tensor_basic_ops.cc.o -c /home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_basic_ops.cc
[info] [ 20%] Building CXX object CMakeFiles/tensorflow_jni.dir/generated/tensor_text_ops.cc.o
[info] /usr/bin/c++   -Dtensorflow_jni_EXPORTS -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/. -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./generated -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./include -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./ops -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux  -D_GLIBCXX_USE_CXX11_ABI=0 -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/tensorflow_jni.dir/generated/tensor_text_ops.cc.o -c /home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_text_ops.cc
[info] [ 25%] Building CXX object CMakeFiles/tensorflow_jni.dir/generated/tensor_random_ops.cc.o
[info] /usr/bin/c++   -Dtensorflow_jni_EXPORTS -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/. -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./generated -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./include -I/home/gadgil/software/tensorflow_scala/jni/src/main/native/./ops -I/usr/lib/jvm/java-8-oracle/include -I/usr/lib/jvm/java-8-oracle/include/linux  -D_GLIBCXX_USE_CXX11_ABI=0 -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/tensorflow_jni.dir/generated/tensor_random_ops.cc.o -c /home/gadgil/software/tensorflow_scala/jni/src/main/native/generated/tensor_random_ops.cc
[info] [ 29%] Linking CXX shared library libtensorflow_jni.so
[info] /usr/bin/cmake -E cmake_link_script CMakeFiles/tensorflow_jni.dir/link.txt --verbose=1
[info] /usr/bin/c++  -fPIC  -D_GLIBCXX_USE_CXX11_ABI=0 -O3 -DNDEBUG  -shared -Wl,-soname,libtensorflow_jni.so -o libtensorflow_jni.so CMakeFiles/tensorflow_jni.dir/tensor.cc.o CMakeFiles/tensorflow_jni.dir/session.cc.o CMakeFiles/tensorflow_jni.dir/record_reader.cc.o CMakeFiles/tensorflow_jni.dir/op.cc.o CMakeFiles/tensorflow_jni.dir/function.cc.o CMakeFiles/tensorflow_jni.dir/file_io.cc.o CMakeFiles/tensorflow_jni.dir/graph.cc.o CMakeFiles/tensorflow_jni.dir/checkpoint_reader.cc.o CMakeFiles/tensorflow_jni.dir/server.cc.o CMakeFiles/tensorflow_jni.dir/tensorflow.cc.o CMakeFiles/tensorflow_jni.dir/generated/tensor_nn_ops.cc.o CMakeFiles/tensorflow_jni.dir/generated/tensor_sparse_ops.cc.o CMakeFiles/tensorflow_jni.dir/generated/tensor_math_ops.cc.o CMakeFiles/tensorflow_jni.dir/generated/tensor_basic_ops.cc.o CMakeFiles/tensorflow_jni.dir/generated/tensor_text_ops.cc.o CMakeFiles/tensorflow_jni.dir/generated/tensor_random_ops.cc.o CMakeFiles/tensorflow_jni.dir/include/tensorflow/c/status_helper.cc.o CMakeFiles/tensorflow_jni.dir/include/tensorflow/c/record_reader.cc.o CMakeFiles/tensorflow_jni.dir/include/tensorflow/c/python_api.cc.o CMakeFiles/tensorflow_jni.dir/include/tensorflow/c/checkpoint_reader.cc.o CMakeFiles/tensorflow_jni.dir/include/tensorflow/core/distributed_runtime/server_lib.cc.o  -L/home/gadgil/software/tensorflow/bazel-bin/tensorflow -ltensorflow -ltensorflow_framework -Wl,-rpath,"\$ORIGIN" 
[info] make[2]: Leaving directory '/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build'
[info] [ 91%] Built target tensorflow_jni
[info] make -f CMakeFiles/tensorflow_ops.dir/build.make CMakeFiles/tensorflow_ops.dir/depend
[info] make[2]: Entering directory '/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build'
[info] cd /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/gadgil/software/tensorflow_scala/jni/src/main/native /home/gadgil/software/tensorflow_scala/jni/src/main/native /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build/CMakeFiles/tensorflow_ops.dir/DependInfo.cmake --color=
[info] make[2]: Leaving directory '/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build'
[info] make -f CMakeFiles/tensorflow_ops.dir/build.make CMakeFiles/tensorflow_ops.dir/build
[info] make[2]: Entering directory '/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build'
[info] make[2]: Nothing to be done for 'CMakeFiles/tensorflow_ops.dir/build'.
[info] make[2]: Leaving directory '/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build'
[info] [100%] Built target tensorflow_ops
[info] make[1]: Leaving directory '/home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build'
[info] /usr/bin/cmake -E cmake_progress_start /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/build/CMakeFiles 0
[info] [ 91%] Built target tensorflow_jni
[info] [100%] Built target tensorflow_ops
[info] Install the project...
[info] -- Install configuration: "Release"
[info] -- Installing: /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/bin/./libtensorflow_jni.so
[info] -- Up-to-date: /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/bin/./libtensorflow_ops.so
[success] Libraries built in:
[success]   - /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/bin/libtensorflow_ops.so
[success]   - /home/gadgil/software/tensorflow_scala/jni/target/native/linux-x86_64/bin/libtensorflow_jni.so
[info] Starting scala interpreter...
Welcome to Scala 2.12.4 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_101).
Type in expressions for evaluation. Or try :help.

scala> ^[[A^[[A^[[A
import org.platanios.tensorflow.api._
import org.platanios.tensorflow.api._

scala> ^[[A^[[A^[[A
val tensor = Tensor.zeros(INT32, Shape(2, 5))
2017-11-08 09:02:24.852 [run-main-0] INFO  TensorFlow Native - Extracting the 'tensorflow_jni' native library to /tmp/tensorflow_scala_native_libraries8504449906885489763/libtensorflow_jni.so.
2017-11-08 09:02:24.858 [run-main-0] INFO  TensorFlow Native - Copied 607880 bytes to /tmp/tensorflow_scala_native_libraries8504449906885489763/libtensorflow_jni.so.
2017-11-08 09:02:24.896 [run-main-0] INFO  TensorFlow Native - Extracting the 'tensorflow_ops' native library to /tmp/tensorflow_scala_native_libraries8504449906885489763/libtensorflow_ops.so.
2017-11-08 09:02:24.896 [run-main-0] INFO  TensorFlow Native - Copied 51128 bytes to /tmp/tensorflow_scala_native_libraries8504449906885489763/libtensorflow_ops.so.
org.platanios.tensorflow.jni.NotFoundException: /tmp/tensorflow_scala_native_libraries8504449906885489763/libtensorflow_ops.so: undefined symbol: _ZN10tensorflow7strings8internal9CatPiecesESt16initializer_listINS_11StringPieceEE
  at org.platanios.tensorflow.jni.TensorFlow$.loadOpLibrary(Native Method)
  at org.platanios.tensorflow.jni.TensorFlow$.$anonfun$load$6(TensorFlow.scala:107)
  at scala.Option.foreach(Option.scala:257)
  at org.platanios.tensorflow.jni.TensorFlow$.load(TensorFlow.scala:107)
  at org.platanios.tensorflow.jni.TensorFlow$.<init>(TensorFlow.scala:155)
  at org.platanios.tensorflow.jni.TensorFlow$.<clinit>(TensorFlow.scala)
  at org.platanios.tensorflow.jni.Tensor$.<init>(Tensor.scala:24)
  at org.platanios.tensorflow.jni.Tensor$.<clinit>(Tensor.scala)
  at org.platanios.tensorflow.api.tensors.Context$.apply(Context.scala:50)
  at org.platanios.tensorflow.api.package$.<init>(package.scala:47)
  at org.platanios.tensorflow.api.package$.<clinit>(package.scala)
  ... 36 elided
lucataglia commented 6 years ago

@eaplatanios I retry today to check the point 1 and the point 3 and with the LinearRegression example everything seem to be ok.

Point 1: UbuntuMate 17.04 Scala 2.11.11 Sbt 0.13

Point 3: macOS Sierra 10.12.6 Scala 2.11.11 Sbt 0.13

I clear the .ivy2/cache before every test I've done this morning. It's seem everything it's fine for the moment.

eaplatanios commented 6 years ago

@siddhartha-gadgil I am not able to reproduce the problem you are having. Could you please try to set this up in a clean environment and see if it occurs again?

@lucaRadicalbit That's great! Thanks for the update! :)

siddhartha-gadgil commented 6 years ago

Unfortunately the problem persists with a fresh install on my laptop at home (also Ubuntu 16.04). I had previously not edited .jvmopts but did so this time. This was almost a clean install:

On Sun, Nov 12, 2017 at 12:28 AM Anthony Platanios notifications@github.com wrote:

@siddhartha-gadgil https://github.com/siddhartha-gadgil I am not able to reproduce the problem you are having. Could you please try to set this up in a clean environment and see if it occurs again?

@lucaRadicalbit https://github.com/lucaradicalbit That's great! Thanks for the update! :)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/eaplatanios/tensorflow_scala/issues/41#issuecomment-343686499, or mute the thread https://github.com/notifications/unsubscribe-auth/ADatpAP83jkIm5Oef8CicaW7Q-fF888Kks5s1e5mgaJpZM4QTua7 .

siddhartha-gadgil commented 6 years ago

Just to highlight one point in the logs, I get

[info] [ 91%] Built target tensorflow_jni
[info] [100%] Built target tensorflow_ops

Is the problem in the 91% build of tensorflow_jni?

Another possibly significant log is:

[error] CMake Warning:
[error]   Manually-specified variables were not used by the project:
[error]     LD_LIBRARY_PATH

Should I move the .so files to some default directory of CMAKE? Should I add it to my PATH (not just LD_LIBRARY_PATH)?

Thanks, Siddhartha

On Sun, Nov 12, 2017 at 9:46 AM Siddhartha Gadgil < siddhartha.gadgil@gmail.com> wrote:

Unfortunately the problem persists with a fresh install on my laptop at home (also Ubuntu 16.04). I had previously not edited .jvmopts but did so this time. This was almost a clean install:

  • Python 3 was installed previously as part of Anaconda.
  • bazel and tensorflow were freshly installed, the latter from the master branch of the source.
  • protocol buffer 3 was installed following https://gist.github.com/sofyanhadia/37787e5ed098c97919b8c593f0ec44d8
  • I git cloned tensorflow_scala and ran sbt compile nativeCompile console.
  • I got the same error as before.
    val tensor = Tensor.zeros(INT32, Shape(2, 5))
    2017-11-12 09:37:19.928 [run-main-0] INFO  TensorFlow Native - Extracting
    the 'tensorflow_jni' native library to
    /tmp/tensorflow_scala_native_libraries6191741299257531163/libtensorflow_jni.so.
    2017-11-12 09:37:19.935 [run-main-0] INFO  TensorFlow Native - Copied
    608416 bytes to
    /tmp/tensorflow_scala_native_libraries6191741299257531163/libtensorflow_jni.so.
    2017-11-12 09:37:19.988 [run-main-0] INFO  TensorFlow Native - Extracting
    the 'tensorflow_ops' native library to
    /tmp/tensorflow_scala_native_libraries6191741299257531163/libtensorflow_ops.so.
    2017-11-12 09:37:19.989 [run-main-0] INFO  TensorFlow Native - Copied
    51128 bytes to
    /tmp/tensorflow_scala_native_libraries6191741299257531163/libtensorflow_ops.so.
    org.platanios.tensorflow.jni.NotFoundException:
    /tmp/tensorflow_scala_native_libraries6191741299257531163/libtensorflow_ops.so:
    undefined symbol:
    _ZN10tensorflow7strings8internal9CatPiecesESt16initializer_listINS_11StringPieceEE
    at org.platanios.tensorflow.jni.TensorFlow$.loadOpLibrary(Native Method)
    at
    org.platanios.tensorflow.jni.TensorFlow$.$anonfun$load$6(TensorFlow.scala:107)
    at scala.Option.foreach(Option.scala:257)
    at org.platanios.tensorflow.jni.TensorFlow$.load(TensorFlow.scala:107)
    at org.platanios.tensorflow.jni.TensorFlow$.<init>(TensorFlow.scala:155)
    at org.platanios.tensorflow.jni.TensorFlow$.<clinit>(TensorFlow.scala)
    at org.platanios.tensorflow.jni.Tensor$.<init>(Tensor.scala:24)
    at org.platanios.tensorflow.jni.Tensor$.<clinit>(Tensor.scala)
    at org.platanios.tensorflow.api.tensors.Context$.apply(Context.scala:50)
    at org.platanios.tensorflow.api.package$.<init>(package.scala:47)
    at org.platanios.tensorflow.api.package$.<clinit>(package.scala)
    ... 36 elided

On Sun, Nov 12, 2017 at 12:28 AM Anthony Platanios < notifications@github.com> wrote:

@siddhartha-gadgil https://github.com/siddhartha-gadgil I am not able to reproduce the problem you are having. Could you please try to set this up in a clean environment and see if it occurs again?

@lucaRadicalbit https://github.com/lucaradicalbit That's great! Thanks for the update! :)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/eaplatanios/tensorflow_scala/issues/41#issuecomment-343686499, or mute the thread https://github.com/notifications/unsubscribe-auth/ADatpAP83jkIm5Oef8CicaW7Q-fF888Kks5s1e5mgaJpZM4QTua7 .

eaplatanios commented 6 years ago

Could you try moving the so files to /usr/lib or /usr/local/lib and see what happens?

On Nov 11, 2017, 11:21 PM -0500, Siddhartha Gadgil notifications@github.com, wrote:

Just to highlight one point in the logs, I get

[info] [ 91%] Built target tensorflow_jni
[info] [100%] Built target tensorflow_ops

Is the problem in the 91% build of tensorflow_jni?

Another possibly significant log is:

[error] CMake Warning:
[error] Manually-specified variables were not used by the project:
[error] LD_LIBRARY_PATH

Should I move the .so files to some default directory of CMAKE? Should I add it to my PATH (not just LD_LIBRARY_PATH)?

Thanks, Siddhartha

On Sun, Nov 12, 2017 at 9:46 AM Siddhartha Gadgil < siddhartha.gadgil@gmail.com> wrote:

Unfortunately the problem persists with a fresh install on my laptop at home (also Ubuntu 16.04). I had previously not edited .jvmopts but did so this time. This was almost a clean install:

  • Python 3 was installed previously as part of Anaconda.
  • bazel and tensorflow were freshly installed, the latter from the master branch of the source.
  • protocol buffer 3 was installed following https://gist.github.com/sofyanhadia/37787e5ed098c97919b8c593f0ec44d8
  • I git cloned tensorflow_scala and ran sbt compile nativeCompile console.
  • I got the same error as before.
    val tensor = Tensor.zeros(INT32, Shape(2, 5))
    2017-11-12 09:37:19.928 [run-main-0] INFO TensorFlow Native - Extracting
    the 'tensorflow_jni' native library to
    /tmp/tensorflow_scala_native_libraries6191741299257531163/libtensorflow_jni.so.
    2017-11-12 09:37:19.935 [run-main-0] INFO TensorFlow Native - Copied
    608416 bytes to
    /tmp/tensorflow_scala_native_libraries6191741299257531163/libtensorflow_jni.so.
    2017-11-12 09:37:19.988 [run-main-0] INFO TensorFlow Native - Extracting
    the 'tensorflow_ops' native library to
    /tmp/tensorflow_scala_native_libraries6191741299257531163/libtensorflow_ops.so.
    2017-11-12 09:37:19.989 [run-main-0] INFO TensorFlow Native - Copied
    51128 bytes to
    /tmp/tensorflow_scala_native_libraries6191741299257531163/libtensorflow_ops.so.
    org.platanios.tensorflow.jni.NotFoundException:
    /tmp/tensorflow_scala_native_libraries6191741299257531163/libtensorflow_ops.so:
    undefined symbol:
    _ZN10tensorflow7strings8internal9CatPiecesESt16initializer_listINS_11StringPieceEE
    at org.platanios.tensorflow.jni.TensorFlow$.loadOpLibrary(Native Method)
    at
    org.platanios.tensorflow.jni.TensorFlow$.$anonfun$load$6(TensorFlow.scala:107)
    at scala.Option.foreach(Option.scala:257)
    at org.platanios.tensorflow.jni.TensorFlow$.load(TensorFlow.scala:107)
    at org.platanios.tensorflow.jni.TensorFlow$.<init>(TensorFlow.scala:155)
    at org.platanios.tensorflow.jni.TensorFlow$.<clinit>(TensorFlow.scala)
    at org.platanios.tensorflow.jni.Tensor$.<init>(Tensor.scala:24)
    at org.platanios.tensorflow.jni.Tensor$.<clinit>(Tensor.scala)
    at org.platanios.tensorflow.api.tensors.Context$.apply(Context.scala:50)
    at org.platanios.tensorflow.api.package$.<init>(package.scala:47)
    at org.platanios.tensorflow.api.package$.<clinit>(package.scala)
    ... 36 elided

On Sun, Nov 12, 2017 at 12:28 AM Anthony Platanios < notifications@github.com> wrote:

@siddhartha-gadgil https://github.com/siddhartha-gadgil I am not able to reproduce the problem you are having. Could you please try to set this up in a clean environment and see if it occurs again?

@lucaRadicalbit https://github.com/lucaradicalbit That's great! Thanks for the update! :)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/eaplatanios/tensorflow_scala/issues/41#issuecomment-343686499, or mute the thread https://github.com/notifications/unsubscribe-auth/ADatpAP83jkIm5Oef8CicaW7Q-fF888Kks5s1e5mgaJpZM4QTua7 .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

siddhartha-gadgil commented 6 years ago

I copied them to /usr/lib, but the error persists. Here is what happens when I try to run the linear regression example.

Multiple main classes detected, select one to run:

 [1] org.platanios.tensorflow.examples.CIFAR
 [2] org.platanios.tensorflow.examples.LinearRegression
 [3] org.platanios.tensorflow.examples.MNIST
 [4] org.platanios.tensorflow.examples.RNNTutorialUsingPTB
 [5] org.platanios.tensorflow.examples.STL10
[info] Packaging /home/gadgil/code/tensorflow_scala/examples/target/scala-2.12/tensorflow-examples_2.12-0.1.0-SNAPSHOT.jar ...
[info] Done packaging.

Enter number: 2

[info] Running org.platanios.tensorflow.examples.LinearRegression 
[debug] Waiting for threads to exit or System.exit to be called.
[debug]   Classpath:
[debug]     /tmp/sbt_b66935bb/job-2/target/fb5fe733/tensorflow-examples_2.12-0.1.0-SNAPSHOT.jar
[debug]     /tmp/sbt_b66935bb/target/71f23dea/tensorflow-api_2.12-0.1.0-SNAPSHOT.jar
[debug]     /tmp/sbt_b66935bb/target/3c7691c9/tensorflow-jni_2.12-0.1.0-SNAPSHOT.jar
[debug]     /tmp/sbt_b66935bb/target/e081ad71/tensorflow-data_2.12-0.1.0-SNAPSHOT.jar
[debug]     /tmp/sbt_b66935bb/target/7663f74e/scala-library.jar
[debug]     /tmp/sbt_b66935bb/target/a1dc9750/scala-logging_2.12-3.7.2.jar
[debug]     /tmp/sbt_b66935bb/target/2df9e601/scala-reflect.jar
[debug]     /tmp/sbt_b66935bb/target/da76ca59/slf4j-api-1.7.25.jar
[debug]     /tmp/sbt_b66935bb/target/7c4f3c47/logback-classic-1.2.3.jar
[debug]     /tmp/sbt_b66935bb/target/86434440/logback-core-1.2.3.jar
[debug]     /tmp/sbt_b66935bb/target/2973d150/junit-4.12.jar
[debug]     /tmp/sbt_b66935bb/target/42a25dc3/hamcrest-core-1.3.jar
[debug]     /tmp/sbt_b66935bb/target/e75f0f9c/scalactic_2.12-3.0.4.jar
[debug]     /tmp/sbt_b66935bb/target/b32aba0c/protobuf-java-3.4.0.jar
[debug]     /tmp/sbt_b66935bb/target/ba7c2c95/spire_2.12-0.14.1.jar
[debug]     /tmp/sbt_b66935bb/target/e3331fb0/spire-macros_2.12-0.14.1.jar
[debug]     /tmp/sbt_b66935bb/target/13f7388c/machinist_2.12-0.6.1.jar
[debug]     /tmp/sbt_b66935bb/target/14c8716e/algebra_2.12-0.7.0.jar
[debug]     /tmp/sbt_b66935bb/target/24eae5d3/cats-kernel_2.12-0.9.0.jar
[debug]     /tmp/sbt_b66935bb/target/677ae7e2/proto-1.4.0.jar
[debug]     /tmp/sbt_b66935bb/target/27e115ff/shapeless_2.12-2.3.2.jar
[debug]     /tmp/sbt_b66935bb/target/ed809d26/macro-compat_2.12-1.1.1.jar
[debug]     /tmp/sbt_b66935bb/target/8ef5f36a/circe-core_2.12-0.8.0.jar
[debug]     /tmp/sbt_b66935bb/target/b29b758a/circe-numbers_2.12-0.8.0.jar
[debug]     /tmp/sbt_b66935bb/target/267cebe0/cats-core_2.12-0.9.0.jar
[debug]     /tmp/sbt_b66935bb/target/4733f822/cats-macros_2.12-0.9.0.jar
[debug]     /tmp/sbt_b66935bb/target/043c9efa/simulacrum_2.12-0.10.0.jar
[debug]     /tmp/sbt_b66935bb/target/4999ed20/circe-generic_2.12-0.8.0.jar
[debug]     /tmp/sbt_b66935bb/target/68788909/circe-parser_2.12-0.8.0.jar
[debug]     /tmp/sbt_b66935bb/target/ef0c0ab6/circe-jawn_2.12-0.8.0.jar
[debug]     /tmp/sbt_b66935bb/target/452b1bdf/jawn-parser_2.12-0.10.4.jar
[debug]     /tmp/sbt_b66935bb/target/b686cd04/commons-compress-1.15.jar
[debug]     /tmp/sbt_b66935bb/target/63903346/objenesis-2.6.jar
[debug] Waiting for thread run-main-1 to terminate.
2017-11-12 12:42:53.282 [run-main-1] INFO  Examples / Linear Regression - Building linear regression model.
2017-11-12 12:42:53.420 [run-main-1] INFO  TensorFlow Native - Extracting the 'tensorflow_jni' native library to /tmp/tensorflow_scala_native_libraries6310395897331268898/libtensorflow_jni.so.
2017-11-12 12:42:53.427 [run-main-1] INFO  TensorFlow Native - Copied 608416 bytes to /tmp/tensorflow_scala_native_libraries6310395897331268898/libtensorflow_jni.so.
2017-11-12 12:42:53.429 [run-main-1] INFO  TensorFlow Native - Extracting the 'tensorflow_ops' native library to /tmp/tensorflow_scala_native_libraries6310395897331268898/libtensorflow_ops.so.
2017-11-12 12:42:53.429 [run-main-1] INFO  TensorFlow Native - Copied 51128 bytes to /tmp/tensorflow_scala_native_libraries6310395897331268898/libtensorflow_ops.so.
[error] (run-main-1) java.lang.ExceptionInInitializerError
[error] java.lang.ExceptionInInitializerError
[error]     at org.platanios.tensorflow.jni.Tensor$.<init>(Tensor.scala:24)
[error]     at org.platanios.tensorflow.jni.Tensor$.<clinit>(Tensor.scala)
[error]     at org.platanios.tensorflow.api.tensors.Context$.apply(Context.scala:50)
[error]     at org.platanios.tensorflow.api.package$.<init>(package.scala:47)
[error]     at org.platanios.tensorflow.api.package$.<clinit>(package.scala)
[error]     at org.platanios.tensorflow.examples.LinearRegression$.main(LinearRegression.scala:37)
[error]     at org.platanios.tensorflow.examples.LinearRegression.main(LinearRegression.scala)
[error]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[error]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[error]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[error]     at java.lang.reflect.Method.invoke(Method.java:498)
[error]     at sbt.Run.invokeMain(Run.scala:89)
[error]     at sbt.Run.run0(Run.scala:83)
[error]     at sbt.Run.execute$1(Run.scala:61)
[error]     at sbt.Run.$anonfun$run$4(Run.scala:73)
[error]     at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
[error]     at sbt.util.InterfaceUtil$$anon$1.get(InterfaceUtil.scala:10)
[error]     at sbt.TrapExit$App.run(TrapExit.scala:252)
[error]     at java.lang.Thread.run(Thread.java:745)
[error] Caused by: org.platanios.tensorflow.jni.NotFoundException: /tmp/tensorflow_scala_native_libraries6310395897331268898/libtensorflow_ops.so: undefined symbol: _ZN10tensorflow7strings8internal9CatPiecesESt16initializer_listINS_11StringPieceEE
[error]     at org.platanios.tensorflow.jni.TensorFlow$.loadOpLibrary(Native Method)
[error]     at org.platanios.tensorflow.jni.TensorFlow$.$anonfun$load$6(TensorFlow.scala:107)
[error]     at scala.Option.foreach(Option.scala:257)
[error]     at org.platanios.tensorflow.jni.TensorFlow$.load(TensorFlow.scala:107)
[error]     at org.platanios.tensorflow.jni.TensorFlow$.<init>(TensorFlow.scala:155)
[error]     at org.platanios.tensorflow.jni.TensorFlow$.<clinit>(TensorFlow.scala)
[error]     at org.platanios.tensorflow.jni.Tensor$.<init>(Tensor.scala:24)
[error]     at org.platanios.tensorflow.jni.Tensor$.<clinit>(Tensor.scala)
[error]     at org.platanios.tensorflow.api.tensors.Context$.apply(Context.scala:50)
[error]     at org.platanios.tensorflow.api.package$.<init>(package.scala:47)
[error]     at org.platanios.tensorflow.api.package$.<clinit>(package.scala)
[error]     at org.platanios.tensorflow.examples.LinearRegression$.main(LinearRegression.scala:37)
[error]     at org.platanios.tensorflow.examples.LinearRegression.main(LinearRegression.scala)
[error]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[error]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[error]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[error]     at java.lang.reflect.Method.invoke(Method.java:498)
[error]     at sbt.Run.invokeMain(Run.scala:89)
[error]     at sbt.Run.run0(Run.scala:83)
[error]     at sbt.Run.execute$1(Run.scala:61)
[error]     at sbt.Run.$anonfun$run$4(Run.scala:73)
[error]     at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
[error]     at sbt.util.InterfaceUtil$$anon$1.get(InterfaceUtil.scala:10)
[error]     at sbt.TrapExit$App.run(TrapExit.scala:252)
[error]     at java.lang.Thread.run(Thread.java:745)
[error] java.lang.RuntimeException: Nonzero exit code: 1
[error]     at sbt.Run$.executeTrapExit(Run.scala:120)
[error]     at sbt.Run.run(Run.scala:73)
[error]     at sbt.Defaults$.$anonfun$bgRunTask$5(Defaults.scala:1152)
[error]     at sbt.Defaults$.$anonfun$bgRunTask$5$adapted(Defaults.scala:1147)
[error]     at sbt.internal.BackgroundThreadPool.$anonfun$run$1(DefaultBackgroundJobService.scala:359)
[error]     at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
[error]     at scala.util.Try$.apply(Try.scala:209)
[error]     at sbt.internal.BackgroundThreadPool$BackgroundRunnable.run(DefaultBackgroundJobService.scala:282)
[error]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[error]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[error]     at java.lang.Thread.run(Thread.java:745)
[error] (examples/compile:run) Nonzero exit code: 1
[error] Total time: 252 s, completed 12 Nov, 2017 12:42:55 PM
siddhartha-gadgil commented 6 years ago

I see related issues at https://github.com/tensorflow/tensorflow/issues/1569 and https://github.com/tensorflow/models/issues/796

eaplatanios commented 6 years ago

@siddhartha-gadgil What version of GCC are you using when compiling the JNI bindings?

siddhartha-gadgil commented 6 years ago

The version is gcc (Ubuntu 5.4.0-6ubuntu1~16.04.5) 5.4.0 20160609

On Wed, Nov 15, 2017 at 1:22 PM Anthony Platanios notifications@github.com wrote:

@siddhartha-gadgil https://github.com/siddhartha-gadgil What version of GCC are you using when compiling the JNI bindings?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/eaplatanios/tensorflow_scala/issues/41#issuecomment-344512623, or mute the thread https://github.com/notifications/unsubscribe-auth/ADatpPniW-GQXp6Xcb2gX6CqMADUTYNRks5s2pgggaJpZM4QTua7 .

eaplatanios commented 6 years ago

@siddhartha-gadgil Would it be easy to try compiling it with GCC 4.8 to make sure that when our environments match all goes well?

siddhartha-gadgil commented 6 years ago

I changed my gcc and g++ versions to 4.85 (i.e., changed symbolic links and checked c++ points to this), but the error persists

On Thu, Nov 16, 2017 at 5:57 AM Anthony Platanios notifications@github.com wrote:

@siddhartha-gadgil https://github.com/siddhartha-gadgil Would it be easy to try compiling it with GCC 4.8 to make sure that when our environments match all goes well?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/eaplatanios/tensorflow_scala/issues/41#issuecomment-344774976, or mute the thread https://github.com/notifications/unsubscribe-auth/ADatpPY_zGeFCNTJMmDI-nPyX7JGiKy9ks5s24FogaJpZM4QTua7 .

eaplatanios commented 6 years ago

@siddhartha-gadgil I don't know if this may be too much to ask, but is there a way I may be able to get SSH access to the server you're getting this error in to investigate? Otherwise, could you create a Dockerfile that reproduces the problem and I can use that for debugging.

siddhartha-gadgil commented 6 years ago

I'll try to set up ssh access to my laptop at home (the one at work is fire-walled and is the institutes). I'll also try to create a dockerfile.

On Thu, Nov 16, 2017 at 11:55 PM Anthony Platanios notifications@github.com wrote:

@siddhartha-gadgil https://github.com/siddhartha-gadgil I don't know if this may be too much to ask, but is there a way I may be able to get SSH access to the server you're getting this error in to investigate? Otherwise, could you create a Dockerfile that reproduces the problem and I can use that for debugging.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/eaplatanios/tensorflow_scala/issues/41#issuecomment-345013547, or mute the thread https://github.com/notifications/unsubscribe-auth/ADatpOmifYA4R6Ck2Txrowt5urgxGLchks5s3H4WgaJpZM4QTua7 .

siddhartha-gadgil commented 6 years ago

I have made a docker image where the error was replicated:

docker pull sgadgil00/tfscala
mandar2812 commented 6 years ago

@eaplatanios I can also attest that the pre-compiled artifact linux-gpu-x86_64 does not load either. I have tried this on a linux machine having a gpu card. With the linux-cpu-x86_64 classifier, the cifar example works fine, when executing the same with linux-gpu-x86_64, I get the following stack trace.

Compiling (synthetic)/ammonite/predef/interpBridge.sc
Compiling (synthetic)/ammonite/predef/DefaultPredef.sc
Compiling /home/dynaml/code/DynaML/scripts/cifar.sc
2017-11-29 16:53:08.242 [main] INFO  CIFAR Data Loader - Extracting data from file '/home/dynaml/tmp/cifar-10-binary.tar.gz'.
2017-11-29 16:53:08.839 [main] INFO  TensorFlow Native - Extracting the 'tensorflow_framework' native library to /tmp/tensorflow_scala_native_libraries5242888704108861690/libtensorflow_framework.so.
2017-11-29 16:53:08.974 [main] INFO  TensorFlow Native - Copied 16133491 bytes to /tmp/tensorflow_scala_native_libraries5242888704108861690/libtensorflow_framework.so.
2017-11-29 16:53:09.560 [main] INFO  TensorFlow Native - Extracting the 'tensorflow' native library to /tmp/tensorflow_scala_native_libraries5242888704108861690/libtensorflow.so.
2017-11-29 16:53:10.459 [main] INFO  TensorFlow Native - Copied 123399064 bytes to /tmp/tensorflow_scala_native_libraries5242888704108861690/libtensorflow.so.
2017-11-29 16:53:10.461 [main] INFO  TensorFlow Native - Extracting the 'tensorflow_jni' native library to /tmp/tensorflow_scala_native_libraries5242888704108861690/libtensorflow_jni.so.
2017-11-29 16:53:10.466 [main] INFO  TensorFlow Native - Copied 658944 bytes to /tmp/tensorflow_scala_native_libraries5242888704108861690/libtensorflow_jni.so.
java.lang.UnsatisfiedLinkError: /tmp/tensorflow_scala_native_libraries5242888704108861690/libtensorflow_jni.so: libcudnn.so.6: cannot open shared object file: No such file or directory
  java.lang.ClassLoader$NativeLibrary.load(Native Method)
  java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
  java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)
  java.lang.Runtime.load0(Runtime.java:809)
  java.lang.System.load(System.java:1086)
  org.platanios.tensorflow.jni.TensorFlow$$anonfun$load$3.apply(TensorFlow.scala:95)
  org.platanios.tensorflow.jni.TensorFlow$$anonfun$load$3.apply(TensorFlow.scala:93)
  scala.Option.foreach(Option.scala:257)
  org.platanios.tensorflow.jni.TensorFlow$.load(TensorFlow.scala:93)
  org.platanios.tensorflow.jni.TensorFlow$.<init>(TensorFlow.scala:155)
  org.platanios.tensorflow.jni.TensorFlow$.<clinit>(TensorFlow.scala)
  org.platanios.tensorflow.jni.Tensor$.<init>(Tensor.scala:24)
  org.platanios.tensorflow.jni.Tensor$.<clinit>(Tensor.scala)
  org.platanios.tensorflow.api.tensors.Context$.apply(Context.scala:50)
  org.platanios.tensorflow.api.package$.<init>(package.scala:89)
  org.platanios.tensorflow.api.package$.<clinit>(package.scala)
  org.platanios.tensorflow.data.image.CIFARLoader$.readImagesAndLabels(CIFARLoader.scala:119)
  org.platanios.tensorflow.data.image.CIFARLoader$.extractFiles(CIFARLoader.scala:86)
  org.platanios.tensorflow.data.image.CIFARLoader$.load(CIFARLoader.scala:73)
  ammonite.$file.$up.DynaML.scripts.cifar$.<init>(cifar.sc:12)
  ammonite.$file.$up.DynaML.scripts.cifar$.<clinit>(cifar.sc)
eaplatanios commented 6 years ago

@siddhartha-gadgil Thanks for the docker image; it's su[er useful. I'll try to debug using that.

@mandar2812 In your case the error seems to be different. It can't load the cudnn libraries. Are you sure you have installed cudnn? Unfortunately I don't think I'm allowed to package that with the artifacts too.

mandar2812 commented 6 years ago

@eaplatanios: libcudnn.so libcudnn.so.5 and libcudnn.so.5.1.10 do exist on that system, I'm guessing they are not visible to tf_scala because they are not set in LD_LIBRARY_PATH?

eaplatanios commented 6 years ago

@mandar2812 The binaries are pre-compiled for use with cudnn 6 and so you need to have that installed and in your LD_LIBRARY_PATH. I will add that in the currently very incomplete documentation. :P Could you let me know if it works when you do that please?

mandar2812 commented 6 years ago

@eaplatanios Okay! I downloaded cuDNN 6 and now it works!

eaplatanios commented 6 years ago

@mandar2812 Sounds good! Thanks for the update! :)

eaplatanios commented 6 years ago

@siddhartha-gadgil @mandar2812 @lucaRadicalbit This issue seems to have been fixed now and so I'll go ahead and close this. If it reappears, please use #64 to report it. Note also that a better continuous integration configuration is now set up that should help prevent similar issues in the future. The fixed version is 0.1.1-SNAPSHOT.

siddhartha-gadgil commented 6 years ago

Thanks a lot. Just confirming that the basic example works fine now.