Hi,
thanks for your feedback!
I will try to solve it this way:
if (CMAKE) {
build hama_pipes module
} else {
skip hama_pipes module
notify user, why hama_pipes was skipped
}
By the way, did you also observe this build failure mentioned by Chia-Hung
Lin:
...
> [exec] /path/to/trunk/c++/src/main/native/pipes/impl/HamaPipes.cc:
> In function ‘void* HamaPipes::ping(void*)’:
> [exec] /path/to/trunk/c++/src/main/native/pipes/impl/HamaPipes.
> cc:1148:16:
> error: ‘sleep’ was not declared in this scope
> [exec] /path/to/trunk/c++/src/main/native/pipes/impl/HamaPipes.
> cc:1167:30:
> error: ‘close’ was not declared in this scope
> [exec] /path/to/trunk/c++/src/main/native/pipes/impl/HamaPipes.cc:
> In function ‘bool HamaPipes::runTask(const HamaPipes::Factory&)’:
> [exec] /path/to/trunk/c++/src/main/native/pipes/impl/HamaPipes.
> cc:1280:28:
> error: ‘close’ was not declared in this scope
> [exec] make[2]: ***
> [CMakeFiles/hamapipes.dir/main/native/pipes/impl/HamaPipes.cc.o] Error
> 1
> [exec] make[1]: *** [CMakeFiles/hamapipes.dir/all] Error 2
> [exec] make: *** [all] Error 2
> [exec] make[2]: Leaving directory `/path/to/trunk/c++/target/native'
> [exec] make[1]: Leaving directory `/path/to/trunk/c++/target/native'
> ...
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> execute goal org.apache.maven.plugins:maven-antrun-plugin:1.6:run
> (make) on project hama-pipes: An Ant BuildException has occured: exec
> returned: 2
Just notice that <unistd.h> is not included in HamaPipes.cc. Adding
> unistd.h to HamaPipes.cc solves the problem, but not sure if this is
> the right way to fix it.
Thanks!
Martin
2013/9/9 Anastasis Andronidis <[email protected]>
> Hello,
>
> as Martin Illecker explains at his ticket (HAMA-749), there are lots of
> benefits with cmake: https://issues.apache.org/jira/browse/HADOOP-8368
>
> I had the some confusion when I tried to build. I think we should test if
> cmake exists at first place in the beginning of the building, and inform
> the user to install it, instead of failing with a bogus message.
>
> Cheers,
> Anastasis
>
> On 9 Σεπ 2013, at 10:25 π.μ., Tommaso Teofili <[email protected]>
> wrote:
>
> > Hi all,
> >
> > when I try to build from trunk I get the following while trying to build
> > the pipes module:
> >
> > [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
> > "/Users/teofili/Documents/workspaces/asf/hama/trunk/c++/target/native"):
> > error=2, No such file or directory -> [Help 1]
> >
> > If I understand things correctly I miss the compiler on my computer,
> > however it'd be good if we could skip that module if that cmake program
> is
> > missing.
> >
> > Regards,
> > Tommaso
>
>