[copy] Copying 1 file to /var/tmp/portage/net-vpn/i2p-1.6.1/work/i2p-1.6.1/pkg-temp [copy] Copying 1 file to /var/tmp/portage/net-vpn/i2p-1.6.1/work/i2p-1.6.1/pkg-temp BUILD FAILED /var/tmp/portage/net-vpn/i2p-1.6.1/work/i2p-1.6.1/build.xml:1634: java.lang.NoSuchMethodError: java.nio.CharBuffer.flip()Ljava/nio/CharBuffer; at org.apache.tools.ant.util.ReaderInputStream.<init>(ReaderInputStream.java:81) at org.apache.tools.ant.util.ReaderInputStream.<init>(ReaderInputStream.java:66) ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_no_multilib_systemd-j4-20220114-201049 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-11.2.1 * clang/llvm (if any): /usr/lib/llvm/13 13.0.0 Python 3.9.10 Available Rust versions: [1] rust-1.58.0 * GENTOO_VM=openjdk-bin-8 CLASSPATH="" JAVA_HOME="/opt/openjdk-bin-8.312_p07" JAVACFLAGS="-source 1.8 -target 1.8" COMPILER="javac" The following VMs are available for generation-2: *) AdoptOpenJDK 11.0.13_p8 [openjdk-bin-11] 2) AdoptOpenJDK 8.312_p07 [openjdk-bin-8] Available Java Virtual Machines: [1] openjdk-bin-8 [2] openjdk-bin-11 system-vm The Glorious Glasgow Haskell Compilation System, version 8.10.4 php cli: HEAD of ::gentoo commit f79a5779bde18c240f216cd124a073d071910e28 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Sat Jan 15 23:51:56 2022 +0000 2022-01-15 23:51:54 UTC emerge -qpvO net-vpn/i2p [ebuild N ] net-vpn/i2p-1.6.1 USE="nls -test"
Created attachment 762279 [details] emerge-info.txt
Created attachment 762280 [details] emerge-history.txt
Created attachment 762281 [details] environment
Created attachment 762282 [details] etc.portage.tar.bz2
Created attachment 762283 [details] net-vpn:i2p-1.6.1:20220116-005951.log
Created attachment 762284 [details] temp.tar.bz2
!!! When you file a bug report, please include the following information: GENTOO_VM=openjdk-bin-8 CLASSPATH="" JAVA_HOME="/opt/openjdk-bin-8.312_p07" JAVACFLAGS="-source 1.8 -target 1.8" COMPILER="javac" (extracted from one of the attachments)
(In reply to Volkmar W. Pogatzki from comment #7) > !!! When you file a bug report, please include the following information: > GENTOO_VM=openjdk-bin-8 CLASSPATH="" JAVA_HOME="/opt/openjdk-bin-8.312_p07" > JAVACFLAGS="-source 1.8 -target 1.8" COMPILER="javac" > > (extracted from one of the attachments) pls read # comment0
Hi, Any news regarding this bug ? I tried to bump to latest (1.7.0) but the exact same build error is present on my system (amd64 / bdver2) Thanks
(In reply to David Duchesne from comment #9) > Hi, > Any news regarding this bug ? > I tried to bump to latest (1.7.0) but the exact same build error is present > on my system (amd64 / bdver2) Does this article help? https://www.morling.dev/blog/bytebuffer-and-the-dreaded-nosuchmethoderror/
Are you able to emerge i2p after "emerge -1 ant-core"? I suspect this may be caused by invoking ant with Java 8 while ant itself was build with Java >= 11. If this is the case, then it's not really related to the i2p build, but rather to dev-java/ant-core.
Fixed with https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9826d526b71e87c2ec94a7ea7dce4952cd8a79f (Unfortunately I used the wrong bug # in the Closes git trailer)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b24498c7e502a18bac9b4f42e94bf479bb96a34c commit b24498c7e502a18bac9b4f42e94bf479bb96a34c Author: Florian Schmaus <flow@gentoo.org> AuthorDate: 2022-05-21 18:17:55 +0000 Commit: Florian Schmaus <flow@gentoo.org> CommitDate: 2022-05-21 18:17:55 +0000 dev-java/ant-core: lower min Java to 8 again Turns out that raising ant-core's min Java requirement to 9, while fixing bug #831290, renders ant unable to build pure Java 8 packages (of which we have a few, most prominently jna), see bug #846782. We go back to Java 8 again, until we find a better solution. Bug: https://bugs.gentoo.org/846782 Bug: https://bugs.gentoo.org/831290 Signed-off-by: Florian Schmaus <flow@gentoo.org> .../ant-core/{ant-core-1.10.9-r4.ebuild => ant-core-1.10.9-r5.ebuild} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Re-open, as we had to lower ant-core to Java 8 again (due to bug #846782).
*** This bug has been marked as a duplicate of bug 846782 ***