ext2 cmake file always defines _X86_ . This is wrong - the correct define is automaticly added by cmake scripts.