Ask Your Question

Revision history [back]

How to compile programs on cirros?

I would like to create my own programs on cirros instances (background: I want to dirty memory pages so that live-migration takes a long time or even forever). Cirros doesn't have a C compiler, and my naive attempts to compile and statically link a simple program outside of Cirros and run it on an instance failed.

Is there a way to install a compiler on Cirros? If not, what compiler options would you choose to cross-compile for Cirros?