Thank you for the responses.
I replaced OpenJDK with Oracle JDK and was able to build successfully.
During make check, I received the following error:
F0924 18:12:05.325278 13960 isolator_tests.cpp:136]
CHECK_SOME(isolator): Failed to create isolator: Failed to mount
cgroups hierarchy at '/sys/fs/cgroup/cpu': Failed to create directory
'/sys/fs/cgroup/cpu': No such file or directory
*** Check failure stack trace: ***
@ 0x7f41ff742b4d google::LogMessage::Fail()
@ 0x7f41ff74488c google::LogMessage::SendToLog()
@ 0x7f41ff74273c google::LogMessage::Flush()
@ 0x7f41ff745189 google::LogMessageFatal::~LogMessageFatal()
@ 0x5c1e68 _CheckFatal::~_CheckFatal()
@ 0x6b6a8d CpuIsolatorTest_UserCpuUsage_Test<>::TestBody()
@ 0x975b43
testing::internal::HandleExceptionsInMethodIfSupported<>()
@ 0x96cdf7 testing::Test::Run()
@ 0x96ce9e testing::TestInfo::Run()
@ 0x96cfa5 testing::TestCase::Run()
@ 0x96d248 testing::internal::UnitTestImpl::RunAllTests()
@ 0x96d4d7 testing::UnitTest::Run()
@ 0x4908be main
@ 0x7f41fd5497d5 __libc_start_main
@ 0x49edb9 (unknown)
make[3]: *** [check-local] Aborted
make[3]: Leaving directory `/root/mesos-0.20.0/build/src'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/root/mesos-0.20.0/build/src'
make[1]: *** [check] Error 2
make[1]: Leaving directory `/root/mesos-0.20.0/build/src'
make: *** [check-recursive] Error 1
Any guidance on this issue?
On Wed, Sep 24, 2014 at 12:09 PM, CCAAT <[email protected]> wrote:
> On 09/24/14 10:47, Jing Dong wrote:
>>
>> From my experience, I had issues with OpenJDK. You should try to build
>> with Oracle JDK.
>
>
> I used "icedtea for openjdk and it built ok on gentoo. [1]
>
> [1] http://openjdk.java.net/projects/icedtea/
>
>
>
>
>> configure: error: failed to determine linker flags for using Java (bad
>> JAVA_HOME or missing support for your architecture?)
>>
>> $JAVA_HOME is set
>>
>> Java version
>> java version "1.7.0_65"
>> OpenJDK Runtime Environment (amzn-2.5.1.2.45.amzn1-x86_64 u65-b17)
>> OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)
>
>
> hth,
> James