lingfeng created MESOS-8661:
-------------------------------

             Summary: JAVA_HOME is not defined correctly.
                 Key: MESOS-8661
                 URL: https://issues.apache.org/jira/browse/MESOS-8661
             Project: Mesos
          Issue Type: Bug
          Components: cmake
    Affects Versions: 1.3.2
            Reporter: lingfeng
             Fix For: 1.3.2


maker@Maker:/mnt/mesos/mesos-1.3.2/build$ sudo ../configure 
JAVA_HOME=/usr/lib/java/jdk1.8.0_161
checking build system type... armv7l-unknown-linux-gnueabihf
checking host system type... armv7l-unknown-linux-gnueabihf
checking target system type... armv7l-unknown-linux-gnueabihf
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 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 whether ln -s works... yes
checking for C++ compiler vendor... gnu
checking for a sed that does not truncate output... /bin/sed
checking for C++ compiler version... 5.4.0
checking for C++ compiler vendor... (cached) 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... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking whether make supports nested variables... yes
checking dependency style of gcc... gcc3
checking dependency style of g++... gcc3
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for ar... ar
checking the archiver (ar) interface... ar
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /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 the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert armv7l-unknown-linux-gnueabihf file names to 
armv7l-unknown-linux-gnueabihf format... func_convert_file_noop
checking how to convert armv7l-unknown-linux-gnueabihf 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) 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... no
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) 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) 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 CXXFLAGS for g++ version >= 4.8
checking whether C++ compiler accepts -fstack-protector-strong... yes
checking whether g++ supports C++11 features by default... no
checking whether g++ supports C++11 features with -std=c++11... yes
checking if compiler needs -Werror to reject unknown flags... no
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 for PTHREAD_PRIO_INHERIT... yes
configure: Setting up build environment for armv7l linux-gnueabihf
checking for backtrace in -lunwind... no
checking for main in -lgflags... no
checking for gzread in -lz... yes
checking for patch... patch
checking fts.h usability... yes
checking fts.h presence... yes
checking for fts.h... yes
checking for library containing fts_close... none required
checking apr_pools.h usability... yes
checking apr_pools.h presence... yes
checking for apr_pools.h... yes
checking for apr_initialize in -lapr-1... yes
checking for curl_global_init in -lcurl... yes
checking whether or not we can build with JNI... yes
checking for mvn... /usr/bin/mvn
checking for sasl_done in -lsasl2... yes
checking SASL CRAM-MD5 support... yes
checking svn_version.h usability... yes
checking svn_version.h presence... yes
checking for svn_version.h... yes
checking for svn_stringbuf_create_ensure in -lsvn_subr-1... yes
checking svn_delta.h usability... yes
checking svn_delta.h presence... yes
checking for svn_delta.h... yes
checking for svn_txdelta in -lsvn_delta-1... yes
checking whether to enable the XFS disk isolator... no
checking for deflate, gzread, gzwrite, inflate in -lz... yes
checking C++ standard library for undefined behaviour with selected 
optimization level... no
checking for a Python interpreter with version >= 2.6... python
checking for python... /usr/bin/python
checking for python version... 2.7
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.7/site-packages
checking for python extension module directory... 
${exec_prefix}/lib/python2.7/site-packages
checking for python2.7... (cached) /usr/bin/python
checking for a version of Python >= '2.1.0'... yes
checking for a version of Python >= '2.6'... yes
checking for the distutils Python package... yes
checking for Python include path... -I/usr/include/python2.7
checking for Python library path... -L/usr/lib -lpython2.7
checking for Python site-packages path... /usr/lib/python2.7/dist-packages
checking python extra libraries... -lpthread -ldl  -lutil -lm
checking python extra linking flags... -Xlinker -export-dynamic -Wl,-O1 
-Wl,-Bsymbolic-functions
checking consistency of all components of python development environment... yes
checking whether we can build usable Python eggs... cc1plus: warning: command 
line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
yes
checking for an old installation of the Mesos egg (before 0.20.0)... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mesos.pc
config.status: creating src/Makefile
config.status: creating 3rdparty/Makefile
config.status: creating 3rdparty/libprocess/Makefile
config.status: creating 3rdparty/libprocess/include/Makefile
config.status: creating 3rdparty/stout/Makefile
config.status: creating 3rdparty/stout/include/Makefile
config.status: creating 3rdparty/gmock_sources.cc
config.status: creating bin/mesos.sh
config.status: creating bin/mesos-agent.sh
config.status: creating bin/mesos-local.sh
config.status: creating bin/mesos-master.sh
config.status: creating bin/mesos-slave.sh
config.status: creating bin/mesos-tests.sh
config.status: creating bin/mesos-agent-flags.sh
config.status: creating bin/mesos-local-flags.sh
config.status: creating bin/mesos-master-flags.sh
config.status: creating bin/mesos-slave-flags.sh
config.status: creating bin/mesos-tests-flags.sh
config.status: creating bin/gdb-mesos-agent.sh
config.status: creating bin/gdb-mesos-local.sh
config.status: creating bin/gdb-mesos-master.sh
config.status: creating bin/gdb-mesos-slave.sh
config.status: creating bin/gdb-mesos-tests.sh
config.status: creating bin/lldb-mesos-agent.sh
config.status: creating bin/lldb-mesos-local.sh
config.status: creating bin/lldb-mesos-master.sh
config.status: creating bin/lldb-mesos-slave.sh
config.status: creating bin/lldb-mesos-tests.sh
config.status: creating bin/valgrind-mesos-agent.sh
config.status: creating bin/valgrind-mesos-local.sh
config.status: creating bin/valgrind-mesos-master.sh
config.status: creating bin/valgrind-mesos-slave.sh
config.status: creating bin/valgrind-mesos-tests.sh
config.status: creating src/deploy/mesos-daemon.sh
config.status: creating src/deploy/mesos-start-agents.sh
config.status: creating src/deploy/mesos-start-cluster.sh
config.status: creating src/deploy/mesos-start-masters.sh
config.status: creating src/deploy/mesos-start-slaves.sh
config.status: creating src/deploy/mesos-stop-agents.sh
config.status: creating src/deploy/mesos-stop-cluster.sh
config.status: creating src/deploy/mesos-stop-masters.sh
config.status: creating src/deploy/mesos-stop-slaves.sh
config.status: creating include/mesos/version.hpp
config.status: creating 
src/java/generated/org/apache/mesos/MesosNativeLibrary.java
config.status: creating mpi/mpiexec-mesos
config.status: creating src/examples/java/test-exception-framework
config.status: creating src/examples/java/test-executor
config.status: creating src/examples/java/test-framework
config.status: creating src/examples/java/test-multiple-executors-framework
config.status: creating src/examples/java/test-log
config.status: creating src/examples/java/v1-test-framework
config.status: creating src/java/mesos.pom
config.status: creating src/examples/python/test-executor
config.status: creating src/examples/python/test-framework
config.status: creating src/python/setup.py
config.status: creating src/python/cli/setup.py
config.status: creating src/python/interface/setup.py
config.status: creating src/python/native_common/ext_modules.py
config.status: creating src/python/executor/setup.py
config.status: creating src/python/native/setup.py
config.status: creating src/python/scheduler/setup.py
config.status: linking src/python/native_common/ext_modules.py to 
src/python/executor/ext_modules.py
config.status: linking src/python/native_common/ext_modules.py to 
src/python/scheduler/ext_modules.py
config.status: executing depfiles commands
config.status: executing libtool commands
configure: Build option summary:
    CXX:        g++
    CXXFLAGS:   -g1 -O0 -Wno-unused-local-typedefs -std=c++11
    CPPFLAGS:   -isystem /usr/include/subversion-1 -isystem /usr/include/apr-1 
