2016-11-10 46 views
1

我試圖讓CaffeOnSpark在本地運行,並且我已經成功編譯並運行了caffe,也安裝了opencv,但未能編譯CaffeOnSpark。CaffeonSpark構建錯誤

當我提出建全的錯誤堆棧:

[INFO] 60 errors 
[INFO] ------------------------------------------------------------- 
[INFO] ------------------------------------------------------------------------ 
[INFO] Reactor Summary: 
[INFO] 
[INFO] caffe .............................................. SUCCESS [ 0.009 s] 
[INFO] caffe-distri ....................................... FAILURE [ 16.940 s] 
[INFO] caffe-grid ......................................... SKIPPED 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 18.841 s 
[INFO] Finished at: 2016-11-11T03:50:31+08:00 
[INFO] Final Memory: 14M/92M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (compile-generator) on project caffe-distri: Compilation failure: Compilation failure: 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[9919,31] cannot find symbol 
[ERROR] symbol: class ProtocolStringList 
[ERROR] location: package com.google.protobuf 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[8280,24] cannot find symbol 
[ERROR] symbol: class ProtocolStringList 
[ERROR] location: package com.google.protobuf 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[5761,31] cannot find symbol 
[ERROR] symbol: class ProtocolStringList 
[ERROR] location: package com.google.protobuf 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[5238,24] cannot find symbol 
[ERROR] symbol: class ProtocolStringList 
[ERROR] location: package com.google.protobuf 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[16820,31] cannot find symbol 
[ERROR] symbol: class ProtocolStringList 
[ERROR] location: package com.google.protobuf 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[16649,24] cannot find symbol 
[ERROR] symbol: class ProtocolStringList 
[ERROR] location: package com.google.protobuf 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[12460,33] cannot find symbol 
[ERROR] symbol: class ProtocolStringList 
[ERROR] location: package com.google.protobuf 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[21447,31] cannot find symbol 
[ERROR] symbol: class ProtocolStringList 
[ERROR] location: package com.google.protobuf 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[21492,31] cannot find symbol 
[ERROR] symbol: class ProtocolStringList 
[ERROR] location: package com.google.protobuf 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[19484,24] cannot find symbol 
[ERROR] symbol: class ProtocolStringList 
[ERROR] location: package com.google.protobuf 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[19519,24] cannot find symbol 
[ERROR] symbol: class ProtocolStringList 
[ERROR] location: package com.google.protobuf 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[76524,31] cannot find symbol 
[ERROR] symbol: class ProtocolStringList 
[ERROR] location: package com.google.protobuf 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[76553,31] cannot find symbol 
[ERROR] symbol: class ProtocolStringList 
[ERROR] location: package com.google.protobuf 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[76744,31] cannot find symbol 
[ERROR] symbol: class ProtocolStringList 
[ERROR] location: package com.google.protobuf 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[74714,24] cannot find symbol 
[ERROR] symbol: class ProtocolStringList 
[ERROR] location: package com.google.protobuf 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[74733,24] cannot find symbol 
[ERROR] symbol: class ProtocolStringList 
[ERROR] location: package com.google.protobuf 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[74847,24] cannot find symbol 
[ERROR] symbol: class ProtocolStringList 
[ERROR] location: package com.google.protobuf 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[6716,33] cannot find symbol 
[ERROR] symbol: class ProtocolStringList 
[ERROR] location: package com.google.protobuf 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[17197,33] cannot find symbol 
[ERROR] symbol: class ProtocolStringList 
[ERROR] location: package com.google.protobuf 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[17622,31] cannot find symbol 
[ERROR] symbol: class ProtocolStringList 
[ERROR] location: package com.google.protobuf 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[17672,31] cannot find symbol 
[ERROR] symbol: class ProtocolStringList 
[ERROR] location: package com.google.protobuf 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[17352,24] cannot find symbol 
[ERROR] symbol: class ProtocolStringList 
[ERROR] location: package com.google.protobuf 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[17392,24] cannot find symbol 
[ERROR] symbol: class ProtocolStringList 
[ERROR] location: package com.google.protobuf 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[24932,33] cannot find symbol 
[ERROR] symbol: class ProtocolStringList 
[ERROR] location: package com.google.protobuf 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[25061,33] cannot find symbol 
[ERROR] symbol: class ProtocolStringList 
[ERROR] location: package com.google.protobuf 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[78929,33] cannot find symbol 
[ERROR] symbol: class ProtocolStringList 
[ERROR] location: package com.google.protobuf 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[79022,33] cannot find symbol 
[ERROR] symbol: class ProtocolStringList 
[ERROR] location: package com.google.protobuf 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[79946,33] cannot find symbol 
[ERROR] symbol: class ProtocolStringList 
[ERROR] location: package com.google.protobuf 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[18175,33] cannot find symbol 
[ERROR] symbol: class ProtocolStringList 
[ERROR] location: package com.google.protobuf 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[18324,33] cannot find symbol 
[ERROR] symbol: class ProtocolStringList 
[ERROR] location: package com.google.protobuf 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[5655,26] cannot find symbol 
[ERROR] symbol: method getUnmodifiableView() 
[ERROR] location: variable input_ of type com.google.protobuf.LazyStringList 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[6395,26] cannot find symbol 
[ERROR] symbol: method getUnmodifiableView() 
[ERROR] location: variable input_ of type com.google.protobuf.LazyStringList 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[6718,22] cannot find symbol 
[ERROR] symbol: method getUnmodifiableView() 
[ERROR] location: variable input_ of type com.google.protobuf.LazyStringList 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[9429,30] cannot find symbol 
[ERROR] symbol: method getUnmodifiableView() 
[ERROR] location: variable testNet_ of type com.google.protobuf.LazyStringList 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[11676,30] cannot find symbol 
[ERROR] symbol: method getUnmodifiableView() 
[ERROR] location: variable testNet_ of type com.google.protobuf.LazyStringList 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[12462,24] cannot find symbol 
[ERROR] symbol: method getUnmodifiableView() 
[ERROR] location: variable testNet_ of type com.google.protobuf.LazyStringList 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[16751,26] cannot find symbol 
[ERROR] symbol: method getUnmodifiableView() 
[ERROR] location: variable stage_ of type com.google.protobuf.LazyStringList 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[17057,26] cannot find symbol 
[ERROR] symbol: method getUnmodifiableView() 
[ERROR] location: variable stage_ of type com.google.protobuf.LazyStringList 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[17199,22] cannot find symbol 
[ERROR] symbol: method getUnmodifiableView() 
[ERROR] location: variable stage_ of type com.google.protobuf.LazyStringList 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[17508,26] cannot find symbol 
[ERROR] symbol: method getUnmodifiableView() 
[ERROR] location: variable stage_ of type com.google.protobuf.LazyStringList 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[17511,32] cannot find symbol 
[ERROR] symbol: method getUnmodifiableView() 
[ERROR] location: variable notStage_ of type com.google.protobuf.LazyStringList 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[17938,26] cannot find symbol 
[ERROR] symbol: method getUnmodifiableView() 
[ERROR] location: variable stage_ of type com.google.protobuf.LazyStringList 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[17943,32] cannot find symbol 
[ERROR] symbol: method getUnmodifiableView() 
[ERROR] location: variable notStage_ of type com.google.protobuf.LazyStringList 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[18177,22] cannot find symbol 
[ERROR] symbol: method getUnmodifiableView() 
[ERROR] location: variable stage_ of type com.google.protobuf.LazyStringList 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[18326,25] cannot find symbol 
[ERROR] symbol: method getUnmodifiableView() 
[ERROR] location: variable notStage_ of type com.google.protobuf.LazyStringList 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[21274,28] cannot find symbol 
[ERROR] symbol: method getUnmodifiableView() 
[ERROR] location: variable bottom_ of type com.google.protobuf.LazyStringList 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[21277,22] cannot find symbol 
[ERROR] symbol: method getUnmodifiableView() 
[ERROR] location: variable top_ of type com.google.protobuf.LazyStringList 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[23940,28] cannot find symbol 
[ERROR] symbol: method getUnmodifiableView() 
[ERROR] location: variable bottom_ of type com.google.protobuf.LazyStringList 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[23945,22] cannot find symbol 
[ERROR] symbol: method getUnmodifiableView() 
[ERROR] location: variable top_ of type com.google.protobuf.LazyStringList 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[24934,23] cannot find symbol 
[ERROR] symbol: method getUnmodifiableView() 
[ERROR] location: variable bottom_ of type com.google.protobuf.LazyStringList 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[25063,20] cannot find symbol 
[ERROR] symbol: method getUnmodifiableView() 
[ERROR] location: variable top_ of type com.google.protobuf.LazyStringList 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[75951,28] cannot find symbol 
[ERROR] symbol: method getUnmodifiableView() 
[ERROR] location: variable bottom_ of type com.google.protobuf.LazyStringList 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[75954,22] cannot find symbol 
[ERROR] symbol: method getUnmodifiableView() 
[ERROR] location: variable top_ of type com.google.protobuf.LazyStringList 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[75975,26] cannot find symbol 
[ERROR] symbol: method getUnmodifiableView() 
[ERROR] location: variable param_ of type com.google.protobuf.LazyStringList 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[78308,28] cannot find symbol 
[ERROR] symbol: method getUnmodifiableView() 
[ERROR] location: variable bottom_ of type com.google.protobuf.LazyStringList 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[78313,22] cannot find symbol 
[ERROR] symbol: method getUnmodifiableView() 
[ERROR] location: variable top_ of type com.google.protobuf.LazyStringList 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[78353,26] cannot find symbol 
[ERROR] symbol: method getUnmodifiableView() 
[ERROR] location: variable param_ of type com.google.protobuf.LazyStringList 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[78931,23] cannot find symbol 
[ERROR] symbol: method getUnmodifiableView() 
[ERROR] location: variable bottom_ of type com.google.protobuf.LazyStringList 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[79024,20] cannot find symbol 
[ERROR] symbol: method getUnmodifiableView() 
[ERROR] location: variable top_ of type com.google.protobuf.LazyStringList 
[ERROR] /usr/local/CaffeOnSpark-master/caffe-distri/src/main/java/caffe/Caffe.java:[79948,22] cannot find symbol 
[ERROR] symbol: method getUnmodifiableView() 
[ERROR] location: variable param_ of type com.google.protobuf.LazyStringList 
[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/MojoFailureException 
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command 
[ERROR] mvn <goals> -rf :caffe-distri 
Makefile:19: recipe for target 'build' failed 
make: *** [build] Error 1 

回答

1

系統protobuf的版本已經和在朱古力-DISTRI/pom.xml文件應該是相同的。在朱古力-DISTRI/pom.xml的記錄應該是這樣的,如果你有版本2.6.1

<dependency> 
     <groupId>com.google.protobuf</groupId> 
     <artifactId>protobuf-java</artifactId> 
     <version>2.6.1</version> 
     <scope>provided</scope> 
</dependency> 
+0

非常感謝,但仍然存在一些錯誤:[錯誤]未能執行目標org.apache.maven.plugins:maven-antrun-plugin:1.7:對項目運行(make)caffe-distri:Ant BuildException已發生:exec返回:2 [錯誤]圍繞Ant部分... ... @ 5:96在/usr/local/CaffeOnSpark-master/caffe-distri/target/antrun/build-make.xml –

+0

@Farhan這是一個體面的答案 - 讓我們來看看你的觀點。 – javadba

1

的protobuf這是由於的Protobuf版本的問題。 CaffeOnSpark與Protobuf 2.5的配合良好。請安裝protobuf V2.5並重試。 2.6版現在不起作用。

嘗試這些:

wget https://github.com/google/protobuf/releases/download/v2.5.0/protobuf-2.5.0.zip unzip protobuf-2.5.0.zip cd protobuf-2.5.0/ ./configure --prefix=/usr/local/lib make make check sudo make install export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

的Protobuf 2.5將由現在可以安裝。請使用protoc --version進行檢查。

現在回到CaffeOnSpark文件夾並做make clean然後make build。它應該工作正常。