-
Notifications
You must be signed in to change notification settings - Fork 357
org.apache.maven.plugins:maven-antrun-plugin:1.7 #66
Comments
PROTOC src/caffe/proto/caffe.proto protoc: Command not found Andy On Mon, May 16, 2016 at 3:28 AM, ShengshengWang notifications@github.com
|
In my case protoc is already installed $brew install protobuf |
This is the error for me: protoc: |
Uninstall protobuf 2.6 and install 2.5.0. Then inside caffe-public , try On Tue, Jun 7, 2016 at 11:39 AM, StephenBoesch notifications@github.com
|
OK the real problem was I had not done git with --recursive. Building now. Thanks for your help. |
If this works, please close the bug |
Do I have that capability? Whoever does please close the bug. |
Hi. Just to note I had a similar issue building on a fairly plain vanilla Ubuntu 16.04, which comes with only protobuf 2.6.1 in the standard repositories. I changed the version in the pom file for caffe-distri to 2.6.1; the latter compiled, but then I also had to add the dependency to the pom file for caffe-grid. [And also as a completely different issue I had to add /usr/local/include /usr/include/hdf5/serial/ to INCLUDED_DIRS, and also change the Scala version in the pom file to match the Scala version that Spark was compiled with]. Then it compiled without any problems. Don't know if it runs yet, but will let you know if it doesn't. :) So I might suggest addiing a variable to set the version of protobuf in the pom file to the installed version, and also adding it to the dependencies in the pom file for caffe-grid? |
I think protobuf version needs to be consistent among caffe-public, caffe-distri and caffe-grid. POM only covers scala/java, not c++. |
I am having the same error. I am using protobuf 2.5 (tried the most current as well) and I did a recursive clone of the repo. |
Because I am only trying this on one of my fun toy clusters as a fun side project, I have to move on to other things for now. However, here is the build error and the tail of the maven logs if anyone can help.
|
I hava the same Problem,
and the protoc version is right:
|
what's your maven version? Also is this the entire error message? I am wondering if errors appeared earlier? it would be nice if you can post the entire log. |
|
I have fix this problem. |
@liuguiyangnwpu Great you fixed it. Would you please share your solution? It may benefit other users who experience the same problem. |
@junshi15 First, the Makefile in the caffe-public, look like it
I ues the docker to virutal Centos7, the default user is root, so I change the path into that
I guess the problem is not fetch the Spark-Version-ID
add above scripts into one shell script, and source it. Then run the Make Build script One By One.
you can finished it ! By the way, I guess the bug is:
should fix it like that:
thx ! |
root@ubuntu:~/GitProgram/Spark-Program/CaffeOnSpark# make build
cd caffe-public; make proto; make -j4 -e distribute; cd ..
make[1]: Entering directory
/root/GitProgram/Spark-Program/CaffeOnSpark/caffe-public' PROTOC src/caffe/proto/caffe.proto make[1]: protoc: Command not found make[1]: *** [.build_release/src/caffe/proto/caffe.pb.cc] Error 127 make[1]: Leaving directory
/root/GitProgram/Spark-Program/CaffeOnSpark/caffe-public'make[1]: Entering directory
/root/GitProgram/Spark-Program/CaffeOnSpark/caffe-public' PROTOC src/caffe/proto/caffe.proto make[1]: protoc: Command not found make[1]: *** [.build_release/src/caffe/proto/caffe.pb.h] Error 127 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory
/root/GitProgram/Spark-Program/CaffeOnSpark/caffe-public'export LD_LIBRARY_PATH="/usr/local/cuda/lib64::/root/GitProgram/Spark-Program/CaffeOnSpark/caffe-public/distribute/lib:/root/GitProgram/Spark-Program/CaffeOnSpark/caffe-distri/distribute/lib:/usr/lib64:/lib64 "; mvn -B package
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.yahoo.ml:caffe-grid:jar:0.1-SNAPSHOT
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] caffe
[INFO] caffe-distri
[INFO] caffe-grid
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building caffe 0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building caffe-distri 0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (proto) @ caffe-distri ---
[INFO] Executing tasks
protoc:
[exec] make[1]: Entering directory
/root/GitProgram/Spark-Program/CaffeOnSpark/caffe-distri' [exec] make[1]: Leaving directory
/root/GitProgmake[1]: *** No rule to make target../caffe-public/distribute/proto/caffe.proto', needed by
src/main/java/caffe/Caffe.java'. ram/Spark-Program/CaffeOnSpark/caffe-distri'[exec] Stop.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] caffe .............................................. SUCCESS [ 0.003 s]
[INFO] caffe-distri ....................................... FAILURE [ 1.268 s]
[INFO] caffe-grid ......................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.591 s
[INFO] Finished at: 2016-05-16T18:20:36+08:00
[INFO] Final Memory: 9M/176M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (proto) on project caffe-distri: An Ant BuildException has occured: exec returned: 2
[ERROR] around Ant part ...... @ 5:109 in /root/GitProgram/Spark-Program/CaffeOnSpark/caffe-distri/target/antrun/build-protoc.xml
[ERROR] -> [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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :caffe-distri
make: *** [build] Error 1
The text was updated successfully, but these errors were encountered: