You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by Arpan Ghosh <ar...@gmail.com> on 2011/12/09 21:54:01 UTC

jni error while making mesos master branch

Hi all,

We are trying to get mesos working with spark.
We configured mesos master branch with no options and while trying to make
it, we get the following error. Any ideas would help. Thanks

Joseph, Arpan and Rajesh

./configure
make
.
.
.
.
g++ -O2 -fno-strict-aliasing -fPIC  -g -I. -I. -I../include -I../include
-I../third_party/boost-1.37.0 -I../third_party/protobuf-2.3.0/src
-I../third_party/glog-0.3.1/src -I../third_party/glog-0.3.1/src
-I../third_party/leveldb/include -I../third_party/libprocess/include -MMD
-MP -o ../bin/mesos-getconf configurator/get_conf.cpp common/fatal.o
common/lock.o detector/detector.o detector/url_processor.o
configurator/configurator.o common/logging.o common/date_utils.o
common/resources.o common/utils.o mesos.pb.o messages/messages.pb.o
messages/log.pb.o  -L../third_party/protobuf-2.3.0/src/.libs
-L../third_party/glog-0.3.1/.libs -L../third_party/leveldb
-L../third_party/libprocess
-L../third_party/libprocess/third_party/libev-3.8/.libs  -lprotobuf -lglog
-lleveldb -lprocess -lev -lpthread -ldl
g++ -O2 -fno-strict-aliasing -fPIC  -g -I. -I. -I../include -I../include
-I../third_party/boost-1.37.0 -I../third_party/protobuf-2.3.0/src
-I../third_party/glog-0.3.1/src -I../third_party/glog-0.3.1/src
-I../third_party/leveldb/include -I../third_party/libprocess/include -MMD
-MP -o ../bin/mesos mesos/main.cpp common/fatal.o common/lock.o
detector/detector.o detector/url_processor.o configurator/configurator.o
common/logging.o common/date_utils.o common/resources.o common/utils.o
mesos.pb.o messages/messages.pb.o messages/log.pb.o
-L../third_party/protobuf-2.3.0/src/.libs -L../third_party/glog-0.3.1/.libs
-L../third_party/leveldb -L../third_party/libprocess
-L../third_party/libprocess/third_party/libev-3.8/.libs  -lprotobuf -lglog
-lleveldb -lprocess -lev -lpthread -ldl
g++ -c -O2 -fno-strict-aliasing -fPIC  -g -I. -I. -I../include -I../include
-I../third_party/boost-1.37.0 -I../third_party/protobuf-2.3.0/src
-I../third_party/glog-0.3.1/src -I../third_party/glog-0.3.1/src
-I../third_party/leveldb/include -I../third_party/libprocess/include -MMD
-MP -Ijava/jni -I/include -I/include/linux -I -o java/jni/convert.o
java/jni/convert.cpp
g++: java/jni/convert.o: No such file or directory
make[1]: *** [java/jni/convert.o] Error 1
make[1]: Leaving directory `/home/princeton_ram/mesos/src'
make: *** [src] Error 2

Re: jni error while making mesos master branch

Posted by Charles Reiss <ch...@eecs.berkeley.edu>.
On 12/9/11 12:54 PM, Arpan Ghosh wrote:
> Hi all,
> 
> We are trying to get mesos working with spark.
> We configured mesos master branch with no options and while trying to make
> it, we get the following error.

Configuring with no options is known not to work currently. (This should
be fixed when MESOS-58 is.) We suggest using or modifying one of the
configure.template scripts instead.

It looks like src/Makefile.in can't actually build without Java (at
least because 'all' unconditionally depends on 'java', which
unconditionally depends upon $(MESOS_JAVA_LIB_OBJ), which aren't likely
to build without some JNI headers), which is a bug. (The patch for
MESOS-58 should fix this bug, but it also does a whole bunch of other
things.)

- Charles