-isystem /usr/include/apr-1.0          
    LDFLAGS:    
    LIBS:       -lz -lsvn_delta-1 -lsvn_subr-1 -lsasl2 -lcurl -lapr-1 -lz  -lrt

 

maker@Maker:/mnt/mesos/mesos-1.3.2/build$ sudo make       
Making all in .
make[1]: Entering directory '/mnt/mesos/mesos-1.3.2/build'
make[1]: Nothing to be done for 'all-am'.
make[1]: Leaving directory '/mnt/mesos/mesos-1.3.2/build'
Making all in 3rdparty
make[1]: Entering directory '/mnt/mesos/mesos-1.3.2/build/3rdparty'
make[1]: Warning: File '.deps/libry_http_parser_la-http_parser.Plo' has 
modification time 14509 s in the future
cd .. && /bin/bash ./config.status 3rdparty/gmock_sources.cc
config.status: creating 3rdparty/gmock_sources.cc
make  all-recursive
make[2]: Entering directory '/mnt/mesos/mesos-1.3.2/build/3rdparty'
make[2]: Warning: File '.deps/libry_http_parser_la-http_parser.Plo' has 
modification time 14507 s in the future
Making all in .
make[3]: Entering directory '/mnt/mesos/mesos-1.3.2/build/3rdparty'
make[3]: Warning: File '.deps/libry_http_parser_la-http_parser.Plo' has 
modification time 14507 s in the future
cd .. && /bin/bash ./config.status 3rdparty/gmock_sources.cc
config.status: creating 3rdparty/gmock_sources.cc
make[3]: warning:  Clock skew detected.  Your build may be incomplete.
make[3]: Leaving directory '/mnt/mesos/mesos-1.3.2/build/3rdparty'
Making all in stout
make[3]: Entering directory '/mnt/mesos/mesos-1.3.2/build/3rdparty/stout'
make[3]: Warning: File '.deps/stout_tests-version_tests.Po' has modification 
time 14467 s in the future
make  all-recursive
make[4]: Entering directory '/mnt/mesos/mesos-1.3.2/build/3rdparty/stout'
make[4]: Warning: File '.deps/stout_tests-version_tests.Po' has modification 
time 14467 s in the future
Making all in .
make[5]: Entering directory '/mnt/mesos/mesos-1.3.2/build/3rdparty/stout'
make[5]: Warning: File '.deps/stout_tests-version_tests.Po' has modification 
time 14467 s in the future
make[5]: Nothing to be done for 'all-am'.
make[5]: warning:  Clock skew detected.  Your build may be incomplete.
make[5]: Leaving directory '/mnt/mesos/mesos-1.3.2/build/3rdparty/stout'
Making all in include
make[5]: Entering directory 
'/mnt/mesos/mesos-1.3.2/build/3rdparty/stout/include'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/mnt/mesos/mesos-1.3.2/build/3rdparty/stout/include'
make[4]: warning:  Clock skew detected.  Your build may be incomplete.
make[4]: Leaving directory '/mnt/mesos/mesos-1.3.2/build/3rdparty/stout'
make[3]: warning:  Clock skew detected.  Your build may be incomplete.
make[3]: Leaving directory '/mnt/mesos/mesos-1.3.2/build/3rdparty/stout'
Making all in libprocess
make[3]: Entering directory '/mnt/mesos/mesos-1.3.2/build/3rdparty/libprocess'
make[3]: Warning: File '.deps/test_linkee-test_linkee.Po' has modification time 
14465 s in the future
make  all-recursive
make[4]: Entering directory '/mnt/mesos/mesos-1.3.2/build/3rdparty/libprocess'
make[4]: Warning: File '.deps/test_linkee-test_linkee.Po' has modification time 
14465 s in the future
Making all in .
make[5]: Entering directory '/mnt/mesos/mesos-1.3.2/build/3rdparty/libprocess'
make[5]: Warning: File '.deps/test_linkee-test_linkee.Po' has modification time 
14464 s in the future
make[5]: Nothing to be done for 'all-am'.
make[5]: warning:  Clock skew detected.  Your build may be incomplete.
make[5]: Leaving directory '/mnt/mesos/mesos-1.3.2/build/3rdparty/libprocess'
Making all in include
make[5]: Entering directory 
'/mnt/mesos/mesos-1.3.2/build/3rdparty/libprocess/include'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory 
'/mnt/mesos/mesos-1.3.2/build/3rdparty/libprocess/include'
make[4]: warning:  Clock skew detected.  Your build may be incomplete.
make[4]: Leaving directory '/mnt/mesos/mesos-1.3.2/build/3rdparty/libprocess'
make[3]: warning:  Clock skew detected.  Your build may be incomplete.
make[3]: Leaving directory '/mnt/mesos/mesos-1.3.2/build/3rdparty/libprocess'
make[2]: warning:  Clock skew detected.  Your build may be incomplete.
make[2]: Leaving directory '/mnt/mesos/mesos-1.3.2/build/3rdparty'
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
make[1]: Leaving directory '/mnt/mesos/mesos-1.3.2/build/3rdparty'
Making all in src
make[1]: Entering directory '/mnt/mesos/mesos-1.3.2/build/src'
make[1]: Warning: File 'zookeeper/.deps/libmesos_no_3rdparty_la-zookeeper.Plo' 
has modification time 14463 s in the future
Building mesos-1.3.2.jar ...
Error: JAVA_HOME is not defined correctly.
  We cannot execute 
Makefile:13227: recipe for target 'java/target/mesos-1.3.2.jar' failed
make[1]: *** [java/target/mesos-1.3.2.jar] Error 1
make[1]: Leaving directory '/mnt/mesos/mesos-1.3.2/build/src'
Makefile:753: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to