JDK-8223599 : minimal build fails after JDK-8185525
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jfr
  • Affected Version: 13
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-05-09
  • Updated: 2019-12-20
  • Resolved: 2019-05-09
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 13
13 b21Fixed
Related Reports
Relates :  
Description
$ make hotspot CONF=linux-x86_64-minimal-release
Building target 'hotspot' in configuration 'linux-x86_64-minimal-release'
/home/aoqi/jdk/build/linux-x86_64-minimal-release/hotspot/variant-minimal/libjvm/objs/tableStatistics.o: In function `TableRateStatistics::add()':
/home/aoqi/jdk/src/hotspot/share/utilities/tableStatistics.cpp:41: undefined reference to `Jfr::is_recording()'
/home/aoqi/jdk/build/linux-x86_64-minimal-release/hotspot/variant-minimal/libjvm/objs/tableStatistics.o: In function `TableRateStatistics::remove()':
/home/aoqi/jdk/src/hotspot/share/utilities/tableStatistics.cpp:47: undefined reference to `Jfr::is_recording()'
/home/aoqi/jdk/build/linux-x86_64-minimal-release/hotspot/variant-minimal/libjvm/objs/tableStatistics.o: In function `TableStatistics::TableStatistics(TableRateStatistics&, NumberSeq, unsigned long, unsigned long, unsigned long)':
/home/aoqi/jdk/src/hotspot/share/utilities/tableStatistics.cpp:111: undefined reference to `Jfr::is_recording()'
collect2: error: ld returned 1 exit status
gmake[3]: *** [/home/aoqi/jdk/build/linux-x86_64-minimal-release/support/modules_libs/java.base/minimal/libjvm.so] Error 1
gmake[3]: *** Waiting for unfinished jobs....
/home/aoqi/jdk/build/linux-x86_64-minimal-release/hotspot/variant-minimal/libjvm/objs/tableStatistics.o: In function `TableRateStatistics::add()':
/home/aoqi/jdk/src/hotspot/share/utilities/tableStatistics.cpp:41: undefined reference to `Jfr::is_recording()'
/home/aoqi/jdk/build/linux-x86_64-minimal-release/hotspot/variant-minimal/libjvm/objs/tableStatistics.o: In function `TableRateStatistics::remove()':
/home/aoqi/jdk/src/hotspot/share/utilities/tableStatistics.cpp:47: undefined reference to `Jfr::is_recording()'
/home/aoqi/jdk/build/linux-x86_64-minimal-release/hotspot/variant-minimal/libjvm/objs/tableStatistics.o: In function `TableStatistics::TableStatistics(TableRateStatistics&, NumberSeq, unsigned long, unsigned long, unsigned long)':
/home/aoqi/jdk/src/hotspot/share/utilities/tableStatistics.cpp:111: undefined reference to `Jfr::is_recording()'
collect2: error: ld returned 1 exit status
gmake[3]: *** [/home/aoqi/jdk/build/linux-x86_64-minimal-release/hotspot/variant-minimal/libjvm/gtest/libjvm.so] Error 1
gmake[2]: *** [hotspot-minimal-libs] Error 1

ERROR: Build failed for target 'hotspot' in configuration 'linux-x86_64-minimal-release' (exit code 2) 

=== Output from failing command(s) repeated here ===
* For target hotspot_variant-minimal_libjvm_gtest_objs_BUILD_GTEST_LIBJVM_link:
/home/aoqi/jdk/build/linux-x86_64-minimal-release/hotspot/variant-minimal/libjvm/objs/tableStatistics.o: In function `TableRateStatistics::add()':
/home/aoqi/jdk/src/hotspot/share/utilities/tableStatistics.cpp:41: undefined reference to `Jfr::is_recording()'
/home/aoqi/jdk/build/linux-x86_64-minimal-release/hotspot/variant-minimal/libjvm/objs/tableStatistics.o: In function `TableRateStatistics::remove()':
/home/aoqi/jdk/src/hotspot/share/utilities/tableStatistics.cpp:47: undefined reference to `Jfr::is_recording()'
/home/aoqi/jdk/build/linux-x86_64-minimal-release/hotspot/variant-minimal/libjvm/objs/tableStatistics.o: In function `TableStatistics::TableStatistics(TableRateStatistics&, NumberSeq, unsigned long, unsigned long, unsigned long)':
/home/aoqi/jdk/src/hotspot/share/utilities/tableStatistics.cpp:111: undefined reference to `Jfr::is_recording()'
collect2: error: ld returned 1 exit status
* For target hotspot_variant-minimal_libjvm_objs_BUILD_LIBJVM_link:
/home/aoqi/jdk/build/linux-x86_64-minimal-release/hotspot/variant-minimal/libjvm/objs/tableStatistics.o: In function `TableRateStatistics::add()':
/home/aoqi/jdk/src/hotspot/share/utilities/tableStatistics.cpp:41: undefined reference to `Jfr::is_recording()'
/home/aoqi/jdk/build/linux-x86_64-minimal-release/hotspot/variant-minimal/libjvm/objs/tableStatistics.o: In function `TableRateStatistics::remove()':
/home/aoqi/jdk/src/hotspot/share/utilities/tableStatistics.cpp:47: undefined reference to `Jfr::is_recording()'
/home/aoqi/jdk/build/linux-x86_64-minimal-release/hotspot/variant-minimal/libjvm/objs/tableStatistics.o: In function `TableStatistics::TableStatistics(TableRateStatistics&, NumberSeq, unsigned long, unsigned long, unsigned long)':
/home/aoqi/jdk/src/hotspot/share/utilities/tableStatistics.cpp:111: undefined reference to `Jfr::is_recording()'
collect2: error: ld returned 1 exit status

* All command lines available in /home/aoqi/jdk/build/linux-x86_64-minimal-release/make-support/failure-logs.
=== End of repeated output ===

No indication of failed target found.
Hint: Try searching the build log for '] Error'.
Hint: See doc/building.html#troubleshooting for assistance.

make[1]: *** [main] Error 1
make: *** [hotspot] Error 2

Comments
Fix request(11u) A backport of this bug is required, should we decide to take JDK-8185525 to jdk11u. Patch then applies cleanly and fixes build errors, e.g. on AIX. On-hold, as long as JDK-8185525 is not backported.
20-12-2019

Wang Haomin is following up on this issue: https://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/2019-May/034217.html
09-05-2019