src/tests/Makefile.in hardcodes architecture as "arch64". Should instead be var
set by configure
------------------------------------------------------------------------------------------------
Key: MESOS-76
URL: https://issues.apache.org/jira/browse/MESOS-76
Project: Mesos
Issue Type: Bug
Components: build
Reporter: Andy Konwinski
Assignee: Andy Konwinski
Priority: Critical
I'm trying to get a continuous build working for mesos at builds.apache.org
(see https://builds.apache.org/job/Mesos-Trunk-Ubuntu/) and it seems as though
the Ubuntu machines being used don't have a 64bit jvm library on them, so the
following lines of src/tests/Makefile.in:
else # TODO(John Sirois): parameterize via configure templates
LDFLAGS += -L$(JAVA_HOME)/jre/lib/amd64/server -ljvm
endif
cause the build to fail with the following error:
...
mkdir -p ../../bin/tests
g++ -O2 -fno-strict-aliasing -fPIC -g -I../../../src/tests/.. -I..
-I../../../include -I../../include -I../../../third_party/boost-1.37.0
-I../../../third_party/protobuf-2.3.0/src
-I../../../third_party/libprocess/include -I../../../third_party/glog-0.3.1/src
-I../../third_party/glog-0.3.1/src -I../../../third_party/leveldb/include
-I../../../third_party/gmock-1.6.0/include
-I../../../third_party/gmock-1.6.0/gtest/include
-I../../../third_party/zookeeper-3.3.1/src/c/include
-I../../../third_party/zookeeper-3.3.1/src/c/generated -MMD -MP -o
../../bin/tests/all-tests main.o utils.o master_tests.o resource_offers_tests.o
fault_tolerance_tests.o log_tests.o resources_tests.o uuid_tests.o
external_tests.o sample_frameworks_tests.o configurator_tests.o strings_tests.o
multihashmap_tests.o protobuf_io_tests.o lxc_isolation_tests.o utils_tests.o
jvm.o zookeeper_server.o base_zookeeper_test.o zookeeper_server_tests.o
zookeeper_tests.o url_processor_tests.o killtree_tests.o exception_tests.o
gmock.a ../../lib/libmesos_sched.a ../../lib/libmesos_exec.a
-L/home/jenkins/tools/java/latest/jre/lib/amd64/server -ljvm
-L../../third_party/protobuf-2.3.0/src/.libs -L../../third_party/libprocess
-L../../third_party/libprocess/third_party/libev-3.8/.libs
-L../../third_party/glog-0.3.1/.libs -L../../third_party/leveldb
-L../../third_party/zookeeper-3.3.1/src/c/.libs -lprotobuf -lglog -lleveldb
-lprocess -lev -lpthread -ldl -lzookeeper_mt
/usr/bin/ld: cannot find -ljvm
collect2: ld returned 1 exit status
make[2]: *** [../../bin/tests/all-tests] Error 1
make[2]: Leaving directory
`/home/jenkins/jenkins-slave/workspace/Mesos-Trunk-Ubuntu/build/src/tests'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/home/jenkins/jenkins-slave/workspace/Mesos-Trunk-Ubuntu/build/src'
make: *** [src] Error 2
Build step 'Execute shell' marked build as failure
Sending e-mails to: [email protected]
Finished: FAILURE
(see https://builds.apache.org/job/Mesos-Trunk-Ubuntu/16/consoleFull for full
output)
That TODO should be addressed In Makefile.in, specifically "amd64" should be
replaced with $(OS_ARCH) which should be set by configure.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira