hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Suman Somasundar <suman.somasun...@oracle.com>
Subject RE: Build error for a patch
Date Tue, 13 Jan 2015 02:30:49 GMT
I am using trunk.

 

Here is the error in the patchJavacWarnings.txt

 

 

main:

     [exec] -- The C compiler identification is GNU

     [exec] -- The CXX compiler identification is GNU

     [exec] -- Check for working C compiler: /usr/bin/gcc

     [exec] -- Check for working C compiler: /usr/bin/gcc -- works

     [exec] -- Detecting C compiler ABI info

     [exec] -- Detecting C compiler ABI info - done

     [exec] -- Check for working CXX compiler: /usr/bin/g++

     [exec] -- Check for working CXX compiler: /usr/bin/g++ -- works

     [exec] -- Detecting CXX compiler ABI info

     [exec] -- Detecting CXX compiler ABI info - done

     [exec] -- Found JNI: /usr/jdk/instances/jdk1.7.0/jre/lib/sparc/libjawt.so

     [exec] -- Found ZLIB: /usr/lib/libz.so.1 (found version "1.2.3")

     [exec] -- Looking for BZ2_bzCompressInit in /usr/lib/libbz2.so.1

     [exec] -- Looking for BZ2_bzCompressInit in /usr/lib/libbz2.so.1 - found

     [exec] -- Looking for sync_file_range

     [exec] -- Looking for sync_file_range - not found

     [exec] -- Looking for posix_fadvise

     [exec] -- Looking for posix_fadvise - found

     [exec] -- Looking for dlopen in dl

     [exec] CUSTOM_OPENSSL_PREFIX =

     [exec] -- Looking for dlopen in dl - found

     [exec] -- Performing Test HAS_NEW_ENOUGH_OPENSSL

     [exec] The OpenSSL library installed at /lib/libcrypto.so is too old.  You need
a version at least new enough to have EVP_aes_256_ctr.

     [exec] Cannot find a usable OpenSSL library.  OPENSSL_LIBRARY=/lib/libcrypto.so,
OPENSSL_INCLUDE_DIR=/usr/include, CUSTOM_OPENSSL_LIB=, CUSTOM_OPENSSL_PREFIX=, CUSTOM_OPENSSL_INCLUDE=

     [exec] -- Performing Test HAS_NEW_ENOUGH_OPENSSL - Failed

     [exec] -- Configuring done

     [exec] CMake Warning:

     [exec]   Manually-specified variables were not used by the project:

     [exec]

     [exec]     EXTRA_LIBHADOOP_RPATH

     [exec]     REQUIRE_BZIP2

     [exec]     REQUIRE_SNAPPY

     [exec]

     [exec]

     [exec] -- Generating done

     [exec] -- Build files have been written to: /export/home/hadoop/hadoop-comitter/hadoop-git/hadoop-common-project/hadoop-common/target/native

     [exec] /usr/bin/cmake -H/export/home/hadoop/hadoop-comitter/hadoop-git/hadoop-common-project/hadoop-common/src
-B/export/home/hadoop/hadoop-comitter/hadoop-git/hadoop-common-project/hadoop-common/target/native
--check-build-system CMakeFiles/Makefile.cmake 0

     [exec] /usr/bin/cmake -E cmake_progress_start /export/home/hadoop/hadoop-comitter/hadoop-git/hadoop-common-project/hadoop-common/target/native/CMakeFiles
/export/home/hadoop/hadoop-comitter/hadoop-git/hadoop-common-project/hadoop-common/target/native/CMakeFiles/progress.marks

     [exec] make -f CMakeFiles/Makefile2 all

     [exec] make -f CMakeFiles/hadoop.dir/build.make CMakeFiles/hadoop.dir/depend

     [exec] cd /export/home/hadoop/hadoop-comitter/hadoop-git/hadoop-common-project/hadoop-common/target/native
&& /usr/bin/cmake -E cmake_depends "Unix Makefiles" /export/home/hadoop/hadoop-comitter/hadoop-git/hadoop-common-project/hadoop-common/src
/export/home/hadoop/hadoop-comitter/hadoop-git/hadoop-common-project/hadoop-common/src /export/home/hadoop/hadoop-comitter/hadoop-git/hadoop-common-project/hadoop-common/target/native
/export/home/hadoop/hadoop-comitter/hadoop-git/hadoop-common-project/hadoop-common/target/native
/export/home/hadoop/hadoop-comitter/hadoop-git/hadoop-common-project/hadoop-common/target/native/CMakeFiles/hadoop.dir/DependInfo.cmake
--color=

     [exec] Dependee "/export/home/hadoop/hadoop-comitter/hadoop-git/hadoop-common-project/hadoop-common/target/native/CMakeFiles/hadoop.dir/DependInfo.cmake"
is newer than depender "/export/home/hadoop/hadoop-comitter/hadoop-git/hadoop-common-project/hadoop-common/target/native/CMakeFiles/hadoop.dir/depend.internal".

     [exec] Dependee "/export/home/hadoop/hadoop-comitter/hadoop-git/hadoop-common-project/hadoop-common/target/native/CMakeFiles/CMakeDirectoryInformation.cmake"
is newer than depender "/export/home/hadoop/hadoop-comitter/hadoop-git/hadoop-common-project/hadoop-common/target/native/CMakeFiles/hadoop.dir/depend.internal".

     [exec] /export/home/hadoop/hadoop-comitter/hadoop-git/hadoop-common-project/hadoop-common/src/main/native/src/exception.c:
In function 'terror':

     [exec] /export/home/hadoop/hadoop-comitter/hadoop-git/hadoop-common-project/hadoop-common/src/main/native/src/exception.c:113:34:
error: 'sys_nerr' undeclared (first use in this function)

     [exec] /export/home/hadoop/hadoop-comitter/hadoop-git/hadoop-common-project/hadoop-common/src/main/native/src/exception.c:113:34:
note: each undeclared identifier is reported only once for each function it appears in

     [exec] /export/home/hadoop/hadoop-comitter/hadoop-git/hadoop-common-project/hadoop-common/src/main/native/src/exception.c:116:10:
error: 'sys_errlist' undeclared (first use in this function)

     [exec] /export/home/hadoop/hadoop-comitter/hadoop-git/hadoop-common-project/hadoop-common/src/main/native/src/exception.c:117:1:
warning: control reaches end of non-void function

     [exec] make: Fatal error: Command failed for target `CMakeFiles/hadoop.dir/main/native/src/exception.c.o'

     [exec] Current working directory /export/home/hadoop/hadoop-comitter/hadoop-git/hadoop-common-project/hadoop-common/target/native

     [exec] make: Fatal error: Command failed for target `CMakeFiles/hadoop.dir/all'

     [exec] Current working directory /export/home/hadoop/hadoop-comitter/hadoop-git/hadoop-common-project/hadoop-common/target/native

     [exec] make: Fatal error: Command failed for target `all'

     [exec] Scanning dependencies of target hadoop

     [exec] make -f CMakeFiles/hadoop.dir/build.make CMakeFiles/hadoop.dir/build

     [exec] /usr/bin/cmake -E cmake_progress_report /export/home/hadoop/hadoop-comitter/hadoop-git/hadoop-common-project/hadoop-common/target/native/CMakeFiles
1

     [exec] [  2%] Building C object CMakeFiles/hadoop.dir/main/native/src/exception.c.o

     [exec] /usr/bin/gcc  -Dhadoop_EXPORTS -g -Wall -O2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -fPIC -I/export/home/hadoop/hadoop-comitter/hadoop-git/hadoop-common-project/hadoop-common/target/native/javah
-I/export/home/hadoop/hadoop-comitter/hadoop-git/hadoop-common-project/hadoop-common/src/main/native/src
-I/export/home/hadoop/hadoop-comitter/hadoop-git/hadoop-common-project/hadoop-common/src -I/export/home/hadoop/hadoop-comitter/hadoop-git/hadoop-common-project/hadoop-common/src/src
-I/export/home/hadoop/hadoop-comitter/hadoop-git/hadoop-common-project/hadoop-common/target/native
-I/usr/jdk/instances/jdk1.7.0/include -I/usr/jdk/instances/jdk1.7.0/include/solaris -I/usr/local/include
-I/export/home/hadoop/hadoop-comitter/hadoop-git/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/util
-o CMakeFiles/hadoop.dir/main/native/src/exception.c.o   -c /export/home/hadoop/hadoop-comitter/hadoop-git/hadoop-common-project/hadoop-common/src/main/native/src/exception.c

     [exec] *** Error code 1

     [exec] *** Error code 1

     [exec] *** Error code 1

 

Thanks,

Suman.

From: Ted Yu [mailto:yuzhihong@gmail.com] 
Sent: Monday, January 12, 2015 6:24 PM
To: user@hadoop.apache.org
Subject: Re: Build error for a patch

 

Which branch are you using?

 

Can you pastebin the error?

 

Cheers




On Jan 12, 2015, at 6:18 PM, Suman Somasundar <HYPERLINK "mailto:suman.somasundar@oracle.com"suman.somasundar@oracle.com>
wrote:

Hi all,

 

When I test a patch file of mine which I want to submit, with dev-support/test-patch.sh, I
get a build failure message with error in native code which I have not modified. What is the
cause of this?

 

Thanks,
Suman.

Mime
View raw message