Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 847304 - net-vpn/i2p-1.7.0 fails to compile: GENTOO_VM=openjdk-bin-8 - build.xml:1646: java.lang.NoSuchMethodError: CharBuffer;
Summary: net-vpn/i2p-1.7.0 fails to compile: GENTOO_VM=openjdk-bin-8 - build.xml:1646:...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: tharvik
URL:
Whiteboard:
Keywords:
Depends on: 846782
Blocks:
  Show dependency tree
 
Reported: 2022-05-25 05:53 UTC by Agostino Sarubbo
Modified: 2023-05-25 17:52 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,138.25 KB, text/plain)
2022-05-25 05:53 UTC, Agostino Sarubbo
Details
net-vpn/i2p-2.1.0-r2 build.log with icedtea-bin-8 as system java-vm (build.log,53.26 KB, text/x-log)
2023-05-25 17:51 UTC, Giuseppe Foti
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-05-25 05:53:31 UTC
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)
Comment 1 Agostino Sarubbo gentoo-dev 2022-05-25 05:53:34 UTC
Created attachment 780581 [details]
build.log

build log and emerge --info
Comment 2 Volkmar W. Pogatzki 2022-05-25 08:31:27 UTC
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
Comment 3 Volkmar W. Pogatzki 2022-07-09 08:24:02 UTC
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.
Comment 4 tharvik 2023-01-29 18:55:08 UTC
it seems that it was fixed by re-lowering ant-core minimum JDK

see related https://bugs.gentoo.org/831290
Comment 5 Volkmar W. Pogatzki 2023-01-29 22:08:25 UTC
(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
Comment 6 Giuseppe Foti 2023-05-25 17:51:51 UTC
Created attachment 862607 [details]
net-vpn/i2p-2.1.0-r2 build.log with icedtea-bin-8 as system java-vm
Comment 7 Giuseppe Foti 2023-05-25 17:52:28 UTC
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