On Tue, Apr 01, 2014 at 09:59:36PM -0700, Vinod Kone wrote: > I changed 'make check' to 'make distcheck' in all our Apache builds. But > the error is interesting.. > > checking whether or not we can build with JNI... /usr/bin/ld: skipping > incompatible /home/hudson/tools/java/latest1.6/jre/lib/i386/server/libjvm.so
>From the config.log, the host is x86_64 system I found. However, the above jre is i386 version, so as libjvm.so I think. -- Thanks, Chengwei > when searching for -ljvm > /usr/bin/ld: cannot find -ljvm > collect2: ld returned 1 exit status > configure: error: failed to build with JNI > > > On Tue, Apr 1, 2014 at 9:44 PM, Apache Jenkins Server < > [email protected]> wrote: > > > See < > > https://builds.apache.org/job/Mesos-Trunk-Ubuntu-Build-Out-Of-Src-Disable-Java-Disable-Python-Disable-Webui/2031/changes > > > > > > > Changes: > > > > [niklas] Removed obsolete setting of framework id in executor. > > > > [benjamin.hindman] Moved slave disconnection into new > > Master::disconnect(Slave*). > > > > ------------------------------------------ > > [...truncated 719 lines...] > > checking whether -pthread is sufficient with -shared... yes > > checking for deflate, gzread, gzwrite, inflate in -lz... yes > > checking whether g++ supports C++11 features by default... no > > checking whether g++ supports C++11 features with -std=c++11... no > > checking whether g++ supports C++11 features with -std=c++0x... yes > > configure: creating ./config.status > > config.status: creating Makefile > > config.status: creating 3rdparty/Makefile > > config.status: executing depfiles commands > > config.status: executing libtool commands > > === configuring in 3rdparty/stout (< > > https://builds.apache.org/job/Mesos-Trunk-Ubuntu-Build-Out-Of-Src-Disable-Java-Disable-Python-Disable-Webui/ws/build/3rdparty/libprocess/3rdparty/stout > > )> > > configure: running /bin/bash > > ../../../../../3rdparty/libprocess/3rdparty/stout/configure > > --disable-option-checking '--prefix=/usr/local' '--disable-java' > > '--disable-python' '--disable-webui' > > 'JAVA_HOME=/home/hudson/tools/java/latest1.6' '--enable-shared=no' > > '--with-pic' --cache-file=/dev/null > > --srcdir=../../../../../3rdparty/libprocess/3rdparty/stout > > checking for a BSD-compatible install... /usr/bin/install -c > > checking whether build environment is sane... yes > > checking for a thread-safe mkdir -p... /bin/mkdir -p > > checking for gawk... no > > checking for mawk... mawk > > checking whether make sets $(MAKE)... yes > > configure: creating ./config.status > > config.status: creating Makefile > > + GLOG_v=1 > > + MESOS_VERBOSE=1 > > + make distcheck > > if test -d "mesos-0.19.0"; then find "mesos-0.19.0" -type d ! -perm -200 > > -exec chmod u+w {} ';' && rm -rf "mesos-0.19.0" || { sleep 5 && rm -rf > > "mesos-0.19.0"; }; else :; fi > > test -d "mesos-0.19.0" || mkdir "mesos-0.19.0" > > (cd 3rdparty && make top_distdir=../mesos-0.19.0 > > distdir=../mesos-0.19.0/3rdparty \ > > am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: > > distdir) > > make[1]: Entering directory `< > > https://builds.apache.org/job/Mesos-Trunk-Ubuntu-Build-Out-Of-Src-Disable-Java-Disable-Python-Disable-Webui/ws/build/3rdparty > > '> > > (cd libprocess && make top_distdir=../../mesos-0.19.0 > > distdir=../../mesos-0.19.0/3rdparty/libprocess \ > > am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: > > distdir) > > make[2]: Entering directory `< > > https://builds.apache.org/job/Mesos-Trunk-Ubuntu-Build-Out-Of-Src-Disable-Java-Disable-Python-Disable-Webui/ws/build/3rdparty/libprocess > > '> > > : > > test -d "../../mesos-0.19.0/3rdparty/libprocess" || mkdir > > "../../mesos-0.19.0/3rdparty/libprocess" > > (cd 3rdparty && make top_distdir=../../../mesos-0.19.0 > > distdir=../../../mesos-0.19.0/3rdparty/libprocess/3rdparty \ > > am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: > > distdir) > > make[3]: Entering directory `< > > https://builds.apache.org/job/Mesos-Trunk-Ubuntu-Build-Out-Of-Src-Disable-Java-Disable-Python-Disable-Webui/ws/build/3rdparty/libprocess/3rdparty > > '> > > (cd stout && make top_distdir=../../../../mesos-0.19.0 > > distdir=../../../../mesos-0.19.0/3rdparty/libprocess/3rdparty/stout \ > > am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: > > distdir) > > make[4]: Entering directory `< > > https://builds.apache.org/job/Mesos-Trunk-Ubuntu-Build-Out-Of-Src-Disable-Java-Disable-Python-Disable-Webui/ws/build/3rdparty/libprocess/3rdparty/stout > > '> > > : > > test -d "../../../../mesos-0.19.0/3rdparty/libprocess/3rdparty/stout" || > > mkdir "../../../../mesos-0.19.0/3rdparty/libprocess/3rdparty/stout" > > test -n ":" \ > > || find > > "../../../../mesos-0.19.0/3rdparty/libprocess/3rdparty/stout" -type d ! > > -perm -755 \ > > -exec chmod u+rwx,go+rx {} \; -o \ > > ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ > > ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ > > ! -type d ! -perm -444 -exec /bin/bash < > > https://builds.apache.org/job/Mesos-Trunk-Ubuntu-Build-Out-Of-Src-Disable-Java-Disable-Python-Disable-Webui/ws/3rdparty/libprocess/3rdparty/stout/install-sh> > > -c -m a+r {} {} \; \ > > || chmod -R a+r > > "../../../../mesos-0.19.0/3rdparty/libprocess/3rdparty/stout" > > make[4]: Leaving directory `< > > https://builds.apache.org/job/Mesos-Trunk-Ubuntu-Build-Out-Of-Src-Disable-Java-Disable-Python-Disable-Webui/ws/build/3rdparty/libprocess/3rdparty/stout > > '> > > make[3]: Leaving directory `< > > https://builds.apache.org/job/Mesos-Trunk-Ubuntu-Build-Out-Of-Src-Disable-Java-Disable-Python-Disable-Webui/ws/build/3rdparty/libprocess/3rdparty > > '> > > test -n ":" \ > > || find "../../mesos-0.19.0/3rdparty/libprocess" -type d ! -perm > > -755 \ > > -exec chmod u+rwx,go+rx {} \; -o \ > > ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ > > ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ > > ! -type d ! -perm -444 -exec /bin/bash < > > https://builds.apache.org/job/Mesos-Trunk-Ubuntu-Build-Out-Of-Src-Disable-Java-Disable-Python-Disable-Webui/ws/3rdparty/libprocess/install-sh> > > -c -m a+r {} {} \; \ > > || chmod -R a+r "../../mesos-0.19.0/3rdparty/libprocess" > > make[2]: Leaving directory `< > > https://builds.apache.org/job/Mesos-Trunk-Ubuntu-Build-Out-Of-Src-Disable-Java-Disable-Python-Disable-Webui/ws/build/3rdparty/libprocess > > '> > > make[1]: Leaving directory `< > > https://builds.apache.org/job/Mesos-Trunk-Ubuntu-Build-Out-Of-Src-Disable-Java-Disable-Python-Disable-Webui/ws/build/3rdparty > > '> > > (cd src && make top_distdir=../mesos-0.19.0 distdir=../mesos-0.19.0/src \ > > am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: > > distdir) > > make[1]: Entering directory `< > > https://builds.apache.org/job/Mesos-Trunk-Ubuntu-Build-Out-Of-Src-Disable-Java-Disable-Python-Disable-Webui/ws/build/src > > '> > > make[1]: Leaving directory `< > > https://builds.apache.org/job/Mesos-Trunk-Ubuntu-Build-Out-Of-Src-Disable-Java-Disable-Python-Disable-Webui/ws/build/src > > '> > > (cd ec2 && make top_distdir=../mesos-0.19.0 distdir=../mesos-0.19.0/ec2 \ > > am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: > > distdir) > > make[1]: Entering directory `< > > https://builds.apache.org/job/Mesos-Trunk-Ubuntu-Build-Out-Of-Src-Disable-Java-Disable-Python-Disable-Webui/ws/build/ec2 > > '> > > make[1]: Leaving directory `< > > https://builds.apache.org/job/Mesos-Trunk-Ubuntu-Build-Out-Of-Src-Disable-Java-Disable-Python-Disable-Webui/ws/build/ec2 > > '> > > test -n "" \ > > || find "mesos-0.19.0" -type d ! -perm -755 \ > > -exec chmod u+rwx,go+rx {} \; -o \ > > ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ > > ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ > > ! -type d ! -perm -444 -exec /bin/bash < > > https://builds.apache.org/job/Mesos-Trunk-Ubuntu-Build-Out-Of-Src-Disable-Java-Disable-Python-Disable-Webui/ws/install-sh> > > -c -m a+r {} {} \; \ > > || chmod -R a+r "mesos-0.19.0" > > tardir=mesos-0.19.0 && ${TAR-tar} chof - "$tardir" | GZIP=--best gzip -c > > >mesos-0.19.0.tar.gz > > if test -d "mesos-0.19.0"; then find "mesos-0.19.0" -type d ! -perm -200 > > -exec chmod u+w {} ';' && rm -rf "mesos-0.19.0" || { sleep 5 && rm -rf > > "mesos-0.19.0"; }; else :; fi > > case 'mesos-0.19.0.tar.gz' in \ > > *.tar.gz*) \ > > GZIP=--best gzip -dc mesos-0.19.0.tar.gz | ${TAR-tar} xf - ;;\ > > *.tar.bz2*) \ > > bzip2 -dc mesos-0.19.0.tar.bz2 | ${TAR-tar} xf - ;;\ > > *.tar.lzma*) \ > > lzma -dc mesos-0.19.0.tar.lzma | ${TAR-tar} xf - ;;\ > > *.tar.lz*) \ > > lzip -dc mesos-0.19.0.tar.lz | ${TAR-tar} xf - ;;\ > > *.tar.xz*) \ > > xz -dc mesos-0.19.0.tar.xz | ${TAR-tar} xf - ;;\ > > *.tar.Z*) \ > > uncompress -c mesos-0.19.0.tar.Z | ${TAR-tar} xf - ;;\ > > *.shar.gz*) \ > > GZIP=--best gzip -dc mesos-0.19.0.shar.gz | unshar ;;\ > > *.zip*) \ > > unzip mesos-0.19.0.zip ;;\ > > esac > > chmod -R a-w mesos-0.19.0; chmod a+w mesos-0.19.0 > > mkdir mesos-0.19.0/_build > > mkdir mesos-0.19.0/_inst > > chmod a-w mesos-0.19.0 > > test -d mesos-0.19.0/_build || exit 0; \ > > dc_install_base=`CDPATH="${ZSH_VERSION+.}:" && cd > > mesos-0.19.0/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ > > && dc_destdir="${TMPDIR-/tmp}/am-dc-$$/" \ > > && am__cwd=`pwd` \ > > && CDPATH="${ZSH_VERSION+.}:" && cd mesos-0.19.0/_build \ > > && ../configure --srcdir=.. --prefix="$dc_install_base" \ > > \ > > \ > > && make \ > > && make dvi \ > > && make check \ > > && make install \ > > && make installcheck \ > > && make uninstall \ > > && make distuninstallcheck_dir="$dc_install_base" \ > > distuninstallcheck \ > > && chmod -R a-w "$dc_install_base" \ > > && ({ \ > > (cd ../.. && umask 077 && mkdir "$dc_destdir") \ > > && make DESTDIR="$dc_destdir" install \ > > && make DESTDIR="$dc_destdir" uninstall \ > > && make DESTDIR="$dc_destdir" \ > > distuninstallcheck_dir="$dc_destdir" > > distuninstallcheck; \ > > } || { rm -rf "$dc_destdir"; exit 1; }) \ > > && rm -rf "$dc_destdir" \ > > && make dist \ > > && rm -rf mesos-0.19.0.tar.gz \ > > && make distcleancheck \ > > && cd "$am__cwd" \ > > || exit 1 > > checking build system type... x86_64-unknown-linux-gnu > > checking host system type... x86_64-unknown-linux-gnu > > checking target system type... x86_64-unknown-linux-gnu > > checking for a BSD-compatible install... /usr/bin/install -c > > checking whether build environment is sane... yes > > checking for a thread-safe mkdir -p... /bin/mkdir -p > > checking for gawk... no > > checking for mawk... mawk > > checking whether make sets $(MAKE)... yes > > checking for style of include used by make... GNU > > checking for g++... g++ > > checking whether the C++ compiler works... yes > > checking for C++ compiler default output file name... a.out > > checking for suffix of executables... > > checking whether we are cross compiling... no > > checking for suffix of object files... o > > checking whether we are using the GNU C++ compiler... yes > > checking whether g++ accepts -g... yes > > checking dependency style of g++... gcc3 > > checking for ar... ar > > checking the archiver (ar) interface... ar > > checking how to print strings... printf > > checking for gcc... gcc > > checking whether we are using the GNU C compiler... yes > > checking whether gcc accepts -g... yes > > checking for gcc option to accept ISO C89... none needed > > checking dependency style of gcc... gcc3 > > checking for a sed that does not truncate output... /bin/sed > > checking for grep that handles long lines and -e... /bin/grep > > checking for egrep... /bin/grep -E > > checking for fgrep... /bin/grep -F > > checking for ld used by gcc... /usr/bin/ld > > checking if the linker (/usr/bin/ld) is GNU ld... yes > > checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B > > checking the name lister (/usr/bin/nm -B) interface... BSD nm > > checking whether ln -s works... yes > > checking the maximum length of command line arguments... > > 3458764513820540925 > > checking whether the shell understands some XSI constructs... yes > > checking whether the shell understands "+="... yes > > checking how to convert x86_64-unknown-linux-gnu file names to > > x86_64-unknown-linux-gnu format... func_convert_file_noop > > checking how to convert x86_64-unknown-linux-gnu file names to toolchain > > format... func_convert_file_noop > > checking for /usr/bin/ld option to reload object files... -r > > checking for objdump... objdump > > checking how to recognize dependent libraries... pass_all > > checking for dlltool... no > > checking how to associate runtime and link libraries... printf %s\n > > checking for archiver @FILE support... @ > > checking for strip... strip > > checking for ranlib... ranlib > > checking command to parse /usr/bin/nm -B output from gcc object... ok > > checking for sysroot... no > > checking for mt... mt > > checking if mt is a manifest tool... no > > checking how to run the C preprocessor... gcc -E > > checking for ANSI C header files... yes > > checking for sys/types.h... yes > > checking for sys/stat.h... yes > > checking for stdlib.h... yes > > checking for string.h... yes > > checking for memory.h... yes > > checking for strings.h... yes > > checking for inttypes.h... yes > > checking for stdint.h... yes > > checking for unistd.h... yes > > checking for dlfcn.h... yes > > checking for objdir... .libs > > checking if gcc supports -fno-rtti -fno-exceptions... no > > checking for gcc option to produce PIC... -fPIC -DPIC > > checking if gcc PIC flag -fPIC -DPIC works... yes > > checking if gcc static flag -static works... yes > > checking if gcc supports -c -o file.o... yes > > checking if gcc supports -c -o file.o... (cached) yes > > checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports > > shared libraries... yes > > checking whether -lc should be explicitly linked in... no > > checking dynamic linker characteristics... GNU/Linux ld.so > > checking how to hardcode library paths into programs... immediate > > checking whether stripping libraries is possible... yes > > checking if libtool supports shared libraries... yes > > checking whether to build shared libraries... yes > > checking whether to build static libraries... yes > > checking how to run the C++ preprocessor... g++ -E > > checking for ld used by g++... /usr/bin/ld -m elf_x86_64 > > checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes > > checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports > > shared libraries... yes > > checking for g++ option to produce PIC... -fPIC -DPIC > > checking if g++ PIC flag -fPIC -DPIC works... yes > > checking if g++ static flag -static works... yes > > checking if g++ supports -c -o file.o... yes > > checking if g++ supports -c -o file.o... (cached) yes > > checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports > > shared libraries... yes > > checking dynamic linker characteristics... (cached) GNU/Linux ld.so > > checking how to hardcode library paths into programs... immediate > > configure: creating ./config.lt > > config.lt: creating libtool > > configure: Setting up build environment for x86_64 linux-gnu > > checking whether we are using the GNU C++ compiler... (cached) yes > > checking whether g++ accepts -g... (cached) yes > > checking dependency style of g++... (cached) gcc3 > > checking whether we are using the GNU C compiler... (cached) yes > > checking whether gcc accepts -g... (cached) yes > > checking for gcc option to accept ISO C89... (cached) none needed > > checking dependency style of gcc... (cached) gcc3 > > checking if compiling with clang... no > > configure: GCC version: 4.6 > > checking for the pthreads library -lpthreads... no > > checking whether pthreads work without any flags... no > > checking whether pthreads work with -Kthread... no > > checking whether pthreads work with -kthread... no > > checking for the pthreads library -llthread... no > > checking whether pthreads work with -pthread... yes > > checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE > > checking if more special flags are required for pthreads... no > > checking whether to check for GCC pthread/shared inconsistencies... yes > > checking whether -pthread is sufficient with -shared... yes > > checking for backtrace in -lunwind... no > > checking whether or not we can build with JNI... /usr/bin/ld: skipping > > incompatible > > /home/hudson/tools/java/latest1.6/jre/lib/i386/server/libjvm.so when > > searching for -ljvm > > /usr/bin/ld: cannot find -ljvm > > collect2: ld returned 1 exit status > > configure: error: failed to build with JNI > > make: *** [distcheck] Error 1 > > Build step 'Execute shell' marked build as failure > >
