Created attachment 920159 [details] emerge --info I'd built a fairly minimal gentoo install to test a kernel bug. Since I could not replicate the bug on the most minimal install I started with, I'm successively expanding that install to be closer to the one of the affected system. That meant switching from a generic profile to a desktop/plasma one. I already had app-emulation/virtualbox installed, and rebuilding it because of the profile switch I got a build error that 'nspr.h' is missing. I assumed this would come from dev-libs/nspr, so I installed it manually. With dev-libs/nspr present on the system, the virtualbox build immediately succeeds. On this system, dev-libs/nspr is not a dependency of anything, and virtualbox is also not depending on it. My reading is that the virtualbox build system either automatically enables some code, or the profile change changed some flags to that effect, that now require nspr; but the ebuild is missing this conditional dependency (it doesn't mention nspr at all). (And maybe on a lot of systems that's not obvious because they have nspr installed anyway for other reasons.)
It shouldn't, virtualbox includes its own nspr.h. My minimal chroot where I test virtualbox from time to time does not have nspr installed. Most probably you have hit a parallel make bug. If this happens again, please try `ebuild "$(portageq get_repo_path / gentoo)/app-emulation/virtualbox/virtualbox-7.1.4.ebuild" merge`, it should resume compilation and eventually finish installing it.