I have a hack

remove -Pnative
and try compiling it separately like

cd ~/branch-0.23/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl gcc -I. -m32 -D_GNU_SOURCE=1 -DHADOOP_CONF_DIR=~/HADOOP_MAPREDUCE/conf/ -Wall -g -Werror configuration.c container-executor.c main.c -o container-executor

haven't looked into real issue yet.

On 01/30/2012 05:14 AM, Hai Huang wrote:
Hi,

I got the hadoop hadoop source via Git and buit it using the command

=================
mvn package -Pdist,native,docs -DskipTests -Dtar

=================


Does anyone the below compilation issue I got ?

==================

[ERROR] Failed to execute goal org.codehaus.mojo:make-maven-plugin:1.0-beta-1:test 
(test) on project hadoop-yarn-server-nodemanager: make returned an exit value != 
0. Aborting build; see command output above for more information. ->  [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<goals>  -rf :hadoop-yarn-server-nodemanager

=================

I am using the CentOs  6.2 and gcc 4.4.6. It looks like that the issue is due 
to  build native code. If I just used the command

============

mvn package -Pdist -DskipTests -Dtar

============

The build was OK.


Best,

Hai


Reply via email to