Re: [VOTE] Hama 0.6.3 RC2

2013-09-15 Thread Chia-Hung Lin
-1

Compilation fails with message thrown as below

[exec] /usr/bin/c++-g -Wall -O2 -D_REENTRANT -D_GNU_SOURCE
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/tmp/0.6.3-RC2/c++/src/main/native/utils/api
-I/tmp/0.6.3-RC2/c++/src/main/native/pipes/api
-I/tmp/0.6.3-RC2/c++/src-o
CMakeFiles/hamapipes.dir/main/native/pipes/impl/HamaPipes.cc.o -c
/tmp/0.6.3-RC2/c++/src/main/native/pipes/impl/HamaPipes.cc
 [exec] /tmp/0.6.3-RC2/c++/src/main/native/pipes/impl/HamaPipes.cc:
In function ‘void* HamaPipes::ping(void*)’:
 [exec] /tmp/0.6.3-RC2/c++/src/main/native/pipes/impl/HamaPipes.cc:1148:16:
error: ‘sleep’ was not declared in this scope
 [exec] /tmp/0.6.3-RC2/c++/src/main/native/pipes/impl/HamaPipes.cc:1167:30:
error: ‘close’ was not declared in this scope




On 14 September 2013 03:49, Anastasis Andronidis
andronat_...@hotmail.com wrote:
 +1

 Anastasis

 On 13 Σεπ 2013, at 9:47 π.μ., Edward J. Yoon edwardy...@apache.org wrote:

 Hi,

 I've created RC2 for Hama 0.6.3 release.

 Artifacts and Signatures: 
 http://people.apache.org/~edwardyoon/dist/0.6.3-RC2/

 SVN Tags: http://svn.apache.org/repos/asf/hama/tags/0.6.3-RC2/

 Please try it on both hadoop1 and hadoop2, run the tests, check the doc, etc.

 [ ] +1 Release the packages as Apache Hama 0.6.3
 [ ] -1 Do not release the packages because...

 Thank you!

 --
 Best Regards, Edward J. Yoon
 @eddieyoon




Re: [CANCELED][VOTE] Hama 0.6.3 RC2

2013-09-15 Thread Chia-Hung Lin
In addition to that, I also encounter a compilation error. I can help
fix this, but just not very sure if that's the right way to do it. If
there is a jira created for these two fixes, I can provide a patch for
compilation issue; and it would be good if anyone can help review it.

[exec] /usr/bin/c++-g -Wall -O2 -D_REENTRANT -D_GNU_SOURCE
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/tmp/0.6.3-RC2/c++/src/main/native/utils/api
-I/tmp/0.6.3-RC2/c++/src/main/native/pipes/api
-I/tmp/0.6.3-RC2/c++/src-o
CMakeFiles/hamapipes.dir/main/native/pipes/impl/HamaPipes.cc.o -c
/tmp/0.6.3-RC2/c++/src/main/native/pipes/impl/HamaPipes.cc
 [exec] /tmp/0.6.3-RC2/c++/src/main/native/pipes/impl/HamaPipes.cc:
In function ‘void* HamaPipes::ping(void*)’:
 [exec] /tmp/0.6.3-RC2/c++/src/main/native/pipes/impl/HamaPipes.cc:1148:16:
error: ‘sleep’ was not declared in this scope
 [exec] /tmp/0.6.3-RC2/c++/src/main/native/pipes/impl/HamaPipes.cc:1167:30:
error: ‘close’ was not declared in this scope



On 14 September 2013 12:06, Edward J. Yoon edwardy...@apache.org wrote:
 Oh,... sorry.

 [ERROR] 
 https://builds.apache.org/job/Hama-Nightly-for-Hadoop-2.x/ws/trunk/yarn/src/main/java/org/apache/hama/bsp/BSPApplicationMaster.java:[64,7]
  error: BSPApplicationMaster is not abstract and does not override abstract 
 method getAssignedPortNum(TaskAttemptID) in BSPPeerProtocol

 I'll create new one after fix above problem (next Sunday).

 On Sat, Sep 14, 2013 at 4:49 AM, Anastasis Andronidis
 andronat_...@hotmail.com wrote:
 +1

 Anastasis

 On 13 Σεπ 2013, at 9:47 π.μ., Edward J. Yoon edwardy...@apache.org wrote:

 Hi,

 I've created RC2 for Hama 0.6.3 release.

 Artifacts and Signatures: 
 http://people.apache.org/~edwardyoon/dist/0.6.3-RC2/

 SVN Tags: http://svn.apache.org/repos/asf/hama/tags/0.6.3-RC2/

 Please try it on both hadoop1 and hadoop2, run the tests, check the doc, 
 etc.

 [ ] +1 Release the packages as Apache Hama 0.6.3
 [ ] -1 Do not release the packages because...

 Thank you!

 --
 Best Regards, Edward J. Yoon
 @eddieyoon





 --
 Best Regards, Edward J. Yoon
 @eddieyoon


