JDK-8185900 : hotspot build failed with gcc version Red Hat 4.4.7-3
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 9,10
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: generic
  • Submitted: 2017-08-07
  • Updated: 2020-02-18
  • Resolved: 2017-08-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 10 Other
10 b21Fixed openjdk8u232Fixed
Related Reports
Relates :  
Description
++ /usr/bin/tee /home/sgehwolf/openjdk9-hs-pristine/build/linux-x86_64-normal-server-fastdebug/hotspot/variant-server/libjvm/objs/instanceKlass.o.log
/home/sgehwolf/openjdk9-hs-pristine/hotspot/src/share/vm/oops/instanceKlass.cpp: In static member function 'static void InstanceKlass::initialize_impl(instanceKlassHandle, Thread*)':
/home/sgehwolf/openjdk9-hs-pristine/hotspot/src/share/vm/oops/instanceKlass.cpp:703: error: cannot reload integer constant operand in 'asm'
/home/sgehwolf/openjdk9-hs-pristine/hotspot/src/share/vm/oops/instanceKlass.cpp:726: error: cannot reload integer constant operand in 'asm'
/home/sgehwolf/openjdk9-hs-pristine/hotspot/src/share/vm/oops/instanceKlass.cpp:732: error: cannot reload integer constant operand in 'asm'
/home/sgehwolf/openjdk9-hs-pristine/hotspot/src/share/vm/oops/instanceKlass.cpp:738: error: cannot reload integer constant operand in 'asm'
/home/sgehwolf/openjdk9-hs-pristine/hotspot/src/share/vm/oops/instanceKlass.cpp:771: error: cannot reload integer constant operand in 'asm'
/home/sgehwolf/openjdk9-hs-pristine/hotspot/src/share/vm/oops/instanceKlass.cpp:790: error: cannot reload integer constant operand in 'asm'
/home/sgehwolf/openjdk9-hs-pristine/hotspot/src/share/vm/oops/instanceKlass.cpp:824: error: cannot reload integer constant operand in 'asm'
/home/sgehwolf/openjdk9-hs-pristine/hotspot/src/share/vm/oops/instanceKlass.cpp:834: error: cannot reload integer constant operand in 'asm'
/home/sgehwolf/openjdk9-hs-pristine/hotspot/src/share/vm/oops/instanceKlass.cpp:703: error: cannot reload integer constant operand in 'asm'
/home/sgehwolf/openjdk9-hs-pristine/hotspot/src/share/vm/oops/instanceKlass.cpp:726: error: cannot reload integer constant operand in 'asm'
/home/sgehwolf/openjdk9-hs-pristine/hotspot/src/share/vm/oops/instanceKlass.cpp:732: error: cannot reload integer constant operand in 'asm'
/home/sgehwolf/openjdk9-hs-pristine/hotspot/src/share/vm/oops/instanceKlass.cpp:738: error: cannot reload integer constant operand in 'asm'
/home/sgehwolf/openjdk9-hs-pristine/hotspot/src/share/vm/oops/instanceKlass.cpp:771: error: cannot reload integer constant operand in 'asm'
/home/sgehwolf/openjdk9-hs-pristine/hotspot/src/share/vm/oops/instanceKlass.cpp:790: error: cannot reload integer constant operand in 'asm'
/home/sgehwolf/openjdk9-hs-pristine/hotspot/src/share/vm/oops/instanceKlass.cpp:824: error: cannot reload integer constant operand in 'asm'
/home/sgehwolf/openjdk9-hs-pristine/hotspot/src/share/vm/oops/instanceKlass.cpp:834: error: cannot reload integer constant operand in 'asm'
+ exitcode=1
+ /bin/cp /home/sgehwolf/openjdk9-hs-pristine/build/linux-x86_64-normal-server-fastdebug/hotspot/variant-server/libjvm/objs/instanceKlass.o.log /home/sgehwolf/openjdk9-hs-pristine/build/linux-x86_64-normal-server-fastdebug/make-support/failure-logs/hotspot_variant-server_libjvm_objs_instanceKlass.o.log
+ exit 1
gmake[4]: *** [/home/sgehwolf/openjdk9-hs-pristine/build/linux-x86_64-normal-server-fastdebug/hotspot/variant-server/libjvm/objs/instanceKlass.o] Error 1
gmake[4]: Leaving directory `/home/sgehwolf/openjdk9-hs-pristine/hotspot/make'
gmake[3]: *** [variant-server-libs] Error 2
gmake[3]: Leaving directory `/home/sgehwolf/openjdk9-hs-pristine/hotspot/make'
gmake[2]: *** [hotspot] Error 1
gmake[2]: Leaving directory `/home/sgehwolf/openjdk9-hs-pristine'

$ gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-3)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

That compiler is currently present on RHEL 6.
Comments
Fix Request 8u. Satisfies compiler warning, very low risk. Patch applies cleanly net of line numbers, file locations, and style (use of "void *" in 8u vs. "void*" in 10).
18-07-2019

Some more data points. This only fails on relevant systems if the build system detects dtrace-related headers (e.g. /usr/include/sys/sdt.h being present). build.log, level TRACE, contains -DDTRACE_ENABLED for g++ commands.
07-08-2017

The above failure is post-fix in classLoadingService (but not in instanceKlass). The classLoadingService build failure is: hotspot/src/share/vm/services/classLoadingService.cpp: In static member function ���static void ClassLoadingService::notify_class_loaded(InstanceKlass*, bool)���: hotspot/src/share/vm/services/classLoadingService.cpp:148: error: cannot reload integer constant operand in ���asm��� hotspot/src/share/vm/services/classLoadingService.cpp:148: error: cannot reload integer constant operand in ���asm���
07-08-2017

http://cr.openjdk.java.net/~sgehwolf/webrevs/JDK-8185900/webrev.01/
07-08-2017

Review thread: http://mail.openjdk.java.net/pipermail/hotspot-dev/2017-August/027773.html
07-08-2017