In light of bug #245875, I have been trying to get sci-physics/root-5.20.00-r3 to build. Installed is sci-physics/root-5.22.00-r2 since last April, and I find that both 5.20.00 and 5.22.00 try to link to installed libraries of its own, instead of building those libraries and linking to them in WORKDIR. [ebuild N ] sci-physics/root-5.22.00-r2 USE="cern clarens emacs examples fftw geant4 kerberos ldap math mysql openmp postgres pythia6 pythia8 python qt4 reflex ruby ssl xml (-afs) -cint7 -debug -doc -odbc (-oracle) -xinetd -xrootd" 0 kB Build logs to be posted shortly.
Created attachment 196194 [details] sci-physics:root-5.20.00-r3:20090623-160340.log.gz [hppa,fail] At the time it tries to link against lib/libRIO.so, the build system has not built that yet and the only file called that on the system is in /usr/lib. I assumed it could be a parallel make problem instead of the build system building against the installed files it owns, but MAKEOPTS=-j1 does not fix the problem/
*** Bug 276440 has been marked as a duplicate of this bug. ***
I'm experiencing the same issue on x86-64, however I discovered that it's not caused by a linking problem with the libraries already installed on the system, but by some incompatibility with gcc-4.4 (which, if I read your log correctly, you are also using). I applied the same patch provided in bug 280925 - the one about the new ebuild for root 5.24.0 - and now it seems to build without problems. Actually I also suggest to read Comment #10 of bug 280925 since it seems that this patch is probably not the best solution.
Created attachment 204753 [details] emerge --info Added emerge --info.
Should be fixed in 5.22.00-r3.