Re: [CANCELED][VOTE] Hama 0.6.3 RC2

2013-09-15 Thread Chia-Hung Lin
Just notice that HAMA-802 should fix c++ compilation error. I've
applied the patch to the trunk, it passes compilation and testing.

On 15 September 2013 16:04, Chia-Hung Lin cli...@googlemail.com wrote:
 In addition to that, I also encounter a compilation error. I can help
 fix this, but just not very sure if that's the right way to do it. If
 there is a jira created for these two fixes, I can provide a patch for
 compilation issue; and it would be good if anyone can help review it.

 [exec] /usr/bin/c++-g -Wall -O2 -D_REENTRANT -D_GNU_SOURCE
 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
 -I/tmp/0.6.3-RC2/c++/src/main/native/utils/api
 -I/tmp/0.6.3-RC2/c++/src/main/native/pipes/api
 -I/tmp/0.6.3-RC2/c++/src-o
 CMakeFiles/hamapipes.dir/main/native/pipes/impl/HamaPipes.cc.o -c
 /tmp/0.6.3-RC2/c++/src/main/native/pipes/impl/HamaPipes.cc
  [exec] /tmp/0.6.3-RC2/c++/src/main/native/pipes/impl/HamaPipes.cc:
 In function ‘void* HamaPipes::ping(void*)’:
  [exec] 
 /tmp/0.6.3-RC2/c++/src/main/native/pipes/impl/HamaPipes.cc:1148:16:
 error: ‘sleep’ was not declared in this scope
  [exec] 
 /tmp/0.6.3-RC2/c++/src/main/native/pipes/impl/HamaPipes.cc:1167:30:
 error: ‘close’ was not declared in this scope



 On 14 September 2013 12:06, Edward J. Yoon edwardy...@apache.org wrote:
 Oh,... sorry.

 [ERROR] 
 https://builds.apache.org/job/Hama-Nightly-for-Hadoop-2.x/ws/trunk/yarn/src/main/java/org/apache/hama/bsp/BSPApplicationMaster.java:[64,7]
  error: BSPApplicationMaster is not abstract and does not override 
 abstract method getAssignedPortNum(TaskAttemptID) in BSPPeerProtocol

 I'll create new one after fix above problem (next Sunday).

 On Sat, Sep 14, 2013 at 4:49 AM, Anastasis Andronidis
 andronat_...@hotmail.com wrote:
 +1

 Anastasis

 On 13 Σεπ 2013, at 9:47 π.μ., Edward J. Yoon edwardy...@apache.org wrote:

 Hi,

 I've created RC2 for Hama 0.6.3 release.

 Artifacts and Signatures: 
 http://people.apache.org/~edwardyoon/dist/0.6.3-RC2/

 SVN Tags: http://svn.apache.org/repos/asf/hama/tags/0.6.3-RC2/

 Please try it on both hadoop1 and hadoop2, run the tests, check the doc, 
 etc.

 [ ] +1 Release the packages as Apache Hama 0.6.3
 [ ] -1 Do not release the packages because...

 Thank you!

 --
 Best Regards, Edward J. Yoon
 @eddieyoon





 --
 Best Regards, Edward J. Yoon
 @eddieyoon


Re: [CANCELED][VOTE] Hama 0.6.3 RC2

2013-09-15 Thread Martin Illecker
I've created an JIRA Issue HAMA-802 [1], that also includes your solution to 
include
+#include unistd.h
in HamaPipes.cc.

Please upload your patch, I will have a look.
Thanks!

[1] https://issues.apache.org/jira/browse/HAMA-802

