jdk9 build failure in ubuntu16.10
David Holmes
david.holmes at oracle.com
Tue Dec 6 07:38:17 UTC 2016
Not this issue, but another problem trying to use gcc 6:
https://bugs.openjdk.java.net/browse/JDK-8160310
David
On 6/12/2016 5:33 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.
>
> 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