-
Bug
-
Resolution: Fixed
-
P4
-
16
-
b28
-
linux_ubuntu
I see a build error on non-pch builds on all of my Ubuntu 16.4 boxes.
gcc version: 5.4
configure line: -with-debug-level=fastdebug --disable-precompiled-headers --with-boot-jdk=/shared/projects/openjdk/jdks/sapmachine14 --with-gtest=/shared/projects/openjdk/gtest/latest/
gtest is at 1.8.1
---------------
In file included from /shared/projects/openjdk/jdk-jdk/source/src/hotspot/share/utilities/globalDefinitions.hpp:35:0,
from /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/logging/logTestFixture.hpp:25,
from /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/logging/logTestFixture.cpp:26:
/shared/projects/openjdk/jdk-jdk/source/src/hotspot/share/utilities/globalDefinitions_gcc.hpp: In function 'int g_isnan(float)':
/shared/projects/openjdk/jdk-jdk/source/src/hotspot/share/utilities/globalDefinitions_gcc.hpp:115:46: error: 'isnan' was not declared in this scope
inline int g_isnan(float f) { return isnan(f); }
^
/shared/projects/openjdk/jdk-jdk/source/src/hotspot/share/utilities/globalDefinitions_gcc.hpp:115:46: note: suggested alternative:
In file included from /usr/include/c++/5/random:38:0,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from /shared/projects/openjdk/gtest/latest/googlemock/include/gmock/gmock-actions.h:44,
from /shared/projects/openjdk/gtest/latest/googlemock/include/gmock/gmock.h:59,
from /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/unittest.hpp:51,
from /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/logging/logTestFixture.hpp:24,
from /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/logging/logTestFixture.cpp:26:
/usr/include/c++/5/cmath:641:5: note: 'std::isnan'
isnan(_Tp __x)
^
In file included from /shared/projects/openjdk/jdk-jdk/source/src/hotspot/share/utilities/globalDefinitions.hpp:35:0,
from /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/logging/logTestFixture.hpp:25,
from /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/logging/logTestFixture.cpp:26:
/shared/projects/openjdk/jdk-jdk/source/src/hotspot/share/utilities/globalDefinitions_gcc.hpp: In function 'int g_isnan(double)':
/shared/projects/openjdk/jdk-jdk/source/src/hotspot/share/utilities/globalDefinitions_gcc.hpp:116:46: error: 'isnan' was not declared in this scope
inline int g_isnan(double f) { return isnan(f); }
^
/shared/projects/openjdk/jdk-jdk/source/src/hotspot/share/utilities/globalDefinitions_gcc.hpp:116:46: note: suggested alternative:
In file included from /usr/include/c++/5/random:38:0,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from /shared/projects/openjdk/gtest/latest/googlemock/include/gmock/gmock-actions.h:44,
from /shared/projects/openjdk/gtest/latest/googlemock/include/gmock/gmock.h:59,
from /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/unittest.hpp:51,
from /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/logging/logTestFixture.hpp:24,
from /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/logging/logTestFixture.cpp:26:
/usr/include/c++/5/cmath:641:5: note: 'std::isnan'
isnan(_Tp __x)
^
In file included from /shared/projects/openjdk/jdk-jdk/source/src/hotspot/share/utilities/globalDefinitions.hpp:35:0,
from /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/logging/logTestFixture.hpp:25,
from /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/logging/logTestFixture.cpp:26:
/shared/projects/openjdk/jdk-jdk/source/src/hotspot/share/utilities/globalDefinitions_gcc.hpp: In function 'int g_isfinite(jfloat)':
/shared/projects/openjdk/jdk-jdk/source/src/hotspot/share/utilities/globalDefinitions_gcc.hpp:126:69: error: 'isfinite' was not declared in this scope
inline int g_isfinite(jfloat f) { return isfinite(f); }
^
/shared/projects/openjdk/jdk-jdk/source/src/hotspot/share/utilities/globalDefinitions_gcc.hpp:126:69: note: suggested alternative:
In file included from /usr/include/c++/5/random:38:0,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from /shared/projects/openjdk/gtest/latest/googlemock/include/gmock/gmock-actions.h:44,
from /shared/projects/openjdk/gtest/latest/googlemock/include/gmock/gmock.h:59,
from /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/unittest.hpp:51,
from /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/logging/logTestFixture.hpp:24,
from /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/logging/logTestFixture.cpp:26:
/usr/include/c++/5/cmath:601:5: note: 'std::isfinite'
isfinite(_Tp __x)
^
In file included from /shared/projects/openjdk/jdk-jdk/source/src/hotspot/share/utilities/globalDefinitions.hpp:35:0,
from /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/logging/logTestFixture.hpp:25,
from /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/logging/logTestFixture.cpp:26:
/shared/projects/openjdk/jdk-jdk/source/src/hotspot/share/utilities/globalDefinitions_gcc.hpp: In function 'int g_isfinite(jdouble)':
/shared/projects/openjdk/jdk-jdk/source/src/hotspot/share/utilities/globalDefinitions_gcc.hpp:127:69: error: 'isfinite' was not declared in this scope
inline int g_isfinite(jdouble f) { return isfinite(f); }
^
/shared/projects/openjdk/jdk-jdk/source/src/hotspot/share/utilities/globalDefinitions_gcc.hpp:127:69: note: suggested alternative:
In file included from /usr/include/c++/5/random:38:0,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from /shared/projects/openjdk/gtest/latest/googlemock/include/gmock/gmock-actions.h:44,
from /shared/projects/openjdk/gtest/latest/googlemock/include/gmock/gmock.h:59,
from /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/unittest.hpp:51,
from /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/logging/logTestFixture.hpp:24,
from /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/logging/logTestFixture.cpp:26:
/usr/include/c++/5/cmath:601:5: note: 'std::isfinite'
isfinite(_Tp __x)
^
At global scope:
cc1plus: error: unrecognized command line option '-Wno-shift-negative-value' [-Werror]
cc1plus: error: unrecognized command line option '-Wno-cast-function-type' [-Werror]
cc1plus: error: unrecognized command line option '-Wno-misleading-indentation' [-Werror]
cc1plus: error: unrecognized command line option '-Wno-implicit-fallthrough' [-Werror]
cc1plus: error: unrecognized command line option '-Wno-int-in-bool-context' [-Werror]
cc1plus: all warnings being treated as errors
lib/CompileGtest.gmk:86: recipe for target '/shared/projects/openjdk/jdk-jdk/output-fastdebug-nopch/hotspot/variant-server/libjvm/gtest/objs/logTestFixture.o' failed
make[3]: *** [/shared/projects/openjdk/jdk-jdk/output-fastdebug-nopch/hotspot/variant-server/libjvm/gtest/objs/logTestFixture.o] Error 1
gcc version: 5.4
configure line: -with-debug-level=fastdebug --disable-precompiled-headers --with-boot-jdk=/shared/projects/openjdk/jdks/sapmachine14 --with-gtest=/shared/projects/openjdk/gtest/latest/
gtest is at 1.8.1
---------------
In file included from /shared/projects/openjdk/jdk-jdk/source/src/hotspot/share/utilities/globalDefinitions.hpp:35:0,
from /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/logging/logTestFixture.hpp:25,
from /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/logging/logTestFixture.cpp:26:
/shared/projects/openjdk/jdk-jdk/source/src/hotspot/share/utilities/globalDefinitions_gcc.hpp: In function 'int g_isnan(float)':
/shared/projects/openjdk/jdk-jdk/source/src/hotspot/share/utilities/globalDefinitions_gcc.hpp:115:46: error: 'isnan' was not declared in this scope
inline int g_isnan(float f) { return isnan(f); }
^
/shared/projects/openjdk/jdk-jdk/source/src/hotspot/share/utilities/globalDefinitions_gcc.hpp:115:46: note: suggested alternative:
In file included from /usr/include/c++/5/random:38:0,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from /shared/projects/openjdk/gtest/latest/googlemock/include/gmock/gmock-actions.h:44,
from /shared/projects/openjdk/gtest/latest/googlemock/include/gmock/gmock.h:59,
from /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/unittest.hpp:51,
from /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/logging/logTestFixture.hpp:24,
from /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/logging/logTestFixture.cpp:26:
/usr/include/c++/5/cmath:641:5: note: 'std::isnan'
isnan(_Tp __x)
^
In file included from /shared/projects/openjdk/jdk-jdk/source/src/hotspot/share/utilities/globalDefinitions.hpp:35:0,
from /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/logging/logTestFixture.hpp:25,
from /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/logging/logTestFixture.cpp:26:
/shared/projects/openjdk/jdk-jdk/source/src/hotspot/share/utilities/globalDefinitions_gcc.hpp: In function 'int g_isnan(double)':
/shared/projects/openjdk/jdk-jdk/source/src/hotspot/share/utilities/globalDefinitions_gcc.hpp:116:46: error: 'isnan' was not declared in this scope
inline int g_isnan(double f) { return isnan(f); }
^
/shared/projects/openjdk/jdk-jdk/source/src/hotspot/share/utilities/globalDefinitions_gcc.hpp:116:46: note: suggested alternative:
In file included from /usr/include/c++/5/random:38:0,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from /shared/projects/openjdk/gtest/latest/googlemock/include/gmock/gmock-actions.h:44,
from /shared/projects/openjdk/gtest/latest/googlemock/include/gmock/gmock.h:59,
from /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/unittest.hpp:51,
from /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/logging/logTestFixture.hpp:24,
from /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/logging/logTestFixture.cpp:26:
/usr/include/c++/5/cmath:641:5: note: 'std::isnan'
isnan(_Tp __x)
^
In file included from /shared/projects/openjdk/jdk-jdk/source/src/hotspot/share/utilities/globalDefinitions.hpp:35:0,
from /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/logging/logTestFixture.hpp:25,
from /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/logging/logTestFixture.cpp:26:
/shared/projects/openjdk/jdk-jdk/source/src/hotspot/share/utilities/globalDefinitions_gcc.hpp: In function 'int g_isfinite(jfloat)':
/shared/projects/openjdk/jdk-jdk/source/src/hotspot/share/utilities/globalDefinitions_gcc.hpp:126:69: error: 'isfinite' was not declared in this scope
inline int g_isfinite(jfloat f) { return isfinite(f); }
^
/shared/projects/openjdk/jdk-jdk/source/src/hotspot/share/utilities/globalDefinitions_gcc.hpp:126:69: note: suggested alternative:
In file included from /usr/include/c++/5/random:38:0,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from /shared/projects/openjdk/gtest/latest/googlemock/include/gmock/gmock-actions.h:44,
from /shared/projects/openjdk/gtest/latest/googlemock/include/gmock/gmock.h:59,
from /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/unittest.hpp:51,
from /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/logging/logTestFixture.hpp:24,
from /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/logging/logTestFixture.cpp:26:
/usr/include/c++/5/cmath:601:5: note: 'std::isfinite'
isfinite(_Tp __x)
^
In file included from /shared/projects/openjdk/jdk-jdk/source/src/hotspot/share/utilities/globalDefinitions.hpp:35:0,
from /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/logging/logTestFixture.hpp:25,
from /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/logging/logTestFixture.cpp:26:
/shared/projects/openjdk/jdk-jdk/source/src/hotspot/share/utilities/globalDefinitions_gcc.hpp: In function 'int g_isfinite(jdouble)':
/shared/projects/openjdk/jdk-jdk/source/src/hotspot/share/utilities/globalDefinitions_gcc.hpp:127:69: error: 'isfinite' was not declared in this scope
inline int g_isfinite(jdouble f) { return isfinite(f); }
^
/shared/projects/openjdk/jdk-jdk/source/src/hotspot/share/utilities/globalDefinitions_gcc.hpp:127:69: note: suggested alternative:
In file included from /usr/include/c++/5/random:38:0,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from /shared/projects/openjdk/gtest/latest/googlemock/include/gmock/gmock-actions.h:44,
from /shared/projects/openjdk/gtest/latest/googlemock/include/gmock/gmock.h:59,
from /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/unittest.hpp:51,
from /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/logging/logTestFixture.hpp:24,
from /shared/projects/openjdk/jdk-jdk/source/test/hotspot/gtest/logging/logTestFixture.cpp:26:
/usr/include/c++/5/cmath:601:5: note: 'std::isfinite'
isfinite(_Tp __x)
^
At global scope:
cc1plus: error: unrecognized command line option '-Wno-shift-negative-value' [-Werror]
cc1plus: error: unrecognized command line option '-Wno-cast-function-type' [-Werror]
cc1plus: error: unrecognized command line option '-Wno-misleading-indentation' [-Werror]
cc1plus: error: unrecognized command line option '-Wno-implicit-fallthrough' [-Werror]
cc1plus: error: unrecognized command line option '-Wno-int-in-bool-context' [-Werror]
cc1plus: all warnings being treated as errors
lib/CompileGtest.gmk:86: recipe for target '/shared/projects/openjdk/jdk-jdk/output-fastdebug-nopch/hotspot/variant-server/libjvm/gtest/objs/logTestFixture.o' failed
make[3]: *** [/shared/projects/openjdk/jdk-jdk/output-fastdebug-nopch/hotspot/variant-server/libjvm/gtest/objs/logTestFixture.o] Error 1
- relates to
-
JDK-8256975 Document the version of gtests framework for the JDK
- Closed
-
JDK-8256977 Bump minimum GCC from 5.x to 6 for JDK
- Resolved