Am 15.09.2013 um 10:04 schrieb Chia-Hung Lin cli...@googlemail.com:

 In addition to that, I also encounter a compilation error. I can help
 fix this, but just not very sure if that's the right way to do it. If
 there is a jira created for these two fixes, I can provide a patch for
 compilation issue; and it would be good if anyone can help review it.
 
 [exec] /usr/bin/c++-g -Wall -O2 -D_REENTRANT -D_GNU_SOURCE
 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
 -I/tmp/0.6.3-RC2/c++/src/main/native/utils/api
 -I/tmp/0.6.3-RC2/c++/src/main/native/pipes/api
 -I/tmp/0.6.3-RC2/c++/src-o
 CMakeFiles/hamapipes.dir/main/native/pipes/impl/HamaPipes.cc.o -c
 /tmp/0.6.3-RC2/c++/src/main/native/pipes/impl/HamaPipes.cc
 [exec] /tmp/0.6.3-RC2/c++/src/main/native/pipes/impl/HamaPipes.cc:
 In function ‘void* HamaPipes::ping(void*)’:
 [exec] /tmp/0.6.3-RC2/c++/src/main/native/pipes/impl/HamaPipes.cc:1148:16:
 error: ‘sleep’ was not declared in this scope
 [exec] /tmp/0.6.3-RC2/c++/src/main/native/pipes/impl/HamaPipes.cc:1167:30:
 error: ‘close’ was not declared in this scope
 
 
 
 On 14 September 2013 12:06, Edward J. Yoon edwardy...@apache.org wrote:
 Oh,... sorry.
 
 [ERROR] 
 https://builds.apache.org/job/Hama-Nightly-for-Hadoop-2.x/ws/trunk/yarn/src/main/java/org/apache/hama/bsp/BSPApplicationMaster.java:[64,7]
  error: BSPApplicationMaster is not abstract and does not override 
 abstract method getAssignedPortNum(TaskAttemptID) in BSPPeerProtocol
 
 I'll create new one after fix above problem (next Sunday).
 
 On Sat, Sep 14, 2013 at 4:49 AM, Anastasis Andronidis
 andronat_...@hotmail.com wrote:
 +1
 
 Anastasis
 
 On 13 Σεπ 2013, at 9:47 π.μ., Edward J. Yoon edwardy...@apache.org wrote:
 
 Hi,
 
 I've created RC2 for Hama 0.6.3 release.
 
 Artifacts and Signatures: 
 http://people.apache.org/~edwardyoon/dist/0.6.3-RC2/
 
 SVN Tags: http://svn.apache.org/repos/asf/hama/tags/0.6.3-RC2/
 
 Please try it on both hadoop1 and hadoop2, run the tests, check the doc, 
 etc.
 
 [ ] +1 Release the packages as Apache Hama 0.6.3
 [ ] -1 Do not release the packages because...
 
 Thank you!
 
 --
 Best Regards, Edward J. Yoon
 @eddieyoon
 
 
 
 
 
 --
 Best Regards, Edward J. Yoon
 @eddieyoon



[jira] [Updated] (HAMA-802) Skip Hama Pipes native build when cmake is missing

2013-09-15 Thread Martin Illecker (JIRA)

 [ 
https://issues.apache.org/jira/browse/HAMA-802?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Illecker updated HAMA-802:
-

Description: 
1) Based on messages [1] of Tommaso and Anastasis we should skip building Hama 
Pipes when cmake is missing.

{code}
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-antrun-plugin:1.6:run (make) on project
hama-pipes: An Ant BuildException has occured: Execute failed:
java.io.IOException: Cannot run program cmake (in directory
*/hama/trunk/c++/target/native):
error=2, No such file or directory - [Help 1]
{code}

2) Add {code}#include unistd.h{code} to HamaPipes.cc to solve the following 
error. (provided by Chia-Hung Lin [2])

{code}
[exec] /usr/bin/c++-g -Wall -O2 -D_REENTRANT -D_GNU_SOURCE
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/tmp/0.6.3-RC2/c++/src/main/native/utils/api
-I/tmp/0.6.3-RC2/c++/src/main/native/pipes/api
-I/tmp/0.6.3-RC2/c++/src-o
CMakeFiles/hamapipes.dir/main/native/pipes/impl/HamaPipes.cc.o -c
/tmp/0.6.3-RC2/c++/src/main/native/pipes/impl/HamaPipes.cc
[exec] /tmp/0.6.3-RC2/c++/src/main/native/pipes/impl/HamaPipes.cc:
In function ‘void* HamaPipes::ping(void*)’:
[exec] /tmp/0.6.3-RC2/c++/src/main/native/pipes/impl/HamaPipes.cc:1148:16:
error: ‘sleep’ was not declared in this scope
[exec] /tmp/0.6.3-RC2/c++/src/main/native/pipes/impl/HamaPipes.cc:1167:30:
error: ‘close’ was not declared in this scope
{code}

[1] 
http://mail-archives.apache.org/mod_mbox/hama-dev/201309.mbox/%3CCAGnSx07dLJt4NEpgh66OQ20wgQHP%2BPvYMNsT1uJ3d69Xg%3DN2%2BQ%40mail.gmail.com%3E
[2] 
http://mail-archives.apache.org/mod_mbox/hama-dev/201309.mbox/%3cca+jdvcznutkhbpovwvyz55wny_ffg3ykt4c2w6jlkkuxygw...@mail.gmail.com%3e


  was:
Based on messages [1] of Tommaso and Anastasis we should skip building Hama 
Pipes when cmake is missing.

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-antrun-plugin:1.6:run (make) on project
hama-pipes: An Ant BuildException has occured: Execute failed:
java.io.IOException: Cannot run program cmake (in directory
*/hama/trunk/c++/target/native):
error=2, No such file or directory - [Help 1]

[1] 
http://mail-archives.apache.org/mod_mbox/hama-dev/201309.mbox/%3CCAGnSx07dLJt4NEpgh66OQ20wgQHP%2BPvYMNsT1uJ3d69Xg%3DN2%2BQ%40mail.gmail.com%3E




 Skip Hama Pipes native build when cmake is missing
 --

 Key: HAMA-802
 URL: https://issues.apache.org/jira/browse/HAMA-802
 Project: Hama
  Issue Type: Improvement
  Components: build 
Affects Versions: 0.6.3
Reporter: Martin Illecker
Assignee: Martin Illecker
Priority: Minor
  Labels: build
 Fix For: 0.7.0

 Attachments: HAMA-802.patch


 1) Based on messages [1] of Tommaso and Anastasis we should skip building 
 Hama Pipes when cmake is missing.
 {code}
 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-antrun-plugin:1.6:run (make) on project
 hama-pipes: An Ant BuildException has occured: Execute failed:
 java.io.IOException: Cannot run program cmake (in directory
 */hama/trunk/c++/target/native):
 error=2, No such file or directory - [Help 1]
 {code}
 2) Add {code}#include unistd.h{code} to HamaPipes.cc to solve the following 
 error. (provided by Chia-Hung Lin [2])
 {code}
 [exec] /usr/bin/c++-g -Wall -O2 -D_REENTRANT -D_GNU_SOURCE
 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
 -I/tmp/0.6.3-RC2/c++/src/main/native/utils/api
 -I/tmp/0.6.3-RC2/c++/src/main/native/pipes/api
 -I/tmp/0.6.3-RC2/c++/src-o
 CMakeFiles/hamapipes.dir/main/native/pipes/impl/HamaPipes.cc.o -c
 /tmp/0.6.3-RC2/c++/src/main/native/pipes/impl/HamaPipes.cc
 [exec] /tmp/0.6.3-RC2/c++/src/main/native/pipes/impl/HamaPipes.cc:
 In function ‘void* HamaPipes::ping(void*)’:
 [exec] /tmp/0.6.3-RC2/c++/src/main/native/pipes/impl/HamaPipes.cc:1148:16:
 error: ‘sleep’ was not declared in this scope
 [exec] /tmp/0.6.3-RC2/c++/src/main/native/pipes/impl/HamaPipes.cc:1167:30:
 error: ‘close’ was not declared in this scope
 {code}
 [1] 
 http://mail-archives.apache.org/mod_mbox/hama-dev/201309.mbox/%3CCAGnSx07dLJt4NEpgh66OQ20wgQHP%2BPvYMNsT1uJ3d69Xg%3DN2%2BQ%40mail.gmail.com%3E
 [2] 
 http://mail-archives.apache.org/mod_mbox/hama-dev/201309.mbox/%3cca+jdvcznutkhbpovwvyz55wny_ffg3ykt4c2w6jlkkuxygw...@mail.gmail.com%3e

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (HAMA-802) Skip Hama Pipes native build when cmake is missing

2013-09-15 Thread ChiaHung Lin (JIRA)

[ 
https://issues.apache.org/jira/browse/HAMA-802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13767756#comment-13767756
 ] 

ChiaHung Lin commented on HAMA-802:
---

Any chance to stop building after cmake missing message is thrown if hama pipes 
is necessary? So user may know that cmake is missing. If hama pipes is not 
necessary, it seems that would be ok for just skip it.   

 Skip Hama Pipes native build when cmake is missing
 --

 Key: HAMA-802
 URL: https://issues.apache.org/jira/browse/HAMA-802
 Project: Hama
  Issue Type: Improvement
  Components: build 
