Mediocre and lousy programmers have been making implicit assumptions about architecture and unix variants for 40+ years now that cause all sorts of hell when going to other hardware. (c.f. "all the world's a vax")
Almost every package breaks on Gentoo across arches or has different stability/compatibility. Its hard stuff, the only way to fix it is to test on all these platforms which is almost impossible.