-
-
Notifications
You must be signed in to change notification settings - Fork 751
Description
Hi,
I'm trying to set up the javacpp/mkl-dnn project so I can play with some changes that I need.
As a first step, I tried to compile javacpp/mkl-dnn as-is, without any changes. I cloned the javacpp-presets, and issued mvn install --projects .,mkl-dnn
from the parent project directory.
After downloading and processing mkl-dnn and mklml-lib, the compilation fails here:
In file included from /home/dragan/workspace/java/javacpp-presets/mkl-dnn/target/classes/org/bytedeco/javacpp/jnimkldnn.cpp:101:
/home/dragan/workspace/java/javacpp-presets/mkl-dnn/cppbuild/linux-x86_64/include/mkldnn.h:836:28: note: declared here
mkldnn_status_t MKLDNN_API mkldnn_relu_backward_desc_init(
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/ld: cannot find -lmklml_intel
collect2: error: ld returned 1 exit status
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] JavaCPP Presets 1.4.4-SNAPSHOT ..................... SUCCESS [ 0.396 s]
[INFO] JavaCPP Presets for MKL-DNN 0.16-1.4.4-SNAPSHOT .... FAILURE [ 19.844 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20.698 s
[INFO] Finished at: 2018-10-20T15:22:51+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.bytedeco:javacpp:1.4.4-SNAPSHOT:build (javacpp.compiler) on project mkl-dnn: Execution javacpp.compiler of goal org.bytedeco:javacpp:1.4.4-SNAPSHOT:build failed: Process exited with an error: 1 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :mkl-dnn
I've successfully compiled vanilla mkl-dnn, and my arch-linux is recent and updated and set up with all usually required compilation tools. MKL is also present system-wide.
Now, since bytedeco libraries are regularily released, I guess that there is something that I'm doing wrong, but after re-reading the documentation, I can't guess what.
It seems to me that the problem is that cppbuild.sh fails to create the externals
directory and unpack mklml-lib tar there. But why can it be?