https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: net-vpn/i2p-1.7.0 fails to compile. Discovered on: amd64 (internal ref: ci)
Created attachment 780581 [details] build.log build log and emerge --info
Since the build script [1] does not even mention ant it should be possible to build this package using java-pkg-simple.eclass instead of java-ant-2.eclass. [1]https://github.com/i2p/i2p.i2p/blob/i2p-1.7.0/build.gradle
All this trouble is caused by unnecessarily inheriting java-ant-2.eclass. However, re-writing version ~1.7.0 with java-pkg-simple.eclass seems not worth the effort. Solution: Ensure to build ant-core and ~i2p-1.7.0 using the same GENTOO_VM.
it seems that it was fixed by re-lowering ant-core minimum JDK see related https://bugs.gentoo.org/831290
(In reply to tharvik from comment #4) > it seems that it was fixed by re-lowering ant-core minimum JDK > [...] Sorry, but it is still reproducible. 1. Have ant-core compiled with system java-vm = openjdk-17 2. Change system java-vm to openjdk-8 3. emerge net-vpn/i2p-1.7.0
Created attachment 862607 [details] net-vpn/i2p-2.1.0-r2 build.log with icedtea-bin-8 as system java-vm
The same error appears while compiling net-vpn/i2p-2.1.0-r2 and java-vm is icedtea-bin-8 (build.log attached). net-vpn/i2p-2.1.0-r2 builds successfully setting system java-vm to openjdk-bin-17 The problem seems to be described here: https://stackoverflow.com/questions/61267495/exception-in-thread-main-java-lang-nosuchmethoderror-java-nio-bytebuffer-flip