jdk9 build failure in ubuntu16.10
Magnus Ihse Bursie
magnus.ihse.bursie at oracle.com
Tue Dec 6 10:21:26 UTC 2016
On 2016-12-06 09:20, Prasanta Sadhukhan wrote:
>
>
> On 12/6/2016 1:22 PM, David Holmes wrote:
>> 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.
>>
> Thanks David for the info. It seems jib.sh configure creates a release
> profile. How can I create a "fastdebug" level?
bash common/bin/jib.sh configure -- --enable-debug
/Magnus
> Configuration summary:
> * Debug level: release
> * HS debug level: product
> * JDK variant: normal
> * JVM variants: server
>
> Regards
> Prasanta
>> 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