jdk9 build failure in ubuntu16.10
David Holmes
david.holmes at oracle.com
Tue Dec 6 07:52:01 UTC 2016
Hi Prasanta,
On 6/12/2016 5:42 PM, Prasanta Sadhukhan wrote:
> Hi,
>
>
> On 12/6/2016 1:03 PM, David Holmes wrote:
>> On 6/12/2016 4:55 PM, Prasanta Sadhukhan wrote:
>>> Hi,
>>>
>>> I was trying to build jdk9 workspace checked out today on ubuntu16.10
>>> but am encountering a build problem. I did "configure --enable-debug
>>> --disable-warnings-as-errors" followed by "make"
>>> Would like to know if it is a known issue?
>>
>> Not sure it is known, but you're using gcc 6 which is a bit ahead of
>> the official compilers.
>>
> Hmm. I guess that is what comes as default compiler version in
> ubuntu16.10. I guess 16.10 is supported platform for jdk9. How are we
> supposed to build in 16.10 then? Install earlier version of gcc?
If this is Oracle internal then you can use jib to install the required
toolchains locally (common/bin/jib.sh). Otherwise, yes you need to
install the official compiler versions.
https://wiki.openjdk.java.net/display/Build/Supported+Build+Platforms
Cheers,
David
> Regards
> Prasanta
>> David
>>
>>> Excerpts of build failure is: (Attached is the configure log and full
>>> build log)
>>>
>>> ERROR: Build failed for target 'default (exploded-image)' in
>>> configuration 'linux-x86_64-normal-server-fastdebug' (exit code 2)
>>> === Output from failing command(s) repeated here ===
>>> * For target hotspot_variant-server_libjvm_gtest_objs_logTestFixture.o:
>>> In file included from
>>> /export/jdk9/client/test/fmw/gtest/include/gtest/gtest.h:54:0,
>>> from
>>> /export/jdk9/client/hotspot/test/native/unittest.hpp:31,
>>> from
>>> /export/jdk9/client/hotspot/test/native/logging/logTestFixture.hpp:24,
>>> from
>>> /export/jdk9/client/hotspot/test/native/logging/logTestFixture.cpp:25:
>>> /usr/include/c++/6/limits:320:11: error: macro "min" requires 2
>>> arguments, but only 1 given
>>> min() _GLIBCXX_USE_NOEXCEPT { return _Tp(); }
>>> ^
>>> /usr/include/c++/6/limits:324:11: error: macro "max" requires 2
>>> arguments, but only 1 given
>>> max() _GLIBCXX_USE_NOEXCEPT { return _Tp(); }
>>> ^
>>> /usr/include/c++/6/limits:387:11: error: macro "min" requires 2
>>> arguments, but only 1 given
>>> min() _GLIBCXX_USE_NOEXCEPT { return false; }
>>> ... (rest of output omitted)
>>> === End of repeated output ===
>>> === Make failure sequence repeated here ===
>>> lib/CompileGtest.gmk:57: recipe for target
>>> '/export/jdk9/client/build/linux-x86_64-normal-server-fastdebug/hotspot/variant-server/libjvm/gtest/objs/logTestFixture.o'
>>>
>>> failed
>>> BuildHotspot.gmk:41: recipe for target 'variant-server-libs' failed
>>>
>>> Regards
>>> Prasanta
>
More information about the build-dev
mailing list