When i try to install openjdk emerge gives me circular dependencies error(portage tree up to date).
could you please paste the exact output that you get?
it needs openjdk-bin to be installed for the first time to compile, later you can get rid of openjdk-bin and use openjdk to compile openjdk =). if you unmasked/keyworded only openjdk, you also need to do that for openjdk-bin. Closing, feel free to reopen and provide some output if it still fails for you.
*** Bug 708558 has been marked as a duplicate of this bug. ***
Not the OP but I have exactly this problem, however emerging openjdk-bin didn't help. As I still get the error
nvm using opendjk-bin:11 fixed it