“building a cross-compiler is significantly harder than building a compiler that targets the platform it runs on.” The problem exists due to the way libraries are built and accessed . In the normal situation all the libraries are located in a specific spot, and are used by all apps on that system.