gcj is needed to compile pdftk, gcc wasn't (re)built During a full rebuild of a system, gcj was still missing. Reproducible: Didn't try Steps to Reproduce: 1.starting from stage3 , /etc/portage copied from old system, worldfile too. 2.emerge --noreplace -DN $( cat /home/original-world ) 3. Actual Results: gcc was compiled without gcj depending on gcc having gcj would have pulled it in of warned about missing flags. Expected Results: building pdftk pdftk compilation stopped after complaining about gcj not being found.
The dependency is already in place. Did you perhaps emerge a new (SLOTted) sys-devel/gcc which you didn't then select through gcc-config?
gcc-4.6.3 was probably in stage3, and was/is the active compiler in this build it wasn't compiled with gcj enabled. and pdftk just happily was being tried to compile and failed on a call to gcj... without emerge trying to warn about missing flags. Either there is no flag or emerge just f**ked up dependcy checking. Your pick.