Affects Versions: 0.6.3
Reporter: Martin Illecker
Assignee: Martin Illecker
Priority: Minor
  Labels: build
 Fix For: 0.7.0

 Attachments: HAMA-802.patch


 1) Based on messages [1] of Tommaso and Anastasis we should skip building 
 Hama Pipes when cmake is missing.
 {code}
 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-antrun-plugin:1.6:run (make) on project
 hama-pipes: An Ant BuildException has occured: Execute failed:
 java.io.IOException: Cannot run program cmake (in directory
 */hama/trunk/c++/target/native):
 error=2, No such file or directory - [Help 1]
 {code}
 2) Add {code}#include unistd.h{code} to HamaPipes.cc to solve the following 
 error. (provided by Chia-Hung Lin [2])
 {code}
 [exec] /usr/bin/c++-g -Wall -O2 -D_REENTRANT -D_GNU_SOURCE
 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
 -I/tmp/0.6.3-RC2/c++/src/main/native/utils/api
 -I/tmp/0.6.3-RC2/c++/src/main/native/pipes/api
 -I/tmp/0.6.3-RC2/c++/src-o
 CMakeFiles/hamapipes.dir/main/native/pipes/impl/HamaPipes.cc.o -c
 /tmp/0.6.3-RC2/c++/src/main/native/pipes/impl/HamaPipes.cc
 [exec] /tmp/0.6.3-RC2/c++/src/main/native/pipes/impl/HamaPipes.cc:
 In function ‘void* HamaPipes::ping(void*)’:
 [exec] /tmp/0.6.3-RC2/c++/src/main/native/pipes/impl/HamaPipes.cc:1148:16:
 error: ‘sleep’ was not declared in this scope
 [exec] /tmp/0.6.3-RC2/c++/src/main/native/pipes/impl/HamaPipes.cc:1167:30:
 error: ‘close’ was not declared in this scope
 {code}
 [1] 
 http://mail-archives.apache.org/mod_mbox/hama-dev/201309.mbox/%3CCAGnSx07dLJt4NEpgh66OQ20wgQHP%2BPvYMNsT1uJ3d69Xg%3DN2%2BQ%40mail.gmail.com%3E
 [2] 
 http://mail-archives.apache.org/mod_mbox/hama-dev/201309.mbox/%3cca+jdvcznutkhbpovwvyz55wny_ffg3ykt4c2w6jlkkuxygw...@mail.gmail.com%3e

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (HAMA-802) Skip Hama Pipes native build when cmake is missing

2013-09-15 Thread Martin Illecker (JIRA)

[ 
https://issues.apache.org/jira/browse/HAMA-802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13767760#comment-13767760
 ] 

Martin Illecker commented on HAMA-802:
--

Yes that would be no problem to stop building when cmake is missing.
But most users don't care about hama pipes and therefore it should not stop.

So maybe we need a build parameter to define if pipes is necessary or not.
(Similar to the solution with hadoop1 and hadoop2 profile)

A default profile should skip a native pipes build and if user builds with 
profile pipes, it will stop the build process when cmake is missing.

Therefore we have to discuss the following question:
Do we want to include the native pipes build in the default building process or 
not?

 Skip Hama Pipes native build when cmake is missing
 --

 Key: HAMA-802
 URL: https://issues.apache.org/jira/browse/HAMA-802
 Project: Hama
  Issue Type: Improvement
  Components: build 
