RFR: 8369657: [AIX] TOC overflow in static-launcher build when building slowdebug after JDK-8352064 [v2]

Joachim Kern jkern at openjdk.org
Mon Oct 13 13:28:10 UTC 2025


> When building 'make all' on AIX / slowdebug the build fails :
> 
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
> ld: 0711-781 ERROR: TOC overflow. TOC size: 646240 Maximum size: 65536
> .ibm-clang: error: linker command failed with exit code 12 (use -v to see invocation)
> gmake[3]: *** [StaticLibs.gmk:125: /build_slowdebug/support/static-native/launcher/java] Error 12
> gmake[2]: *** [make/Main.gmk:464: static-launcher] Error 2
> This is because after introducing the static-launcher for AIX with [JDK-8352064](https://bugs.openjdk.org/browse/JDK-8352064) the slowdebug build was not tested. The fastdebug or release build optimizes the not needed stuff away, while the real debug build keeps it running out of TOC space.

Joachim Kern has updated the pull request incrementally with one additional commit since the last revision:

  indentation

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/27767/files
  - new: https://git.openjdk.org/jdk/pull/27767/files/ecebf299..05707906

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=27767&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=27767&range=00-01

  Stats: 3 lines in 1 file changed: 0 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/27767.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27767/head:pull/27767

PR: https://git.openjdk.org/jdk/pull/27767


More information about the build-dev mailing list