I changed the linker used and I'm now able to build the package with "only" 8GB of RAM on amd64. The build still fails with 6GB but at compile time and not at link time.
- Bug#857464: Pending fixes for bugs in the openjfx pac... pkg-java-maintainers
- Bug#857464: Pending fixes for bugs in the openjf... Emmanuel Bourg