Source: openjdk-14 Version: 14~32-1 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
openjdk-14 fails to cross build from source. The immediate failure is when linking -lz using the build architecture compiler, because there is not dependency on zlib1g-dev:native. In this case, it seems that the build rules are already fully correct and openjdk really needs a build tool that links -lz. As such it should have a relevant dependency on zlib1g-dev:native. Once adding it, the build proceeds much further until it finally fails when debian/rules invokes the build architecture objcopy and strip. Using triplet-prefixed tools is necessary here. After doing so, openjdk-14 cross builds successfully. Please consider applying the attached patch. At least the dependency issue appears to also affect openjdk-11 and openjdk-13. Do you prefer fixing it yourself there or should I send separate patchs? Helmut