Affects Versions: 0.6.3
Reporter: Martin Illecker
Assignee: Martin Illecker
Priority: Minor
  Labels: build
 Fix For: 0.7.0

 Attachments: HAMA-802.patch


 1) Based on messages [1] of Tommaso and Anastasis we should skip building 
 Hama Pipes when cmake is missing.
 {code}
 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-antrun-plugin:1.6:run (make) on project
 hama-pipes: An Ant BuildException has occured: Execute failed:
 java.io.IOException: Cannot run program cmake (in directory
 */hama/trunk/c++/target/native):
 error=2, No such file or directory - [Help 1]
 {code}
 2) Add {code}#include unistd.h{code} to HamaPipes.cc to solve the following 
 error. (provided by Chia-Hung Lin [2])
 {code}
 [exec] /usr/bin/c++-g -Wall -O2 -D_REENTRANT -D_GNU_SOURCE
 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
 -I/tmp/0.6.3-RC2/c++/src/main/native/utils/api
 -I/tmp/0.6.3-RC2/c++/src/main/native/pipes/api
 -I/tmp/0.6.3-RC2/c++/src-o
 CMakeFiles/hamapipes.dir/main/native/pipes/impl/HamaPipes.cc.o -c
 /tmp/0.6.3-RC2/c++/src/main/native/pipes/impl/HamaPipes.cc
 [exec] /tmp/0.6.3-RC2/c++/src/main/native/pipes/impl/HamaPipes.cc:
 In function ‘void* HamaPipes::ping(void*)’:
 [exec] /tmp/0.6.3-RC2/c++/src/main/native/pipes/impl/HamaPipes.cc:1148:16:
 error: ‘sleep’ was not declared in this scope
 [exec] /tmp/0.6.3-RC2/c++/src/main/native/pipes/impl/HamaPipes.cc:1167:30:
 error: ‘close’ was not declared in this scope
 {code}
 [1] 
 http://mail-archives.apache.org/mod_mbox/hama-dev/201309.mbox/%3CCAGnSx07dLJt4NEpgh66OQ20wgQHP%2BPvYMNsT1uJ3d69Xg%3DN2%2BQ%40mail.gmail.com%3E
 [2] 
 http://mail-archives.apache.org/mod_mbox/hama-dev/201309.mbox/%3cca+jdvcznutkhbpovwvyz55wny_ffg3ykt4c2w6jlkkuxygw...@mail.gmail.com%3e

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (HAMA-802) Skip Hama Pipes native build when cmake is missing

2013-09-15 Thread ChiaHung Lin (JIRA)

[ 
https://issues.apache.org/jira/browse/HAMA-802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13767761#comment-13767761
 ] 

ChiaHung Lin commented on HAMA-802:
---

As cmake is not necessary, then this should be no problem. 

I'll commit this patch, and we can discuss native pipes building, etc. in 
another thread. 

 Skip Hama Pipes native build when cmake is missing
 --

 Key: HAMA-802
 URL: https://issues.apache.org/jira/browse/HAMA-802
 Project: Hama
  Issue Type: Improvement
  Components: build 
Affects Versions: 0.6.3
Reporter: Martin Illecker
Assignee: Martin Illecker
Priority: Minor
  Labels: build
 Fix For: 0.7.0

 Attachments: HAMA-802.patch


 1) Based on messages [1] of Tommaso and Anastasis we should skip building 
 Hama Pipes when cmake is missing.
 {code}
 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-antrun-plugin:1.6:run (make) on project
 hama-pipes: An Ant BuildException has occured: Execute failed:
 java.io.IOException: Cannot run program cmake (in directory
 */hama/trunk/c++/target/native):
 error=2, No such file or directory - [Help 1]
 {code}
 2) Add {code}#include unistd.h{code} to HamaPipes.cc to solve the following 
 error. (provided by Chia-Hung Lin [2])
 {code}
 [exec] /usr/bin/c++-g -Wall -O2 -D_REENTRANT -D_GNU_SOURCE
 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
 -I/tmp/0.6.3-RC2/c++/src/main/native/utils/api
 -I/tmp/0.6.3-RC2/c++/src/main/native/pipes/api
 -I/tmp/0.6.3-RC2/c++/src-o
 CMakeFiles/hamapipes.dir/main/native/pipes/impl/HamaPipes.cc.o -c
 /tmp/0.6.3-RC2/c++/src/main/native/pipes/impl/HamaPipes.cc
 [exec] /tmp/0.6.3-RC2/c++/src/main/native/pipes/impl/HamaPipes.cc:
 In function ‘void* HamaPipes::ping(void*)’:
 [exec] /tmp/0.6.3-RC2/c++/src/main/native/pipes/impl/HamaPipes.cc:1148:16:
 error: ‘sleep’ was not declared in this scope
 [exec] /tmp/0.6.3-RC2/c++/src/main/native/pipes/impl/HamaPipes.cc:1167:30:
 error: ‘close’ was not declared in this scope
 {code}
 [1] 
 http://mail-archives.apache.org/mod_mbox/hama-dev/201309.mbox/%3CCAGnSx07dLJt4NEpgh66OQ20wgQHP%2BPvYMNsT1uJ3d69Xg%3DN2%2BQ%40mail.gmail.com%3E
 [2] 
 http://mail-archives.apache.org/mod_mbox/hama-dev/201309.mbox/%3cca+jdvcznutkhbpovwvyz55wny_ffg3ykt4c2w6jlkkuxygw...@mail.gmail.com%3e

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira