hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Subhash Gopinath <sgopin...@maprtech.com>
Subject Build error while compiling native libraries
Date Wed, 10 Mar 2010 19:28:37 GMT
Hello folks,

I am facing this error when I compile the hadoop-common trunk, with
compile.native enabled. Any ideas?
I have zlib 1.2.3 installed

Thanks
Subhash

ant -Dcompile.native=true

Buildfile: build.xml

clover.setup:

clover.info:
     [echo]
     [echo]      Clover not found. Code coverage reports disabled.
     [echo]

clover:

ivy-download:
      [get] Getting:
http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.1.0-rc1/ivy-2.1.0-rc1.jar
      [get] To: /home/guest/hadoop/trunk/common/ivy/ivy-2.1.0-rc1.jar
      [get] Not modified - so not downloaded

ivy-init-dirs:

ivy-probe-antlib:

ivy-init-antlib:

ivy-init:
[ivy:configure] :: Ivy 2.1.0-rc1 - 20090319213629 ::
http://ant.apache.org/ivy/ ::
:: loading settings :: file =
/home/guest/hadoop/trunk/common/ivy/ivysettings.xml

ivy-resolve-common:

ivy-retrieve-common:
No ivy:settings found for the default reference 'ivy.instance'.  A
default instance will be used
DEPRECATED: 'ivy.conf.file' is deprecated, use 'ivy.settings.file' instead
:: loading settings :: file =
/home/guest/hadoop/trunk/common/ivy/ivysettings.xml

init:
    [touch] Creating /tmp/null400171132
   [delete] Deleting: /tmp/null400171132

record-parser:

compile-rcc-compiler:

compile-core-classes:
    [javac] Compiling 2 source files to
/home/guest/hadoop/trunk/common/build/classes

compile-core-native:
    [javah] [Search path =
/usr/lib/jvm/java-6-sun-1.6.0.17/jre/lib/resources.jar:/usr/lib/jvm/java-6-sun-1.6.0.17/jre/lib/rt.jar:/usr/lib/jvm/java-6-sun-1.6.0.17/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-6-sun-1.6.0.17/jre/lib/jsse.jar:/usr/lib/jvm/java-6-sun-1.6.0.17/jre/lib/jce.jar:/usr/lib/jvm/java-6-sun-1.6.0.17/jre/lib/charsets.jar:/usr/lib/jvm/java-6-sun-1.6.0.17/jre/classes:/home/guest/hadoop/trunk/common/build/classes]
    [javah] [Loaded
/home/guest/hadoop/trunk/common/build/classes/org/apache/hadoop/io/compress/zlib/ZlibCompressor.class]
    [javah] [Loaded
/usr/lib/jvm/java-6-sun-1.6.0.17/jre/lib/rt.jar(java/lang/Object.class)]
    [javah] [Forcefully writing file
/home/guest/hadoop/trunk/common/build/native/Linux-amd64-64/src/org/apache/hadoop/io/compress/zlib/org_apache_hadoop_io_compress_zlib_ZlibCompressor.h]
    [javah] [Loaded
/home/guest/hadoop/trunk/common/build/classes/org/apache/hadoop/io/compress/zlib/ZlibDecompressor.class]
    [javah] [Forcefully writing file
/home/guest/hadoop/trunk/common/build/native/Linux-amd64-64/src/org/apache/hadoop/io/compress/zlib/org_apache_hadoop_io_compress_zlib_ZlibDecompressor.h]
     [exec] checking for a BSD-compatible install... /usr/bin/install -c
     [exec] checking whether build environment is sane... yes
     [exec] checking for gawk... no
     [exec] checking for mawk... mawk
     [exec] checking whether make sets $(MAKE)... yes
     [exec] checking for gcc... gcc
     [exec] checking for C compiler default output file name... a.out
     [exec] checking whether the C compiler works... yes
     [exec] checking whether we are cross compiling... no
     [exec] checking for suffix of executables...
     [exec] checking for suffix of object files... o
     [exec] checking whether we are using the GNU C compiler... yes
     [exec] checking whether gcc accepts -g... yes
     [exec] checking for gcc option to accept ANSI C... none needed
     [exec] checking for style of include used by make... GNU
     [exec] checking dependency style of gcc... gcc3
     [exec] checking build system type... x86_64-unknown-linux-gnu
     [exec] checking host system type... x86_64-unknown-linux-gnu
     [exec] checking for a sed that does not truncate output... /bin/sed
     [exec] checking for egrep... grep -E
     [exec] checking for ld used by gcc... /usr/bin/ld
     [exec] checking if the linker (/usr/bin/ld) is GNU ld... yes
     [exec] checking for /usr/bin/ld option to reload object files... -r
     [exec] checking for BSD-compatible nm... /usr/bin/nm -B
     [exec] checking whether ln -s works... yes
     [exec] checking how to recognise dependent libraries... pass_all
     [exec] checking how to run the C preprocessor... gcc -E
     [exec] checking for ANSI C header files... yes
     [exec] checking for sys/types.h... yes
     [exec] checking for sys/stat.h... yes
     [exec] checking for stdlib.h... yes
     [exec] checking for string.h... yes
     [exec] checking for memory.h... yes
     [exec] checking for strings.h... yes
     [exec] checking for inttypes.h... yes
     [exec] checking for stdint.h... yes
     [exec] checking for unistd.h... yes
     [exec] checking dlfcn.h usability... yes
     [exec] checking dlfcn.h presence... yes
     [exec] checking for dlfcn.h... yes
     [exec] checking for g++... g++
     [exec] checking whether we are using the GNU C++ compiler... yes
     [exec] checking whether g++ accepts -g... yes
     [exec] checking dependency style of g++... gcc3
     [exec] checking how to run the C++ preprocessor... g++ -E
     [exec] checking for g77... no
     [exec] checking for f77... no
     [exec] checking for xlf... no
     [exec] checking for frt... no
     [exec] checking for pgf77... no
     [exec] checking for fort77... no
     [exec] checking for fl32... no
     [exec] checking for af77... no
     [exec] checking for f90... no
     [exec] checking for xlf90... no
     [exec] checking for pgf90... no
     [exec] checking for epcf90... no
     [exec] checking for f95... no
     [exec] checking for fort... no
     [exec] checking for xlf95... no
     [exec] checking for ifc... no
     [exec] checking for efc... no
     [exec] checking for pgf95... no
     [exec] checking for lf95... no
     [exec] checking for gfortran... no
     [exec] checking whether we are using the GNU Fortran 77 compiler... no
     [exec] checking whether  accepts -g... no
     [exec] checking the maximum length of command line arguments... 32768
     [exec] checking command to parse /usr/bin/nm -B output from gcc
object... ok
     [exec] checking for objdir... .libs
     [exec] checking for ar... ar
     [exec] checking for ranlib... ranlib
     [exec] checking for strip... strip
     [exec] checking if gcc static flag  works... yes
     [exec] checking if gcc supports -fno-rtti -fno-exceptions... no
     [exec] checking for gcc option to produce PIC... -fPIC
     [exec] checking if gcc PIC flag -fPIC works... yes
     [exec] checking if gcc supports -c -o file.o... yes
     [exec] checking whether the gcc linker (/usr/bin/ld -m
elf_x86_64) supports shared libraries... yes
     [exec] checking whether -lc should be explicitly linked in... no
     [exec] checking dynamic linker characteristics... GNU/Linux ld.so
     [exec] checking how to hardcode library paths into programs... immediate
     [exec] checking whether stripping libraries is possible... yes
     [exec] checking if libtool supports shared libraries... yes
     [exec] checking whether to build shared libraries... yes
     [exec] checking whether to build static libraries... yes
     [exec] configure: creating libtool
     [exec] appending configuration tag "CXX" to libtool
     [exec] checking for ld used by g++... /usr/bin/ld -m elf_x86_64
     [exec] checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
     [exec] checking whether the g++ linker (/usr/bin/ld -m
elf_x86_64) supports shared libraries... yes
     [exec] checking for g++ option to produce PIC... -fPIC
     [exec] checking if g++ PIC flag -fPIC works... yes
     [exec] checking if g++ supports -c -o file.o... yes
     [exec] checking whether the g++ linker (/usr/bin/ld -m
elf_x86_64) supports shared libraries... yes
     [exec] checking dynamic linker characteristics... GNU/Linux ld.so
     [exec] checking how to hardcode library paths into programs... immediate
     [exec] checking whether stripping libraries is possible... yes
     [exec] appending configuration tag "F77" to libtool
     [exec] checking for dlopen in -ldl... yes
     [exec] checking for JNI_GetCreatedJavaVMs in -ljvm... yes
     [exec] checking for ANSI C header files... (cached) yes
     [exec] checking stdio.h usability... yes
     [exec] checking stdio.h presence... yes
     [exec] checking for stdio.h... yes
     [exec] checking stddef.h usability... yes
     [exec] checking stddef.h presence... yes
     [exec] checking for stddef.h... yes
     [exec] checking jni.h usability... yes
     [exec] checking jni.h presence... yes
     [exec] checking for jni.h... yes
     [exec] checking zlib.h usability... yes
     [exec] checking zlib.h presence... yes
     [exec] checking for zlib.h... yes
     [exec] checking Checking for the 'actual' dynamic-library for '-lz'...
     [exec] checking zconf.h usability... yes
     [exec] checking zconf.h presence... yes
     [exec] checking for zconf.h... yes
     [exec] checking Checking for the 'actual' dynamic-library for
'-lz'... (cached)
     [exec] checking for an ANSI C-conforming const... yes
     [exec] checking for memset... no
     [exec] configure: creating ./config.status
     [exec] config.status: creating Makefile
     [exec] config.status: creating
src/org/apache/hadoop/io/compress/zlib/Makefile
     [exec] config.status: creating lib/Makefile
     [exec] config.status: creating config.h
     [exec] config.status: config.h is unchanged
     [exec] config.status: executing depfiles commands
     [exec] make  all-recursive
     [exec] make[1]: Entering directory
`/home/guest/hadoop/trunk/common/build/native/Linux-amd64-64'
     [exec] Making all in src/org/apache/hadoop/io/compress/zlib
     [exec] make[2]: Entering directory
`/home/guest/hadoop/trunk/common/build/native/Linux-amd64-64/src/org/apache/hadoop/io/compress/zlib'
     [exec] make[3]: Entering directory
`/home/guest/hadoop/trunk/common/build/native/Linux-amd64-64'
     [exec] make[3]: Leaving directory
`/home/guest/hadoop/trunk/common/build/native/Linux-amd64-64'
     [exec] if /bin/bash ../../../../../../../libtool --mode=compile
--tag=CC gcc -DHAVE_CONFIG_H -I.
-I/home/guest/hadoop/trunk/common/src/native/src/org/apache/hadoop/io/compress/zlib
-I../../../../../../..  -I/usr/lib/jvm/java-6-sun/include
-I/usr/lib/jvm/java-6-sun/include/linux
-I/home/guest/hadoop/trunk/common/src/native/src  -g -Wall -fPIC -O2
-m64 -g -O2 -MT ZlibCompressor.lo -MD -MP -MF
".deps/ZlibCompressor.Tpo" -c -o ZlibCompressor.lo
/home/guest/hadoop/trunk/common/src/native/src/org/apache/hadoop/io/compress/zlib/ZlibCompressor.c;
\
     [exec] 	then mv -f ".deps/ZlibCompressor.Tpo"
".deps/ZlibCompressor.Plo"; else rm -f ".deps/ZlibCompressor.Tpo";
exit 1; fi
     [exec]  gcc -DHAVE_CONFIG_H -I.
-I/home/guest/hadoop/trunk/common/src/native/src/org/apache/hadoop/io/compress/zlib
-I../../../../../../.. -I/usr/lib/jvm/java-6-sun/include
-I/usr/lib/jvm/java-6-sun/include/linux
-I/home/guest/hadoop/trunk/common/src/native/src -g -Wall -fPIC -O2
-m64 -g -O2 -MT ZlibCompressor.lo -MD -MP -MF .deps/ZlibCompressor.Tpo
-c /home/guest/hadoop/trunk/common/src/native/src/org/apache/hadoop/io/compress/zlib/ZlibCompressor.c
 -fPIC -DPIC -o .libs/ZlibCompressor.o
     [exec] /home/guest/hadoop/trunk/common/src/native/src/org/apache/hadoop/io/compress/zlib/ZlibCompressor.c:
In function 'Java_org_apache_hadoop_io_compress_zlib_ZlibCompressor_initIDs':
     [exec] /home/guest/hadoop/trunk/common/src/native/src/org/apache/hadoop/io/compress/zlib/ZlibCompressor.c:71:
error: expected expression before ',' token
     [exec] make[2]: *** [ZlibCompressor.lo] Error 1
     [exec] make[2]: Leaving directory
`/home/guest/hadoop/trunk/common/build/native/Linux-amd64-64/src/org/apache/hadoop/io/compress/zlib'
     [exec] make[1]: Leaving directory
`/home/guest/hadoop/trunk/common/build/native/Linux-amd64-64'
     [exec] make[1]: *** [all-recursive] Error 1
     [exec] make: *** [all] Error 2

Mime
View raw message